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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/javascripts/AdverseEvent.js +2 -2
- data/app/assets/javascripts/AllDataElements.js +4 -8
- data/app/assets/javascripts/AllergyIntolerance.js +2 -2
- data/app/assets/javascripts/{CommunicationFromProviderToPatient.js → AssessmentOrder.js} +9 -9
- data/app/assets/javascripts/AssessmentPerformed.js +2 -2
- data/app/assets/javascripts/AssessmentRecommended.js +2 -3
- data/app/assets/javascripts/CareGoal.js +2 -2
- data/app/assets/javascripts/{CommunicationFromPatientToProvider.js → CommunicationPerformed.js} +13 -8
- data/app/assets/javascripts/Component.js +1 -1
- data/app/assets/javascripts/DeviceApplied.js +2 -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 -3
- data/app/assets/javascripts/DiagnosticStudyPerformed.js +2 -2
- data/app/assets/javascripts/DiagnosticStudyRecommended.js +2 -3
- data/app/assets/javascripts/EncounterOrder.js +2 -2
- data/app/assets/javascripts/EncounterPerformed.js +2 -2
- data/app/assets/javascripts/EncounterRecommended.js +2 -2
- data/app/assets/javascripts/FacilityLocation.js +1 -1
- data/app/assets/javascripts/FamilyHistory.js +2 -2
- data/app/assets/javascripts/Id.js +1 -1
- data/app/assets/javascripts/ImmunizationAdministered.js +2 -3
- data/app/assets/javascripts/ImmunizationOrder.js +2 -2
- data/app/assets/javascripts/InterventionOrder.js +2 -2
- data/app/assets/javascripts/InterventionPerformed.js +2 -2
- data/app/assets/javascripts/InterventionRecommended.js +2 -2
- data/app/assets/javascripts/LaboratoryTestOrder.js +2 -3
- data/app/assets/javascripts/LaboratoryTestPerformed.js +2 -2
- data/app/assets/javascripts/LaboratoryTestRecommended.js +2 -3
- data/app/assets/javascripts/MedicationActive.js +2 -3
- data/app/assets/javascripts/MedicationAdministered.js +2 -3
- data/app/assets/javascripts/MedicationDischarge.js +3 -2
- data/app/assets/javascripts/MedicationDispensed.js +5 -2
- data/app/assets/javascripts/MedicationOrder.js +5 -4
- data/app/assets/javascripts/Participation.js +2 -2
- data/app/assets/javascripts/Patient.js +4 -4
- data/app/assets/javascripts/PatientCareExperience.js +2 -2
- data/app/assets/javascripts/PatientCharacteristic.js +2 -2
- data/app/assets/javascripts/PatientCharacteristicBirthdate.js +2 -2
- data/app/assets/javascripts/PatientCharacteristicClinicalTrialParticipant.js +2 -2
- data/app/assets/javascripts/PatientCharacteristicEthnicity.js +2 -2
- data/app/assets/javascripts/PatientCharacteristicExpired.js +2 -2
- data/app/assets/javascripts/PatientCharacteristicPayer.js +2 -2
- data/app/assets/javascripts/PatientCharacteristicRace.js +2 -2
- data/app/assets/javascripts/PatientCharacteristicSex.js +2 -2
- data/app/assets/javascripts/PhysicalExamOrder.js +2 -3
- data/app/assets/javascripts/PhysicalExamPerformed.js +2 -2
- data/app/assets/javascripts/PhysicalExamRecommended.js +2 -3
- data/app/assets/javascripts/ProcedureOrder.js +2 -4
- data/app/assets/javascripts/ProcedurePerformed.js +2 -3
- data/app/assets/javascripts/ProcedureRecommended.js +2 -4
- data/app/assets/javascripts/ProviderCareExperience.js +2 -2
- data/app/assets/javascripts/ProviderCharacteristic.js +2 -2
- data/app/assets/javascripts/ResultComponent.js +1 -1
- data/app/assets/javascripts/SubstanceAdministered.js +2 -3
- data/app/assets/javascripts/SubstanceOrder.js +2 -3
- data/app/assets/javascripts/SubstanceRecommended.js +2 -4
- data/app/assets/javascripts/Symptom.js +2 -2
- data/app/assets/javascripts/basetypes/Any.js +3 -3
- data/app/assets/javascripts/basetypes/DateTime.js +1 -1
- data/app/assets/javascripts/basetypes/Interval.js +2 -2
- data/app/assets/javascripts/basetypes/Ratio.js +20 -0
- data/app/models/models.rb +4 -5
- 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 +14 -0
- data/app/models/qdm/assessment_performed.rb +2 -2
- data/app/models/qdm/assessment_recommended.rb +2 -3
- data/app/models/qdm/basetypes/ratio.rb +52 -0
- data/app/models/qdm/care_goal.rb +2 -2
- data/app/models/qdm/communication_performed.rb +19 -0
- data/app/models/qdm/component.rb +1 -1
- data/app/models/qdm/device_applied.rb +2 -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 -3
- data/app/models/qdm/diagnostic_study_performed.rb +2 -2
- data/app/models/qdm/diagnostic_study_recommended.rb +2 -3
- data/app/models/qdm/encounter_order.rb +2 -2
- data/app/models/qdm/encounter_performed.rb +2 -2
- data/app/models/qdm/encounter_recommended.rb +2 -2
- data/app/models/qdm/facility_location.rb +1 -1
- data/app/models/qdm/family_history.rb +2 -2
- data/app/models/qdm/id.rb +1 -1
- data/app/models/qdm/immunization_administered.rb +2 -3
- 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 +2 -2
- data/app/models/qdm/intervention_recommended.rb +2 -2
- data/app/models/qdm/laboratory_test_order.rb +2 -3
- data/app/models/qdm/laboratory_test_performed.rb +2 -2
- data/app/models/qdm/laboratory_test_recommended.rb +2 -3
- data/app/models/qdm/medication_active.rb +2 -3
- data/app/models/qdm/medication_administered.rb +2 -3
- data/app/models/qdm/medication_discharge.rb +3 -2
- data/app/models/qdm/medication_dispensed.rb +5 -2
- data/app/models/qdm/medication_order.rb +5 -4
- data/app/models/qdm/participation.rb +2 -2
- data/app/models/qdm/patient.rb +3 -3
- data/app/models/qdm/patient_care_experience.rb +2 -2
- data/app/models/qdm/patient_characteristic.rb +2 -2
- data/app/models/qdm/patient_characteristic_birthdate.rb +2 -2
- data/app/models/qdm/patient_characteristic_clinical_trial_participant.rb +2 -2
- data/app/models/qdm/patient_characteristic_ethnicity.rb +2 -2
- data/app/models/qdm/patient_characteristic_expired.rb +2 -2
- data/app/models/qdm/patient_characteristic_payer.rb +2 -2
- data/app/models/qdm/patient_characteristic_race.rb +2 -2
- data/app/models/qdm/patient_characteristic_sex.rb +2 -2
- data/app/models/qdm/physical_exam_order.rb +2 -3
- data/app/models/qdm/physical_exam_performed.rb +2 -2
- data/app/models/qdm/physical_exam_recommended.rb +2 -3
- data/app/models/qdm/procedure_order.rb +2 -4
- data/app/models/qdm/procedure_performed.rb +2 -3
- data/app/models/qdm/procedure_recommended.rb +2 -4
- data/app/models/qdm/provider_care_experience.rb +2 -2
- data/app/models/qdm/provider_characteristic.rb +2 -2
- data/app/models/qdm/result_component.rb +1 -1
- data/app/models/qdm/substance_administered.rb +2 -3
- data/app/models/qdm/substance_order.rb +2 -3
- data/app/models/qdm/substance_recommended.rb +2 -4
- data/app/models/qdm/symptom.rb +2 -2
- data/cqm-models.gemspec +1 -1
- data/data/oids.json +209 -197
- data/dist/index.js +2114 -1230
- data/lib/generate_models.rb +14 -12
- data/modelinfo/qdm-modelinfo-5.4.xml +503 -0
- data/package.json +2 -2
- data/templates/models_template.rb.erb +2 -1
- data/templates/patient_extension.rb.erb +2 -2
- data/templates/patient_template.js.erb +3 -3
- data/yarn.lock +3 -3
- metadata +10 -11
- data/app/assets/javascripts/CommunicationFromProviderToProvider.js +0 -30
- data/app/assets/javascripts/Ratio.js +0 -26
- data/app/models/qdm/communication_from_patient_to_provider.rb +0 -14
- data/app/models/qdm/communication_from_provider_to_patient.rb +0 -14
- data/app/models/qdm/communication_from_provider_to_provider.rb +0 -14
- 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
|
-
|
22
|
+
qdmCategory: { type: String, default: 'laboratory_test' },
|
24
23
|
qdmStatus: { type: String, default: 'order' },
|
25
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
29
|
+
qdmCategory: { type: String, default: 'laboratory_test' },
|
30
30
|
qdmStatus: { type: String, default: 'performed' },
|
31
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
22
|
+
qdmCategory: { type: String, default: 'laboratory_test' },
|
24
23
|
qdmStatus: { type: String, default: 'recommended' },
|
25
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
23
|
+
qdmCategory: { type: String, default: 'medication' },
|
25
24
|
qdmStatus: { type: String, default: 'active' },
|
26
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
26
|
+
qdmCategory: { type: String, default: 'medication' },
|
28
27
|
qdmStatus: { type: String, default: 'administered' },
|
29
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
27
|
+
qdmCategory: { type: String, default: 'medication' },
|
27
28
|
qdmStatus: { type: String, default: 'discharge' },
|
28
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
30
|
+
qdmCategory: { type: String, default: 'medication' },
|
28
31
|
qdmStatus: { type: String, default: 'dispensed' },
|
29
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
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
|
-
|
31
|
+
qdmCategory: { type: String, default: 'medication' },
|
31
32
|
qdmStatus: { type: String, default: 'order' },
|
32
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
21
|
-
qdmVersion: { type: String, default: '5.
|
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.
|
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.
|
75
|
-
return this.dataElements.filter(element => (element.
|
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.
|
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
|
-
|
21
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
21
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
20
|
+
qdmCategory: { type: String, default: 'patient_characteristic' },
|
21
21
|
qdmStatus: { type: String, default: 'birthdate' },
|
22
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
22
|
+
qdmCategory: { type: String, default: 'patient_characteristic' },
|
23
23
|
qdmStatus: { type: String, default: 'clinical_trial_participant' },
|
24
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
19
|
+
qdmCategory: { type: String, default: 'patient_characteristic' },
|
20
20
|
qdmStatus: { type: String, default: 'ethnicity' },
|
21
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
21
|
+
qdmCategory: { type: String, default: 'patient_characteristic' },
|
22
22
|
qdmStatus: { type: String, default: 'expired' },
|
23
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
20
|
+
qdmCategory: { type: String, default: 'patient_characteristic' },
|
21
21
|
qdmStatus: { type: String, default: 'payer' },
|
22
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
19
|
+
qdmCategory: { type: String, default: 'patient_characteristic' },
|
20
20
|
qdmStatus: { type: String, default: 'race' },
|
21
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
19
|
+
qdmCategory: { type: String, default: 'patient_characteristic' },
|
20
20
|
qdmStatus: { type: String, default: 'gender' },
|
21
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
23
|
+
qdmCategory: { type: String, default: 'physical_exam' },
|
25
24
|
qdmStatus: { type: String, default: 'order' },
|
26
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
27
|
+
qdmCategory: { type: String, default: 'physical_exam' },
|
28
28
|
qdmStatus: { type: String, default: 'performed' },
|
29
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
23
|
+
qdmCategory: { type: String, default: 'physical_exam' },
|
25
24
|
qdmStatus: { type: String, default: 'recommended' },
|
26
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
24
|
+
qdmCategory: { type: String, default: 'procedure' },
|
27
25
|
qdmStatus: { type: String, default: 'order' },
|
28
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
30
|
+
qdmCategory: { type: String, default: 'procedure' },
|
32
31
|
qdmStatus: { type: String, default: 'performed' },
|
33
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
24
|
+
qdmCategory: { type: String, default: 'procedure' },
|
27
25
|
qdmStatus: { type: String, default: 'recommended' },
|
28
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
21
|
-
qdmVersion: { type: String, default: '5.
|
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
|
-
|
21
|
-
qdmVersion: { type: String, default: '5.
|
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.
|
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
|
-
|
25
|
+
qdmCategory: { type: String, default: 'substance' },
|
27
26
|
qdmStatus: { type: String, default: 'administered' },
|
28
|
-
qdmVersion: { type: String, default: '5.
|
27
|
+
qdmVersion: { type: String, default: '5.4' },
|
29
28
|
_type: { type: String, default: 'SubstanceAdministered' },
|
30
29
|
|
31
30
|
});
|