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
@@ -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,10 +21,11 @@ const [Number, String] = [
|
|
18
21
|
|
19
22
|
const ParticipationSchema = DataElementSchema({
|
20
23
|
participationPeriod: Interval,
|
24
|
+
recorder: AnyEntity,
|
21
25
|
qdmTitle: { type: String, default: 'Participation' },
|
22
26
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.130' },
|
23
27
|
qdmCategory: { type: String, default: 'participation' },
|
24
|
-
qdmVersion: { type: String, default: '5.
|
28
|
+
qdmVersion: { type: String, default: '5.5' },
|
25
29
|
_type: { type: String, default: 'QDM::Participation' },
|
26
30
|
|
27
31
|
});
|
@@ -33,4 +37,6 @@ class Participation extends mongoose.Document {
|
|
33
37
|
this._type = 'QDM::Participation';
|
34
38
|
}
|
35
39
|
}
|
40
|
+
|
36
41
|
module.exports.Participation = Participation;
|
42
|
+
|
@@ -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,10 +21,11 @@ const [Number, String] = [
|
|
18
21
|
|
19
22
|
const PatientCareExperienceSchema = DataElementSchema({
|
20
23
|
authorDatetime: DateTime,
|
24
|
+
recorder: AnyEntity,
|
21
25
|
qdmTitle: { type: String, default: 'Patient Care Experience' },
|
22
26
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.52' },
|
23
27
|
qdmCategory: { type: String, default: 'care_experience' },
|
24
|
-
qdmVersion: { type: String, default: '5.
|
28
|
+
qdmVersion: { type: String, default: '5.5' },
|
25
29
|
_type: { type: String, default: 'QDM::PatientCareExperience' },
|
26
30
|
|
27
31
|
});
|
@@ -33,4 +37,6 @@ class PatientCareExperience extends mongoose.Document {
|
|
33
37
|
this._type = 'QDM::PatientCareExperience';
|
34
38
|
}
|
35
39
|
}
|
40
|
+
|
36
41
|
module.exports.PatientCareExperience = PatientCareExperience;
|
42
|
+
|
@@ -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] = [
|
@@ -21,7 +24,7 @@ const PatientCharacteristicSchema = DataElementSchema({
|
|
21
24
|
qdmTitle: { type: String, default: 'Patient Characteristic' },
|
22
25
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.53' },
|
23
26
|
qdmCategory: { type: String, default: 'patient_characteristic' },
|
24
|
-
qdmVersion: { type: String, default: '5.
|
27
|
+
qdmVersion: { type: String, default: '5.5' },
|
25
28
|
_type: { type: String, default: 'QDM::PatientCharacteristic' },
|
26
29
|
|
27
30
|
});
|
@@ -33,4 +36,6 @@ class PatientCharacteristic extends mongoose.Document {
|
|
33
36
|
this._type = 'QDM::PatientCharacteristic';
|
34
37
|
}
|
35
38
|
}
|
39
|
+
|
36
40
|
module.exports.PatientCharacteristic = PatientCharacteristic;
|
41
|
+
|
@@ -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] = [
|
@@ -22,7 +25,7 @@ const PatientCharacteristicBirthdateSchema = DataElementSchema({
|
|
22
25
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.54' },
|
23
26
|
qdmCategory: { type: String, default: 'patient_characteristic' },
|
24
27
|
qdmStatus: { type: String, default: 'birthdate' },
|
25
|
-
qdmVersion: { type: String, default: '5.
|
28
|
+
qdmVersion: { type: String, default: '5.5' },
|
26
29
|
_type: { type: String, default: 'QDM::PatientCharacteristicBirthdate' },
|
27
30
|
|
28
31
|
});
|
@@ -34,4 +37,6 @@ class PatientCharacteristicBirthdate extends mongoose.Document {
|
|
34
37
|
this._type = 'QDM::PatientCharacteristicBirthdate';
|
35
38
|
}
|
36
39
|
}
|
40
|
+
|
37
41
|
module.exports.PatientCharacteristicBirthdate = PatientCharacteristicBirthdate;
|
42
|
+
|
@@ -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,7 +27,7 @@ const PatientCharacteristicClinicalTrialParticipantSchema = DataElementSchema({
|
|
24
27
|
qrdaOid: { type: String, default: '2.16.840.1.113883.10.20.24.3.51' },
|
25
28
|
qdmCategory: { type: String, default: 'patient_characteristic' },
|
26
29
|
qdmStatus: { type: String, default: 'clinical_trial_participant' },
|
27
|
-
qdmVersion: { type: String, default: '5.
|
30
|
+
qdmVersion: { type: String, default: '5.5' },
|
28
31
|
_type: { type: String, default: 'QDM::PatientCharacteristicClinicalTrialParticipant' },
|
29
32
|
|
30
33
|
});
|
@@ -36,4 +39,6 @@ class PatientCharacteristicClinicalTrialParticipant extends mongoose.Document {
|
|
36
39
|
this._type = 'QDM::PatientCharacteristicClinicalTrialParticipant';
|
37
40
|
}
|
38
41
|
}
|
42
|
+
|
39
43
|
module.exports.PatientCharacteristicClinicalTrialParticipant = PatientCharacteristicClinicalTrialParticipant;
|
44
|
+
|
@@ -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] = [
|
@@ -21,7 +24,7 @@ const PatientCharacteristicEthnicitySchema = DataElementSchema({
|
|
21
24
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.56' },
|
22
25
|
qdmCategory: { type: String, default: 'patient_characteristic' },
|
23
26
|
qdmStatus: { type: String, default: 'ethnicity' },
|
24
|
-
qdmVersion: { type: String, default: '5.
|
27
|
+
qdmVersion: { type: String, default: '5.5' },
|
25
28
|
_type: { type: String, default: 'QDM::PatientCharacteristicEthnicity' },
|
26
29
|
|
27
30
|
});
|
@@ -33,4 +36,6 @@ class PatientCharacteristicEthnicity extends mongoose.Document {
|
|
33
36
|
this._type = 'QDM::PatientCharacteristicEthnicity';
|
34
37
|
}
|
35
38
|
}
|
39
|
+
|
36
40
|
module.exports.PatientCharacteristicEthnicity = PatientCharacteristicEthnicity;
|
41
|
+
|
@@ -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] = [
|
@@ -23,7 +26,7 @@ const PatientCharacteristicExpiredSchema = DataElementSchema({
|
|
23
26
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.57' },
|
24
27
|
qdmCategory: { type: String, default: 'patient_characteristic' },
|
25
28
|
qdmStatus: { type: String, default: 'expired' },
|
26
|
-
qdmVersion: { type: String, default: '5.
|
29
|
+
qdmVersion: { type: String, default: '5.5' },
|
27
30
|
_type: { type: String, default: 'QDM::PatientCharacteristicExpired' },
|
28
31
|
|
29
32
|
});
|
@@ -35,4 +38,6 @@ class PatientCharacteristicExpired extends mongoose.Document {
|
|
35
38
|
this._type = 'QDM::PatientCharacteristicExpired';
|
36
39
|
}
|
37
40
|
}
|
41
|
+
|
38
42
|
module.exports.PatientCharacteristicExpired = PatientCharacteristicExpired;
|
43
|
+
|
@@ -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] = [
|
@@ -22,7 +25,7 @@ const PatientCharacteristicPayerSchema = DataElementSchema({
|
|
22
25
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.58' },
|
23
26
|
qdmCategory: { type: String, default: 'patient_characteristic' },
|
24
27
|
qdmStatus: { type: String, default: 'payer' },
|
25
|
-
qdmVersion: { type: String, default: '5.
|
28
|
+
qdmVersion: { type: String, default: '5.5' },
|
26
29
|
_type: { type: String, default: 'QDM::PatientCharacteristicPayer' },
|
27
30
|
|
28
31
|
});
|
@@ -34,4 +37,6 @@ class PatientCharacteristicPayer extends mongoose.Document {
|
|
34
37
|
this._type = 'QDM::PatientCharacteristicPayer';
|
35
38
|
}
|
36
39
|
}
|
40
|
+
|
37
41
|
module.exports.PatientCharacteristicPayer = PatientCharacteristicPayer;
|
42
|
+
|
@@ -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] = [
|
@@ -21,7 +24,7 @@ const PatientCharacteristicRaceSchema = DataElementSchema({
|
|
21
24
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.59' },
|
22
25
|
qdmCategory: { type: String, default: 'patient_characteristic' },
|
23
26
|
qdmStatus: { type: String, default: 'race' },
|
24
|
-
qdmVersion: { type: String, default: '5.
|
27
|
+
qdmVersion: { type: String, default: '5.5' },
|
25
28
|
_type: { type: String, default: 'QDM::PatientCharacteristicRace' },
|
26
29
|
|
27
30
|
});
|
@@ -33,4 +36,6 @@ class PatientCharacteristicRace extends mongoose.Document {
|
|
33
36
|
this._type = 'QDM::PatientCharacteristicRace';
|
34
37
|
}
|
35
38
|
}
|
39
|
+
|
36
40
|
module.exports.PatientCharacteristicRace = PatientCharacteristicRace;
|
41
|
+
|
@@ -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] = [
|
@@ -21,7 +24,7 @@ const PatientCharacteristicSexSchema = DataElementSchema({
|
|
21
24
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.55' },
|
22
25
|
qdmCategory: { type: String, default: 'patient_characteristic' },
|
23
26
|
qdmStatus: { type: String, default: 'gender' },
|
24
|
-
qdmVersion: { type: String, default: '5.
|
27
|
+
qdmVersion: { type: String, default: '5.5' },
|
25
28
|
_type: { type: String, default: 'QDM::PatientCharacteristicSex' },
|
26
29
|
|
27
30
|
});
|
@@ -33,4 +36,6 @@ class PatientCharacteristicSex extends mongoose.Document {
|
|
33
36
|
this._type = 'QDM::PatientCharacteristicSex';
|
34
37
|
}
|
35
38
|
}
|
39
|
+
|
36
40
|
module.exports.PatientCharacteristicSex = PatientCharacteristicSex;
|
41
|
+
|
@@ -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] = [
|
@@ -21,11 +24,12 @@ const PhysicalExamOrderSchema = DataElementSchema({
|
|
21
24
|
reason: Code,
|
22
25
|
anatomicalLocationSite: Code,
|
23
26
|
negationRationale: Code,
|
27
|
+
requester: AnyEntity,
|
24
28
|
qdmTitle: { type: String, default: 'Physical Exam, Order' },
|
25
29
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.61' },
|
26
30
|
qdmCategory: { type: String, default: 'physical_exam' },
|
27
31
|
qdmStatus: { type: String, default: 'order' },
|
28
|
-
qdmVersion: { type: String, default: '5.
|
32
|
+
qdmVersion: { type: String, default: '5.5' },
|
29
33
|
_type: { type: String, default: 'QDM::PhysicalExamOrder' },
|
30
34
|
|
31
35
|
});
|
@@ -37,4 +41,6 @@ class PhysicalExamOrder extends mongoose.Document {
|
|
37
41
|
this._type = 'QDM::PhysicalExamOrder';
|
38
42
|
}
|
39
43
|
}
|
44
|
+
|
40
45
|
module.exports.PhysicalExamOrder = PhysicalExamOrder;
|
46
|
+
|
@@ -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 PhysicalExamPerformedSchema = DataElementSchema({
|
20
23
|
authorDatetime: DateTime,
|
24
|
+
relevantDatetime: DateTime,
|
21
25
|
relevantPeriod: Interval,
|
22
26
|
reason: Code,
|
23
27
|
method: Code,
|
@@ -25,11 +29,12 @@ const PhysicalExamPerformedSchema = DataElementSchema({
|
|
25
29
|
anatomicalLocationSite: Code,
|
26
30
|
negationRationale: Code,
|
27
31
|
components: [ComponentSchema],
|
32
|
+
performer: AnyEntity,
|
28
33
|
qdmTitle: { type: String, default: 'Physical Exam, Performed' },
|
29
34
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.62' },
|
30
35
|
qdmCategory: { type: String, default: 'physical_exam' },
|
31
36
|
qdmStatus: { type: String, default: 'performed' },
|
32
|
-
qdmVersion: { type: String, default: '5.
|
37
|
+
qdmVersion: { type: String, default: '5.5' },
|
33
38
|
_type: { type: String, default: 'QDM::PhysicalExamPerformed' },
|
34
39
|
|
35
40
|
});
|
@@ -41,4 +46,6 @@ class PhysicalExamPerformed extends mongoose.Document {
|
|
41
46
|
this._type = 'QDM::PhysicalExamPerformed';
|
42
47
|
}
|
43
48
|
}
|
49
|
+
|
44
50
|
module.exports.PhysicalExamPerformed = PhysicalExamPerformed;
|
51
|
+
|
@@ -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] = [
|
@@ -21,11 +24,12 @@ const PhysicalExamRecommendedSchema = DataElementSchema({
|
|
21
24
|
reason: Code,
|
22
25
|
anatomicalLocationSite: Code,
|
23
26
|
negationRationale: Code,
|
27
|
+
requester: AnyEntity,
|
24
28
|
qdmTitle: { type: String, default: 'Physical Exam, Recommended' },
|
25
29
|
hqmfOid: { type: String, default: '22.16.840.1.113883.10.20.28.4.63' },
|
26
30
|
qdmCategory: { type: String, default: 'physical_exam' },
|
27
31
|
qdmStatus: { type: String, default: 'recommended' },
|
28
|
-
qdmVersion: { type: String, default: '5.
|
32
|
+
qdmVersion: { type: String, default: '5.5' },
|
29
33
|
_type: { type: String, default: 'QDM::PhysicalExamRecommended' },
|
30
34
|
|
31
35
|
});
|
@@ -37,4 +41,6 @@ class PhysicalExamRecommended extends mongoose.Document {
|
|
37
41
|
this._type = 'QDM::PhysicalExamRecommended';
|
38
42
|
}
|
39
43
|
}
|
44
|
+
|
40
45
|
module.exports.PhysicalExamRecommended = PhysicalExamRecommended;
|
46
|
+
|