cqm-models 2.0.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.eslintrc.json +1 -1
- data/README.md +9 -6
- data/app/assets/javascripts/AdverseEvent.js +9 -3
- data/app/assets/javascripts/AllDataElements.js +18 -6
- data/app/assets/javascripts/AllergyIntolerance.js +8 -2
- data/app/assets/javascripts/AssessmentOrder.js +8 -2
- data/app/assets/javascripts/AssessmentPerformed.js +11 -3
- data/app/assets/javascripts/AssessmentRecommended.js +8 -2
- data/app/assets/javascripts/CareGoal.js +10 -3
- data/app/assets/javascripts/CommunicationPerformed.js +12 -6
- data/app/assets/javascripts/DeviceApplied.js +9 -2
- data/app/assets/javascripts/DeviceOrder.js +8 -2
- data/app/assets/javascripts/DeviceRecommended.js +8 -2
- data/app/assets/javascripts/Diagnosis.js +8 -2
- data/app/assets/javascripts/DiagnosticStudyOrder.js +8 -2
- data/app/assets/javascripts/DiagnosticStudyPerformed.js +9 -2
- data/app/assets/javascripts/DiagnosticStudyRecommended.js +8 -2
- data/app/assets/javascripts/EncounterOrder.js +9 -2
- data/app/assets/javascripts/EncounterPerformed.js +11 -5
- data/app/assets/javascripts/EncounterRecommended.js +8 -2
- data/app/assets/javascripts/FamilyHistory.js +8 -2
- data/app/assets/javascripts/ImmunizationAdministered.js +9 -2
- data/app/assets/javascripts/ImmunizationOrder.js +8 -2
- data/app/assets/javascripts/InterventionOrder.js +8 -2
- data/app/assets/javascripts/InterventionPerformed.js +9 -2
- data/app/assets/javascripts/InterventionRecommended.js +8 -2
- data/app/assets/javascripts/LaboratoryTestOrder.js +8 -2
- data/app/assets/javascripts/LaboratoryTestPerformed.js +9 -2
- data/app/assets/javascripts/LaboratoryTestRecommended.js +8 -2
- data/app/assets/javascripts/MedicationActive.js +9 -2
- data/app/assets/javascripts/MedicationAdministered.js +9 -2
- data/app/assets/javascripts/MedicationDischarge.js +9 -2
- data/app/assets/javascripts/MedicationDispensed.js +10 -4
- data/app/assets/javascripts/MedicationOrder.js +9 -4
- data/app/assets/javascripts/Participation.js +8 -2
- data/app/assets/javascripts/PatientCareExperience.js +8 -2
- data/app/assets/javascripts/PatientCharacteristic.js +7 -2
- data/app/assets/javascripts/PatientCharacteristicBirthdate.js +7 -2
- data/app/assets/javascripts/PatientCharacteristicClinicalTrialParticipant.js +7 -2
- data/app/assets/javascripts/PatientCharacteristicEthnicity.js +7 -2
- data/app/assets/javascripts/PatientCharacteristicExpired.js +7 -2
- data/app/assets/javascripts/PatientCharacteristicPayer.js +7 -2
- data/app/assets/javascripts/PatientCharacteristicRace.js +7 -2
- data/app/assets/javascripts/PatientCharacteristicSex.js +7 -2
- data/app/assets/javascripts/PhysicalExamOrder.js +8 -2
- data/app/assets/javascripts/PhysicalExamPerformed.js +9 -2
- data/app/assets/javascripts/PhysicalExamRecommended.js +8 -2
- data/app/assets/javascripts/ProcedureOrder.js +10 -3
- data/app/assets/javascripts/ProcedurePerformed.js +11 -3
- data/app/assets/javascripts/ProcedureRecommended.js +9 -3
- data/app/assets/javascripts/ProviderCareExperience.js +8 -2
- data/app/assets/javascripts/QDMPatient.js +25 -9
- data/app/assets/javascripts/RelatedPerson.js +42 -0
- data/app/assets/javascripts/SubstanceAdministered.js +9 -2
- data/app/assets/javascripts/SubstanceOrder.js +9 -2
- data/app/assets/javascripts/SubstanceRecommended.js +8 -2
- data/app/assets/javascripts/Symptom.js +8 -2
- data/app/assets/javascripts/attributes/CarePartner.js +31 -0
- data/app/assets/javascripts/attributes/Component.js +22 -1
- data/app/assets/javascripts/attributes/DiagnosisComponent.js +34 -0
- data/app/assets/javascripts/attributes/Entity.js +58 -0
- data/app/assets/javascripts/attributes/FacilityLocation.js +4 -1
- data/app/assets/javascripts/attributes/Identifier.js +23 -0
- data/app/assets/javascripts/attributes/Organization.js +31 -0
- data/app/assets/javascripts/attributes/PatientEntity.js +30 -0
- data/app/assets/javascripts/attributes/Practitioner.js +33 -0
- data/app/assets/javascripts/attributes/ResultComponent.js +31 -0
- data/app/assets/javascripts/basetypes/Any.js +24 -14
- data/app/assets/javascripts/basetypes/AnyEntity.js +44 -0
- data/app/assets/javascripts/basetypes/Code.js +8 -11
- data/app/assets/javascripts/basetypes/DataElement.js +14 -6
- data/app/assets/javascripts/basetypes/Interval.js +2 -2
- data/app/assets/javascripts/basetypes/QDMDate.js +36 -0
- data/app/assets/javascripts/basetypes/Quantity.js +1 -1
- data/app/assets/javascripts/basetypes/Ratio.js +1 -1
- data/app/assets/javascripts/cqm/Provider.js +0 -2
- data/app/models/cqm/provider.rb +4 -4
- data/app/models/hqmfOid_to_datatype_map.json +1 -1
- data/app/models/models.rb +12 -5
- data/app/models/qdm/adverse_event.rb +3 -2
- data/app/models/qdm/allergy_intolerance.rb +2 -1
- data/app/models/qdm/assessment_order.rb +2 -1
- data/app/models/qdm/assessment_performed.rb +5 -2
- data/app/models/qdm/assessment_recommended.rb +2 -1
- data/app/models/qdm/attributes/care_partner.rb +8 -0
- data/app/models/qdm/attributes/component.rb +1 -1
- data/app/models/qdm/attributes/diagnosis_component.rb +10 -0
- data/app/models/qdm/attributes/entity.rb +15 -0
- data/app/models/qdm/attributes/facility_location.rb +1 -1
- data/app/models/qdm/{id.rb → attributes/identifier.rb} +3 -4
- data/app/models/qdm/attributes/organization.rb +8 -0
- data/app/models/qdm/attributes/patient_entity.rb +7 -0
- data/app/models/qdm/attributes/practitioner.rb +10 -0
- data/app/models/qdm/{result_component.rb → attributes/result_component.rb} +1 -3
- data/app/models/qdm/basetypes/code.rb +8 -10
- data/app/models/qdm/basetypes/data_element.rb +19 -6
- data/app/models/qdm/basetypes/date.rb +38 -0
- data/app/models/qdm/basetypes/interval.rb +2 -2
- data/app/models/qdm/care_goal.rb +4 -2
- data/app/models/qdm/communication_performed.rb +6 -5
- data/app/models/qdm/device_applied.rb +3 -1
- data/app/models/qdm/device_order.rb +2 -1
- data/app/models/qdm/device_recommended.rb +2 -1
- data/app/models/qdm/diagnosis.rb +2 -1
- data/app/models/qdm/diagnostic_study_order.rb +2 -1
- data/app/models/qdm/diagnostic_study_performed.rb +3 -1
- data/app/models/qdm/diagnostic_study_recommended.rb +2 -1
- data/app/models/qdm/encounter_order.rb +3 -1
- data/app/models/qdm/encounter_performed.rb +3 -2
- data/app/models/qdm/encounter_recommended.rb +2 -1
- data/app/models/qdm/family_history.rb +2 -1
- data/app/models/qdm/immunization_administered.rb +3 -1
- data/app/models/qdm/immunization_order.rb +2 -1
- data/app/models/qdm/intervention_order.rb +2 -1
- data/app/models/qdm/intervention_performed.rb +3 -1
- data/app/models/qdm/intervention_recommended.rb +2 -1
- data/app/models/qdm/laboratory_test_order.rb +2 -1
- data/app/models/qdm/laboratory_test_performed.rb +3 -1
- data/app/models/qdm/laboratory_test_recommended.rb +2 -1
- data/app/models/qdm/medication_active.rb +3 -1
- data/app/models/qdm/medication_administered.rb +3 -1
- data/app/models/qdm/medication_discharge.rb +3 -1
- data/app/models/qdm/medication_dispensed.rb +4 -3
- data/app/models/qdm/medication_order.rb +3 -3
- data/app/models/qdm/participation.rb +2 -1
- data/app/models/qdm/patient.rb +1 -1
- data/app/models/qdm/patient_care_experience.rb +2 -1
- 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 -1
- data/app/models/qdm/physical_exam_performed.rb +3 -1
- data/app/models/qdm/physical_exam_recommended.rb +2 -1
- data/app/models/qdm/procedure_order.rb +4 -2
- data/app/models/qdm/procedure_performed.rb +5 -2
- data/app/models/qdm/procedure_recommended.rb +3 -2
- data/app/models/qdm/provider_care_experience.rb +2 -1
- data/app/models/qdm/related_person.rb +13 -0
- data/app/models/qdm/substance_administered.rb +3 -1
- data/app/models/qdm/substance_order.rb +3 -1
- data/app/models/qdm/substance_recommended.rb +2 -1
- data/app/models/qdm/symptom.rb +2 -1
- data/bin/validate_generator.sh +1 -1
- data/cqm-models.gemspec +2 -2
- data/data/oids_qdm_5.5.json +321 -0
- data/dist/browser.js +3434 -3356
- data/dist/index.js +3433 -3355
- data/lib/generate_models.rb +78 -39
- data/lib/generate_patients.rb +3 -3
- data/lib/generate_types.rb +1 -1
- data/lib/generator_helpers.rb +14 -0
- data/modelinfo/qdm-modelinfo-5.5.xml +982 -0
- data/package.json +2 -2
- data/templates/entity_extension.rb.erb +6 -0
- data/templates/identifier_extension.rb.erb +58 -0
- data/templates/{id_template.js.erb → identifier_template.js.erb} +6 -5
- data/templates/models_template.rb.erb +19 -4
- data/templates/mongoose_template.js.erb +86 -12
- data/templates/patient_template.js.erb +0 -4
- data/yarn.lock +245 -201
- metadata +31 -11
- data/app/assets/javascripts/Id.js +0 -21
- data/app/assets/javascripts/ProviderCharacteristic.js +0 -36
- data/app/assets/javascripts/ResultComponent.js +0 -33
- data/app/models/qdm/provider_characteristic.rb +0 -12
@@ -6,10 +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
|
+
embeds_one :requester, class_name: 'QDM::Entity'
|
9
10
|
field :qdmTitle, type: String, default: 'Intervention, Recommended'
|
10
11
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.37'
|
11
12
|
field :qdmCategory, type: String, default: 'intervention'
|
12
13
|
field :qdmStatus, type: String, default: 'recommended'
|
13
|
-
field :qdmVersion, type: String, default: '5.
|
14
|
+
field :qdmVersion, type: String, default: '5.5'
|
14
15
|
end
|
15
16
|
end
|
@@ -6,10 +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
|
+
embeds_one :requester, class_name: 'QDM::Entity'
|
9
10
|
field :qdmTitle, type: String, default: 'Laboratory Test, Order'
|
10
11
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.41'
|
11
12
|
field :qdmCategory, type: String, default: 'laboratory_test'
|
12
13
|
field :qdmStatus, type: String, default: 'order'
|
13
|
-
field :qdmVersion, type: String, default: '5.
|
14
|
+
field :qdmVersion, type: String, default: '5.5'
|
14
15
|
end
|
15
16
|
end
|
@@ -4,6 +4,7 @@ module QDM
|
|
4
4
|
include Mongoid::Document
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
|
+
field :relevantDatetime, type: DateTime
|
7
8
|
field :relevantPeriod, type: QDM::Interval
|
8
9
|
field :status, type: QDM::Code
|
9
10
|
field :method, type: QDM::Code
|
@@ -13,10 +14,11 @@ module QDM
|
|
13
14
|
field :referenceRange, type: QDM::Interval
|
14
15
|
field :negationRationale, type: QDM::Code
|
15
16
|
field :components, type: Array
|
17
|
+
embeds_one :performer, class_name: 'QDM::Entity'
|
16
18
|
field :qdmTitle, type: String, default: 'Laboratory Test, Performed'
|
17
19
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.42'
|
18
20
|
field :qdmCategory, type: String, default: 'laboratory_test'
|
19
21
|
field :qdmStatus, type: String, default: 'performed'
|
20
|
-
field :qdmVersion, type: String, default: '5.
|
22
|
+
field :qdmVersion, type: String, default: '5.5'
|
21
23
|
end
|
22
24
|
end
|
@@ -6,10 +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
|
+
embeds_one :requester, class_name: 'QDM::Entity'
|
9
10
|
field :qdmTitle, type: String, default: 'Laboratory Test, Recommended'
|
10
11
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.43'
|
11
12
|
field :qdmCategory, type: String, default: 'laboratory_test'
|
12
13
|
field :qdmStatus, type: String, default: 'recommended'
|
13
|
-
field :qdmVersion, type: String, default: '5.
|
14
|
+
field :qdmVersion, type: String, default: '5.5'
|
14
15
|
end
|
15
16
|
end
|
@@ -3,14 +3,16 @@ module QDM
|
|
3
3
|
class MedicationActive < DataElement
|
4
4
|
include Mongoid::Document
|
5
5
|
embedded_in :patient
|
6
|
+
field :relevantDatetime, type: DateTime
|
6
7
|
field :relevantPeriod, type: QDM::Interval
|
7
8
|
field :dosage, type: QDM::Quantity
|
8
9
|
field :frequency, type: QDM::Code
|
9
10
|
field :route, type: QDM::Code
|
11
|
+
embeds_one :recorder, class_name: 'QDM::Entity'
|
10
12
|
field :qdmTitle, type: String, default: 'Medication, Active'
|
11
13
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.44'
|
12
14
|
field :qdmCategory, type: String, default: 'medication'
|
13
15
|
field :qdmStatus, type: String, default: 'active'
|
14
|
-
field :qdmVersion, type: String, default: '5.
|
16
|
+
field :qdmVersion, type: String, default: '5.5'
|
15
17
|
end
|
16
18
|
end
|
@@ -4,16 +4,18 @@ module QDM
|
|
4
4
|
include Mongoid::Document
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
|
+
field :relevantDatetime, type: DateTime
|
7
8
|
field :relevantPeriod, type: QDM::Interval
|
8
9
|
field :dosage, type: QDM::Quantity
|
9
10
|
field :frequency, type: QDM::Code
|
10
11
|
field :route, type: QDM::Code
|
11
12
|
field :reason, type: QDM::Code
|
12
13
|
field :negationRationale, type: QDM::Code
|
14
|
+
embeds_one :performer, class_name: 'QDM::Entity'
|
13
15
|
field :qdmTitle, type: String, default: 'Medication, Administered'
|
14
16
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.45'
|
15
17
|
field :qdmCategory, type: String, default: 'medication'
|
16
18
|
field :qdmStatus, type: String, default: 'administered'
|
17
|
-
field :qdmVersion, type: String, default: '5.
|
19
|
+
field :qdmVersion, type: String, default: '5.5'
|
18
20
|
end
|
19
21
|
end
|
@@ -11,10 +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
|
+
embeds_one :prescriber, class_name: 'QDM::Entity'
|
15
|
+
embeds_one :recorder, class_name: 'QDM::Entity'
|
14
16
|
field :qdmTitle, type: String, default: 'Medication, Discharge'
|
15
17
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.48'
|
16
18
|
field :qdmCategory, type: String, default: 'medication'
|
17
19
|
field :qdmStatus, type: String, default: 'discharge'
|
18
|
-
field :qdmVersion, type: String, default: '5.
|
20
|
+
field :qdmVersion, type: String, default: '5.5'
|
19
21
|
end
|
20
22
|
end
|
@@ -4,6 +4,7 @@ module QDM
|
|
4
4
|
include Mongoid::Document
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
|
+
field :relevantDatetime, type: DateTime
|
7
8
|
field :relevantPeriod, type: QDM::Interval
|
8
9
|
field :refills, type: Integer
|
9
10
|
field :dosage, type: QDM::Quantity
|
@@ -11,13 +12,13 @@ module QDM
|
|
11
12
|
field :frequency, type: QDM::Code
|
12
13
|
field :daysSupplied, type: Integer
|
13
14
|
field :route, type: QDM::Code
|
14
|
-
embeds_one :
|
15
|
-
embeds_one :
|
15
|
+
embeds_one :prescriber, class_name: 'QDM::Entity'
|
16
|
+
embeds_one :dispenser, class_name: 'QDM::Entity'
|
16
17
|
field :negationRationale, type: QDM::Code
|
17
18
|
field :qdmTitle, type: String, default: 'Medication, Dispensed'
|
18
19
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.49'
|
19
20
|
field :qdmCategory, type: String, default: 'medication'
|
20
21
|
field :qdmStatus, type: String, default: 'dispensed'
|
21
|
-
field :qdmVersion, type: String, default: '5.
|
22
|
+
field :qdmVersion, type: String, default: '5.5'
|
22
23
|
end
|
23
24
|
end
|
@@ -3,8 +3,8 @@ module QDM
|
|
3
3
|
class MedicationOrder < DataElement
|
4
4
|
include Mongoid::Document
|
5
5
|
embedded_in :patient
|
6
|
-
field :relevantPeriod, type: QDM::Interval
|
7
6
|
field :authorDatetime, type: DateTime
|
7
|
+
field :relevantPeriod, type: QDM::Interval
|
8
8
|
field :refills, type: Integer
|
9
9
|
field :dosage, type: QDM::Quantity
|
10
10
|
field :supply, type: QDM::Quantity
|
@@ -13,12 +13,12 @@ module QDM
|
|
13
13
|
field :route, type: QDM::Code
|
14
14
|
field :setting, type: QDM::Code
|
15
15
|
field :reason, type: QDM::Code
|
16
|
-
embeds_one :prescriberId, class_name: 'QDM::Id'
|
17
16
|
field :negationRationale, type: QDM::Code
|
17
|
+
embeds_one :prescriber, class_name: 'QDM::Entity'
|
18
18
|
field :qdmTitle, type: String, default: 'Medication, Order'
|
19
19
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.51'
|
20
20
|
field :qdmCategory, type: String, default: 'medication'
|
21
21
|
field :qdmStatus, type: String, default: 'order'
|
22
|
-
field :qdmVersion, type: String, default: '5.
|
22
|
+
field :qdmVersion, type: String, default: '5.5'
|
23
23
|
end
|
24
24
|
end
|
@@ -4,9 +4,10 @@ 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'
|
7
8
|
field :qdmTitle, type: String, default: 'Participation'
|
8
9
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.130'
|
9
10
|
field :qdmCategory, type: String, default: 'participation'
|
10
|
-
field :qdmVersion, type: String, default: '5.
|
11
|
+
field :qdmVersion, type: String, default: '5.5'
|
11
12
|
end
|
12
13
|
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.5'
|
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,9 +4,10 @@ module QDM
|
|
4
4
|
include Mongoid::Document
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
|
+
embeds_one :recorder, class_name: 'QDM::Entity'
|
7
8
|
field :qdmTitle, type: String, default: 'Patient Care Experience'
|
8
9
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.52'
|
9
10
|
field :qdmCategory, type: String, default: 'care_experience'
|
10
|
-
field :qdmVersion, type: String, default: '5.
|
11
|
+
field :qdmVersion, type: String, default: '5.5'
|
11
12
|
end
|
12
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.5'
|
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.5'
|
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.5'
|
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.5'
|
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.5'
|
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.5'
|
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.5'
|
11
11
|
end
|
12
12
|
end
|
@@ -7,6 +7,6 @@ module QDM
|
|
7
7
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.55'
|
8
8
|
field :qdmCategory, type: String, default: 'patient_characteristic'
|
9
9
|
field :qdmStatus, type: String, default: 'gender'
|
10
|
-
field :qdmVersion, type: String, default: '5.
|
10
|
+
field :qdmVersion, type: String, default: '5.5'
|
11
11
|
end
|
12
12
|
end
|
@@ -7,10 +7,11 @@ module QDM
|
|
7
7
|
field :reason, type: QDM::Code
|
8
8
|
field :anatomicalLocationSite, type: QDM::Code
|
9
9
|
field :negationRationale, type: QDM::Code
|
10
|
+
embeds_one :requester, class_name: 'QDM::Entity'
|
10
11
|
field :qdmTitle, type: String, default: 'Physical Exam, Order'
|
11
12
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.61'
|
12
13
|
field :qdmCategory, type: String, default: 'physical_exam'
|
13
14
|
field :qdmStatus, type: String, default: 'order'
|
14
|
-
field :qdmVersion, type: String, default: '5.
|
15
|
+
field :qdmVersion, type: String, default: '5.5'
|
15
16
|
end
|
16
17
|
end
|
@@ -4,6 +4,7 @@ module QDM
|
|
4
4
|
include Mongoid::Document
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
|
+
field :relevantDatetime, type: DateTime
|
7
8
|
field :relevantPeriod, type: QDM::Interval
|
8
9
|
field :reason, type: QDM::Code
|
9
10
|
field :method, type: QDM::Code
|
@@ -11,10 +12,11 @@ module QDM
|
|
11
12
|
field :anatomicalLocationSite, type: QDM::Code
|
12
13
|
field :negationRationale, type: QDM::Code
|
13
14
|
field :components, type: Array
|
15
|
+
embeds_one :performer, class_name: 'QDM::Entity'
|
14
16
|
field :qdmTitle, type: String, default: 'Physical Exam, Performed'
|
15
17
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.62'
|
16
18
|
field :qdmCategory, type: String, default: 'physical_exam'
|
17
19
|
field :qdmStatus, type: String, default: 'performed'
|
18
|
-
field :qdmVersion, type: String, default: '5.
|
20
|
+
field :qdmVersion, type: String, default: '5.5'
|
19
21
|
end
|
20
22
|
end
|
@@ -7,10 +7,11 @@ module QDM
|
|
7
7
|
field :reason, type: QDM::Code
|
8
8
|
field :anatomicalLocationSite, type: QDM::Code
|
9
9
|
field :negationRationale, type: QDM::Code
|
10
|
+
embeds_one :requester, class_name: 'QDM::Entity'
|
10
11
|
field :qdmTitle, type: String, default: 'Physical Exam, Recommended'
|
11
12
|
field :hqmfOid, type: String, default: '22.16.840.1.113883.10.20.28.4.63'
|
12
13
|
field :qdmCategory, type: String, default: 'physical_exam'
|
13
14
|
field :qdmStatus, type: String, default: 'recommended'
|
14
|
-
field :qdmVersion, type: String, default: '5.
|
15
|
+
field :qdmVersion, type: String, default: '5.5'
|
15
16
|
end
|
16
17
|
end
|
@@ -6,12 +6,14 @@ module QDM
|
|
6
6
|
field :authorDatetime, type: DateTime
|
7
7
|
field :reason, type: QDM::Code
|
8
8
|
field :anatomicalLocationSite, type: QDM::Code
|
9
|
-
field :
|
9
|
+
field :rank, type: Integer
|
10
|
+
field :priority, type: QDM::Code
|
10
11
|
field :negationRationale, type: QDM::Code
|
12
|
+
embeds_one :requester, class_name: 'QDM::Entity'
|
11
13
|
field :qdmTitle, type: String, default: 'Procedure, Order'
|
12
14
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.66'
|
13
15
|
field :qdmCategory, type: String, default: 'procedure'
|
14
16
|
field :qdmStatus, type: String, default: 'order'
|
15
|
-
field :qdmVersion, type: String, default: '5.
|
17
|
+
field :qdmVersion, type: String, default: '5.5'
|
16
18
|
end
|
17
19
|
end
|
@@ -4,20 +4,23 @@ module QDM
|
|
4
4
|
include Mongoid::Document
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
|
+
field :relevantDatetime, type: DateTime
|
7
8
|
field :relevantPeriod, type: QDM::Interval
|
8
9
|
field :reason, type: QDM::Code
|
9
10
|
field :method, type: QDM::Code
|
10
11
|
field :result
|
11
12
|
field :status, type: QDM::Code
|
12
13
|
field :anatomicalLocationSite, type: QDM::Code
|
13
|
-
field :
|
14
|
+
field :rank, type: Integer
|
15
|
+
field :priority, type: QDM::Code
|
14
16
|
field :incisionDatetime, type: DateTime
|
15
17
|
field :negationRationale, type: QDM::Code
|
16
18
|
field :components, type: Array
|
19
|
+
embeds_one :performer, class_name: 'QDM::Entity'
|
17
20
|
field :qdmTitle, type: String, default: 'Procedure, Performed'
|
18
21
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.67'
|
19
22
|
field :qdmCategory, type: String, default: 'procedure'
|
20
23
|
field :qdmStatus, type: String, default: 'performed'
|
21
|
-
field :qdmVersion, type: String, default: '5.
|
24
|
+
field :qdmVersion, type: String, default: '5.5'
|
22
25
|
end
|
23
26
|
end
|
@@ -6,12 +6,13 @@ module QDM
|
|
6
6
|
field :authorDatetime, type: DateTime
|
7
7
|
field :reason, type: QDM::Code
|
8
8
|
field :anatomicalLocationSite, type: QDM::Code
|
9
|
-
field :
|
9
|
+
field :rank, type: Integer
|
10
|
+
embeds_one :requester, class_name: 'QDM::Entity'
|
10
11
|
field :negationRationale, type: QDM::Code
|
11
12
|
field :qdmTitle, type: String, default: 'Procedure, Recommended'
|
12
13
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.68'
|
13
14
|
field :qdmCategory, type: String, default: 'procedure'
|
14
15
|
field :qdmStatus, type: String, default: 'recommended'
|
15
|
-
field :qdmVersion, type: String, default: '5.
|
16
|
+
field :qdmVersion, type: String, default: '5.5'
|
16
17
|
end
|
17
18
|
end
|
@@ -4,9 +4,10 @@ module QDM
|
|
4
4
|
include Mongoid::Document
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
|
+
embeds_one :recorder, class_name: 'QDM::Entity'
|
7
8
|
field :qdmTitle, type: String, default: 'Provider Care Experience'
|
8
9
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.70'
|
9
10
|
field :qdmCategory, type: String, default: 'care_experience'
|
10
|
-
field :qdmVersion, type: String, default: '5.
|
11
|
+
field :qdmVersion, type: String, default: '5.5'
|
11
12
|
end
|
12
13
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module QDM
|
2
|
+
# app/models/qdm/related_person.rb
|
3
|
+
class RelatedPerson < DataElement
|
4
|
+
include Mongoid::Document
|
5
|
+
embedded_in :patient
|
6
|
+
embeds_one :identifier, class_name: 'QDM::Identifier'
|
7
|
+
field :linkedPatientId, type: String
|
8
|
+
field :qdmTitle, type: String, default: 'Related Person'
|
9
|
+
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.141'
|
10
|
+
field :qdmCategory, type: String, default: 'related_person'
|
11
|
+
field :qdmVersion, type: String, default: '5.5'
|
12
|
+
end
|
13
|
+
end
|
@@ -4,15 +4,17 @@ module QDM
|
|
4
4
|
include Mongoid::Document
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
|
+
field :relevantDatetime, type: DateTime
|
7
8
|
field :relevantPeriod, type: QDM::Interval
|
8
9
|
field :dosage, type: QDM::Quantity
|
9
10
|
field :frequency, type: QDM::Code
|
10
11
|
field :route, type: QDM::Code
|
11
12
|
field :negationRationale, type: QDM::Code
|
13
|
+
embeds_one :performer, class_name: 'QDM::Entity'
|
12
14
|
field :qdmTitle, type: String, default: 'Substance, Administered'
|
13
15
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.73'
|
14
16
|
field :qdmCategory, type: String, default: 'substance'
|
15
17
|
field :qdmStatus, type: String, default: 'administered'
|
16
|
-
field :qdmVersion, type: String, default: '5.
|
18
|
+
field :qdmVersion, type: String, default: '5.5'
|
17
19
|
end
|
18
20
|
end
|
@@ -4,6 +4,7 @@ module QDM
|
|
4
4
|
include Mongoid::Document
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
|
+
field :relevantPeriod, type: QDM::Interval
|
7
8
|
field :reason, type: QDM::Code
|
8
9
|
field :dosage, type: QDM::Quantity
|
9
10
|
field :supply, type: QDM::Quantity
|
@@ -11,10 +12,11 @@ module QDM
|
|
11
12
|
field :refills, type: Integer
|
12
13
|
field :route, type: QDM::Code
|
13
14
|
field :negationRationale, type: QDM::Code
|
15
|
+
embeds_one :requester, class_name: 'QDM::Entity'
|
14
16
|
field :qdmTitle, type: String, default: 'Substance, Order'
|
15
17
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.77'
|
16
18
|
field :qdmCategory, type: String, default: 'substance'
|
17
19
|
field :qdmStatus, type: String, default: 'order'
|
18
|
-
field :qdmVersion, type: String, default: '5.
|
20
|
+
field :qdmVersion, type: String, default: '5.5'
|
19
21
|
end
|
20
22
|
end
|