cqm-models 1.1.1.0 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. checksums.yaml +4 -4
  2. data/.eslintrc.json +1 -1
  3. data/.github/workflows/gitleaks_github_actions.yml +28 -0
  4. data/.travis.yml +3 -3
  5. data/README.md +12 -9
  6. data/app/assets/javascripts/AdverseEvent.js +9 -3
  7. data/app/assets/javascripts/AllDataElements.js +18 -6
  8. data/app/assets/javascripts/AllergyIntolerance.js +8 -2
  9. data/app/assets/javascripts/AssessmentOrder.js +8 -2
  10. data/app/assets/javascripts/AssessmentPerformed.js +11 -3
  11. data/app/assets/javascripts/AssessmentRecommended.js +8 -2
  12. data/app/assets/javascripts/CareGoal.js +10 -3
  13. data/app/assets/javascripts/CommunicationPerformed.js +12 -6
  14. data/app/assets/javascripts/DeviceApplied.js +9 -2
  15. data/app/assets/javascripts/DeviceOrder.js +8 -2
  16. data/app/assets/javascripts/DeviceRecommended.js +8 -2
  17. data/app/assets/javascripts/Diagnosis.js +8 -2
  18. data/app/assets/javascripts/DiagnosticStudyOrder.js +8 -2
  19. data/app/assets/javascripts/DiagnosticStudyPerformed.js +9 -2
  20. data/app/assets/javascripts/DiagnosticStudyRecommended.js +8 -2
  21. data/app/assets/javascripts/EncounterOrder.js +9 -2
  22. data/app/assets/javascripts/EncounterPerformed.js +11 -5
  23. data/app/assets/javascripts/EncounterRecommended.js +8 -2
  24. data/app/assets/javascripts/FamilyHistory.js +8 -2
  25. data/app/assets/javascripts/ImmunizationAdministered.js +9 -2
  26. data/app/assets/javascripts/ImmunizationOrder.js +8 -2
  27. data/app/assets/javascripts/InterventionOrder.js +8 -2
  28. data/app/assets/javascripts/InterventionPerformed.js +9 -2
  29. data/app/assets/javascripts/InterventionRecommended.js +8 -2
  30. data/app/assets/javascripts/LaboratoryTestOrder.js +8 -2
  31. data/app/assets/javascripts/LaboratoryTestPerformed.js +9 -2
  32. data/app/assets/javascripts/LaboratoryTestRecommended.js +8 -2
  33. data/app/assets/javascripts/MedicationActive.js +9 -2
  34. data/app/assets/javascripts/MedicationAdministered.js +9 -2
  35. data/app/assets/javascripts/MedicationDischarge.js +9 -2
  36. data/app/assets/javascripts/MedicationDispensed.js +10 -4
  37. data/app/assets/javascripts/MedicationOrder.js +9 -4
  38. data/app/assets/javascripts/Participation.js +8 -2
  39. data/app/assets/javascripts/PatientCareExperience.js +8 -2
  40. data/app/assets/javascripts/PatientCharacteristic.js +7 -2
  41. data/app/assets/javascripts/PatientCharacteristicBirthdate.js +7 -2
  42. data/app/assets/javascripts/PatientCharacteristicClinicalTrialParticipant.js +7 -2
  43. data/app/assets/javascripts/PatientCharacteristicEthnicity.js +7 -2
  44. data/app/assets/javascripts/PatientCharacteristicExpired.js +7 -2
  45. data/app/assets/javascripts/PatientCharacteristicPayer.js +7 -2
  46. data/app/assets/javascripts/PatientCharacteristicRace.js +7 -2
  47. data/app/assets/javascripts/PatientCharacteristicSex.js +7 -2
  48. data/app/assets/javascripts/PhysicalExamOrder.js +8 -2
  49. data/app/assets/javascripts/PhysicalExamPerformed.js +9 -2
  50. data/app/assets/javascripts/PhysicalExamRecommended.js +8 -2
  51. data/app/assets/javascripts/ProcedureOrder.js +10 -3
  52. data/app/assets/javascripts/ProcedurePerformed.js +11 -3
  53. data/app/assets/javascripts/ProcedureRecommended.js +9 -3
  54. data/app/assets/javascripts/ProviderCareExperience.js +8 -2
  55. data/app/assets/javascripts/QDMPatient.js +25 -9
  56. data/app/assets/javascripts/RelatedPerson.js +42 -0
  57. data/app/assets/javascripts/SubstanceAdministered.js +9 -2
  58. data/app/assets/javascripts/SubstanceOrder.js +9 -2
  59. data/app/assets/javascripts/SubstanceRecommended.js +8 -2
  60. data/app/assets/javascripts/Symptom.js +8 -2
  61. data/app/assets/javascripts/attributes/CarePartner.js +33 -0
  62. data/app/assets/javascripts/attributes/Component.js +22 -1
  63. data/app/assets/javascripts/attributes/DiagnosisComponent.js +34 -0
  64. data/app/assets/javascripts/attributes/Entity.js +58 -0
  65. data/app/assets/javascripts/attributes/FacilityLocation.js +4 -1
  66. data/app/assets/javascripts/attributes/Identifier.js +23 -0
  67. data/app/assets/javascripts/attributes/Organization.js +33 -0
  68. data/app/assets/javascripts/attributes/PatientEntity.js +32 -0
  69. data/app/assets/javascripts/attributes/Practitioner.js +35 -0
  70. data/app/assets/javascripts/attributes/ResultComponent.js +31 -0
  71. data/app/assets/javascripts/basetypes/Any.js +24 -15
  72. data/app/assets/javascripts/basetypes/AnyEntity.js +44 -0
  73. data/app/assets/javascripts/basetypes/Code.js +8 -12
  74. data/app/assets/javascripts/basetypes/DataElement.js +17 -6
  75. data/app/assets/javascripts/basetypes/Interval.js +10 -8
  76. data/app/assets/javascripts/basetypes/QDMDate.js +36 -0
  77. data/app/assets/javascripts/basetypes/Quantity.js +1 -1
  78. data/app/assets/javascripts/basetypes/Ratio.js +1 -1
  79. data/app/assets/javascripts/cqm/AllCQMModels.js +2 -0
  80. data/app/assets/javascripts/cqm/ClauseResult.js +28 -0
  81. data/app/assets/javascripts/{IndividualResult.js → cqm/IndividualResult.js} +28 -2
  82. data/app/assets/javascripts/cqm/Measure.js +1 -1
  83. data/app/assets/javascripts/cqm/Provider.js +0 -2
  84. data/app/assets/javascripts/cqm/StatementResult.js +41 -0
  85. data/app/assets/javascripts/index.js +6 -2
  86. data/app/models/cqm/clause_result.rb +21 -0
  87. data/app/models/{qdm/tacoma → cqm}/individual_result.rb +24 -3
  88. data/app/models/cqm/measure.rb +2 -0
  89. data/app/models/cqm/patient.rb +1 -0
  90. data/app/models/cqm/provider.rb +4 -4
  91. data/app/models/cqm/statement_result.rb +27 -0
  92. data/app/models/hqmfOid_to_datatype_map.json +5 -1
  93. data/app/models/model_finder.rb +1 -0
  94. data/app/models/models.rb +15 -6
  95. data/app/models/qdm/adverse_event.rb +3 -2
  96. data/app/models/qdm/allergy_intolerance.rb +2 -1
  97. data/app/models/qdm/assessment_order.rb +2 -1
  98. data/app/models/qdm/assessment_performed.rb +5 -2
  99. data/app/models/qdm/assessment_recommended.rb +2 -1
  100. data/app/models/qdm/attributes/attribute.rb +1 -0
  101. data/app/models/qdm/attributes/care_partner.rb +10 -0
  102. data/app/models/qdm/attributes/component.rb +1 -1
  103. data/app/models/qdm/attributes/diagnosis_component.rb +10 -0
  104. data/app/models/qdm/attributes/entity.rb +15 -0
  105. data/app/models/qdm/attributes/facility_location.rb +1 -1
  106. data/app/models/qdm/{id.rb → attributes/identifier.rb} +3 -4
  107. data/app/models/qdm/attributes/organization.rb +10 -0
  108. data/app/models/qdm/attributes/patient_entity.rb +9 -0
  109. data/app/models/qdm/attributes/practitioner.rb +12 -0
  110. data/app/models/qdm/{result_component.rb → attributes/result_component.rb} +1 -3
  111. data/app/models/qdm/basetypes/code.rb +9 -10
  112. data/app/models/qdm/basetypes/data_element.rb +64 -12
  113. data/app/models/qdm/basetypes/date.rb +39 -0
  114. data/app/models/qdm/basetypes/interval.rb +26 -3
  115. data/app/models/qdm/basetypes/quantity.rb +1 -0
  116. data/app/models/qdm/basetypes/ratio.rb +1 -0
  117. data/app/models/qdm/care_goal.rb +4 -2
  118. data/app/models/qdm/communication_performed.rb +6 -5
  119. data/app/models/qdm/device_applied.rb +3 -1
  120. data/app/models/qdm/device_order.rb +2 -1
  121. data/app/models/qdm/device_recommended.rb +2 -1
  122. data/app/models/qdm/diagnosis.rb +2 -1
  123. data/app/models/qdm/diagnostic_study_order.rb +2 -1
  124. data/app/models/qdm/diagnostic_study_performed.rb +3 -1
  125. data/app/models/qdm/diagnostic_study_recommended.rb +2 -1
  126. data/app/models/qdm/encounter_order.rb +3 -1
  127. data/app/models/qdm/encounter_performed.rb +3 -2
  128. data/app/models/qdm/encounter_recommended.rb +2 -1
  129. data/app/models/qdm/family_history.rb +2 -1
  130. data/app/models/qdm/immunization_administered.rb +3 -1
  131. data/app/models/qdm/immunization_order.rb +2 -1
  132. data/app/models/qdm/intervention_order.rb +2 -1
  133. data/app/models/qdm/intervention_performed.rb +3 -1
  134. data/app/models/qdm/intervention_recommended.rb +2 -1
  135. data/app/models/qdm/laboratory_test_order.rb +2 -1
  136. data/app/models/qdm/laboratory_test_performed.rb +3 -1
  137. data/app/models/qdm/laboratory_test_recommended.rb +2 -1
  138. data/app/models/qdm/medication_active.rb +3 -1
  139. data/app/models/qdm/medication_administered.rb +3 -1
  140. data/app/models/qdm/medication_discharge.rb +3 -1
  141. data/app/models/qdm/medication_dispensed.rb +4 -3
  142. data/app/models/qdm/medication_order.rb +3 -3
  143. data/app/models/qdm/participation.rb +2 -1
  144. data/app/models/qdm/patient.rb +2 -2
  145. data/app/models/qdm/patient_care_experience.rb +2 -1
  146. data/app/models/qdm/patient_characteristic.rb +1 -1
  147. data/app/models/qdm/patient_characteristic_birthdate.rb +1 -1
  148. data/app/models/qdm/patient_characteristic_clinical_trial_participant.rb +1 -1
  149. data/app/models/qdm/patient_characteristic_ethnicity.rb +1 -1
  150. data/app/models/qdm/patient_characteristic_expired.rb +1 -1
  151. data/app/models/qdm/patient_characteristic_payer.rb +1 -1
  152. data/app/models/qdm/patient_characteristic_race.rb +1 -1
  153. data/app/models/qdm/patient_characteristic_sex.rb +1 -1
  154. data/app/models/qdm/physical_exam_order.rb +2 -1
  155. data/app/models/qdm/physical_exam_performed.rb +3 -1
  156. data/app/models/qdm/physical_exam_recommended.rb +2 -1
  157. data/app/models/qdm/procedure_order.rb +4 -2
  158. data/app/models/qdm/procedure_performed.rb +5 -2
  159. data/app/models/qdm/procedure_recommended.rb +3 -2
  160. data/app/models/qdm/provider_care_experience.rb +2 -1
  161. data/app/models/qdm/related_person.rb +13 -0
  162. data/app/models/qdm/substance_administered.rb +3 -1
  163. data/app/models/qdm/substance_order.rb +3 -1
  164. data/app/models/qdm/substance_recommended.rb +2 -1
  165. data/app/models/qdm/symptom.rb +2 -1
  166. data/bin/validate_generator.sh +1 -1
  167. data/cqm-models.gemspec +5 -5
  168. data/data/oids_qdm_5.5.json +337 -0
  169. data/dist/browser.js +41069 -34668
  170. data/dist/index.js +41068 -34667
  171. data/lib/generate_entities.rb +56 -0
  172. data/lib/generate_models.rb +77 -39
  173. data/lib/generate_patients.rb +20 -14
  174. data/lib/generate_types.rb +54 -14
  175. data/lib/generator_helpers.rb +14 -0
  176. data/modelinfo/qdm-modelinfo-5.5.xml +982 -0
  177. data/package.json +4 -4
  178. data/templates/entity_extension.rb.erb +6 -0
  179. data/templates/identifier_extension.rb.erb +58 -0
  180. data/templates/{id_template.js.erb → identifier_template.js.erb} +6 -5
  181. data/templates/index_template.js.erb +6 -2
  182. data/templates/models_template.rb.erb +22 -5
  183. data/templates/mongoose_template.js.erb +86 -12
  184. data/templates/patient_extension.rb.erb +1 -1
  185. data/templates/patient_template.js.erb +0 -4
  186. data/yarn.lock +525 -391
  187. metadata +46 -21
  188. data/app/assets/javascripts/Id.js +0 -21
  189. data/app/assets/javascripts/ProviderCharacteristic.js +0 -36
  190. data/app/assets/javascripts/ResultComponent.js +0 -33
  191. data/app/models/qdm/provider_characteristic.rb +0 -12
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cqm-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1.0
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - aholmes@mitre.org
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2019-05-22 00:00:00.000000000 Z
13
+ date: 2020-08-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundle-audit
@@ -32,28 +32,28 @@ dependencies:
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: '1.15'
35
+ version: 2.1.4
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: '1.15'
42
+ version: 2.1.4
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: byebug
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: 10.0.0
49
+ version: 11.0.1
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: 10.0.0
56
+ version: 11.0.1
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: codecov
59
59
  requirement: !ruby/object:Gem::Requirement
@@ -74,14 +74,14 @@ dependencies:
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: 6.3.0
77
+ version: '6.4'
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - "~>"
83
83
  - !ruby/object:Gem::Version
84
- version: 6.3.0
84
+ version: '6.4'
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: rails
87
87
  requirement: !ruby/object:Gem::Requirement
@@ -102,14 +102,14 @@ dependencies:
102
102
  requirements:
103
103
  - - "~>"
104
104
  - !ruby/object:Gem::Version
105
- version: '10.0'
105
+ version: 12.3.3
106
106
  type: :development
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - "~>"
111
111
  - !ruby/object:Gem::Version
112
- version: '10.0'
112
+ version: 12.3.3
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: rspec
115
115
  requirement: !ruby/object:Gem::Requirement
@@ -162,6 +162,7 @@ files:
162
162
  - ".eslintignore"
163
163
  - ".eslintrc.json"
164
164
  - ".github/PULL_REQUEST_TEMPLATE.md"
165
+ - ".github/workflows/gitleaks_github_actions.yml"
165
166
  - ".gitignore"
166
167
  - ".rspec"
167
168
  - ".rubocop.yml"
@@ -189,10 +190,8 @@ files:
189
190
  - app/assets/javascripts/EncounterPerformed.js
190
191
  - app/assets/javascripts/EncounterRecommended.js
191
192
  - app/assets/javascripts/FamilyHistory.js
192
- - app/assets/javascripts/Id.js
193
193
  - app/assets/javascripts/ImmunizationAdministered.js
194
194
  - app/assets/javascripts/ImmunizationOrder.js
195
- - app/assets/javascripts/IndividualResult.js
196
195
  - app/assets/javascripts/InterventionOrder.js
197
196
  - app/assets/javascripts/InterventionPerformed.js
198
197
  - app/assets/javascripts/InterventionRecommended.js
@@ -221,43 +220,58 @@ files:
221
220
  - app/assets/javascripts/ProcedurePerformed.js
222
221
  - app/assets/javascripts/ProcedureRecommended.js
223
222
  - app/assets/javascripts/ProviderCareExperience.js
224
- - app/assets/javascripts/ProviderCharacteristic.js
225
223
  - app/assets/javascripts/QDMPatient.js
224
+ - app/assets/javascripts/RelatedPerson.js
226
225
  - app/assets/javascripts/Result.js
227
- - app/assets/javascripts/ResultComponent.js
228
226
  - app/assets/javascripts/SubstanceAdministered.js
229
227
  - app/assets/javascripts/SubstanceOrder.js
230
228
  - app/assets/javascripts/SubstanceRecommended.js
231
229
  - app/assets/javascripts/Symptom.js
230
+ - app/assets/javascripts/attributes/CarePartner.js
232
231
  - app/assets/javascripts/attributes/Component.js
232
+ - app/assets/javascripts/attributes/DiagnosisComponent.js
233
+ - app/assets/javascripts/attributes/Entity.js
233
234
  - app/assets/javascripts/attributes/FacilityLocation.js
235
+ - app/assets/javascripts/attributes/Identifier.js
236
+ - app/assets/javascripts/attributes/Organization.js
237
+ - app/assets/javascripts/attributes/PatientEntity.js
238
+ - app/assets/javascripts/attributes/Practitioner.js
239
+ - app/assets/javascripts/attributes/ResultComponent.js
234
240
  - app/assets/javascripts/basetypes/Any.js
241
+ - app/assets/javascripts/basetypes/AnyEntity.js
235
242
  - app/assets/javascripts/basetypes/Code.js
236
243
  - app/assets/javascripts/basetypes/DataElement.js
237
244
  - app/assets/javascripts/basetypes/DateTime.js
238
245
  - app/assets/javascripts/basetypes/Interval.js
246
+ - app/assets/javascripts/basetypes/QDMDate.js
239
247
  - app/assets/javascripts/basetypes/Quantity.js
240
248
  - app/assets/javascripts/basetypes/Ratio.js
241
249
  - app/assets/javascripts/browser.js
242
250
  - app/assets/javascripts/cqm/AllCQMModels.js
243
251
  - app/assets/javascripts/cqm/CQLLibrary.js
244
252
  - app/assets/javascripts/cqm/CQLStatementDependency.js
253
+ - app/assets/javascripts/cqm/ClauseResult.js
245
254
  - app/assets/javascripts/cqm/Concept.js
255
+ - app/assets/javascripts/cqm/IndividualResult.js
246
256
  - app/assets/javascripts/cqm/Measure.js
247
257
  - app/assets/javascripts/cqm/MeasurePackage.js
248
258
  - app/assets/javascripts/cqm/Patient.js
249
259
  - app/assets/javascripts/cqm/PopulationSet.js
250
260
  - app/assets/javascripts/cqm/Provider.js
261
+ - app/assets/javascripts/cqm/StatementResult.js
251
262
  - app/assets/javascripts/cqm/ValueSet.js
252
263
  - app/assets/javascripts/index.js
264
+ - app/models/cqm/clause_result.rb
253
265
  - app/models/cqm/concept.rb
254
266
  - app/models/cqm/cql_library.rb
255
267
  - app/models/cqm/cql_statement_dependency.rb
268
+ - app/models/cqm/individual_result.rb
256
269
  - app/models/cqm/measure.rb
257
270
  - app/models/cqm/measure_package.rb
258
271
  - app/models/cqm/patient.rb
259
272
  - app/models/cqm/population_set.rb
260
273
  - app/models/cqm/provider.rb
274
+ - app/models/cqm/statement_result.rb
261
275
  - app/models/cqm/valueset.rb
262
276
  - app/models/hqmfOid_to_datatype_map.json
263
277
  - app/models/model_finder.rb
@@ -268,10 +282,19 @@ files:
268
282
  - app/models/qdm/assessment_performed.rb
269
283
  - app/models/qdm/assessment_recommended.rb
270
284
  - app/models/qdm/attributes/attribute.rb
285
+ - app/models/qdm/attributes/care_partner.rb
271
286
  - app/models/qdm/attributes/component.rb
287
+ - app/models/qdm/attributes/diagnosis_component.rb
288
+ - app/models/qdm/attributes/entity.rb
272
289
  - app/models/qdm/attributes/facility_location.rb
290
+ - app/models/qdm/attributes/identifier.rb
291
+ - app/models/qdm/attributes/organization.rb
292
+ - app/models/qdm/attributes/patient_entity.rb
293
+ - app/models/qdm/attributes/practitioner.rb
294
+ - app/models/qdm/attributes/result_component.rb
273
295
  - app/models/qdm/basetypes/code.rb
274
296
  - app/models/qdm/basetypes/data_element.rb
297
+ - app/models/qdm/basetypes/date.rb
275
298
  - app/models/qdm/basetypes/interval.rb
276
299
  - app/models/qdm/basetypes/quantity.rb
277
300
  - app/models/qdm/basetypes/ratio.rb
@@ -288,7 +311,6 @@ files:
288
311
  - app/models/qdm/encounter_performed.rb
289
312
  - app/models/qdm/encounter_recommended.rb
290
313
  - app/models/qdm/family_history.rb
291
- - app/models/qdm/id.rb
292
314
  - app/models/qdm/immunization_administered.rb
293
315
  - app/models/qdm/immunization_order.rb
294
316
  - app/models/qdm/intervention_order.rb
@@ -320,13 +342,11 @@ files:
320
342
  - app/models/qdm/procedure_performed.rb
321
343
  - app/models/qdm/procedure_recommended.rb
322
344
  - app/models/qdm/provider_care_experience.rb
323
- - app/models/qdm/provider_characteristic.rb
324
- - app/models/qdm/result_component.rb
345
+ - app/models/qdm/related_person.rb
325
346
  - app/models/qdm/substance_administered.rb
326
347
  - app/models/qdm/substance_order.rb
327
348
  - app/models/qdm/substance_recommended.rb
328
349
  - app/models/qdm/symptom.rb
329
- - app/models/qdm/tacoma/individual_result.rb
330
350
  - bin/build_cql_execution.sh
331
351
  - bin/console
332
352
  - bin/setup
@@ -336,13 +356,16 @@ files:
336
356
  - config/mongoid.yml
337
357
  - cqm-models.gemspec
338
358
  - data/oids_qdm_5.4.json
359
+ - data/oids_qdm_5.5.json
339
360
  - data/oids_unversioned.json
340
361
  - dist/browser.js
341
362
  - dist/index.js
342
363
  - lib/cqm/models.rb
364
+ - lib/generate_entities.rb
343
365
  - lib/generate_models.rb
344
366
  - lib/generate_patients.rb
345
367
  - lib/generate_types.rb
368
+ - lib/generator_helpers.rb
346
369
  - lib/generators/custom_mongo/model.rb.tt
347
370
  - lib/generators/custom_mongo/model_generator.rb
348
371
  - modelinfo/qdm-modelinfo-4.2.xml
@@ -352,10 +375,13 @@ files:
352
375
  - modelinfo/qdm-modelinfo-5.0.xml
353
376
  - modelinfo/qdm-modelinfo-5.3.xml
354
377
  - modelinfo/qdm-modelinfo-5.4.xml
378
+ - modelinfo/qdm-modelinfo-5.5.xml
355
379
  - notice.md
356
380
  - package.json
357
381
  - templates/all_data_elements_template.js.erb
358
- - templates/id_template.js.erb
382
+ - templates/entity_extension.rb.erb
383
+ - templates/identifier_extension.rb.erb
384
+ - templates/identifier_template.js.erb
359
385
  - templates/index_template.js.erb
360
386
  - templates/models_template.rb.erb
361
387
  - templates/mongoose_template.js.erb
@@ -382,8 +408,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
382
408
  - !ruby/object:Gem::Version
383
409
  version: '0'
384
410
  requirements: []
385
- rubyforge_project:
386
- rubygems_version: 2.7.7
411
+ rubygems_version: 3.0.6
387
412
  signing_key:
388
413
  specification_version: 4
389
414
  summary: Mongo models that correspond to the QDM specification.
@@ -1,21 +0,0 @@
1
- const mongoose = require('mongoose/browser');
2
-
3
- const [Number, String] = [
4
- mongoose.Schema.Types.Number,
5
- mongoose.Schema.Types.String,
6
- ];
7
-
8
- const IdSchema = mongoose.Schema({
9
- namingSystem: String,
10
- value: String,
11
- qdmVersion: { type: String, default: '5.4' },
12
-
13
- }, { _id: false, id: false });
14
-
15
- module.exports.IdSchema = IdSchema;
16
- class Id extends mongoose.Document {
17
- constructor(object) {
18
- super(object, IdSchema);
19
- }
20
- }
21
- module.exports.Id = Id;
@@ -1,36 +0,0 @@
1
- const mongoose = require('mongoose/browser');
2
-
3
- const { IdSchema } = require('./Id');
4
- const { DataElementSchema } = require('./basetypes/DataElement');
5
- const Code = require('./basetypes/Code');
6
- const Interval = require('./basetypes/Interval');
7
- const Quantity = require('./basetypes/Quantity');
8
- const DateTime = require('./basetypes/DateTime');
9
- const Any = require('./basetypes/Any');
10
- const { ComponentSchema } = require('./attributes/Component');
11
- const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
12
-
13
-
14
- const [Number, String] = [
15
- mongoose.Schema.Types.Number,
16
- mongoose.Schema.Types.String,
17
- ];
18
-
19
- const ProviderCharacteristicSchema = DataElementSchema({
20
- authorDatetime: DateTime,
21
- qdmTitle: { type: String, default: 'Provider Characteristic' },
22
- hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.71' },
23
- qdmCategory: { type: String, default: 'provider_characteristic' },
24
- qdmVersion: { type: String, default: '5.4' },
25
- _type: { type: String, default: 'QDM::ProviderCharacteristic' },
26
-
27
- });
28
-
29
- module.exports.ProviderCharacteristicSchema = ProviderCharacteristicSchema;
30
- class ProviderCharacteristic extends mongoose.Document {
31
- constructor(object) {
32
- super(object, ProviderCharacteristicSchema);
33
- this._type = 'QDM::ProviderCharacteristic';
34
- }
35
- }
36
- module.exports.ProviderCharacteristic = ProviderCharacteristic;
@@ -1,33 +0,0 @@
1
- const mongoose = require('mongoose/browser');
2
-
3
- const { IdSchema } = require('./Id');
4
- const { DataElementSchema } = require('./basetypes/DataElement');
5
- const Code = require('./basetypes/Code');
6
- const Interval = require('./basetypes/Interval');
7
- const Quantity = require('./basetypes/Quantity');
8
- const DateTime = require('./basetypes/DateTime');
9
- const Any = require('./basetypes/Any');
10
- const { ComponentSchema } = require('./attributes/Component');
11
- const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
12
-
13
-
14
- const [Number, String] = [
15
- mongoose.Schema.Types.Number,
16
- mongoose.Schema.Types.String,
17
- ];
18
-
19
- const ResultComponentSchema = DataElementSchema({
20
- referenceRange: Interval,
21
- qdmVersion: { type: String, default: '5.4' },
22
- _type: { type: String, default: 'QDM::ResultComponent' },
23
-
24
- });
25
-
26
- module.exports.ResultComponentSchema = ResultComponentSchema;
27
- class ResultComponent extends mongoose.Document {
28
- constructor(object) {
29
- super(object, ResultComponentSchema);
30
- this._type = 'QDM::ResultComponent';
31
- }
32
- }
33
- module.exports.ResultComponent = ResultComponent;
@@ -1,12 +0,0 @@
1
- module QDM
2
- # app/models/qdm/provider_characteristic.rb
3
- class ProviderCharacteristic < DataElement
4
- include Mongoid::Document
5
- embedded_in :patient
6
- field :authorDatetime, type: DateTime
7
- field :qdmTitle, type: String, default: 'Provider Characteristic'
8
- field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.71'
9
- field :qdmCategory, type: String, default: 'provider_characteristic'
10
- field :qdmVersion, type: String, default: '5.4'
11
- end
12
- end