cqm-models 2.0.1 → 3.0.4
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/.github/workflows/gitleaks_github_actions.yml +28 -0
- data/.travis.yml +2 -2
- data/README.md +12 -9
- 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 +33 -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 +33 -0
- data/app/assets/javascripts/attributes/PatientEntity.js +32 -0
- data/app/assets/javascripts/attributes/Practitioner.js +35 -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 +17 -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/individual_result.rb +2 -6
- data/app/models/cqm/provider.rb +4 -4
- data/app/models/hqmfOid_to_datatype_map.json +5 -1
- data/app/models/model_finder.rb +1 -0
- 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/attribute.rb +1 -0
- data/app/models/qdm/attributes/care_partner.rb +10 -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 +10 -0
- data/app/models/qdm/attributes/patient_entity.rb +9 -0
- data/app/models/qdm/attributes/practitioner.rb +12 -0
- data/app/models/qdm/{result_component.rb → attributes/result_component.rb} +1 -3
- data/app/models/qdm/basetypes/code.rb +9 -10
- data/app/models/qdm/basetypes/data_element.rb +25 -18
- data/app/models/qdm/basetypes/date.rb +39 -0
- data/app/models/qdm/basetypes/interval.rb +8 -11
- data/app/models/qdm/basetypes/quantity.rb +1 -0
- data/app/models/qdm/basetypes/ratio.rb +1 -0
- 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 +5 -5
- data/data/oids_qdm_5.5.json +337 -0
- data/dist/browser.js +8819 -4882
- data/dist/index.js +8818 -4881
- data/lib/generate_entities.rb +56 -0
- data/lib/generate_models.rb +77 -39
- data/lib/generate_patients.rb +20 -14
- data/lib/generate_types.rb +54 -14
- data/lib/generator_helpers.rb +14 -0
- data/modelinfo/qdm-modelinfo-5.5.xml +982 -0
- data/package.json +4 -4
- 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 +396 -320
- metadata +40 -19
- 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
@@ -1,14 +1,17 @@
|
|
1
1
|
const mongoose = require('mongoose/browser');
|
2
2
|
|
3
|
-
const {
|
3
|
+
const { IdentifierSchema } = require('./attributes/Identifier');
|
4
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
5
5
|
const Code = require('./basetypes/Code');
|
6
6
|
const Interval = require('./basetypes/Interval');
|
7
7
|
const Quantity = require('./basetypes/Quantity');
|
8
8
|
const DateTime = require('./basetypes/DateTime');
|
9
|
+
const QDMDate = require('./basetypes/QDMDate');
|
9
10
|
const Any = require('./basetypes/Any');
|
11
|
+
const AnyEntity = require('./basetypes/AnyEntity');
|
10
12
|
const { ComponentSchema } = require('./attributes/Component');
|
11
13
|
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
14
|
+
const { EntitySchema } = require('./attributes/Entity');
|
12
15
|
|
13
16
|
|
14
17
|
const [Number, String] = [
|
@@ -18,16 +21,18 @@ const [Number, String] = [
|
|
18
21
|
|
19
22
|
const ImmunizationAdministeredSchema = DataElementSchema({
|
20
23
|
authorDatetime: DateTime,
|
24
|
+
relevantDatetime: DateTime,
|
21
25
|
reason: Code,
|
22
26
|
dosage: Quantity,
|
23
27
|
route: Code,
|
24
28
|
negationRationale: Code,
|
29
|
+
performer: AnyEntity,
|
25
30
|
qdmTitle: { type: String, default: 'Immunization, Administered' },
|
26
31
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.112' },
|
27
32
|
qrdaOid: { type: String, default: '2.16.840.1.113883.10.20.24.3.140' },
|
28
33
|
qdmCategory: { type: String, default: 'immunization' },
|
29
34
|
qdmStatus: { type: String, default: 'administered' },
|
30
|
-
qdmVersion: { type: String, default: '5.
|
35
|
+
qdmVersion: { type: String, default: '5.5' },
|
31
36
|
_type: { type: String, default: 'QDM::ImmunizationAdministered' },
|
32
37
|
|
33
38
|
});
|
@@ -39,4 +44,6 @@ class ImmunizationAdministered extends mongoose.Document {
|
|
39
44
|
this._type = 'QDM::ImmunizationAdministered';
|
40
45
|
}
|
41
46
|
}
|
47
|
+
|
42
48
|
module.exports.ImmunizationAdministered = ImmunizationAdministered;
|
49
|
+
|
@@ -1,14 +1,17 @@
|
|
1
1
|
const mongoose = require('mongoose/browser');
|
2
2
|
|
3
|
-
const {
|
3
|
+
const { IdentifierSchema } = require('./attributes/Identifier');
|
4
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
5
5
|
const Code = require('./basetypes/Code');
|
6
6
|
const Interval = require('./basetypes/Interval');
|
7
7
|
const Quantity = require('./basetypes/Quantity');
|
8
8
|
const DateTime = require('./basetypes/DateTime');
|
9
|
+
const QDMDate = require('./basetypes/QDMDate');
|
9
10
|
const Any = require('./basetypes/Any');
|
11
|
+
const AnyEntity = require('./basetypes/AnyEntity');
|
10
12
|
const { ComponentSchema } = require('./attributes/Component');
|
11
13
|
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
14
|
+
const { EntitySchema } = require('./attributes/Entity');
|
12
15
|
|
13
16
|
|
14
17
|
const [Number, String] = [
|
@@ -24,11 +27,12 @@ const ImmunizationOrderSchema = DataElementSchema({
|
|
24
27
|
reason: Code,
|
25
28
|
route: Code,
|
26
29
|
negationRationale: Code,
|
30
|
+
requester: AnyEntity,
|
27
31
|
qdmTitle: { type: String, default: 'Immunization, Order' },
|
28
32
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.113' },
|
29
33
|
qdmCategory: { type: String, default: 'immunization' },
|
30
34
|
qdmStatus: { type: String, default: 'order' },
|
31
|
-
qdmVersion: { type: String, default: '5.
|
35
|
+
qdmVersion: { type: String, default: '5.5' },
|
32
36
|
_type: { type: String, default: 'QDM::ImmunizationOrder' },
|
33
37
|
|
34
38
|
});
|
@@ -40,4 +44,6 @@ class ImmunizationOrder extends mongoose.Document {
|
|
40
44
|
this._type = 'QDM::ImmunizationOrder';
|
41
45
|
}
|
42
46
|
}
|
47
|
+
|
43
48
|
module.exports.ImmunizationOrder = ImmunizationOrder;
|
49
|
+
|
@@ -1,14 +1,17 @@
|
|
1
1
|
const mongoose = require('mongoose/browser');
|
2
2
|
|
3
|
-
const {
|
3
|
+
const { IdentifierSchema } = require('./attributes/Identifier');
|
4
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
5
5
|
const Code = require('./basetypes/Code');
|
6
6
|
const Interval = require('./basetypes/Interval');
|
7
7
|
const Quantity = require('./basetypes/Quantity');
|
8
8
|
const DateTime = require('./basetypes/DateTime');
|
9
|
+
const QDMDate = require('./basetypes/QDMDate');
|
9
10
|
const Any = require('./basetypes/Any');
|
11
|
+
const AnyEntity = require('./basetypes/AnyEntity');
|
10
12
|
const { ComponentSchema } = require('./attributes/Component');
|
11
13
|
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
14
|
+
const { EntitySchema } = require('./attributes/Entity');
|
12
15
|
|
13
16
|
|
14
17
|
const [Number, String] = [
|
@@ -20,11 +23,12 @@ const InterventionOrderSchema = DataElementSchema({
|
|
20
23
|
authorDatetime: DateTime,
|
21
24
|
reason: Code,
|
22
25
|
negationRationale: Code,
|
26
|
+
requester: AnyEntity,
|
23
27
|
qdmTitle: { type: String, default: 'Intervention, Order' },
|
24
28
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.35' },
|
25
29
|
qdmCategory: { type: String, default: 'intervention' },
|
26
30
|
qdmStatus: { type: String, default: 'order' },
|
27
|
-
qdmVersion: { type: String, default: '5.
|
31
|
+
qdmVersion: { type: String, default: '5.5' },
|
28
32
|
_type: { type: String, default: 'QDM::InterventionOrder' },
|
29
33
|
|
30
34
|
});
|
@@ -36,4 +40,6 @@ class InterventionOrder extends mongoose.Document {
|
|
36
40
|
this._type = 'QDM::InterventionOrder';
|
37
41
|
}
|
38
42
|
}
|
43
|
+
|
39
44
|
module.exports.InterventionOrder = InterventionOrder;
|
45
|
+
|
@@ -1,14 +1,17 @@
|
|
1
1
|
const mongoose = require('mongoose/browser');
|
2
2
|
|
3
|
-
const {
|
3
|
+
const { IdentifierSchema } = require('./attributes/Identifier');
|
4
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
5
5
|
const Code = require('./basetypes/Code');
|
6
6
|
const Interval = require('./basetypes/Interval');
|
7
7
|
const Quantity = require('./basetypes/Quantity');
|
8
8
|
const DateTime = require('./basetypes/DateTime');
|
9
|
+
const QDMDate = require('./basetypes/QDMDate');
|
9
10
|
const Any = require('./basetypes/Any');
|
11
|
+
const AnyEntity = require('./basetypes/AnyEntity');
|
10
12
|
const { ComponentSchema } = require('./attributes/Component');
|
11
13
|
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
14
|
+
const { EntitySchema } = require('./attributes/Entity');
|
12
15
|
|
13
16
|
|
14
17
|
const [Number, String] = [
|
@@ -18,16 +21,18 @@ const [Number, String] = [
|
|
18
21
|
|
19
22
|
const InterventionPerformedSchema = DataElementSchema({
|
20
23
|
authorDatetime: DateTime,
|
24
|
+
relevantDatetime: DateTime,
|
21
25
|
relevantPeriod: Interval,
|
22
26
|
reason: Code,
|
23
27
|
result: Any,
|
24
28
|
status: Code,
|
25
29
|
negationRationale: Code,
|
30
|
+
performer: AnyEntity,
|
26
31
|
qdmTitle: { type: String, default: 'Intervention, Performed' },
|
27
32
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.36' },
|
28
33
|
qdmCategory: { type: String, default: 'intervention' },
|
29
34
|
qdmStatus: { type: String, default: 'performed' },
|
30
|
-
qdmVersion: { type: String, default: '5.
|
35
|
+
qdmVersion: { type: String, default: '5.5' },
|
31
36
|
_type: { type: String, default: 'QDM::InterventionPerformed' },
|
32
37
|
|
33
38
|
});
|
@@ -39,4 +44,6 @@ class InterventionPerformed extends mongoose.Document {
|
|
39
44
|
this._type = 'QDM::InterventionPerformed';
|
40
45
|
}
|
41
46
|
}
|
47
|
+
|
42
48
|
module.exports.InterventionPerformed = InterventionPerformed;
|
49
|
+
|
@@ -1,14 +1,17 @@
|
|
1
1
|
const mongoose = require('mongoose/browser');
|
2
2
|
|
3
|
-
const {
|
3
|
+
const { IdentifierSchema } = require('./attributes/Identifier');
|
4
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
5
5
|
const Code = require('./basetypes/Code');
|
6
6
|
const Interval = require('./basetypes/Interval');
|
7
7
|
const Quantity = require('./basetypes/Quantity');
|
8
8
|
const DateTime = require('./basetypes/DateTime');
|
9
|
+
const QDMDate = require('./basetypes/QDMDate');
|
9
10
|
const Any = require('./basetypes/Any');
|
11
|
+
const AnyEntity = require('./basetypes/AnyEntity');
|
10
12
|
const { ComponentSchema } = require('./attributes/Component');
|
11
13
|
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
14
|
+
const { EntitySchema } = require('./attributes/Entity');
|
12
15
|
|
13
16
|
|
14
17
|
const [Number, String] = [
|
@@ -20,11 +23,12 @@ const InterventionRecommendedSchema = DataElementSchema({
|
|
20
23
|
authorDatetime: DateTime,
|
21
24
|
reason: Code,
|
22
25
|
negationRationale: Code,
|
26
|
+
requester: AnyEntity,
|
23
27
|
qdmTitle: { type: String, default: 'Intervention, Recommended' },
|
24
28
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.37' },
|
25
29
|
qdmCategory: { type: String, default: 'intervention' },
|
26
30
|
qdmStatus: { type: String, default: 'recommended' },
|
27
|
-
qdmVersion: { type: String, default: '5.
|
31
|
+
qdmVersion: { type: String, default: '5.5' },
|
28
32
|
_type: { type: String, default: 'QDM::InterventionRecommended' },
|
29
33
|
|
30
34
|
});
|
@@ -36,4 +40,6 @@ class InterventionRecommended extends mongoose.Document {
|
|
36
40
|
this._type = 'QDM::InterventionRecommended';
|
37
41
|
}
|
38
42
|
}
|
43
|
+
|
39
44
|
module.exports.InterventionRecommended = InterventionRecommended;
|
45
|
+
|
@@ -1,14 +1,17 @@
|
|
1
1
|
const mongoose = require('mongoose/browser');
|
2
2
|
|
3
|
-
const {
|
3
|
+
const { IdentifierSchema } = require('./attributes/Identifier');
|
4
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
5
5
|
const Code = require('./basetypes/Code');
|
6
6
|
const Interval = require('./basetypes/Interval');
|
7
7
|
const Quantity = require('./basetypes/Quantity');
|
8
8
|
const DateTime = require('./basetypes/DateTime');
|
9
|
+
const QDMDate = require('./basetypes/QDMDate');
|
9
10
|
const Any = require('./basetypes/Any');
|
11
|
+
const AnyEntity = require('./basetypes/AnyEntity');
|
10
12
|
const { ComponentSchema } = require('./attributes/Component');
|
11
13
|
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
14
|
+
const { EntitySchema } = require('./attributes/Entity');
|
12
15
|
|
13
16
|
|
14
17
|
const [Number, String] = [
|
@@ -20,11 +23,12 @@ const LaboratoryTestOrderSchema = DataElementSchema({
|
|
20
23
|
authorDatetime: DateTime,
|
21
24
|
reason: Code,
|
22
25
|
negationRationale: Code,
|
26
|
+
requester: AnyEntity,
|
23
27
|
qdmTitle: { type: String, default: 'Laboratory Test, Order' },
|
24
28
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.41' },
|
25
29
|
qdmCategory: { type: String, default: 'laboratory_test' },
|
26
30
|
qdmStatus: { type: String, default: 'order' },
|
27
|
-
qdmVersion: { type: String, default: '5.
|
31
|
+
qdmVersion: { type: String, default: '5.5' },
|
28
32
|
_type: { type: String, default: 'QDM::LaboratoryTestOrder' },
|
29
33
|
|
30
34
|
});
|
@@ -36,4 +40,6 @@ class LaboratoryTestOrder extends mongoose.Document {
|
|
36
40
|
this._type = 'QDM::LaboratoryTestOrder';
|
37
41
|
}
|
38
42
|
}
|
43
|
+
|
39
44
|
module.exports.LaboratoryTestOrder = LaboratoryTestOrder;
|
45
|
+
|
@@ -1,14 +1,17 @@
|
|
1
1
|
const mongoose = require('mongoose/browser');
|
2
2
|
|
3
|
-
const {
|
3
|
+
const { IdentifierSchema } = require('./attributes/Identifier');
|
4
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
5
5
|
const Code = require('./basetypes/Code');
|
6
6
|
const Interval = require('./basetypes/Interval');
|
7
7
|
const Quantity = require('./basetypes/Quantity');
|
8
8
|
const DateTime = require('./basetypes/DateTime');
|
9
|
+
const QDMDate = require('./basetypes/QDMDate');
|
9
10
|
const Any = require('./basetypes/Any');
|
11
|
+
const AnyEntity = require('./basetypes/AnyEntity');
|
10
12
|
const { ComponentSchema } = require('./attributes/Component');
|
11
13
|
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
14
|
+
const { EntitySchema } = require('./attributes/Entity');
|
12
15
|
|
13
16
|
|
14
17
|
const [Number, String] = [
|
@@ -18,6 +21,7 @@ const [Number, String] = [
|
|
18
21
|
|
19
22
|
const LaboratoryTestPerformedSchema = DataElementSchema({
|
20
23
|
authorDatetime: DateTime,
|
24
|
+
relevantDatetime: DateTime,
|
21
25
|
relevantPeriod: Interval,
|
22
26
|
status: Code,
|
23
27
|
method: Code,
|
@@ -27,11 +31,12 @@ const LaboratoryTestPerformedSchema = DataElementSchema({
|
|
27
31
|
referenceRange: Interval,
|
28
32
|
negationRationale: Code,
|
29
33
|
components: [ComponentSchema],
|
34
|
+
performer: AnyEntity,
|
30
35
|
qdmTitle: { type: String, default: 'Laboratory Test, Performed' },
|
31
36
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.42' },
|
32
37
|
qdmCategory: { type: String, default: 'laboratory_test' },
|
33
38
|
qdmStatus: { type: String, default: 'performed' },
|
34
|
-
qdmVersion: { type: String, default: '5.
|
39
|
+
qdmVersion: { type: String, default: '5.5' },
|
35
40
|
_type: { type: String, default: 'QDM::LaboratoryTestPerformed' },
|
36
41
|
|
37
42
|
});
|
@@ -43,4 +48,6 @@ class LaboratoryTestPerformed extends mongoose.Document {
|
|
43
48
|
this._type = 'QDM::LaboratoryTestPerformed';
|
44
49
|
}
|
45
50
|
}
|
51
|
+
|
46
52
|
module.exports.LaboratoryTestPerformed = LaboratoryTestPerformed;
|
53
|
+
|
@@ -1,14 +1,17 @@
|
|
1
1
|
const mongoose = require('mongoose/browser');
|
2
2
|
|
3
|
-
const {
|
3
|
+
const { IdentifierSchema } = require('./attributes/Identifier');
|
4
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
5
5
|
const Code = require('./basetypes/Code');
|
6
6
|
const Interval = require('./basetypes/Interval');
|
7
7
|
const Quantity = require('./basetypes/Quantity');
|
8
8
|
const DateTime = require('./basetypes/DateTime');
|
9
|
+
const QDMDate = require('./basetypes/QDMDate');
|
9
10
|
const Any = require('./basetypes/Any');
|
11
|
+
const AnyEntity = require('./basetypes/AnyEntity');
|
10
12
|
const { ComponentSchema } = require('./attributes/Component');
|
11
13
|
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
14
|
+
const { EntitySchema } = require('./attributes/Entity');
|
12
15
|
|
13
16
|
|
14
17
|
const [Number, String] = [
|
@@ -20,11 +23,12 @@ const LaboratoryTestRecommendedSchema = DataElementSchema({
|
|
20
23
|
authorDatetime: DateTime,
|
21
24
|
reason: Code,
|
22
25
|
negationRationale: Code,
|
26
|
+
requester: AnyEntity,
|
23
27
|
qdmTitle: { type: String, default: 'Laboratory Test, Recommended' },
|
24
28
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.43' },
|
25
29
|
qdmCategory: { type: String, default: 'laboratory_test' },
|
26
30
|
qdmStatus: { type: String, default: 'recommended' },
|
27
|
-
qdmVersion: { type: String, default: '5.
|
31
|
+
qdmVersion: { type: String, default: '5.5' },
|
28
32
|
_type: { type: String, default: 'QDM::LaboratoryTestRecommended' },
|
29
33
|
|
30
34
|
});
|
@@ -36,4 +40,6 @@ class LaboratoryTestRecommended extends mongoose.Document {
|
|
36
40
|
this._type = 'QDM::LaboratoryTestRecommended';
|
37
41
|
}
|
38
42
|
}
|
43
|
+
|
39
44
|
module.exports.LaboratoryTestRecommended = LaboratoryTestRecommended;
|
45
|
+
|
@@ -1,14 +1,17 @@
|
|
1
1
|
const mongoose = require('mongoose/browser');
|
2
2
|
|
3
|
-
const {
|
3
|
+
const { IdentifierSchema } = require('./attributes/Identifier');
|
4
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
5
5
|
const Code = require('./basetypes/Code');
|
6
6
|
const Interval = require('./basetypes/Interval');
|
7
7
|
const Quantity = require('./basetypes/Quantity');
|
8
8
|
const DateTime = require('./basetypes/DateTime');
|
9
|
+
const QDMDate = require('./basetypes/QDMDate');
|
9
10
|
const Any = require('./basetypes/Any');
|
11
|
+
const AnyEntity = require('./basetypes/AnyEntity');
|
10
12
|
const { ComponentSchema } = require('./attributes/Component');
|
11
13
|
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
14
|
+
const { EntitySchema } = require('./attributes/Entity');
|
12
15
|
|
13
16
|
|
14
17
|
const [Number, String] = [
|
@@ -17,15 +20,17 @@ const [Number, String] = [
|
|
17
20
|
];
|
18
21
|
|
19
22
|
const MedicationActiveSchema = DataElementSchema({
|
23
|
+
relevantDatetime: DateTime,
|
20
24
|
relevantPeriod: Interval,
|
21
25
|
dosage: Quantity,
|
22
26
|
frequency: Code,
|
23
27
|
route: Code,
|
28
|
+
recorder: AnyEntity,
|
24
29
|
qdmTitle: { type: String, default: 'Medication, Active' },
|
25
30
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.44' },
|
26
31
|
qdmCategory: { type: String, default: 'medication' },
|
27
32
|
qdmStatus: { type: String, default: 'active' },
|
28
|
-
qdmVersion: { type: String, default: '5.
|
33
|
+
qdmVersion: { type: String, default: '5.5' },
|
29
34
|
_type: { type: String, default: 'QDM::MedicationActive' },
|
30
35
|
|
31
36
|
});
|
@@ -37,4 +42,6 @@ class MedicationActive extends mongoose.Document {
|
|
37
42
|
this._type = 'QDM::MedicationActive';
|
38
43
|
}
|
39
44
|
}
|
45
|
+
|
40
46
|
module.exports.MedicationActive = MedicationActive;
|
47
|
+
|
@@ -1,14 +1,17 @@
|
|
1
1
|
const mongoose = require('mongoose/browser');
|
2
2
|
|
3
|
-
const {
|
3
|
+
const { IdentifierSchema } = require('./attributes/Identifier');
|
4
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
5
5
|
const Code = require('./basetypes/Code');
|
6
6
|
const Interval = require('./basetypes/Interval');
|
7
7
|
const Quantity = require('./basetypes/Quantity');
|
8
8
|
const DateTime = require('./basetypes/DateTime');
|
9
|
+
const QDMDate = require('./basetypes/QDMDate');
|
9
10
|
const Any = require('./basetypes/Any');
|
11
|
+
const AnyEntity = require('./basetypes/AnyEntity');
|
10
12
|
const { ComponentSchema } = require('./attributes/Component');
|
11
13
|
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
14
|
+
const { EntitySchema } = require('./attributes/Entity');
|
12
15
|
|
13
16
|
|
14
17
|
const [Number, String] = [
|
@@ -18,17 +21,19 @@ const [Number, String] = [
|
|
18
21
|
|
19
22
|
const MedicationAdministeredSchema = DataElementSchema({
|
20
23
|
authorDatetime: DateTime,
|
24
|
+
relevantDatetime: DateTime,
|
21
25
|
relevantPeriod: Interval,
|
22
26
|
dosage: Quantity,
|
23
27
|
frequency: Code,
|
24
28
|
route: Code,
|
25
29
|
reason: Code,
|
26
30
|
negationRationale: Code,
|
31
|
+
performer: AnyEntity,
|
27
32
|
qdmTitle: { type: String, default: 'Medication, Administered' },
|
28
33
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.45' },
|
29
34
|
qdmCategory: { type: String, default: 'medication' },
|
30
35
|
qdmStatus: { type: String, default: 'administered' },
|
31
|
-
qdmVersion: { type: String, default: '5.
|
36
|
+
qdmVersion: { type: String, default: '5.5' },
|
32
37
|
_type: { type: String, default: 'QDM::MedicationAdministered' },
|
33
38
|
|
34
39
|
});
|
@@ -40,4 +45,6 @@ class MedicationAdministered extends mongoose.Document {
|
|
40
45
|
this._type = 'QDM::MedicationAdministered';
|
41
46
|
}
|
42
47
|
}
|
48
|
+
|
43
49
|
module.exports.MedicationAdministered = MedicationAdministered;
|
50
|
+
|
@@ -1,14 +1,17 @@
|
|
1
1
|
const mongoose = require('mongoose/browser');
|
2
2
|
|
3
|
-
const {
|
3
|
+
const { IdentifierSchema } = require('./attributes/Identifier');
|
4
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
5
5
|
const Code = require('./basetypes/Code');
|
6
6
|
const Interval = require('./basetypes/Interval');
|
7
7
|
const Quantity = require('./basetypes/Quantity');
|
8
8
|
const DateTime = require('./basetypes/DateTime');
|
9
|
+
const QDMDate = require('./basetypes/QDMDate');
|
9
10
|
const Any = require('./basetypes/Any');
|
11
|
+
const AnyEntity = require('./basetypes/AnyEntity');
|
10
12
|
const { ComponentSchema } = require('./attributes/Component');
|
11
13
|
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
14
|
+
const { EntitySchema } = require('./attributes/Entity');
|
12
15
|
|
13
16
|
|
14
17
|
const [Number, String] = [
|
@@ -25,11 +28,13 @@ const MedicationDischargeSchema = DataElementSchema({
|
|
25
28
|
daysSupplied: Number,
|
26
29
|
route: Code,
|
27
30
|
negationRationale: Code,
|
31
|
+
prescriber: AnyEntity,
|
32
|
+
recorder: AnyEntity,
|
28
33
|
qdmTitle: { type: String, default: 'Medication, Discharge' },
|
29
34
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.48' },
|
30
35
|
qdmCategory: { type: String, default: 'medication' },
|
31
36
|
qdmStatus: { type: String, default: 'discharge' },
|
32
|
-
qdmVersion: { type: String, default: '5.
|
37
|
+
qdmVersion: { type: String, default: '5.5' },
|
33
38
|
_type: { type: String, default: 'QDM::MedicationDischarge' },
|
34
39
|
|
35
40
|
});
|
@@ -41,4 +46,6 @@ class MedicationDischarge extends mongoose.Document {
|
|
41
46
|
this._type = 'QDM::MedicationDischarge';
|
42
47
|
}
|
43
48
|
}
|
49
|
+
|
44
50
|
module.exports.MedicationDischarge = MedicationDischarge;
|
51
|
+
|