cqm-models 0.8.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/javascripts/AdverseEvent.js +2 -2
  4. data/app/assets/javascripts/AllDataElements.js +4 -8
  5. data/app/assets/javascripts/AllergyIntolerance.js +2 -2
  6. data/app/assets/javascripts/{CommunicationFromProviderToPatient.js → AssessmentOrder.js} +9 -9
  7. data/app/assets/javascripts/AssessmentPerformed.js +2 -2
  8. data/app/assets/javascripts/AssessmentRecommended.js +2 -3
  9. data/app/assets/javascripts/CareGoal.js +2 -2
  10. data/app/assets/javascripts/{CommunicationFromPatientToProvider.js → CommunicationPerformed.js} +13 -8
  11. data/app/assets/javascripts/Component.js +1 -1
  12. data/app/assets/javascripts/DeviceApplied.js +2 -3
  13. data/app/assets/javascripts/DeviceOrder.js +2 -2
  14. data/app/assets/javascripts/DeviceRecommended.js +2 -2
  15. data/app/assets/javascripts/Diagnosis.js +2 -2
  16. data/app/assets/javascripts/DiagnosticStudyOrder.js +2 -3
  17. data/app/assets/javascripts/DiagnosticStudyPerformed.js +2 -2
  18. data/app/assets/javascripts/DiagnosticStudyRecommended.js +2 -3
  19. data/app/assets/javascripts/EncounterOrder.js +2 -2
  20. data/app/assets/javascripts/EncounterPerformed.js +2 -2
  21. data/app/assets/javascripts/EncounterRecommended.js +2 -2
  22. data/app/assets/javascripts/FacilityLocation.js +1 -1
  23. data/app/assets/javascripts/FamilyHistory.js +2 -2
  24. data/app/assets/javascripts/Id.js +1 -1
  25. data/app/assets/javascripts/ImmunizationAdministered.js +2 -3
  26. data/app/assets/javascripts/ImmunizationOrder.js +2 -2
  27. data/app/assets/javascripts/InterventionOrder.js +2 -2
  28. data/app/assets/javascripts/InterventionPerformed.js +2 -2
  29. data/app/assets/javascripts/InterventionRecommended.js +2 -2
  30. data/app/assets/javascripts/LaboratoryTestOrder.js +2 -3
  31. data/app/assets/javascripts/LaboratoryTestPerformed.js +2 -2
  32. data/app/assets/javascripts/LaboratoryTestRecommended.js +2 -3
  33. data/app/assets/javascripts/MedicationActive.js +2 -3
  34. data/app/assets/javascripts/MedicationAdministered.js +2 -3
  35. data/app/assets/javascripts/MedicationDischarge.js +3 -2
  36. data/app/assets/javascripts/MedicationDispensed.js +5 -2
  37. data/app/assets/javascripts/MedicationOrder.js +5 -4
  38. data/app/assets/javascripts/Participation.js +2 -2
  39. data/app/assets/javascripts/Patient.js +4 -4
  40. data/app/assets/javascripts/PatientCareExperience.js +2 -2
  41. data/app/assets/javascripts/PatientCharacteristic.js +2 -2
  42. data/app/assets/javascripts/PatientCharacteristicBirthdate.js +2 -2
  43. data/app/assets/javascripts/PatientCharacteristicClinicalTrialParticipant.js +2 -2
  44. data/app/assets/javascripts/PatientCharacteristicEthnicity.js +2 -2
  45. data/app/assets/javascripts/PatientCharacteristicExpired.js +2 -2
  46. data/app/assets/javascripts/PatientCharacteristicPayer.js +2 -2
  47. data/app/assets/javascripts/PatientCharacteristicRace.js +2 -2
  48. data/app/assets/javascripts/PatientCharacteristicSex.js +2 -2
  49. data/app/assets/javascripts/PhysicalExamOrder.js +2 -3
  50. data/app/assets/javascripts/PhysicalExamPerformed.js +2 -2
  51. data/app/assets/javascripts/PhysicalExamRecommended.js +2 -3
  52. data/app/assets/javascripts/ProcedureOrder.js +2 -4
  53. data/app/assets/javascripts/ProcedurePerformed.js +2 -3
  54. data/app/assets/javascripts/ProcedureRecommended.js +2 -4
  55. data/app/assets/javascripts/ProviderCareExperience.js +2 -2
  56. data/app/assets/javascripts/ProviderCharacteristic.js +2 -2
  57. data/app/assets/javascripts/ResultComponent.js +1 -1
  58. data/app/assets/javascripts/SubstanceAdministered.js +2 -3
  59. data/app/assets/javascripts/SubstanceOrder.js +2 -3
  60. data/app/assets/javascripts/SubstanceRecommended.js +2 -4
  61. data/app/assets/javascripts/Symptom.js +2 -2
  62. data/app/assets/javascripts/basetypes/Any.js +3 -3
  63. data/app/assets/javascripts/basetypes/DateTime.js +1 -1
  64. data/app/assets/javascripts/basetypes/Interval.js +2 -2
  65. data/app/assets/javascripts/basetypes/Ratio.js +20 -0
  66. data/app/models/models.rb +4 -5
  67. data/app/models/qdm/adverse_event.rb +2 -2
  68. data/app/models/qdm/allergy_intolerance.rb +2 -2
  69. data/app/models/qdm/assessment_order.rb +14 -0
  70. data/app/models/qdm/assessment_performed.rb +2 -2
  71. data/app/models/qdm/assessment_recommended.rb +2 -3
  72. data/app/models/qdm/basetypes/ratio.rb +52 -0
  73. data/app/models/qdm/care_goal.rb +2 -2
  74. data/app/models/qdm/communication_performed.rb +19 -0
  75. data/app/models/qdm/component.rb +1 -1
  76. data/app/models/qdm/device_applied.rb +2 -3
  77. data/app/models/qdm/device_order.rb +2 -2
  78. data/app/models/qdm/device_recommended.rb +2 -2
  79. data/app/models/qdm/diagnosis.rb +2 -2
  80. data/app/models/qdm/diagnostic_study_order.rb +2 -3
  81. data/app/models/qdm/diagnostic_study_performed.rb +2 -2
  82. data/app/models/qdm/diagnostic_study_recommended.rb +2 -3
  83. data/app/models/qdm/encounter_order.rb +2 -2
  84. data/app/models/qdm/encounter_performed.rb +2 -2
  85. data/app/models/qdm/encounter_recommended.rb +2 -2
  86. data/app/models/qdm/facility_location.rb +1 -1
  87. data/app/models/qdm/family_history.rb +2 -2
  88. data/app/models/qdm/id.rb +1 -1
  89. data/app/models/qdm/immunization_administered.rb +2 -3
  90. data/app/models/qdm/immunization_order.rb +2 -2
  91. data/app/models/qdm/intervention_order.rb +2 -2
  92. data/app/models/qdm/intervention_performed.rb +2 -2
  93. data/app/models/qdm/intervention_recommended.rb +2 -2
  94. data/app/models/qdm/laboratory_test_order.rb +2 -3
  95. data/app/models/qdm/laboratory_test_performed.rb +2 -2
  96. data/app/models/qdm/laboratory_test_recommended.rb +2 -3
  97. data/app/models/qdm/medication_active.rb +2 -3
  98. data/app/models/qdm/medication_administered.rb +2 -3
  99. data/app/models/qdm/medication_discharge.rb +3 -2
  100. data/app/models/qdm/medication_dispensed.rb +5 -2
  101. data/app/models/qdm/medication_order.rb +5 -4
  102. data/app/models/qdm/participation.rb +2 -2
  103. data/app/models/qdm/patient.rb +3 -3
  104. data/app/models/qdm/patient_care_experience.rb +2 -2
  105. data/app/models/qdm/patient_characteristic.rb +2 -2
  106. data/app/models/qdm/patient_characteristic_birthdate.rb +2 -2
  107. data/app/models/qdm/patient_characteristic_clinical_trial_participant.rb +2 -2
  108. data/app/models/qdm/patient_characteristic_ethnicity.rb +2 -2
  109. data/app/models/qdm/patient_characteristic_expired.rb +2 -2
  110. data/app/models/qdm/patient_characteristic_payer.rb +2 -2
  111. data/app/models/qdm/patient_characteristic_race.rb +2 -2
  112. data/app/models/qdm/patient_characteristic_sex.rb +2 -2
  113. data/app/models/qdm/physical_exam_order.rb +2 -3
  114. data/app/models/qdm/physical_exam_performed.rb +2 -2
  115. data/app/models/qdm/physical_exam_recommended.rb +2 -3
  116. data/app/models/qdm/procedure_order.rb +2 -4
  117. data/app/models/qdm/procedure_performed.rb +2 -3
  118. data/app/models/qdm/procedure_recommended.rb +2 -4
  119. data/app/models/qdm/provider_care_experience.rb +2 -2
  120. data/app/models/qdm/provider_characteristic.rb +2 -2
  121. data/app/models/qdm/result_component.rb +1 -1
  122. data/app/models/qdm/substance_administered.rb +2 -3
  123. data/app/models/qdm/substance_order.rb +2 -3
  124. data/app/models/qdm/substance_recommended.rb +2 -4
  125. data/app/models/qdm/symptom.rb +2 -2
  126. data/cqm-models.gemspec +1 -1
  127. data/data/oids.json +209 -197
  128. data/dist/index.js +2114 -1230
  129. data/lib/generate_models.rb +14 -12
  130. data/modelinfo/qdm-modelinfo-5.4.xml +503 -0
  131. data/package.json +2 -2
  132. data/templates/models_template.rb.erb +2 -1
  133. data/templates/patient_extension.rb.erb +2 -2
  134. data/templates/patient_template.js.erb +3 -3
  135. data/yarn.lock +3 -3
  136. metadata +10 -11
  137. data/app/assets/javascripts/CommunicationFromProviderToProvider.js +0 -30
  138. data/app/assets/javascripts/Ratio.js +0 -26
  139. data/app/models/qdm/communication_from_patient_to_provider.rb +0 -14
  140. data/app/models/qdm/communication_from_provider_to_patient.rb +0 -14
  141. data/app/models/qdm/communication_from_provider_to_provider.rb +0 -14
  142. data/app/models/qdm/ratio.rb +0 -10
@@ -17,12 +17,11 @@ const [Number, String] = [
17
17
  const LaboratoryTestOrderSchema = DataElementSchema({
18
18
  authorDatetime: DateTime,
19
19
  reason: Code,
20
- method: Code,
21
20
  negationRationale: Code,
22
21
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.41' },
23
- category: { type: String, default: 'laboratory_test' },
22
+ qdmCategory: { type: String, default: 'laboratory_test' },
24
23
  qdmStatus: { type: String, default: 'order' },
25
- qdmVersion: { type: String, default: '5.3' },
24
+ qdmVersion: { type: String, default: '5.4' },
26
25
  _type: { type: String, default: 'LaboratoryTestOrder' },
27
26
 
28
27
  });
@@ -26,9 +26,9 @@ const LaboratoryTestPerformedSchema = DataElementSchema({
26
26
  negationRationale: Code,
27
27
  components: [ComponentSchema],
28
28
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.42' },
29
- category: { type: String, default: 'laboratory_test' },
29
+ qdmCategory: { type: String, default: 'laboratory_test' },
30
30
  qdmStatus: { type: String, default: 'performed' },
31
- qdmVersion: { type: String, default: '5.3' },
31
+ qdmVersion: { type: String, default: '5.4' },
32
32
  _type: { type: String, default: 'LaboratoryTestPerformed' },
33
33
 
34
34
  });
@@ -16,13 +16,12 @@ const [Number, String] = [
16
16
 
17
17
  const LaboratoryTestRecommendedSchema = DataElementSchema({
18
18
  authorDatetime: DateTime,
19
- method: Code,
20
19
  reason: Code,
21
20
  negationRationale: Code,
22
21
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.43' },
23
- category: { type: String, default: 'laboratory_test' },
22
+ qdmCategory: { type: String, default: 'laboratory_test' },
24
23
  qdmStatus: { type: String, default: 'recommended' },
25
- qdmVersion: { type: String, default: '5.3' },
24
+ qdmVersion: { type: String, default: '5.4' },
26
25
  _type: { type: String, default: 'LaboratoryTestRecommended' },
27
26
 
28
27
  });
@@ -17,13 +17,12 @@ const [Number, String] = [
17
17
  const MedicationActiveSchema = DataElementSchema({
18
18
  relevantPeriod: Interval,
19
19
  dosage: Quantity,
20
- supply: Quantity,
21
20
  frequency: Code,
22
21
  route: Code,
23
22
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.44' },
24
- category: { type: String, default: 'medication' },
23
+ qdmCategory: { type: String, default: 'medication' },
25
24
  qdmStatus: { type: String, default: 'active' },
26
- qdmVersion: { type: String, default: '5.3' },
25
+ qdmVersion: { type: String, default: '5.4' },
27
26
  _type: { type: String, default: 'MedicationActive' },
28
27
 
29
28
  });
@@ -18,15 +18,14 @@ const MedicationAdministeredSchema = DataElementSchema({
18
18
  authorDatetime: DateTime,
19
19
  relevantPeriod: Interval,
20
20
  dosage: Quantity,
21
- supply: Quantity,
22
21
  frequency: Code,
23
22
  route: Code,
24
23
  reason: Code,
25
24
  negationRationale: Code,
26
25
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.45' },
27
- category: { type: String, default: 'medication' },
26
+ qdmCategory: { type: String, default: 'medication' },
28
27
  qdmStatus: { type: String, default: 'administered' },
29
- qdmVersion: { type: String, default: '5.3' },
28
+ qdmVersion: { type: String, default: '5.4' },
30
29
  _type: { type: String, default: 'MedicationAdministered' },
31
30
 
32
31
  });
@@ -20,12 +20,13 @@ const MedicationDischargeSchema = DataElementSchema({
20
20
  dosage: Quantity,
21
21
  supply: Quantity,
22
22
  frequency: Code,
23
+ daysSupplied: Number,
23
24
  route: Code,
24
25
  negationRationale: Code,
25
26
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.48' },
26
- category: { type: String, default: 'medication' },
27
+ qdmCategory: { type: String, default: 'medication' },
27
28
  qdmStatus: { type: String, default: 'discharge' },
28
- qdmVersion: { type: String, default: '5.3' },
29
+ qdmVersion: { type: String, default: '5.4' },
29
30
  _type: { type: String, default: 'MedicationDischarge' },
30
31
 
31
32
  });
@@ -21,12 +21,15 @@ const MedicationDispensedSchema = DataElementSchema({
21
21
  dosage: Quantity,
22
22
  supply: Quantity,
23
23
  frequency: Code,
24
+ daysSupplied: Number,
24
25
  route: Code,
26
+ prescriberId: IdSchema,
27
+ dispenserId: IdSchema,
25
28
  negationRationale: Code,
26
29
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.49' },
27
- category: { type: String, default: 'medication' },
30
+ qdmCategory: { type: String, default: 'medication' },
28
31
  qdmStatus: { type: String, default: 'dispensed' },
29
- qdmVersion: { type: String, default: '5.3' },
32
+ qdmVersion: { type: String, default: '5.4' },
30
33
  _type: { type: String, default: 'MedicationDispensed' },
31
34
 
32
35
  });
@@ -15,21 +15,22 @@ const [Number, String] = [
15
15
  ];
16
16
 
17
17
  const MedicationOrderSchema = DataElementSchema({
18
- activeDatetime: DateTime,
19
18
  relevantPeriod: Interval,
20
19
  authorDatetime: DateTime,
21
20
  refills: Number,
22
21
  dosage: Quantity,
23
22
  supply: Quantity,
24
23
  frequency: Code,
24
+ daysSupplied: Number,
25
25
  route: Code,
26
- method: Code,
26
+ setting: Code,
27
27
  reason: Code,
28
+ prescriberId: IdSchema,
28
29
  negationRationale: Code,
29
30
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.51' },
30
- category: { type: String, default: 'medication' },
31
+ qdmCategory: { type: String, default: 'medication' },
31
32
  qdmStatus: { type: String, default: 'order' },
32
- qdmVersion: { type: String, default: '5.3' },
33
+ qdmVersion: { type: String, default: '5.4' },
33
34
  _type: { type: String, default: 'MedicationOrder' },
34
35
 
35
36
  });
@@ -17,8 +17,8 @@ const [Number, String] = [
17
17
  const ParticipationSchema = DataElementSchema({
18
18
  participationPeriod: Interval,
19
19
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.130' },
20
- category: { type: String, default: 'participation' },
21
- qdmVersion: { type: String, default: '5.3' },
20
+ qdmCategory: { type: String, default: 'participation' },
21
+ qdmVersion: { type: String, default: '5.4' },
22
22
  _type: { type: String, default: 'Participation' },
23
23
 
24
24
  });
@@ -14,7 +14,7 @@ const [Schema, Number, String, Mixed] = [
14
14
 
15
15
  const PatientSchema = new Schema({
16
16
  birthDatetime: DateTime,
17
- qdmVersion: { type: String, default: '5.3' },
17
+ qdmVersion: { type: String, default: '5.4' },
18
18
  _type: { type: String, default: 'Patient' },
19
19
 
20
20
  givenNames: [String],
@@ -71,10 +71,10 @@ PatientSchema.methods.getByQrdaOid = function getByQrdaOid(qrdaOid) {
71
71
  // Example: patient.getDataElements(category = 'encounters') will return
72
72
  // all Encounter QDM data types active on the patient.
73
73
  PatientSchema.methods.getDataElements = function getDataElements(params) {
74
- if (params.category && params.qdmStatus) {
75
- return this.dataElements.filter(element => (element.category === params.category) && (element.qdmStatus === params.qdmStatus));
74
+ if (params.qdmCategory && params.qdmStatus) {
75
+ return this.dataElements.filter(element => (element.qdmCategory === params.qdmCategory) && (element.qdmStatus === params.qdmStatus));
76
76
  } else if (params.category) {
77
- return this.dataElements.filter(element => element.category === params.category);
77
+ return this.dataElements.filter(element => element.qdmCategory === params.qdmCategory);
78
78
  }
79
79
  return this.dataElements;
80
80
  };
@@ -17,8 +17,8 @@ const [Number, String] = [
17
17
  const PatientCareExperienceSchema = DataElementSchema({
18
18
  authorDatetime: DateTime,
19
19
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.52' },
20
- category: { type: String, default: 'care_experience' },
21
- qdmVersion: { type: String, default: '5.3' },
20
+ qdmCategory: { type: String, default: 'care_experience' },
21
+ qdmVersion: { type: String, default: '5.4' },
22
22
  _type: { type: String, default: 'PatientCareExperience' },
23
23
 
24
24
  });
@@ -17,8 +17,8 @@ const [Number, String] = [
17
17
  const PatientCharacteristicSchema = DataElementSchema({
18
18
  authorDatetime: DateTime,
19
19
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.53' },
20
- category: { type: String, default: 'patient_characteristic' },
21
- qdmVersion: { type: String, default: '5.3' },
20
+ qdmCategory: { type: String, default: 'patient_characteristic' },
21
+ qdmVersion: { type: String, default: '5.4' },
22
22
  _type: { type: String, default: 'PatientCharacteristic' },
23
23
 
24
24
  });
@@ -17,9 +17,9 @@ const [Number, String] = [
17
17
  const PatientCharacteristicBirthdateSchema = DataElementSchema({
18
18
  birthDatetime: DateTime,
19
19
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.54' },
20
- category: { type: String, default: 'patient_characteristic' },
20
+ qdmCategory: { type: String, default: 'patient_characteristic' },
21
21
  qdmStatus: { type: String, default: 'birthdate' },
22
- qdmVersion: { type: String, default: '5.3' },
22
+ qdmVersion: { type: String, default: '5.4' },
23
23
  _type: { type: String, default: 'PatientCharacteristicBirthdate' },
24
24
 
25
25
  });
@@ -19,9 +19,9 @@ const PatientCharacteristicClinicalTrialParticipantSchema = DataElementSchema({
19
19
  relevantPeriod: Interval,
20
20
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.6' },
21
21
  qrdaOid: { type: String, default: '2.16.840.1.113883.10.20.24.3.51' },
22
- category: { type: String, default: 'patient_characteristic' },
22
+ qdmCategory: { type: String, default: 'patient_characteristic' },
23
23
  qdmStatus: { type: String, default: 'clinical_trial_participant' },
24
- qdmVersion: { type: String, default: '5.3' },
24
+ qdmVersion: { type: String, default: '5.4' },
25
25
  _type: { type: String, default: 'PatientCharacteristicClinicalTrialParticipant' },
26
26
 
27
27
  });
@@ -16,9 +16,9 @@ const [Number, String] = [
16
16
 
17
17
  const PatientCharacteristicEthnicitySchema = DataElementSchema({
18
18
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.56' },
19
- category: { type: String, default: 'patient_characteristic' },
19
+ qdmCategory: { type: String, default: 'patient_characteristic' },
20
20
  qdmStatus: { type: String, default: 'ethnicity' },
21
- qdmVersion: { type: String, default: '5.3' },
21
+ qdmVersion: { type: String, default: '5.4' },
22
22
  _type: { type: String, default: 'PatientCharacteristicEthnicity' },
23
23
 
24
24
  });
@@ -18,9 +18,9 @@ const PatientCharacteristicExpiredSchema = DataElementSchema({
18
18
  expiredDatetime: DateTime,
19
19
  cause: Code,
20
20
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.57' },
21
- category: { type: String, default: 'patient_characteristic' },
21
+ qdmCategory: { type: String, default: 'patient_characteristic' },
22
22
  qdmStatus: { type: String, default: 'expired' },
23
- qdmVersion: { type: String, default: '5.3' },
23
+ qdmVersion: { type: String, default: '5.4' },
24
24
  _type: { type: String, default: 'PatientCharacteristicExpired' },
25
25
 
26
26
  });
@@ -17,9 +17,9 @@ const [Number, String] = [
17
17
  const PatientCharacteristicPayerSchema = DataElementSchema({
18
18
  relevantPeriod: Interval,
19
19
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.58' },
20
- category: { type: String, default: 'patient_characteristic' },
20
+ qdmCategory: { type: String, default: 'patient_characteristic' },
21
21
  qdmStatus: { type: String, default: 'payer' },
22
- qdmVersion: { type: String, default: '5.3' },
22
+ qdmVersion: { type: String, default: '5.4' },
23
23
  _type: { type: String, default: 'PatientCharacteristicPayer' },
24
24
 
25
25
  });
@@ -16,9 +16,9 @@ const [Number, String] = [
16
16
 
17
17
  const PatientCharacteristicRaceSchema = DataElementSchema({
18
18
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.59' },
19
- category: { type: String, default: 'patient_characteristic' },
19
+ qdmCategory: { type: String, default: 'patient_characteristic' },
20
20
  qdmStatus: { type: String, default: 'race' },
21
- qdmVersion: { type: String, default: '5.3' },
21
+ qdmVersion: { type: String, default: '5.4' },
22
22
  _type: { type: String, default: 'PatientCharacteristicRace' },
23
23
 
24
24
  });
@@ -16,9 +16,9 @@ const [Number, String] = [
16
16
 
17
17
  const PatientCharacteristicSexSchema = DataElementSchema({
18
18
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.55' },
19
- category: { type: String, default: 'patient_characteristic' },
19
+ qdmCategory: { type: String, default: 'patient_characteristic' },
20
20
  qdmStatus: { type: String, default: 'gender' },
21
- qdmVersion: { type: String, default: '5.3' },
21
+ qdmVersion: { type: String, default: '5.4' },
22
22
  _type: { type: String, default: 'PatientCharacteristicSex' },
23
23
 
24
24
  });
@@ -17,13 +17,12 @@ const [Number, String] = [
17
17
  const PhysicalExamOrderSchema = DataElementSchema({
18
18
  authorDatetime: DateTime,
19
19
  reason: Code,
20
- method: Code,
21
20
  anatomicalLocationSite: Code,
22
21
  negationRationale: Code,
23
22
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.61' },
24
- category: { type: String, default: 'physical_exam' },
23
+ qdmCategory: { type: String, default: 'physical_exam' },
25
24
  qdmStatus: { type: String, default: 'order' },
26
- qdmVersion: { type: String, default: '5.3' },
25
+ qdmVersion: { type: String, default: '5.4' },
27
26
  _type: { type: String, default: 'PhysicalExamOrder' },
28
27
 
29
28
  });
@@ -24,9 +24,9 @@ const PhysicalExamPerformedSchema = DataElementSchema({
24
24
  negationRationale: Code,
25
25
  components: [ComponentSchema],
26
26
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.62' },
27
- category: { type: String, default: 'physical_exam' },
27
+ qdmCategory: { type: String, default: 'physical_exam' },
28
28
  qdmStatus: { type: String, default: 'performed' },
29
- qdmVersion: { type: String, default: '5.3' },
29
+ qdmVersion: { type: String, default: '5.4' },
30
30
  _type: { type: String, default: 'PhysicalExamPerformed' },
31
31
 
32
32
  });
@@ -17,13 +17,12 @@ const [Number, String] = [
17
17
  const PhysicalExamRecommendedSchema = DataElementSchema({
18
18
  authorDatetime: DateTime,
19
19
  reason: Code,
20
- method: Code,
21
20
  anatomicalLocationSite: Code,
22
21
  negationRationale: Code,
23
22
  hqmfOid: { type: String, default: '22.16.840.1.113883.10.20.28.3.63' },
24
- category: { type: String, default: 'physical_exam' },
23
+ qdmCategory: { type: String, default: 'physical_exam' },
25
24
  qdmStatus: { type: String, default: 'recommended' },
26
- qdmVersion: { type: String, default: '5.3' },
25
+ qdmVersion: { type: String, default: '5.4' },
27
26
  _type: { type: String, default: 'PhysicalExamRecommended' },
28
27
 
29
28
  });
@@ -17,15 +17,13 @@ const [Number, String] = [
17
17
  const ProcedureOrderSchema = DataElementSchema({
18
18
  authorDatetime: DateTime,
19
19
  reason: Code,
20
- method: Code,
21
- anatomicalApproachSite: Code,
22
20
  anatomicalLocationSite: Code,
23
21
  ordinality: Code,
24
22
  negationRationale: Code,
25
23
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.66' },
26
- category: { type: String, default: 'procedure' },
24
+ qdmCategory: { type: String, default: 'procedure' },
27
25
  qdmStatus: { type: String, default: 'order' },
28
- qdmVersion: { type: String, default: '5.3' },
26
+ qdmVersion: { type: String, default: '5.4' },
29
27
  _type: { type: String, default: 'ProcedureOrder' },
30
28
 
31
29
  });
@@ -21,16 +21,15 @@ const ProcedurePerformedSchema = DataElementSchema({
21
21
  method: Code,
22
22
  result: Any,
23
23
  status: Code,
24
- anatomicalApproachSite: Code,
25
24
  anatomicalLocationSite: Code,
26
25
  ordinality: Code,
27
26
  incisionDatetime: DateTime,
28
27
  negationRationale: Code,
29
28
  components: [ComponentSchema],
30
29
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.67' },
31
- category: { type: String, default: 'procedure' },
30
+ qdmCategory: { type: String, default: 'procedure' },
32
31
  qdmStatus: { type: String, default: 'performed' },
33
- qdmVersion: { type: String, default: '5.3' },
32
+ qdmVersion: { type: String, default: '5.4' },
34
33
  _type: { type: String, default: 'ProcedurePerformed' },
35
34
 
36
35
  });
@@ -17,15 +17,13 @@ const [Number, String] = [
17
17
  const ProcedureRecommendedSchema = DataElementSchema({
18
18
  authorDatetime: DateTime,
19
19
  reason: Code,
20
- method: Code,
21
- anatomicalApproachSite: Code,
22
20
  anatomicalLocationSite: Code,
23
21
  ordinality: Code,
24
22
  negationRationale: Code,
25
23
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.68' },
26
- category: { type: String, default: 'procedure' },
24
+ qdmCategory: { type: String, default: 'procedure' },
27
25
  qdmStatus: { type: String, default: 'recommended' },
28
- qdmVersion: { type: String, default: '5.3' },
26
+ qdmVersion: { type: String, default: '5.4' },
29
27
  _type: { type: String, default: 'ProcedureRecommended' },
30
28
 
31
29
  });
@@ -17,8 +17,8 @@ const [Number, String] = [
17
17
  const ProviderCareExperienceSchema = DataElementSchema({
18
18
  authorDatetime: DateTime,
19
19
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.70' },
20
- category: { type: String, default: 'care_experience' },
21
- qdmVersion: { type: String, default: '5.3' },
20
+ qdmCategory: { type: String, default: 'care_experience' },
21
+ qdmVersion: { type: String, default: '5.4' },
22
22
  _type: { type: String, default: 'ProviderCareExperience' },
23
23
 
24
24
  });
@@ -17,8 +17,8 @@ const [Number, String] = [
17
17
  const ProviderCharacteristicSchema = DataElementSchema({
18
18
  authorDatetime: DateTime,
19
19
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.71' },
20
- category: { type: String, default: 'provider_characteristic' },
21
- qdmVersion: { type: String, default: '5.3' },
20
+ qdmCategory: { type: String, default: 'provider_characteristic' },
21
+ qdmVersion: { type: String, default: '5.4' },
22
22
  _type: { type: String, default: 'ProviderCharacteristic' },
23
23
 
24
24
  });
@@ -16,7 +16,7 @@ const [Number, String] = [
16
16
 
17
17
  const ResultComponentSchema = DataElementSchema({
18
18
  referenceRange: Interval,
19
- qdmVersion: { type: String, default: '5.3' },
19
+ qdmVersion: { type: String, default: '5.4' },
20
20
  _type: { type: String, default: 'ResultComponent' },
21
21
 
22
22
  });
@@ -18,14 +18,13 @@ const SubstanceAdministeredSchema = DataElementSchema({
18
18
  authorDatetime: DateTime,
19
19
  relevantPeriod: Interval,
20
20
  dosage: Quantity,
21
- supply: Quantity,
22
21
  frequency: Code,
23
22
  route: Code,
24
23
  negationRationale: Code,
25
24
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.73' },
26
- category: { type: String, default: 'substance' },
25
+ qdmCategory: { type: String, default: 'substance' },
27
26
  qdmStatus: { type: String, default: 'administered' },
28
- qdmVersion: { type: String, default: '5.3' },
27
+ qdmVersion: { type: String, default: '5.4' },
29
28
  _type: { type: String, default: 'SubstanceAdministered' },
30
29
 
31
30
  });