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
@@ -8,8 +8,8 @@ module QDM
|
|
8
8
|
field :facilityLocation, type: QDM::Code
|
9
9
|
field :negationRationale, type: QDM::Code
|
10
10
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.28'
|
11
|
-
field :
|
11
|
+
field :qdmCategory, type: String, default: 'encounter'
|
12
12
|
field :qdmStatus, type: String, default: 'recommended'
|
13
|
-
field :qdmVersion, type: String, default: '5.
|
13
|
+
field :qdmVersion, type: String, default: '5.4'
|
14
14
|
end
|
15
15
|
end
|
@@ -7,7 +7,7 @@ module QDM
|
|
7
7
|
field :relationship, type: QDM::Code
|
8
8
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.111'
|
9
9
|
field :qrdaOid, type: String, default: '2.16.840.1.113883.10.20.24.3.12'
|
10
|
-
field :
|
11
|
-
field :qdmVersion, type: String, default: '5.
|
10
|
+
field :qdmCategory, type: String, default: 'family_history'
|
11
|
+
field :qdmVersion, type: String, default: '5.4'
|
12
12
|
end
|
13
13
|
end
|
data/app/models/qdm/id.rb
CHANGED
@@ -6,13 +6,12 @@ module QDM
|
|
6
6
|
field :authorDatetime, type: DateTime
|
7
7
|
field :reason, type: QDM::Code
|
8
8
|
field :dosage, type: QDM::Quantity
|
9
|
-
field :supply, type: QDM::Quantity
|
10
9
|
field :route, type: QDM::Code
|
11
10
|
field :negationRationale, type: QDM::Code
|
12
11
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.112'
|
13
12
|
field :qrdaOid, type: String, default: '2.16.840.1.113883.10.20.24.3.140'
|
14
|
-
field :
|
13
|
+
field :qdmCategory, type: String, default: 'immunization'
|
15
14
|
field :qdmStatus, type: String, default: 'administered'
|
16
|
-
field :qdmVersion, type: String, default: '5.
|
15
|
+
field :qdmVersion, type: String, default: '5.4'
|
17
16
|
end
|
18
17
|
end
|
@@ -11,8 +11,8 @@ module QDM
|
|
11
11
|
field :route, type: QDM::Code
|
12
12
|
field :negationRationale, type: QDM::Code
|
13
13
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.113'
|
14
|
-
field :
|
14
|
+
field :qdmCategory, type: String, default: 'immunization'
|
15
15
|
field :qdmStatus, type: String, default: 'order'
|
16
|
-
field :qdmVersion, type: String, default: '5.
|
16
|
+
field :qdmVersion, type: String, default: '5.4'
|
17
17
|
end
|
18
18
|
end
|
@@ -7,8 +7,8 @@ module QDM
|
|
7
7
|
field :reason, type: QDM::Code
|
8
8
|
field :negationRationale, type: QDM::Code
|
9
9
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.35'
|
10
|
-
field :
|
10
|
+
field :qdmCategory, type: String, default: 'intervention'
|
11
11
|
field :qdmStatus, type: String, default: 'order'
|
12
|
-
field :qdmVersion, type: String, default: '5.
|
12
|
+
field :qdmVersion, type: String, default: '5.4'
|
13
13
|
end
|
14
14
|
end
|
@@ -10,8 +10,8 @@ module QDM
|
|
10
10
|
field :status, type: QDM::Code
|
11
11
|
field :negationRationale, type: QDM::Code
|
12
12
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.36'
|
13
|
-
field :
|
13
|
+
field :qdmCategory, type: String, default: 'intervention'
|
14
14
|
field :qdmStatus, type: String, default: 'performed'
|
15
|
-
field :qdmVersion, type: String, default: '5.
|
15
|
+
field :qdmVersion, type: String, default: '5.4'
|
16
16
|
end
|
17
17
|
end
|
@@ -7,8 +7,8 @@ module QDM
|
|
7
7
|
field :reason, type: QDM::Code
|
8
8
|
field :negationRationale, type: QDM::Code
|
9
9
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.37'
|
10
|
-
field :
|
10
|
+
field :qdmCategory, type: String, default: 'intervention'
|
11
11
|
field :qdmStatus, type: String, default: 'recommended'
|
12
|
-
field :qdmVersion, type: String, default: '5.
|
12
|
+
field :qdmVersion, type: String, default: '5.4'
|
13
13
|
end
|
14
14
|
end
|
@@ -5,11 +5,10 @@ module QDM
|
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
7
|
field :reason, type: QDM::Code
|
8
|
-
field :method, type: QDM::Code
|
9
8
|
field :negationRationale, type: QDM::Code
|
10
9
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.41'
|
11
|
-
field :
|
10
|
+
field :qdmCategory, type: String, default: 'laboratory_test'
|
12
11
|
field :qdmStatus, type: String, default: 'order'
|
13
|
-
field :qdmVersion, type: String, default: '5.
|
12
|
+
field :qdmVersion, type: String, default: '5.4'
|
14
13
|
end
|
15
14
|
end
|
@@ -14,8 +14,8 @@ module QDM
|
|
14
14
|
field :negationRationale, type: QDM::Code
|
15
15
|
field :components, type: Array
|
16
16
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.42'
|
17
|
-
field :
|
17
|
+
field :qdmCategory, type: String, default: 'laboratory_test'
|
18
18
|
field :qdmStatus, type: String, default: 'performed'
|
19
|
-
field :qdmVersion, type: String, default: '5.
|
19
|
+
field :qdmVersion, type: String, default: '5.4'
|
20
20
|
end
|
21
21
|
end
|
@@ -4,12 +4,11 @@ module QDM
|
|
4
4
|
include Mongoid::Document
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
|
-
field :method, type: QDM::Code
|
8
7
|
field :reason, type: QDM::Code
|
9
8
|
field :negationRationale, type: QDM::Code
|
10
9
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.43'
|
11
|
-
field :
|
10
|
+
field :qdmCategory, type: String, default: 'laboratory_test'
|
12
11
|
field :qdmStatus, type: String, default: 'recommended'
|
13
|
-
field :qdmVersion, type: String, default: '5.
|
12
|
+
field :qdmVersion, type: String, default: '5.4'
|
14
13
|
end
|
15
14
|
end
|
@@ -5,12 +5,11 @@ module QDM
|
|
5
5
|
embedded_in :patient
|
6
6
|
field :relevantPeriod, type: QDM::Interval
|
7
7
|
field :dosage, type: QDM::Quantity
|
8
|
-
field :supply, type: QDM::Quantity
|
9
8
|
field :frequency, type: QDM::Code
|
10
9
|
field :route, type: QDM::Code
|
11
10
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.44'
|
12
|
-
field :
|
11
|
+
field :qdmCategory, type: String, default: 'medication'
|
13
12
|
field :qdmStatus, type: String, default: 'active'
|
14
|
-
field :qdmVersion, type: String, default: '5.
|
13
|
+
field :qdmVersion, type: String, default: '5.4'
|
15
14
|
end
|
16
15
|
end
|
@@ -6,14 +6,13 @@ module QDM
|
|
6
6
|
field :authorDatetime, type: DateTime
|
7
7
|
field :relevantPeriod, type: QDM::Interval
|
8
8
|
field :dosage, type: QDM::Quantity
|
9
|
-
field :supply, type: QDM::Quantity
|
10
9
|
field :frequency, type: QDM::Code
|
11
10
|
field :route, type: QDM::Code
|
12
11
|
field :reason, type: QDM::Code
|
13
12
|
field :negationRationale, type: QDM::Code
|
14
13
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.45'
|
15
|
-
field :
|
14
|
+
field :qdmCategory, type: String, default: 'medication'
|
16
15
|
field :qdmStatus, type: String, default: 'administered'
|
17
|
-
field :qdmVersion, type: String, default: '5.
|
16
|
+
field :qdmVersion, type: String, default: '5.4'
|
18
17
|
end
|
19
18
|
end
|
@@ -8,11 +8,12 @@ module QDM
|
|
8
8
|
field :dosage, type: QDM::Quantity
|
9
9
|
field :supply, type: QDM::Quantity
|
10
10
|
field :frequency, type: QDM::Code
|
11
|
+
field :daysSupplied, type: Integer
|
11
12
|
field :route, type: QDM::Code
|
12
13
|
field :negationRationale, type: QDM::Code
|
13
14
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.48'
|
14
|
-
field :
|
15
|
+
field :qdmCategory, type: String, default: 'medication'
|
15
16
|
field :qdmStatus, type: String, default: 'discharge'
|
16
|
-
field :qdmVersion, type: String, default: '5.
|
17
|
+
field :qdmVersion, type: String, default: '5.4'
|
17
18
|
end
|
18
19
|
end
|
@@ -9,11 +9,14 @@ module QDM
|
|
9
9
|
field :dosage, type: QDM::Quantity
|
10
10
|
field :supply, type: QDM::Quantity
|
11
11
|
field :frequency, type: QDM::Code
|
12
|
+
field :daysSupplied, type: Integer
|
12
13
|
field :route, type: QDM::Code
|
14
|
+
field :prescriberId, type: Id
|
15
|
+
field :dispenserId, type: Id
|
13
16
|
field :negationRationale, type: QDM::Code
|
14
17
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.49'
|
15
|
-
field :
|
18
|
+
field :qdmCategory, type: String, default: 'medication'
|
16
19
|
field :qdmStatus, type: String, default: 'dispensed'
|
17
|
-
field :qdmVersion, type: String, default: '5.
|
20
|
+
field :qdmVersion, type: String, default: '5.4'
|
18
21
|
end
|
19
22
|
end
|
@@ -3,20 +3,21 @@ module QDM
|
|
3
3
|
class MedicationOrder < DataElement
|
4
4
|
include Mongoid::Document
|
5
5
|
embedded_in :patient
|
6
|
-
field :activeDatetime, type: DateTime
|
7
6
|
field :relevantPeriod, type: QDM::Interval
|
8
7
|
field :authorDatetime, type: DateTime
|
9
8
|
field :refills, type: Integer
|
10
9
|
field :dosage, type: QDM::Quantity
|
11
10
|
field :supply, type: QDM::Quantity
|
12
11
|
field :frequency, type: QDM::Code
|
12
|
+
field :daysSupplied, type: Integer
|
13
13
|
field :route, type: QDM::Code
|
14
|
-
field :
|
14
|
+
field :setting, type: QDM::Code
|
15
15
|
field :reason, type: QDM::Code
|
16
|
+
field :prescriberId, type: Id
|
16
17
|
field :negationRationale, type: QDM::Code
|
17
18
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.51'
|
18
|
-
field :
|
19
|
+
field :qdmCategory, type: String, default: 'medication'
|
19
20
|
field :qdmStatus, type: String, default: 'order'
|
20
|
-
field :qdmVersion, type: String, default: '5.
|
21
|
+
field :qdmVersion, type: String, default: '5.4'
|
21
22
|
end
|
22
23
|
end
|
@@ -5,7 +5,7 @@ module QDM
|
|
5
5
|
embedded_in :patient
|
6
6
|
field :participationPeriod, type: QDM::Interval
|
7
7
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.130'
|
8
|
-
field :
|
9
|
-
field :qdmVersion, type: String, default: '5.
|
8
|
+
field :qdmCategory, type: String, default: 'participation'
|
9
|
+
field :qdmVersion, type: String, default: '5.4'
|
10
10
|
end
|
11
11
|
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.4'
|
7
7
|
field :givenNames, type: Array
|
8
8
|
field :familyName, type: String
|
9
9
|
field :bundleId, type: String
|
@@ -46,9 +46,9 @@ module QDM
|
|
46
46
|
# will return all Encounter QDM data types active on the patient.
|
47
47
|
def get_data_elements(category = nil, status = nil)
|
48
48
|
if category && status
|
49
|
-
dataElements.where(
|
49
|
+
dataElements.where(qdmCategory: category, qdmStatus: status) || []
|
50
50
|
elsif category
|
51
|
-
dataElements.where(
|
51
|
+
dataElements.where(qdmCategory: category) || []
|
52
52
|
else
|
53
53
|
dataElements || []
|
54
54
|
end
|
@@ -5,7 +5,7 @@ module QDM
|
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
7
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.52'
|
8
|
-
field :
|
9
|
-
field :qdmVersion, type: String, default: '5.
|
8
|
+
field :qdmCategory, type: String, default: 'care_experience'
|
9
|
+
field :qdmVersion, type: String, default: '5.4'
|
10
10
|
end
|
11
11
|
end
|
@@ -5,7 +5,7 @@ module QDM
|
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
7
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.53'
|
8
|
-
field :
|
9
|
-
field :qdmVersion, type: String, default: '5.
|
8
|
+
field :qdmCategory, type: String, default: 'patient_characteristic'
|
9
|
+
field :qdmVersion, type: String, default: '5.4'
|
10
10
|
end
|
11
11
|
end
|
@@ -5,8 +5,8 @@ module QDM
|
|
5
5
|
embedded_in :patient
|
6
6
|
field :birthDatetime, type: DateTime
|
7
7
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.54'
|
8
|
-
field :
|
8
|
+
field :qdmCategory, type: String, default: 'patient_characteristic'
|
9
9
|
field :qdmStatus, type: String, default: 'birthdate'
|
10
|
-
field :qdmVersion, type: String, default: '5.
|
10
|
+
field :qdmVersion, type: String, default: '5.4'
|
11
11
|
end
|
12
12
|
end
|
@@ -7,8 +7,8 @@ module QDM
|
|
7
7
|
field :relevantPeriod, type: QDM::Interval
|
8
8
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.6'
|
9
9
|
field :qrdaOid, type: String, default: '2.16.840.1.113883.10.20.24.3.51'
|
10
|
-
field :
|
10
|
+
field :qdmCategory, type: String, default: 'patient_characteristic'
|
11
11
|
field :qdmStatus, type: String, default: 'clinical_trial_participant'
|
12
|
-
field :qdmVersion, type: String, default: '5.
|
12
|
+
field :qdmVersion, type: String, default: '5.4'
|
13
13
|
end
|
14
14
|
end
|
@@ -4,8 +4,8 @@ module QDM
|
|
4
4
|
include Mongoid::Document
|
5
5
|
embedded_in :patient
|
6
6
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.56'
|
7
|
-
field :
|
7
|
+
field :qdmCategory, type: String, default: 'patient_characteristic'
|
8
8
|
field :qdmStatus, type: String, default: 'ethnicity'
|
9
|
-
field :qdmVersion, type: String, default: '5.
|
9
|
+
field :qdmVersion, type: String, default: '5.4'
|
10
10
|
end
|
11
11
|
end
|
@@ -6,8 +6,8 @@ module QDM
|
|
6
6
|
field :expiredDatetime, type: DateTime
|
7
7
|
field :cause, type: QDM::Code
|
8
8
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.57'
|
9
|
-
field :
|
9
|
+
field :qdmCategory, type: String, default: 'patient_characteristic'
|
10
10
|
field :qdmStatus, type: String, default: 'expired'
|
11
|
-
field :qdmVersion, type: String, default: '5.
|
11
|
+
field :qdmVersion, type: String, default: '5.4'
|
12
12
|
end
|
13
13
|
end
|
@@ -5,8 +5,8 @@ module QDM
|
|
5
5
|
embedded_in :patient
|
6
6
|
field :relevantPeriod, type: QDM::Interval
|
7
7
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.58'
|
8
|
-
field :
|
8
|
+
field :qdmCategory, type: String, default: 'patient_characteristic'
|
9
9
|
field :qdmStatus, type: String, default: 'payer'
|
10
|
-
field :qdmVersion, type: String, default: '5.
|
10
|
+
field :qdmVersion, type: String, default: '5.4'
|
11
11
|
end
|
12
12
|
end
|
@@ -4,8 +4,8 @@ module QDM
|
|
4
4
|
include Mongoid::Document
|
5
5
|
embedded_in :patient
|
6
6
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.59'
|
7
|
-
field :
|
7
|
+
field :qdmCategory, type: String, default: 'patient_characteristic'
|
8
8
|
field :qdmStatus, type: String, default: 'race'
|
9
|
-
field :qdmVersion, type: String, default: '5.
|
9
|
+
field :qdmVersion, type: String, default: '5.4'
|
10
10
|
end
|
11
11
|
end
|
@@ -4,8 +4,8 @@ module QDM
|
|
4
4
|
include Mongoid::Document
|
5
5
|
embedded_in :patient
|
6
6
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.55'
|
7
|
-
field :
|
7
|
+
field :qdmCategory, type: String, default: 'patient_characteristic'
|
8
8
|
field :qdmStatus, type: String, default: 'gender'
|
9
|
-
field :qdmVersion, type: String, default: '5.
|
9
|
+
field :qdmVersion, type: String, default: '5.4'
|
10
10
|
end
|
11
11
|
end
|
@@ -5,12 +5,11 @@ module QDM
|
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
7
|
field :reason, type: QDM::Code
|
8
|
-
field :method, type: QDM::Code
|
9
8
|
field :anatomicalLocationSite, type: QDM::Code
|
10
9
|
field :negationRationale, type: QDM::Code
|
11
10
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.61'
|
12
|
-
field :
|
11
|
+
field :qdmCategory, type: String, default: 'physical_exam'
|
13
12
|
field :qdmStatus, type: String, default: 'order'
|
14
|
-
field :qdmVersion, type: String, default: '5.
|
13
|
+
field :qdmVersion, type: String, default: '5.4'
|
15
14
|
end
|
16
15
|
end
|
@@ -12,8 +12,8 @@ module QDM
|
|
12
12
|
field :negationRationale, type: QDM::Code
|
13
13
|
field :components, type: Array
|
14
14
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.62'
|
15
|
-
field :
|
15
|
+
field :qdmCategory, type: String, default: 'physical_exam'
|
16
16
|
field :qdmStatus, type: String, default: 'performed'
|
17
|
-
field :qdmVersion, type: String, default: '5.
|
17
|
+
field :qdmVersion, type: String, default: '5.4'
|
18
18
|
end
|
19
19
|
end
|
@@ -5,12 +5,11 @@ module QDM
|
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
7
|
field :reason, type: QDM::Code
|
8
|
-
field :method, type: QDM::Code
|
9
8
|
field :anatomicalLocationSite, type: QDM::Code
|
10
9
|
field :negationRationale, type: QDM::Code
|
11
10
|
field :hqmfOid, type: String, default: '22.16.840.1.113883.10.20.28.3.63'
|
12
|
-
field :
|
11
|
+
field :qdmCategory, type: String, default: 'physical_exam'
|
13
12
|
field :qdmStatus, type: String, default: 'recommended'
|
14
|
-
field :qdmVersion, type: String, default: '5.
|
13
|
+
field :qdmVersion, type: String, default: '5.4'
|
15
14
|
end
|
16
15
|
end
|
@@ -5,14 +5,12 @@ module QDM
|
|
5
5
|
embedded_in :patient
|
6
6
|
field :authorDatetime, type: DateTime
|
7
7
|
field :reason, type: QDM::Code
|
8
|
-
field :method, type: QDM::Code
|
9
|
-
field :anatomicalApproachSite, type: QDM::Code
|
10
8
|
field :anatomicalLocationSite, type: QDM::Code
|
11
9
|
field :ordinality, type: QDM::Code
|
12
10
|
field :negationRationale, type: QDM::Code
|
13
11
|
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.3.66'
|
14
|
-
field :
|
12
|
+
field :qdmCategory, type: String, default: 'procedure'
|
15
13
|
field :qdmStatus, type: String, default: 'order'
|
16
|
-
field :qdmVersion, type: String, default: '5.
|
14
|
+
field :qdmVersion, type: String, default: '5.4'
|
17
15
|
end
|
18
16
|
end
|