cqm-models 3.0.4 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +56 -0
- data/README.md +3 -2
- data/app/assets/javascripts/AdverseEvent.js +2 -2
- data/app/assets/javascripts/AllDataElements.js +2 -2
- data/app/assets/javascripts/AllergyIntolerance.js +2 -2
- data/app/assets/javascripts/AssessmentOrder.js +2 -2
- data/app/assets/javascripts/AssessmentPerformed.js +3 -2
- data/app/assets/javascripts/AssessmentRecommended.js +2 -2
- data/app/assets/javascripts/CareGoal.js +2 -2
- data/app/assets/javascripts/CommunicationPerformed.js +3 -3
- data/app/assets/javascripts/DeviceOrder.js +2 -2
- data/app/assets/javascripts/DeviceRecommended.js +2 -2
- data/app/assets/javascripts/Diagnosis.js +2 -2
- data/app/assets/javascripts/DiagnosticStudyOrder.js +2 -2
- data/app/assets/javascripts/DiagnosticStudyPerformed.js +4 -2
- data/app/assets/javascripts/DiagnosticStudyRecommended.js +2 -2
- data/app/assets/javascripts/EncounterOrder.js +2 -2
- data/app/assets/javascripts/EncounterPerformed.js +7 -3
- data/app/assets/javascripts/EncounterRecommended.js +2 -2
- data/app/assets/javascripts/FamilyHistory.js +2 -2
- data/app/assets/javascripts/ImmunizationAdministered.js +2 -2
- data/app/assets/javascripts/ImmunizationOrder.js +2 -2
- data/app/assets/javascripts/InterventionOrder.js +2 -2
- data/app/assets/javascripts/InterventionPerformed.js +3 -2
- data/app/assets/javascripts/InterventionRecommended.js +2 -2
- data/app/assets/javascripts/LaboratoryTestOrder.js +2 -2
- data/app/assets/javascripts/LaboratoryTestPerformed.js +4 -2
- data/app/assets/javascripts/LaboratoryTestRecommended.js +2 -2
- data/app/assets/javascripts/MedicationActive.js +2 -2
- data/app/assets/javascripts/MedicationAdministered.js +2 -2
- data/app/assets/javascripts/MedicationDischarge.js +3 -3
- data/app/assets/javascripts/MedicationDispensed.js +4 -3
- data/app/assets/javascripts/MedicationOrder.js +3 -2
- data/app/assets/javascripts/Participation.js +1 -2
- data/app/assets/javascripts/PatientCareExperience.js +2 -2
- data/app/assets/javascripts/PatientCharacteristic.js +1 -1
- data/app/assets/javascripts/PatientCharacteristicBirthdate.js +1 -1
- data/app/assets/javascripts/PatientCharacteristicClinicalTrialParticipant.js +1 -1
- data/app/assets/javascripts/PatientCharacteristicEthnicity.js +1 -1
- data/app/assets/javascripts/PatientCharacteristicExpired.js +1 -1
- data/app/assets/javascripts/PatientCharacteristicPayer.js +1 -1
- data/app/assets/javascripts/PatientCharacteristicRace.js +1 -1
- data/app/assets/javascripts/PatientCharacteristicSex.js +1 -1
- data/app/assets/javascripts/PhysicalExamOrder.js +2 -2
- data/app/assets/javascripts/PhysicalExamPerformed.js +3 -2
- data/app/assets/javascripts/PhysicalExamRecommended.js +3 -3
- data/app/assets/javascripts/ProcedureOrder.js +2 -2
- data/app/assets/javascripts/ProcedurePerformed.js +3 -3
- data/app/assets/javascripts/ProcedureRecommended.js +2 -2
- data/app/assets/javascripts/ProviderCareExperience.js +2 -2
- data/app/assets/javascripts/QDMPatient.js +1 -1
- data/app/assets/javascripts/RelatedPerson.js +1 -1
- data/app/assets/javascripts/SubstanceAdministered.js +2 -2
- data/app/assets/javascripts/SubstanceOrder.js +2 -2
- data/app/assets/javascripts/SubstanceRecommended.js +2 -2
- data/app/assets/javascripts/Symptom.js +2 -2
- data/app/assets/javascripts/attributes/Component.js +2 -2
- data/app/assets/javascripts/attributes/DiagnosisComponent.js +1 -1
- data/app/assets/javascripts/attributes/Entity.js +2 -2
- data/app/assets/javascripts/attributes/FacilityLocation.js +1 -1
- data/app/assets/javascripts/attributes/Identifier.js +1 -1
- data/app/assets/javascripts/attributes/Location.js +32 -0
- data/app/assets/javascripts/attributes/Organization.js +1 -1
- data/app/assets/javascripts/basetypes/Any.js +6 -0
- data/app/assets/javascripts/basetypes/AnyEntity.js +3 -0
- data/app/models/hqmfOid_to_datatype_map.json +2 -2
- data/app/models/models.rb +2 -2
- data/app/models/qdm/adverse_event.rb +2 -2
- data/app/models/qdm/allergy_intolerance.rb +2 -2
- data/app/models/qdm/assessment_order.rb +2 -2
- data/app/models/qdm/assessment_performed.rb +3 -2
- data/app/models/qdm/assessment_recommended.rb +2 -2
- data/app/models/qdm/attributes/component.rb +1 -1
- data/app/models/qdm/attributes/diagnosis_component.rb +1 -1
- data/app/models/qdm/attributes/entity.rb +1 -1
- data/app/models/qdm/attributes/facility_location.rb +1 -1
- data/app/models/qdm/attributes/identifier.rb +1 -1
- data/app/models/qdm/attributes/location.rb +9 -0
- data/app/models/qdm/attributes/organization.rb +1 -1
- data/app/models/qdm/basetypes/data_element.rb +5 -0
- data/app/models/qdm/care_goal.rb +2 -2
- data/app/models/qdm/communication_performed.rb +3 -3
- data/app/models/qdm/device_order.rb +2 -2
- data/app/models/qdm/device_recommended.rb +2 -2
- data/app/models/qdm/diagnosis.rb +2 -2
- data/app/models/qdm/diagnostic_study_order.rb +2 -2
- data/app/models/qdm/diagnostic_study_performed.rb +4 -2
- data/app/models/qdm/diagnostic_study_recommended.rb +2 -2
- data/app/models/qdm/encounter_order.rb +2 -2
- data/app/models/qdm/encounter_performed.rb +4 -3
- data/app/models/qdm/encounter_recommended.rb +2 -2
- data/app/models/qdm/family_history.rb +2 -2
- data/app/models/qdm/immunization_administered.rb +2 -2
- data/app/models/qdm/immunization_order.rb +2 -2
- data/app/models/qdm/intervention_order.rb +2 -2
- data/app/models/qdm/intervention_performed.rb +3 -2
- data/app/models/qdm/intervention_recommended.rb +2 -2
- data/app/models/qdm/laboratory_test_order.rb +2 -2
- data/app/models/qdm/laboratory_test_performed.rb +4 -2
- data/app/models/qdm/laboratory_test_recommended.rb +2 -2
- data/app/models/qdm/medication_active.rb +2 -2
- data/app/models/qdm/medication_administered.rb +2 -2
- data/app/models/qdm/medication_discharge.rb +3 -3
- data/app/models/qdm/medication_dispensed.rb +4 -3
- data/app/models/qdm/medication_order.rb +3 -2
- data/app/models/qdm/participation.rb +1 -2
- data/app/models/qdm/patient.rb +1 -1
- data/app/models/qdm/patient_care_experience.rb +2 -2
- data/app/models/qdm/patient_characteristic.rb +1 -1
- data/app/models/qdm/patient_characteristic_birthdate.rb +1 -1
- data/app/models/qdm/patient_characteristic_clinical_trial_participant.rb +1 -1
- data/app/models/qdm/patient_characteristic_ethnicity.rb +1 -1
- data/app/models/qdm/patient_characteristic_expired.rb +1 -1
- data/app/models/qdm/patient_characteristic_payer.rb +1 -1
- data/app/models/qdm/patient_characteristic_race.rb +1 -1
- data/app/models/qdm/patient_characteristic_sex.rb +1 -1
- data/app/models/qdm/physical_exam_order.rb +2 -2
- data/app/models/qdm/physical_exam_performed.rb +3 -2
- data/app/models/qdm/physical_exam_recommended.rb +3 -3
- data/app/models/qdm/procedure_order.rb +2 -2
- data/app/models/qdm/procedure_performed.rb +3 -3
- data/app/models/qdm/procedure_recommended.rb +2 -2
- data/app/models/qdm/provider_care_experience.rb +2 -2
- data/app/models/qdm/related_person.rb +1 -1
- data/app/models/qdm/substance_administered.rb +2 -2
- data/app/models/qdm/substance_order.rb +2 -2
- data/app/models/qdm/substance_recommended.rb +2 -2
- data/app/models/qdm/symptom.rb +2 -2
- data/bin/validate_generator.sh +2 -2
- data/cqm-models.gemspec +1 -1
- data/data/oids_qdm_5.5.json +2 -2
- data/data/oids_qdm_5.6.json +335 -0
- data/dist/browser.js +61015 -93235
- data/dist/index.js +61015 -93235
- data/lib/generate_entities.rb +18 -10
- data/lib/generate_models.rb +28 -20
- data/lib/generate_patients.rb +1 -1
- data/modelinfo/qdm-modelinfo-5.6.xml +1102 -0
- data/package.json +3 -3
- data/templates/models_template.rb.erb +3 -1
- data/templates/mongoose_template.js.erb +9 -2
- data/templates/patient_template.js.erb +24 -4
- data/yarn.lock +426 -230
- metadata +12 -10
- data/.travis.yml +0 -52
- data/app/assets/javascripts/DeviceApplied.js +0 -48
- data/app/models/qdm/device_applied.rb +0 -19
@@ -23,12 +23,12 @@ const InterventionOrderSchema = 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: 'Intervention, Order' },
|
28
28
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.35' },
|
29
29
|
qdmCategory: { type: String, default: 'intervention' },
|
30
30
|
qdmStatus: { type: String, default: 'order' },
|
31
|
-
qdmVersion: { type: String, default: '5.
|
31
|
+
qdmVersion: { type: String, default: '5.6' },
|
32
32
|
_type: { type: String, default: 'QDM::InterventionOrder' },
|
33
33
|
|
34
34
|
});
|
@@ -27,12 +27,13 @@ const InterventionPerformedSchema = DataElementSchema({
|
|
27
27
|
result: Any,
|
28
28
|
status: Code,
|
29
29
|
negationRationale: Code,
|
30
|
-
performer: AnyEntity,
|
30
|
+
performer: [AnyEntity],
|
31
|
+
relatedTo: [String],
|
31
32
|
qdmTitle: { type: String, default: 'Intervention, Performed' },
|
32
33
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.36' },
|
33
34
|
qdmCategory: { type: String, default: 'intervention' },
|
34
35
|
qdmStatus: { type: String, default: 'performed' },
|
35
|
-
qdmVersion: { type: String, default: '5.
|
36
|
+
qdmVersion: { type: String, default: '5.6' },
|
36
37
|
_type: { type: String, default: 'QDM::InterventionPerformed' },
|
37
38
|
|
38
39
|
});
|
@@ -23,12 +23,12 @@ const InterventionRecommendedSchema = 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: 'Intervention, Recommended' },
|
28
28
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.37' },
|
29
29
|
qdmCategory: { type: String, default: 'intervention' },
|
30
30
|
qdmStatus: { type: String, default: 'recommended' },
|
31
|
-
qdmVersion: { type: String, default: '5.
|
31
|
+
qdmVersion: { type: String, default: '5.6' },
|
32
32
|
_type: { type: String, default: 'QDM::InterventionRecommended' },
|
33
33
|
|
34
34
|
});
|
@@ -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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|
-
hqmfOid: { type: String, default: '
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
35
|
+
qdmVersion: { type: String, default: '5.6' },
|
36
36
|
_type: { type: String, default: 'QDM::SubstanceAdministered' },
|
37
37
|
|
38
38
|
});
|