cqm-models 3.1.1 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +1 -1
  3. data/README.md +3 -2
  4. data/app/assets/javascripts/AdverseEvent.js +2 -2
  5. data/app/assets/javascripts/AllDataElements.js +2 -2
  6. data/app/assets/javascripts/AllergyIntolerance.js +2 -2
  7. data/app/assets/javascripts/AssessmentOrder.js +2 -2
  8. data/app/assets/javascripts/AssessmentPerformed.js +3 -2
  9. data/app/assets/javascripts/AssessmentRecommended.js +2 -2
  10. data/app/assets/javascripts/CareGoal.js +2 -2
  11. data/app/assets/javascripts/CommunicationPerformed.js +3 -3
  12. data/app/assets/javascripts/DeviceOrder.js +2 -2
  13. data/app/assets/javascripts/DeviceRecommended.js +2 -2
  14. data/app/assets/javascripts/Diagnosis.js +2 -2
  15. data/app/assets/javascripts/DiagnosticStudyOrder.js +2 -2
  16. data/app/assets/javascripts/DiagnosticStudyPerformed.js +4 -2
  17. data/app/assets/javascripts/DiagnosticStudyRecommended.js +2 -2
  18. data/app/assets/javascripts/EncounterOrder.js +2 -2
  19. data/app/assets/javascripts/EncounterPerformed.js +7 -3
  20. data/app/assets/javascripts/EncounterRecommended.js +2 -2
  21. data/app/assets/javascripts/FamilyHistory.js +2 -2
  22. data/app/assets/javascripts/ImmunizationAdministered.js +2 -2
  23. data/app/assets/javascripts/ImmunizationOrder.js +2 -2
  24. data/app/assets/javascripts/InterventionOrder.js +2 -2
  25. data/app/assets/javascripts/InterventionPerformed.js +3 -2
  26. data/app/assets/javascripts/InterventionRecommended.js +2 -2
  27. data/app/assets/javascripts/LaboratoryTestOrder.js +2 -2
  28. data/app/assets/javascripts/LaboratoryTestPerformed.js +4 -2
  29. data/app/assets/javascripts/LaboratoryTestRecommended.js +2 -2
  30. data/app/assets/javascripts/MedicationActive.js +2 -2
  31. data/app/assets/javascripts/MedicationAdministered.js +2 -2
  32. data/app/assets/javascripts/MedicationDischarge.js +3 -3
  33. data/app/assets/javascripts/MedicationDispensed.js +4 -3
  34. data/app/assets/javascripts/MedicationOrder.js +3 -2
  35. data/app/assets/javascripts/Participation.js +1 -2
  36. data/app/assets/javascripts/PatientCareExperience.js +2 -2
  37. data/app/assets/javascripts/PatientCharacteristic.js +1 -1
  38. data/app/assets/javascripts/PatientCharacteristicBirthdate.js +1 -1
  39. data/app/assets/javascripts/PatientCharacteristicClinicalTrialParticipant.js +1 -1
  40. data/app/assets/javascripts/PatientCharacteristicEthnicity.js +1 -1
  41. data/app/assets/javascripts/PatientCharacteristicExpired.js +1 -1
  42. data/app/assets/javascripts/PatientCharacteristicPayer.js +1 -1
  43. data/app/assets/javascripts/PatientCharacteristicRace.js +1 -1
  44. data/app/assets/javascripts/PatientCharacteristicSex.js +1 -1
  45. data/app/assets/javascripts/PhysicalExamOrder.js +2 -2
  46. data/app/assets/javascripts/PhysicalExamPerformed.js +3 -2
  47. data/app/assets/javascripts/PhysicalExamRecommended.js +2 -2
  48. data/app/assets/javascripts/ProcedureOrder.js +2 -2
  49. data/app/assets/javascripts/ProcedurePerformed.js +3 -3
  50. data/app/assets/javascripts/ProcedureRecommended.js +2 -2
  51. data/app/assets/javascripts/ProviderCareExperience.js +2 -2
  52. data/app/assets/javascripts/QDMPatient.js +1 -1
  53. data/app/assets/javascripts/RelatedPerson.js +1 -1
  54. data/app/assets/javascripts/SubstanceAdministered.js +2 -2
  55. data/app/assets/javascripts/SubstanceOrder.js +2 -2
  56. data/app/assets/javascripts/SubstanceRecommended.js +2 -2
  57. data/app/assets/javascripts/Symptom.js +2 -2
  58. data/app/assets/javascripts/attributes/Component.js +2 -2
  59. data/app/assets/javascripts/attributes/DiagnosisComponent.js +1 -1
  60. data/app/assets/javascripts/attributes/Entity.js +2 -2
  61. data/app/assets/javascripts/attributes/FacilityLocation.js +1 -1
  62. data/app/assets/javascripts/attributes/Identifier.js +1 -1
  63. data/app/assets/javascripts/attributes/Location.js +32 -0
  64. data/app/assets/javascripts/attributes/Organization.js +1 -1
  65. data/app/assets/javascripts/basetypes/AnyEntity.js +3 -0
  66. data/app/models/cqm/individual_result.rb +2 -2
  67. data/app/models/cqm/measure.rb +1 -1
  68. data/app/models/cqm/patient.rb +1 -1
  69. data/app/models/hqmfOid_to_datatype_map.json +1 -1
  70. data/app/models/models.rb +2 -2
  71. data/app/models/qdm/adverse_event.rb +2 -2
  72. data/app/models/qdm/allergy_intolerance.rb +2 -2
  73. data/app/models/qdm/assessment_order.rb +2 -2
  74. data/app/models/qdm/assessment_performed.rb +3 -2
  75. data/app/models/qdm/assessment_recommended.rb +2 -2
  76. data/app/models/qdm/attributes/component.rb +1 -1
  77. data/app/models/qdm/attributes/diagnosis_component.rb +1 -1
  78. data/app/models/qdm/attributes/entity.rb +1 -1
  79. data/app/models/qdm/attributes/facility_location.rb +1 -1
  80. data/app/models/qdm/attributes/identifier.rb +1 -1
  81. data/app/models/qdm/attributes/location.rb +9 -0
  82. data/app/models/qdm/attributes/organization.rb +1 -1
  83. data/app/models/qdm/basetypes/data_element.rb +5 -0
  84. data/app/models/qdm/care_goal.rb +2 -2
  85. data/app/models/qdm/communication_performed.rb +3 -3
  86. data/app/models/qdm/device_order.rb +2 -2
  87. data/app/models/qdm/device_recommended.rb +2 -2
  88. data/app/models/qdm/diagnosis.rb +2 -2
  89. data/app/models/qdm/diagnostic_study_order.rb +2 -2
  90. data/app/models/qdm/diagnostic_study_performed.rb +4 -2
  91. data/app/models/qdm/diagnostic_study_recommended.rb +2 -2
  92. data/app/models/qdm/encounter_order.rb +2 -2
  93. data/app/models/qdm/encounter_performed.rb +4 -3
  94. data/app/models/qdm/encounter_recommended.rb +2 -2
  95. data/app/models/qdm/family_history.rb +2 -2
  96. data/app/models/qdm/immunization_administered.rb +2 -2
  97. data/app/models/qdm/immunization_order.rb +2 -2
  98. data/app/models/qdm/intervention_order.rb +2 -2
  99. data/app/models/qdm/intervention_performed.rb +3 -2
  100. data/app/models/qdm/intervention_recommended.rb +2 -2
  101. data/app/models/qdm/laboratory_test_order.rb +2 -2
  102. data/app/models/qdm/laboratory_test_performed.rb +4 -2
  103. data/app/models/qdm/laboratory_test_recommended.rb +2 -2
  104. data/app/models/qdm/medication_active.rb +2 -2
  105. data/app/models/qdm/medication_administered.rb +2 -2
  106. data/app/models/qdm/medication_discharge.rb +3 -3
  107. data/app/models/qdm/medication_dispensed.rb +4 -3
  108. data/app/models/qdm/medication_order.rb +3 -2
  109. data/app/models/qdm/participation.rb +1 -2
  110. data/app/models/qdm/patient.rb +1 -1
  111. data/app/models/qdm/patient_care_experience.rb +2 -2
  112. data/app/models/qdm/patient_characteristic.rb +1 -1
  113. data/app/models/qdm/patient_characteristic_birthdate.rb +1 -1
  114. data/app/models/qdm/patient_characteristic_clinical_trial_participant.rb +1 -1
  115. data/app/models/qdm/patient_characteristic_ethnicity.rb +1 -1
  116. data/app/models/qdm/patient_characteristic_expired.rb +1 -1
  117. data/app/models/qdm/patient_characteristic_payer.rb +1 -1
  118. data/app/models/qdm/patient_characteristic_race.rb +1 -1
  119. data/app/models/qdm/patient_characteristic_sex.rb +1 -1
  120. data/app/models/qdm/physical_exam_order.rb +2 -2
  121. data/app/models/qdm/physical_exam_performed.rb +3 -2
  122. data/app/models/qdm/physical_exam_recommended.rb +2 -2
  123. data/app/models/qdm/procedure_order.rb +2 -2
  124. data/app/models/qdm/procedure_performed.rb +3 -3
  125. data/app/models/qdm/procedure_recommended.rb +2 -2
  126. data/app/models/qdm/provider_care_experience.rb +2 -2
  127. data/app/models/qdm/related_person.rb +1 -1
  128. data/app/models/qdm/substance_administered.rb +2 -2
  129. data/app/models/qdm/substance_order.rb +2 -2
  130. data/app/models/qdm/substance_recommended.rb +2 -2
  131. data/app/models/qdm/symptom.rb +2 -2
  132. data/bin/validate_generator.sh +1 -1
  133. data/cqm-models.gemspec +1 -1
  134. data/data/oids_qdm_5.6.json +335 -0
  135. data/dist/browser.js +229 -230
  136. data/dist/index.js +229 -230
  137. data/lib/generate_entities.rb +18 -10
  138. data/lib/generate_models.rb +27 -19
  139. data/lib/generate_patients.rb +1 -1
  140. data/modelinfo/qdm-modelinfo-5.6.xml +1102 -0
  141. data/package.json +1 -1
  142. data/templates/models_template.rb.erb +3 -1
  143. data/templates/mongoose_template.js.erb +9 -2
  144. metadata +6 -4
  145. data/app/assets/javascripts/DeviceApplied.js +0 -48
  146. data/app/models/qdm/device_applied.rb +0 -19
@@ -23,12 +23,12 @@ const LaboratoryTestOrderSchema = DataElementSchema({
23
23
  authorDatetime: DateTime,
24
24
  reason: Code,
25
25
  negationRationale: Code,
26
- requester: AnyEntity,
26
+ requester: [AnyEntity],
27
27
  qdmTitle: { type: String, default: 'Laboratory Test, Order' },
28
28
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.41' },
29
29
  qdmCategory: { type: String, default: 'laboratory_test' },
30
30
  qdmStatus: { type: String, default: 'order' },
31
- qdmVersion: { type: String, default: '5.5' },
31
+ qdmVersion: { type: String, default: '5.6' },
32
32
  _type: { type: String, default: 'QDM::LaboratoryTestOrder' },
33
33
 
34
34
  });
@@ -29,14 +29,16 @@ const LaboratoryTestPerformedSchema = DataElementSchema({
29
29
  resultDatetime: DateTime,
30
30
  reason: Code,
31
31
  referenceRange: Interval,
32
+ interpretation: Code,
32
33
  negationRationale: Code,
33
34
  components: [ComponentSchema],
34
- performer: AnyEntity,
35
+ performer: [AnyEntity],
36
+ relatedTo: [String],
35
37
  qdmTitle: { type: String, default: 'Laboratory Test, Performed' },
36
38
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.42' },
37
39
  qdmCategory: { type: String, default: 'laboratory_test' },
38
40
  qdmStatus: { type: String, default: 'performed' },
39
- qdmVersion: { type: String, default: '5.5' },
41
+ qdmVersion: { type: String, default: '5.6' },
40
42
  _type: { type: String, default: 'QDM::LaboratoryTestPerformed' },
41
43
 
42
44
  });
@@ -23,12 +23,12 @@ const LaboratoryTestRecommendedSchema = DataElementSchema({
23
23
  authorDatetime: DateTime,
24
24
  reason: Code,
25
25
  negationRationale: Code,
26
- requester: AnyEntity,
26
+ requester: [AnyEntity],
27
27
  qdmTitle: { type: String, default: 'Laboratory Test, Recommended' },
28
28
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.43' },
29
29
  qdmCategory: { type: String, default: 'laboratory_test' },
30
30
  qdmStatus: { type: String, default: 'recommended' },
31
- qdmVersion: { type: String, default: '5.5' },
31
+ qdmVersion: { type: String, default: '5.6' },
32
32
  _type: { type: String, default: 'QDM::LaboratoryTestRecommended' },
33
33
 
34
34
  });
@@ -25,12 +25,12 @@ const MedicationActiveSchema = DataElementSchema({
25
25
  dosage: Quantity,
26
26
  frequency: Code,
27
27
  route: Code,
28
- recorder: AnyEntity,
28
+ recorder: [AnyEntity],
29
29
  qdmTitle: { type: String, default: 'Medication, Active' },
30
30
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.44' },
31
31
  qdmCategory: { type: String, default: 'medication' },
32
32
  qdmStatus: { type: String, default: 'active' },
33
- qdmVersion: { type: String, default: '5.5' },
33
+ qdmVersion: { type: String, default: '5.6' },
34
34
  _type: { type: String, default: 'QDM::MedicationActive' },
35
35
 
36
36
  });
@@ -28,12 +28,12 @@ const MedicationAdministeredSchema = DataElementSchema({
28
28
  route: Code,
29
29
  reason: Code,
30
30
  negationRationale: Code,
31
- performer: AnyEntity,
31
+ performer: [AnyEntity],
32
32
  qdmTitle: { type: String, default: 'Medication, Administered' },
33
33
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.45' },
34
34
  qdmCategory: { type: String, default: 'medication' },
35
35
  qdmStatus: { type: String, default: 'administered' },
36
- qdmVersion: { type: String, default: '5.5' },
36
+ qdmVersion: { type: String, default: '5.6' },
37
37
  _type: { type: String, default: 'QDM::MedicationAdministered' },
38
38
 
39
39
  });
@@ -28,13 +28,13 @@ const MedicationDischargeSchema = DataElementSchema({
28
28
  daysSupplied: Number,
29
29
  route: Code,
30
30
  negationRationale: Code,
31
- prescriber: AnyEntity,
32
- recorder: AnyEntity,
31
+ prescriber: [AnyEntity],
32
+ recorder: [AnyEntity],
33
33
  qdmTitle: { type: String, default: 'Medication, Discharge' },
34
34
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.48' },
35
35
  qdmCategory: { type: String, default: 'medication' },
36
36
  qdmStatus: { type: String, default: 'discharge' },
37
- qdmVersion: { type: String, default: '5.5' },
37
+ qdmVersion: { type: String, default: '5.6' },
38
38
  _type: { type: String, default: 'QDM::MedicationDischarge' },
39
39
 
40
40
  });
@@ -29,14 +29,15 @@ const MedicationDispensedSchema = DataElementSchema({
29
29
  frequency: Code,
30
30
  daysSupplied: Number,
31
31
  route: Code,
32
- prescriber: AnyEntity,
33
- dispenser: AnyEntity,
32
+ prescriber: [AnyEntity],
33
+ dispenser: [AnyEntity],
34
34
  negationRationale: Code,
35
+ relatedTo: [String],
35
36
  qdmTitle: { type: String, default: 'Medication, Dispensed' },
36
37
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.49' },
37
38
  qdmCategory: { type: String, default: 'medication' },
38
39
  qdmStatus: { type: String, default: 'dispensed' },
39
- qdmVersion: { type: String, default: '5.5' },
40
+ qdmVersion: { type: String, default: '5.6' },
40
41
  _type: { type: String, default: 'QDM::MedicationDispensed' },
41
42
 
42
43
  });
@@ -31,12 +31,13 @@ const MedicationOrderSchema = DataElementSchema({
31
31
  setting: Code,
32
32
  reason: Code,
33
33
  negationRationale: Code,
34
- prescriber: AnyEntity,
34
+ prescriber: [AnyEntity],
35
+ relatedTo: [String],
35
36
  qdmTitle: { type: String, default: 'Medication, Order' },
36
37
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.51' },
37
38
  qdmCategory: { type: String, default: 'medication' },
38
39
  qdmStatus: { type: String, default: 'order' },
39
- qdmVersion: { type: String, default: '5.5' },
40
+ qdmVersion: { type: String, default: '5.6' },
40
41
  _type: { type: String, default: 'QDM::MedicationOrder' },
41
42
 
42
43
  });
@@ -21,11 +21,10 @@ const [Number, String] = [
21
21
 
22
22
  const ParticipationSchema = DataElementSchema({
23
23
  participationPeriod: Interval,
24
- recorder: AnyEntity,
25
24
  qdmTitle: { type: String, default: 'Participation' },
26
25
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.130' },
27
26
  qdmCategory: { type: String, default: 'participation' },
28
- qdmVersion: { type: String, default: '5.5' },
27
+ qdmVersion: { type: String, default: '5.6' },
29
28
  _type: { type: String, default: 'QDM::Participation' },
30
29
 
31
30
  });
@@ -21,11 +21,11 @@ const [Number, String] = [
21
21
 
22
22
  const PatientCareExperienceSchema = DataElementSchema({
23
23
  authorDatetime: DateTime,
24
- recorder: AnyEntity,
24
+ recorder: [AnyEntity],
25
25
  qdmTitle: { type: String, default: 'Patient Care Experience' },
26
26
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.52' },
27
27
  qdmCategory: { type: String, default: 'care_experience' },
28
- qdmVersion: { type: String, default: '5.5' },
28
+ qdmVersion: { type: String, default: '5.6' },
29
29
  _type: { type: String, default: 'QDM::PatientCareExperience' },
30
30
 
31
31
  });
@@ -24,7 +24,7 @@ const PatientCharacteristicSchema = DataElementSchema({
24
24
  qdmTitle: { type: String, default: 'Patient Characteristic' },
25
25
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.53' },
26
26
  qdmCategory: { type: String, default: 'patient_characteristic' },
27
- qdmVersion: { type: String, default: '5.5' },
27
+ qdmVersion: { type: String, default: '5.6' },
28
28
  _type: { type: String, default: 'QDM::PatientCharacteristic' },
29
29
 
30
30
  });
@@ -25,7 +25,7 @@ const PatientCharacteristicBirthdateSchema = DataElementSchema({
25
25
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.54' },
26
26
  qdmCategory: { type: String, default: 'patient_characteristic' },
27
27
  qdmStatus: { type: String, default: 'birthdate' },
28
- qdmVersion: { type: String, default: '5.5' },
28
+ qdmVersion: { type: String, default: '5.6' },
29
29
  _type: { type: String, default: 'QDM::PatientCharacteristicBirthdate' },
30
30
 
31
31
  });
@@ -27,7 +27,7 @@ const PatientCharacteristicClinicalTrialParticipantSchema = DataElementSchema({
27
27
  qrdaOid: { type: String, default: '2.16.840.1.113883.10.20.24.3.51' },
28
28
  qdmCategory: { type: String, default: 'patient_characteristic' },
29
29
  qdmStatus: { type: String, default: 'clinical_trial_participant' },
30
- qdmVersion: { type: String, default: '5.5' },
30
+ qdmVersion: { type: String, default: '5.6' },
31
31
  _type: { type: String, default: 'QDM::PatientCharacteristicClinicalTrialParticipant' },
32
32
 
33
33
  });
@@ -24,7 +24,7 @@ const PatientCharacteristicEthnicitySchema = DataElementSchema({
24
24
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.56' },
25
25
  qdmCategory: { type: String, default: 'patient_characteristic' },
26
26
  qdmStatus: { type: String, default: 'ethnicity' },
27
- qdmVersion: { type: String, default: '5.5' },
27
+ qdmVersion: { type: String, default: '5.6' },
28
28
  _type: { type: String, default: 'QDM::PatientCharacteristicEthnicity' },
29
29
 
30
30
  });
@@ -26,7 +26,7 @@ const PatientCharacteristicExpiredSchema = DataElementSchema({
26
26
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.57' },
27
27
  qdmCategory: { type: String, default: 'patient_characteristic' },
28
28
  qdmStatus: { type: String, default: 'expired' },
29
- qdmVersion: { type: String, default: '5.5' },
29
+ qdmVersion: { type: String, default: '5.6' },
30
30
  _type: { type: String, default: 'QDM::PatientCharacteristicExpired' },
31
31
 
32
32
  });
@@ -25,7 +25,7 @@ const PatientCharacteristicPayerSchema = DataElementSchema({
25
25
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.58' },
26
26
  qdmCategory: { type: String, default: 'patient_characteristic' },
27
27
  qdmStatus: { type: String, default: 'payer' },
28
- qdmVersion: { type: String, default: '5.5' },
28
+ qdmVersion: { type: String, default: '5.6' },
29
29
  _type: { type: String, default: 'QDM::PatientCharacteristicPayer' },
30
30
 
31
31
  });
@@ -24,7 +24,7 @@ const PatientCharacteristicRaceSchema = DataElementSchema({
24
24
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.59' },
25
25
  qdmCategory: { type: String, default: 'patient_characteristic' },
26
26
  qdmStatus: { type: String, default: 'race' },
27
- qdmVersion: { type: String, default: '5.5' },
27
+ qdmVersion: { type: String, default: '5.6' },
28
28
  _type: { type: String, default: 'QDM::PatientCharacteristicRace' },
29
29
 
30
30
  });
@@ -24,7 +24,7 @@ const PatientCharacteristicSexSchema = DataElementSchema({
24
24
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.55' },
25
25
  qdmCategory: { type: String, default: 'patient_characteristic' },
26
26
  qdmStatus: { type: String, default: 'gender' },
27
- qdmVersion: { type: String, default: '5.5' },
27
+ qdmVersion: { type: String, default: '5.6' },
28
28
  _type: { type: String, default: 'QDM::PatientCharacteristicSex' },
29
29
 
30
30
  });
@@ -24,12 +24,12 @@ const PhysicalExamOrderSchema = DataElementSchema({
24
24
  reason: Code,
25
25
  anatomicalLocationSite: Code,
26
26
  negationRationale: Code,
27
- requester: AnyEntity,
27
+ requester: [AnyEntity],
28
28
  qdmTitle: { type: String, default: 'Physical Exam, Order' },
29
29
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.61' },
30
30
  qdmCategory: { type: String, default: 'physical_exam' },
31
31
  qdmStatus: { type: String, default: 'order' },
32
- qdmVersion: { type: String, default: '5.5' },
32
+ qdmVersion: { type: String, default: '5.6' },
33
33
  _type: { type: String, default: 'QDM::PhysicalExamOrder' },
34
34
 
35
35
  });
@@ -29,12 +29,13 @@ const PhysicalExamPerformedSchema = DataElementSchema({
29
29
  anatomicalLocationSite: Code,
30
30
  negationRationale: Code,
31
31
  components: [ComponentSchema],
32
- performer: AnyEntity,
32
+ performer: [AnyEntity],
33
+ relatedTo: [String],
33
34
  qdmTitle: { type: String, default: 'Physical Exam, Performed' },
34
35
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.62' },
35
36
  qdmCategory: { type: String, default: 'physical_exam' },
36
37
  qdmStatus: { type: String, default: 'performed' },
37
- qdmVersion: { type: String, default: '5.5' },
38
+ qdmVersion: { type: String, default: '5.6' },
38
39
  _type: { type: String, default: 'QDM::PhysicalExamPerformed' },
39
40
 
40
41
  });
@@ -24,12 +24,12 @@ const PhysicalExamRecommendedSchema = DataElementSchema({
24
24
  reason: Code,
25
25
  anatomicalLocationSite: Code,
26
26
  negationRationale: Code,
27
- requester: AnyEntity,
27
+ requester: [AnyEntity],
28
28
  qdmTitle: { type: String, default: 'Physical Exam, Recommended' },
29
29
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.63' },
30
30
  qdmCategory: { type: String, default: 'physical_exam' },
31
31
  qdmStatus: { type: String, default: 'recommended' },
32
- qdmVersion: { type: String, default: '5.5' },
32
+ qdmVersion: { type: String, default: '5.6' },
33
33
  _type: { type: String, default: 'QDM::PhysicalExamRecommended' },
34
34
 
35
35
  });
@@ -26,12 +26,12 @@ const ProcedureOrderSchema = DataElementSchema({
26
26
  rank: Number,
27
27
  priority: Code,
28
28
  negationRationale: Code,
29
- requester: AnyEntity,
29
+ requester: [AnyEntity],
30
30
  qdmTitle: { type: String, default: 'Procedure, Order' },
31
31
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.66' },
32
32
  qdmCategory: { type: String, default: 'procedure' },
33
33
  qdmStatus: { type: String, default: 'order' },
34
- qdmVersion: { type: String, default: '5.5' },
34
+ qdmVersion: { type: String, default: '5.6' },
35
35
  _type: { type: String, default: 'QDM::ProcedureOrder' },
36
36
 
37
37
  });
@@ -29,16 +29,16 @@ const ProcedurePerformedSchema = DataElementSchema({
29
29
  status: Code,
30
30
  anatomicalLocationSite: Code,
31
31
  rank: Number,
32
- priority: Code,
33
32
  incisionDatetime: DateTime,
34
33
  negationRationale: Code,
35
34
  components: [ComponentSchema],
36
- performer: AnyEntity,
35
+ performer: [AnyEntity],
36
+ relatedTo: [String],
37
37
  qdmTitle: { type: String, default: 'Procedure, Performed' },
38
38
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.67' },
39
39
  qdmCategory: { type: String, default: 'procedure' },
40
40
  qdmStatus: { type: String, default: 'performed' },
41
- qdmVersion: { type: String, default: '5.5' },
41
+ qdmVersion: { type: String, default: '5.6' },
42
42
  _type: { type: String, default: 'QDM::ProcedurePerformed' },
43
43
 
44
44
  });
@@ -24,13 +24,13 @@ const ProcedureRecommendedSchema = DataElementSchema({
24
24
  reason: Code,
25
25
  anatomicalLocationSite: Code,
26
26
  rank: Number,
27
- requester: AnyEntity,
27
+ requester: [AnyEntity],
28
28
  negationRationale: Code,
29
29
  qdmTitle: { type: String, default: 'Procedure, Recommended' },
30
30
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.68' },
31
31
  qdmCategory: { type: String, default: 'procedure' },
32
32
  qdmStatus: { type: String, default: 'recommended' },
33
- qdmVersion: { type: String, default: '5.5' },
33
+ qdmVersion: { type: String, default: '5.6' },
34
34
  _type: { type: String, default: 'QDM::ProcedureRecommended' },
35
35
 
36
36
  });
@@ -21,11 +21,11 @@ const [Number, String] = [
21
21
 
22
22
  const ProviderCareExperienceSchema = DataElementSchema({
23
23
  authorDatetime: DateTime,
24
- recorder: AnyEntity,
24
+ recorder: [AnyEntity],
25
25
  qdmTitle: { type: String, default: 'Provider Care Experience' },
26
26
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.70' },
27
27
  qdmCategory: { type: String, default: 'care_experience' },
28
- qdmVersion: { type: String, default: '5.5' },
28
+ qdmVersion: { type: String, default: '5.6' },
29
29
  _type: { type: String, default: 'QDM::ProviderCareExperience' },
30
30
 
31
31
  });
@@ -14,7 +14,7 @@ const [Schema, Number, String, Mixed] = [
14
14
 
15
15
  const QDMPatientSchema = new Schema({
16
16
  birthDatetime: DateTime,
17
- qdmVersion: { type: String, default: '5.5' },
17
+ qdmVersion: { type: String, default: '5.6' },
18
18
 
19
19
  // These are the "data criteria", or QDM datatype elements that exist on a
20
20
  // patient.
@@ -25,7 +25,7 @@ const RelatedPersonSchema = DataElementSchema({
25
25
  qdmTitle: { type: String, default: 'Related Person' },
26
26
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.141' },
27
27
  qdmCategory: { type: String, default: 'related_person' },
28
- qdmVersion: { type: String, default: '5.5' },
28
+ qdmVersion: { type: String, default: '5.6' },
29
29
  _type: { type: String, default: 'QDM::RelatedPerson' },
30
30
 
31
31
  });
@@ -27,12 +27,12 @@ const SubstanceAdministeredSchema = DataElementSchema({
27
27
  frequency: Code,
28
28
  route: Code,
29
29
  negationRationale: Code,
30
- performer: AnyEntity,
30
+ performer: [AnyEntity],
31
31
  qdmTitle: { type: String, default: 'Substance, Administered' },
32
32
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.73' },
33
33
  qdmCategory: { type: String, default: 'substance' },
34
34
  qdmStatus: { type: String, default: 'administered' },
35
- qdmVersion: { type: String, default: '5.5' },
35
+ qdmVersion: { type: String, default: '5.6' },
36
36
  _type: { type: String, default: 'QDM::SubstanceAdministered' },
37
37
 
38
38
  });
@@ -29,12 +29,12 @@ const SubstanceOrderSchema = DataElementSchema({
29
29
  refills: Number,
30
30
  route: Code,
31
31
  negationRationale: Code,
32
- requester: AnyEntity,
32
+ requester: [AnyEntity],
33
33
  qdmTitle: { type: String, default: 'Substance, Order' },
34
34
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.77' },
35
35
  qdmCategory: { type: String, default: 'substance' },
36
36
  qdmStatus: { type: String, default: 'order' },
37
- qdmVersion: { type: String, default: '5.5' },
37
+ qdmVersion: { type: String, default: '5.6' },
38
38
  _type: { type: String, default: 'QDM::SubstanceOrder' },
39
39
 
40
40
  });
@@ -27,12 +27,12 @@ const SubstanceRecommendedSchema = DataElementSchema({
27
27
  refills: Number,
28
28
  route: Code,
29
29
  negationRationale: Code,
30
- requester: AnyEntity,
30
+ requester: [AnyEntity],
31
31
  qdmTitle: { type: String, default: 'Substance, Recommended' },
32
32
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.78' },
33
33
  qdmCategory: { type: String, default: 'substance' },
34
34
  qdmStatus: { type: String, default: 'recommended' },
35
- qdmVersion: { type: String, default: '5.5' },
35
+ qdmVersion: { type: String, default: '5.6' },
36
36
  _type: { type: String, default: 'QDM::SubstanceRecommended' },
37
37
 
38
38
  });
@@ -22,12 +22,12 @@ const [Number, String] = [
22
22
  const SymptomSchema = DataElementSchema({
23
23
  prevalencePeriod: Interval,
24
24
  severity: Code,
25
- recorder: AnyEntity,
25
+ recorder: [AnyEntity],
26
26
  qdmTitle: { type: String, default: 'Symptom' },
27
27
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.116' },
28
28
  qrdaOid: { type: String, default: '2.16.840.1.113883.10.20.24.3.136' },
29
29
  qdmCategory: { type: String, default: 'symptom' },
30
- qdmVersion: { type: String, default: '5.5' },
30
+ qdmVersion: { type: String, default: '5.6' },
31
31
  _type: { type: String, default: 'QDM::Symptom' },
32
32
 
33
33
  });