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
data/app/models/qdm/diagnosis.rb
CHANGED
@@ -7,11 +7,11 @@ module QDM
|
|
7
7
|
field :prevalencePeriod, type: QDM::Interval
|
8
8
|
field :anatomicalLocationSite, type: QDM::Code
|
9
9
|
field :severity, type: QDM::Code
|
10
|
-
|
10
|
+
embeds_many :recorder, class_name: 'QDM::Entity'
|
11
11
|
field :qdmTitle, type: String, default: 'Diagnosis'
|
12
12
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.110'
|
13
13
|
field :qrdaOid, type: String, default: '2.16.840.1.113883.10.20.24.3.135'
|
14
14
|
field :qdmCategory, type: String, default: 'condition'
|
15
|
-
field :qdmVersion, type: String, default: '5.
|
15
|
+
field :qdmVersion, type: String, default: '5.6'
|
16
16
|
end
|
17
17
|
end
|
@@ -6,11 +6,11 @@ module QDM
|
|
6
6
|
field :authorDatetime, type: DateTime
|
7
7
|
field :reason, type: QDM::Code
|
8
8
|
field :negationRationale, type: QDM::Code
|
9
|
-
|
9
|
+
embeds_many :requester, class_name: 'QDM::Entity'
|
10
10
|
field :qdmTitle, type: String, default: 'Diagnostic Study, Order'
|
11
11
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.22'
|
12
12
|
field :qdmCategory, type: String, default: 'diagnostic_study'
|
13
13
|
field :qdmStatus, type: String, default: 'order'
|
14
|
-
field :qdmVersion, type: String, default: '5.
|
14
|
+
field :qdmVersion, type: String, default: '5.6'
|
15
15
|
end
|
16
16
|
end
|
@@ -9,16 +9,18 @@ module QDM
|
|
9
9
|
field :reason, type: QDM::Code
|
10
10
|
field :result
|
11
11
|
field :resultDatetime, type: DateTime
|
12
|
+
field :interpretation, type: QDM::Code
|
12
13
|
field :status, type: QDM::Code
|
13
14
|
field :method, type: QDM::Code
|
14
15
|
field :facilityLocation, type: QDM::FacilityLocation
|
15
16
|
field :negationRationale, type: QDM::Code
|
16
17
|
field :components, type: Array
|
17
|
-
|
18
|
+
embeds_many :performer, class_name: 'QDM::Entity'
|
19
|
+
field :relatedTo, type: Array
|
18
20
|
field :qdmTitle, type: String, default: 'Diagnostic Study, Performed'
|
19
21
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.23'
|
20
22
|
field :qdmCategory, type: String, default: 'diagnostic_study'
|
21
23
|
field :qdmStatus, type: String, default: 'performed'
|
22
|
-
field :qdmVersion, type: String, default: '5.
|
24
|
+
field :qdmVersion, type: String, default: '5.6'
|
23
25
|
end
|
24
26
|
end
|
@@ -5,12 +5,12 @@ module QDM
|
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
7
|
field :negationRationale, type: QDM::Code
|
8
|
-
|
8
|
+
embeds_many :requester, class_name: 'QDM::Entity'
|
9
9
|
field :qdmTitle, type: String, default: 'Diagnostic Study, Recommended'
|
10
10
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.24'
|
11
11
|
field :qrdaOid, type: String, default: '2.16.840.1.113883.10.20.24.3.19'
|
12
12
|
field :qdmCategory, type: String, default: 'diagnostic_study'
|
13
13
|
field :qdmStatus, type: String, default: 'recommended'
|
14
|
-
field :qdmVersion, type: String, default: '5.
|
14
|
+
field :qdmVersion, type: String, default: '5.6'
|
15
15
|
end
|
16
16
|
end
|
@@ -7,12 +7,12 @@ module QDM
|
|
7
7
|
field :reason, type: QDM::Code
|
8
8
|
field :facilityLocation, type: QDM::FacilityLocation
|
9
9
|
field :negationRationale, type: QDM::Code
|
10
|
-
|
10
|
+
embeds_many :requester, class_name: 'QDM::Entity'
|
11
11
|
field :priority, type: QDM::Code
|
12
12
|
field :qdmTitle, type: String, default: 'Encounter, Order'
|
13
13
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.27'
|
14
14
|
field :qdmCategory, type: String, default: 'encounter'
|
15
15
|
field :qdmStatus, type: String, default: 'order'
|
16
|
-
field :qdmVersion, type: String, default: '5.
|
16
|
+
field :qdmVersion, type: String, default: '5.6'
|
17
17
|
end
|
18
18
|
end
|
@@ -5,18 +5,19 @@ module QDM
|
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
7
|
field :admissionSource, type: QDM::Code
|
8
|
+
field :clazz, type: QDM::Code
|
8
9
|
field :relevantPeriod, type: QDM::Interval
|
9
10
|
field :dischargeDisposition, type: QDM::Code
|
10
11
|
field :facilityLocations, type: Array, default: []
|
11
12
|
field :diagnoses, type: Array
|
12
|
-
field :negationRationale, type: QDM::Code
|
13
13
|
field :lengthOfStay, type: QDM::Quantity
|
14
14
|
field :priority, type: QDM::Code
|
15
|
-
|
15
|
+
embeds_many :participant, class_name: 'QDM::Entity'
|
16
|
+
field :relatedTo, type: Array
|
16
17
|
field :qdmTitle, type: String, default: 'Encounter, Performed'
|
17
18
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.5'
|
18
19
|
field :qdmCategory, type: String, default: 'encounter'
|
19
20
|
field :qdmStatus, type: String, default: 'performed'
|
20
|
-
field :qdmVersion, type: String, default: '5.
|
21
|
+
field :qdmVersion, type: String, default: '5.6'
|
21
22
|
end
|
22
23
|
end
|
@@ -7,11 +7,11 @@ module QDM
|
|
7
7
|
field :reason, type: QDM::Code
|
8
8
|
field :facilityLocation, type: QDM::FacilityLocation
|
9
9
|
field :negationRationale, type: QDM::Code
|
10
|
-
|
10
|
+
embeds_many :requester, class_name: 'QDM::Entity'
|
11
11
|
field :qdmTitle, type: String, default: 'Encounter, Recommended'
|
12
12
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.28'
|
13
13
|
field :qdmCategory, type: String, default: 'encounter'
|
14
14
|
field :qdmStatus, type: String, default: 'recommended'
|
15
|
-
field :qdmVersion, type: String, default: '5.
|
15
|
+
field :qdmVersion, type: String, default: '5.6'
|
16
16
|
end
|
17
17
|
end
|
@@ -5,11 +5,11 @@ module QDM
|
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
7
|
field :relationship, type: QDM::Code
|
8
|
-
|
8
|
+
embeds_many :recorder, class_name: 'QDM::Entity'
|
9
9
|
field :qdmTitle, type: String, default: 'Family History'
|
10
10
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.111'
|
11
11
|
field :qrdaOid, type: String, default: '2.16.840.1.113883.10.20.24.3.12'
|
12
12
|
field :qdmCategory, type: String, default: 'family_history'
|
13
|
-
field :qdmVersion, type: String, default: '5.
|
13
|
+
field :qdmVersion, type: String, default: '5.6'
|
14
14
|
end
|
15
15
|
end
|
@@ -9,12 +9,12 @@ module QDM
|
|
9
9
|
field :dosage, type: QDM::Quantity
|
10
10
|
field :route, type: QDM::Code
|
11
11
|
field :negationRationale, type: QDM::Code
|
12
|
-
|
12
|
+
embeds_many :performer, class_name: 'QDM::Entity'
|
13
13
|
field :qdmTitle, type: String, default: 'Immunization, Administered'
|
14
14
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.112'
|
15
15
|
field :qrdaOid, type: String, default: '2.16.840.1.113883.10.20.24.3.140'
|
16
16
|
field :qdmCategory, type: String, default: 'immunization'
|
17
17
|
field :qdmStatus, type: String, default: 'administered'
|
18
|
-
field :qdmVersion, type: String, default: '5.
|
18
|
+
field :qdmVersion, type: String, default: '5.6'
|
19
19
|
end
|
20
20
|
end
|
@@ -10,11 +10,11 @@ module QDM
|
|
10
10
|
field :reason, type: QDM::Code
|
11
11
|
field :route, type: QDM::Code
|
12
12
|
field :negationRationale, type: QDM::Code
|
13
|
-
|
13
|
+
embeds_many :requester, class_name: 'QDM::Entity'
|
14
14
|
field :qdmTitle, type: String, default: 'Immunization, Order'
|
15
15
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.113'
|
16
16
|
field :qdmCategory, type: String, default: 'immunization'
|
17
17
|
field :qdmStatus, type: String, default: 'order'
|
18
|
-
field :qdmVersion, type: String, default: '5.
|
18
|
+
field :qdmVersion, type: String, default: '5.6'
|
19
19
|
end
|
20
20
|
end
|
@@ -6,11 +6,11 @@ module QDM
|
|
6
6
|
field :authorDatetime, type: DateTime
|
7
7
|
field :reason, type: QDM::Code
|
8
8
|
field :negationRationale, type: QDM::Code
|
9
|
-
|
9
|
+
embeds_many :requester, class_name: 'QDM::Entity'
|
10
10
|
field :qdmTitle, type: String, default: 'Intervention, Order'
|
11
11
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.35'
|
12
12
|
field :qdmCategory, type: String, default: 'intervention'
|
13
13
|
field :qdmStatus, type: String, default: 'order'
|
14
|
-
field :qdmVersion, type: String, default: '5.
|
14
|
+
field :qdmVersion, type: String, default: '5.6'
|
15
15
|
end
|
16
16
|
end
|
@@ -10,11 +10,12 @@ module QDM
|
|
10
10
|
field :result
|
11
11
|
field :status, type: QDM::Code
|
12
12
|
field :negationRationale, type: QDM::Code
|
13
|
-
|
13
|
+
embeds_many :performer, class_name: 'QDM::Entity'
|
14
|
+
field :relatedTo, type: Array
|
14
15
|
field :qdmTitle, type: String, default: 'Intervention, Performed'
|
15
16
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.36'
|
16
17
|
field :qdmCategory, type: String, default: 'intervention'
|
17
18
|
field :qdmStatus, type: String, default: 'performed'
|
18
|
-
field :qdmVersion, type: String, default: '5.
|
19
|
+
field :qdmVersion, type: String, default: '5.6'
|
19
20
|
end
|
20
21
|
end
|
@@ -6,11 +6,11 @@ module QDM
|
|
6
6
|
field :authorDatetime, type: DateTime
|
7
7
|
field :reason, type: QDM::Code
|
8
8
|
field :negationRationale, type: QDM::Code
|
9
|
-
|
9
|
+
embeds_many :requester, class_name: 'QDM::Entity'
|
10
10
|
field :qdmTitle, type: String, default: 'Intervention, Recommended'
|
11
11
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.37'
|
12
12
|
field :qdmCategory, type: String, default: 'intervention'
|
13
13
|
field :qdmStatus, type: String, default: 'recommended'
|
14
|
-
field :qdmVersion, type: String, default: '5.
|
14
|
+
field :qdmVersion, type: String, default: '5.6'
|
15
15
|
end
|
16
16
|
end
|
@@ -6,11 +6,11 @@ module QDM
|
|
6
6
|
field :authorDatetime, type: DateTime
|
7
7
|
field :reason, type: QDM::Code
|
8
8
|
field :negationRationale, type: QDM::Code
|
9
|
-
|
9
|
+
embeds_many :requester, class_name: 'QDM::Entity'
|
10
10
|
field :qdmTitle, type: String, default: 'Laboratory Test, Order'
|
11
11
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.41'
|
12
12
|
field :qdmCategory, type: String, default: 'laboratory_test'
|
13
13
|
field :qdmStatus, type: String, default: 'order'
|
14
|
-
field :qdmVersion, type: String, default: '5.
|
14
|
+
field :qdmVersion, type: String, default: '5.6'
|
15
15
|
end
|
16
16
|
end
|
@@ -12,13 +12,15 @@ module QDM
|
|
12
12
|
field :resultDatetime, type: DateTime
|
13
13
|
field :reason, type: QDM::Code
|
14
14
|
field :referenceRange, type: QDM::Interval
|
15
|
+
field :interpretation, type: QDM::Code
|
15
16
|
field :negationRationale, type: QDM::Code
|
16
17
|
field :components, type: Array
|
17
|
-
|
18
|
+
embeds_many :performer, class_name: 'QDM::Entity'
|
19
|
+
field :relatedTo, type: Array
|
18
20
|
field :qdmTitle, type: String, default: 'Laboratory Test, Performed'
|
19
21
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.42'
|
20
22
|
field :qdmCategory, type: String, default: 'laboratory_test'
|
21
23
|
field :qdmStatus, type: String, default: 'performed'
|
22
|
-
field :qdmVersion, type: String, default: '5.
|
24
|
+
field :qdmVersion, type: String, default: '5.6'
|
23
25
|
end
|
24
26
|
end
|
@@ -6,11 +6,11 @@ module QDM
|
|
6
6
|
field :authorDatetime, type: DateTime
|
7
7
|
field :reason, type: QDM::Code
|
8
8
|
field :negationRationale, type: QDM::Code
|
9
|
-
|
9
|
+
embeds_many :requester, class_name: 'QDM::Entity'
|
10
10
|
field :qdmTitle, type: String, default: 'Laboratory Test, Recommended'
|
11
11
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.43'
|
12
12
|
field :qdmCategory, type: String, default: 'laboratory_test'
|
13
13
|
field :qdmStatus, type: String, default: 'recommended'
|
14
|
-
field :qdmVersion, type: String, default: '5.
|
14
|
+
field :qdmVersion, type: String, default: '5.6'
|
15
15
|
end
|
16
16
|
end
|
@@ -8,11 +8,11 @@ module QDM
|
|
8
8
|
field :dosage, type: QDM::Quantity
|
9
9
|
field :frequency, type: QDM::Code
|
10
10
|
field :route, type: QDM::Code
|
11
|
-
|
11
|
+
embeds_many :recorder, class_name: 'QDM::Entity'
|
12
12
|
field :qdmTitle, type: String, default: 'Medication, Active'
|
13
13
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.44'
|
14
14
|
field :qdmCategory, type: String, default: 'medication'
|
15
15
|
field :qdmStatus, type: String, default: 'active'
|
16
|
-
field :qdmVersion, type: String, default: '5.
|
16
|
+
field :qdmVersion, type: String, default: '5.6'
|
17
17
|
end
|
18
18
|
end
|
@@ -11,11 +11,11 @@ module QDM
|
|
11
11
|
field :route, type: QDM::Code
|
12
12
|
field :reason, type: QDM::Code
|
13
13
|
field :negationRationale, type: QDM::Code
|
14
|
-
|
14
|
+
embeds_many :performer, class_name: 'QDM::Entity'
|
15
15
|
field :qdmTitle, type: String, default: 'Medication, Administered'
|
16
16
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.45'
|
17
17
|
field :qdmCategory, type: String, default: 'medication'
|
18
18
|
field :qdmStatus, type: String, default: 'administered'
|
19
|
-
field :qdmVersion, type: String, default: '5.
|
19
|
+
field :qdmVersion, type: String, default: '5.6'
|
20
20
|
end
|
21
21
|
end
|
@@ -11,12 +11,12 @@ module QDM
|
|
11
11
|
field :daysSupplied, type: Integer
|
12
12
|
field :route, type: QDM::Code
|
13
13
|
field :negationRationale, type: QDM::Code
|
14
|
-
|
15
|
-
|
14
|
+
embeds_many :prescriber, class_name: 'QDM::Entity'
|
15
|
+
embeds_many :recorder, class_name: 'QDM::Entity'
|
16
16
|
field :qdmTitle, type: String, default: 'Medication, Discharge'
|
17
17
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.48'
|
18
18
|
field :qdmCategory, type: String, default: 'medication'
|
19
19
|
field :qdmStatus, type: String, default: 'discharge'
|
20
|
-
field :qdmVersion, type: String, default: '5.
|
20
|
+
field :qdmVersion, type: String, default: '5.6'
|
21
21
|
end
|
22
22
|
end
|
@@ -12,13 +12,14 @@ module QDM
|
|
12
12
|
field :frequency, type: QDM::Code
|
13
13
|
field :daysSupplied, type: Integer
|
14
14
|
field :route, type: QDM::Code
|
15
|
-
|
16
|
-
|
15
|
+
embeds_many :prescriber, class_name: 'QDM::Entity'
|
16
|
+
embeds_many :dispenser, class_name: 'QDM::Entity'
|
17
17
|
field :negationRationale, type: QDM::Code
|
18
|
+
field :relatedTo, type: Array
|
18
19
|
field :qdmTitle, type: String, default: 'Medication, Dispensed'
|
19
20
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.49'
|
20
21
|
field :qdmCategory, type: String, default: 'medication'
|
21
22
|
field :qdmStatus, type: String, default: 'dispensed'
|
22
|
-
field :qdmVersion, type: String, default: '5.
|
23
|
+
field :qdmVersion, type: String, default: '5.6'
|
23
24
|
end
|
24
25
|
end
|
@@ -14,11 +14,12 @@ module QDM
|
|
14
14
|
field :setting, type: QDM::Code
|
15
15
|
field :reason, type: QDM::Code
|
16
16
|
field :negationRationale, type: QDM::Code
|
17
|
-
|
17
|
+
embeds_many :prescriber, class_name: 'QDM::Entity'
|
18
|
+
field :relatedTo, type: Array
|
18
19
|
field :qdmTitle, type: String, default: 'Medication, Order'
|
19
20
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.51'
|
20
21
|
field :qdmCategory, type: String, default: 'medication'
|
21
22
|
field :qdmStatus, type: String, default: 'order'
|
22
|
-
field :qdmVersion, type: String, default: '5.
|
23
|
+
field :qdmVersion, type: String, default: '5.6'
|
23
24
|
end
|
24
25
|
end
|
@@ -4,10 +4,9 @@ module QDM
|
|
4
4
|
include Mongoid::Document
|
5
5
|
embedded_in :patient
|
6
6
|
field :participationPeriod, type: QDM::Interval
|
7
|
-
embeds_one :recorder, class_name: 'QDM::Entity'
|
8
7
|
field :qdmTitle, type: String, default: 'Participation'
|
9
8
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.130'
|
10
9
|
field :qdmCategory, type: String, default: 'participation'
|
11
|
-
field :qdmVersion, type: String, default: '5.
|
10
|
+
field :qdmVersion, type: String, default: '5.6'
|
12
11
|
end
|
13
12
|
end
|
data/app/models/qdm/patient.rb
CHANGED
@@ -3,7 +3,7 @@ module QDM
|
|
3
3
|
class Patient
|
4
4
|
include Mongoid::Document
|
5
5
|
field :birthDatetime, type: DateTime
|
6
|
-
field :qdmVersion, type: String, default: '5.
|
6
|
+
field :qdmVersion, type: String, default: '5.6'
|
7
7
|
embedded_in :cqmPatient, class_name: 'CQM::Patient'
|
8
8
|
|
9
9
|
# These are the "data criteria", or QDM datatype elements that exist on a
|
@@ -4,10 +4,10 @@ module QDM
|
|
4
4
|
include Mongoid::Document
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
|
-
|
7
|
+
embeds_many :recorder, class_name: 'QDM::Entity'
|
8
8
|
field :qdmTitle, type: String, default: 'Patient Care Experience'
|
9
9
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.52'
|
10
10
|
field :qdmCategory, type: String, default: 'care_experience'
|
11
|
-
field :qdmVersion, type: String, default: '5.
|
11
|
+
field :qdmVersion, type: String, default: '5.6'
|
12
12
|
end
|
13
13
|
end
|
@@ -7,6 +7,6 @@ module QDM
|
|
7
7
|
field :qdmTitle, type: String, default: 'Patient Characteristic'
|
8
8
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.53'
|
9
9
|
field :qdmCategory, type: String, default: 'patient_characteristic'
|
10
|
-
field :qdmVersion, type: String, default: '5.
|
10
|
+
field :qdmVersion, type: String, default: '5.6'
|
11
11
|
end
|
12
12
|
end
|
@@ -8,6 +8,6 @@ module QDM
|
|
8
8
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.54'
|
9
9
|
field :qdmCategory, type: String, default: 'patient_characteristic'
|
10
10
|
field :qdmStatus, type: String, default: 'birthdate'
|
11
|
-
field :qdmVersion, type: String, default: '5.
|
11
|
+
field :qdmVersion, type: String, default: '5.6'
|
12
12
|
end
|
13
13
|
end
|
@@ -10,6 +10,6 @@ module QDM
|
|
10
10
|
field :qrdaOid, type: String, default: '2.16.840.1.113883.10.20.24.3.51'
|
11
11
|
field :qdmCategory, type: String, default: 'patient_characteristic'
|
12
12
|
field :qdmStatus, type: String, default: 'clinical_trial_participant'
|
13
|
-
field :qdmVersion, type: String, default: '5.
|
13
|
+
field :qdmVersion, type: String, default: '5.6'
|
14
14
|
end
|
15
15
|
end
|
@@ -7,6 +7,6 @@ module QDM
|
|
7
7
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.56'
|
8
8
|
field :qdmCategory, type: String, default: 'patient_characteristic'
|
9
9
|
field :qdmStatus, type: String, default: 'ethnicity'
|
10
|
-
field :qdmVersion, type: String, default: '5.
|
10
|
+
field :qdmVersion, type: String, default: '5.6'
|
11
11
|
end
|
12
12
|
end
|
@@ -9,6 +9,6 @@ module QDM
|
|
9
9
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.57'
|
10
10
|
field :qdmCategory, type: String, default: 'patient_characteristic'
|
11
11
|
field :qdmStatus, type: String, default: 'expired'
|
12
|
-
field :qdmVersion, type: String, default: '5.
|
12
|
+
field :qdmVersion, type: String, default: '5.6'
|
13
13
|
end
|
14
14
|
end
|
@@ -8,6 +8,6 @@ module QDM
|
|
8
8
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.58'
|
9
9
|
field :qdmCategory, type: String, default: 'patient_characteristic'
|
10
10
|
field :qdmStatus, type: String, default: 'payer'
|
11
|
-
field :qdmVersion, type: String, default: '5.
|
11
|
+
field :qdmVersion, type: String, default: '5.6'
|
12
12
|
end
|
13
13
|
end
|
@@ -7,6 +7,6 @@ module QDM
|
|
7
7
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.59'
|
8
8
|
field :qdmCategory, type: String, default: 'patient_characteristic'
|
9
9
|
field :qdmStatus, type: String, default: 'race'
|
10
|
-
field :qdmVersion, type: String, default: '5.
|
10
|
+
field :qdmVersion, type: String, default: '5.6'
|
11
11
|
end
|
12
12
|
end
|