cqm-models 1.0.3 → 1.1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.eslintrc.json +10 -2
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -4
- data/.rubocop.yml +3 -0
- data/.travis.yml +31 -1
- data/README.md +59 -2
- data/app/assets/javascripts/AdverseEvent.js +16 -7
- data/app/assets/javascripts/AllDataElements.js +6 -6
- data/app/assets/javascripts/AllergyIntolerance.js +16 -7
- data/app/assets/javascripts/AssessmentOrder.js +15 -6
- data/app/assets/javascripts/AssessmentPerformed.js +16 -7
- data/app/assets/javascripts/AssessmentRecommended.js +16 -7
- data/app/assets/javascripts/CareGoal.js +16 -7
- data/app/assets/javascripts/CommunicationPerformed.js +15 -6
- data/app/assets/javascripts/DeviceApplied.js +16 -7
- data/app/assets/javascripts/DeviceOrder.js +16 -7
- data/app/assets/javascripts/DeviceRecommended.js +16 -7
- data/app/assets/javascripts/Diagnosis.js +16 -7
- data/app/assets/javascripts/DiagnosticStudyOrder.js +16 -7
- data/app/assets/javascripts/DiagnosticStudyPerformed.js +16 -7
- data/app/assets/javascripts/DiagnosticStudyRecommended.js +16 -7
- data/app/assets/javascripts/EncounterOrder.js +16 -7
- data/app/assets/javascripts/EncounterPerformed.js +16 -7
- data/app/assets/javascripts/EncounterRecommended.js +16 -7
- data/app/assets/javascripts/FamilyHistory.js +16 -7
- data/app/assets/javascripts/Id.js +7 -3
- data/app/assets/javascripts/ImmunizationAdministered.js +16 -7
- data/app/assets/javascripts/ImmunizationOrder.js +16 -7
- data/app/assets/javascripts/IndividualResult.js +7 -2
- data/app/assets/javascripts/InterventionOrder.js +16 -7
- data/app/assets/javascripts/InterventionPerformed.js +16 -7
- data/app/assets/javascripts/InterventionRecommended.js +16 -7
- data/app/assets/javascripts/LaboratoryTestOrder.js +16 -7
- data/app/assets/javascripts/LaboratoryTestPerformed.js +16 -7
- data/app/assets/javascripts/LaboratoryTestRecommended.js +16 -7
- data/app/assets/javascripts/MedicationActive.js +16 -7
- data/app/assets/javascripts/MedicationAdministered.js +16 -7
- data/app/assets/javascripts/MedicationDischarge.js +16 -7
- data/app/assets/javascripts/MedicationDispensed.js +16 -7
- data/app/assets/javascripts/MedicationOrder.js +16 -7
- data/app/assets/javascripts/Participation.js +15 -6
- data/app/assets/javascripts/PatientCareExperience.js +16 -7
- data/app/assets/javascripts/PatientCharacteristic.js +16 -7
- data/app/assets/javascripts/PatientCharacteristicBirthdate.js +16 -7
- data/app/assets/javascripts/PatientCharacteristicClinicalTrialParticipant.js +16 -7
- data/app/assets/javascripts/PatientCharacteristicEthnicity.js +16 -7
- data/app/assets/javascripts/PatientCharacteristicExpired.js +16 -7
- data/app/assets/javascripts/PatientCharacteristicPayer.js +16 -7
- data/app/assets/javascripts/PatientCharacteristicRace.js +16 -7
- data/app/assets/javascripts/PatientCharacteristicSex.js +16 -7
- data/app/assets/javascripts/PhysicalExamOrder.js +16 -7
- data/app/assets/javascripts/PhysicalExamPerformed.js +16 -7
- data/app/assets/javascripts/PhysicalExamRecommended.js +16 -7
- data/app/assets/javascripts/ProcedureOrder.js +16 -7
- data/app/assets/javascripts/ProcedurePerformed.js +16 -7
- data/app/assets/javascripts/ProcedureRecommended.js +16 -7
- data/app/assets/javascripts/ProviderCareExperience.js +16 -7
- data/app/assets/javascripts/ProviderCharacteristic.js +16 -7
- data/app/assets/javascripts/QDMPatient.js +262 -0
- data/app/assets/javascripts/Result.js +7 -2
- data/app/assets/javascripts/ResultComponent.js +14 -6
- data/app/assets/javascripts/SubstanceAdministered.js +16 -7
- data/app/assets/javascripts/SubstanceOrder.js +16 -7
- data/app/assets/javascripts/SubstanceRecommended.js +16 -7
- data/app/assets/javascripts/Symptom.js +16 -7
- data/app/assets/javascripts/attributes/Component.js +30 -0
- data/app/assets/javascripts/attributes/FacilityLocation.js +30 -0
- data/app/assets/javascripts/basetypes/Any.js +1 -1
- data/app/assets/javascripts/basetypes/Code.js +1 -1
- data/app/assets/javascripts/basetypes/DataElement.js +2 -1
- data/app/assets/javascripts/basetypes/DateTime.js +5 -1
- data/app/assets/javascripts/basetypes/Interval.js +1 -1
- data/app/assets/javascripts/basetypes/Quantity.js +1 -1
- data/app/assets/javascripts/basetypes/Ratio.js +1 -1
- data/app/assets/javascripts/browser.js +3 -0
- data/app/assets/javascripts/cqm/AllCQMModels.js +24 -0
- data/app/assets/javascripts/cqm/CQLLibrary.js +32 -0
- data/app/assets/javascripts/cqm/CQLStatementDependency.js +28 -0
- data/app/assets/javascripts/cqm/Concept.js +17 -0
- data/app/assets/javascripts/cqm/Measure.js +108 -0
- data/app/assets/javascripts/{MeasurePackage.js → cqm/MeasurePackage.js} +9 -3
- data/app/assets/javascripts/cqm/Patient.js +38 -0
- data/app/assets/javascripts/cqm/PopulationSet.js +88 -0
- data/app/assets/javascripts/cqm/Provider.js +44 -0
- data/app/assets/javascripts/cqm/ValueSet.js +26 -0
- data/app/assets/javascripts/index.js +18 -8
- data/app/models/{qdm/tacoma → cqm}/concept.rb +4 -4
- data/app/models/cqm/cql_library.rb +22 -0
- data/app/models/cqm/cql_statement_dependency.rb +24 -0
- data/app/models/cqm/measure.rb +105 -0
- data/app/models/{qdm/tacoma → cqm}/measure_package.rb +2 -2
- data/app/models/cqm/patient.rb +20 -0
- data/app/models/cqm/population_set.rb +86 -0
- data/app/models/cqm/provider.rb +110 -0
- data/app/models/cqm/valueset.rb +15 -0
- data/app/models/hqmfOid_to_datatype_map.json +55 -0
- data/app/models/model_finder.rb +12 -0
- data/app/models/models.rb +18 -6
- 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 +1 -0
- data/app/models/qdm/assessment_performed.rb +2 -1
- data/app/models/qdm/assessment_recommended.rb +2 -1
- data/app/models/qdm/attributes/attribute.rb +63 -0
- data/app/models/qdm/{component.rb → attributes/component.rb} +1 -1
- data/app/models/qdm/{facility_location.rb → attributes/facility_location.rb} +1 -1
- data/app/models/qdm/basetypes/data_element.rb +21 -6
- data/app/models/qdm/basetypes/interval.rb +2 -1
- data/app/models/qdm/care_goal.rb +2 -1
- data/app/models/qdm/communication_performed.rb +1 -0
- data/app/models/qdm/device_applied.rb +2 -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 -2
- data/app/models/qdm/diagnostic_study_recommended.rb +2 -1
- data/app/models/qdm/encounter_order.rb +3 -2
- data/app/models/qdm/encounter_performed.rb +2 -1
- data/app/models/qdm/encounter_recommended.rb +3 -2
- data/app/models/qdm/family_history.rb +2 -1
- data/app/models/qdm/immunization_administered.rb +2 -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 +2 -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 +2 -1
- data/app/models/qdm/laboratory_test_recommended.rb +2 -1
- data/app/models/qdm/medication_active.rb +2 -1
- data/app/models/qdm/medication_administered.rb +2 -1
- data/app/models/qdm/medication_discharge.rb +2 -1
- data/app/models/qdm/medication_dispensed.rb +4 -3
- data/app/models/qdm/medication_order.rb +3 -2
- data/app/models/qdm/participation.rb +1 -0
- data/app/models/qdm/patient.rb +7 -4
- data/app/models/qdm/patient_care_experience.rb +2 -1
- data/app/models/qdm/patient_characteristic.rb +2 -1
- data/app/models/qdm/patient_characteristic_birthdate.rb +2 -1
- data/app/models/qdm/patient_characteristic_clinical_trial_participant.rb +2 -1
- data/app/models/qdm/patient_characteristic_ethnicity.rb +2 -1
- data/app/models/qdm/patient_characteristic_expired.rb +2 -1
- data/app/models/qdm/patient_characteristic_payer.rb +2 -1
- data/app/models/qdm/patient_characteristic_race.rb +2 -1
- data/app/models/qdm/patient_characteristic_sex.rb +2 -1
- data/app/models/qdm/physical_exam_order.rb +2 -1
- data/app/models/qdm/physical_exam_performed.rb +2 -1
- data/app/models/qdm/physical_exam_recommended.rb +2 -1
- data/app/models/qdm/procedure_order.rb +2 -1
- data/app/models/qdm/procedure_performed.rb +2 -1
- data/app/models/qdm/procedure_recommended.rb +2 -1
- data/app/models/qdm/provider_care_experience.rb +2 -1
- data/app/models/qdm/provider_characteristic.rb +2 -1
- data/app/models/qdm/substance_administered.rb +2 -1
- data/app/models/qdm/substance_order.rb +2 -1
- data/app/models/qdm/substance_recommended.rb +2 -1
- data/app/models/qdm/symptom.rb +2 -1
- data/bin/build_cql_execution.sh +8 -0
- data/bin/validate_browser.sh +17 -0
- data/bin/validate_generator.sh +12 -0
- data/cqm-models.gemspec +5 -2
- data/data/oids_qdm_5.4.json +321 -0
- data/data/{oids.json → oids_unversioned.json} +0 -0
- data/dist/browser.js +102937 -0
- data/dist/index.js +36637 -36540
- data/lib/generate_models.rb +89 -93
- data/lib/generate_patients.rb +125 -0
- data/lib/generate_types.rb +64 -0
- data/lib/generators/custom_mongo/model.rb.tt +20 -0
- data/lib/generators/custom_mongo/model_generator.rb +34 -0
- data/notice.md +9 -0
- data/package.json +12 -6
- data/templates/id_template.js.erb +8 -3
- data/templates/index_template.js.erb +18 -8
- data/templates/models_template.rb.erb +20 -4
- data/templates/mongoose_template.js.erb +23 -15
- data/templates/patient_extension.rb.erb +7 -4
- data/templates/patient_template.js.erb +88 -87
- data/yarn.lock +552 -347
- metadata +86 -19
- data/app/assets/javascripts/Component.js +0 -26
- data/app/assets/javascripts/Concept.js +0 -14
- data/app/assets/javascripts/FacilityLocation.js +0 -26
- data/app/assets/javascripts/Measure.js +0 -78
- data/app/assets/javascripts/Patient.js +0 -262
- data/app/assets/javascripts/ValueSet.js +0 -30
- data/app/models/qdm/tacoma/measure.rb +0 -174
- data/app/models/qdm/tacoma/valueset.rb +0 -68
@@ -1,13 +1,15 @@
|
|
1
|
-
const mongoose = require('mongoose');
|
1
|
+
const mongoose = require('mongoose/browser');
|
2
|
+
|
3
|
+
const { IdSchema } = require('./Id');
|
2
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
3
5
|
const Code = require('./basetypes/Code');
|
4
6
|
const Interval = require('./basetypes/Interval');
|
5
7
|
const Quantity = require('./basetypes/Quantity');
|
6
8
|
const DateTime = require('./basetypes/DateTime');
|
7
|
-
const { ComponentSchema } = require('./Component');
|
8
|
-
const { FacilityLocationSchema } = require('./FacilityLocation');
|
9
|
-
const { IdSchema } = require('./Id');
|
10
9
|
const Any = require('./basetypes/Any');
|
10
|
+
const { ComponentSchema } = require('./attributes/Component');
|
11
|
+
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
12
|
+
|
11
13
|
|
12
14
|
const [Number, String] = [
|
13
15
|
mongoose.Schema.Types.Number,
|
@@ -17,13 +19,20 @@ const [Number, String] = [
|
|
17
19
|
const FamilyHistorySchema = DataElementSchema({
|
18
20
|
authorDatetime: DateTime,
|
19
21
|
relationship: Code,
|
20
|
-
|
22
|
+
qdmTitle: { type: String, default: 'Family History' },
|
23
|
+
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.111' },
|
21
24
|
qrdaOid: { type: String, default: '2.16.840.1.113883.10.20.24.3.12' },
|
22
25
|
qdmCategory: { type: String, default: 'family_history' },
|
23
26
|
qdmVersion: { type: String, default: '5.4' },
|
24
|
-
_type: { type: String, default: 'FamilyHistory' },
|
27
|
+
_type: { type: String, default: 'QDM::FamilyHistory' },
|
25
28
|
|
26
29
|
});
|
27
30
|
|
28
31
|
module.exports.FamilyHistorySchema = FamilyHistorySchema;
|
29
|
-
|
32
|
+
class FamilyHistory extends mongoose.Document {
|
33
|
+
constructor(object) {
|
34
|
+
super(object, FamilyHistorySchema);
|
35
|
+
this._type = 'QDM::FamilyHistory';
|
36
|
+
}
|
37
|
+
}
|
38
|
+
module.exports.FamilyHistory = FamilyHistory;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const mongoose = require('mongoose');
|
1
|
+
const mongoose = require('mongoose/browser');
|
2
2
|
|
3
3
|
const [Number, String] = [
|
4
4
|
mongoose.Schema.Types.Number,
|
@@ -9,9 +9,13 @@ const IdSchema = mongoose.Schema({
|
|
9
9
|
namingSystem: String,
|
10
10
|
value: String,
|
11
11
|
qdmVersion: { type: String, default: '5.4' },
|
12
|
-
_type: { type: String, default: 'Id' },
|
13
12
|
|
14
13
|
}, { _id: false, id: false });
|
15
14
|
|
16
15
|
module.exports.IdSchema = IdSchema;
|
17
|
-
|
16
|
+
class Id extends mongoose.Document {
|
17
|
+
constructor(object) {
|
18
|
+
super(object, IdSchema);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
module.exports.Id = Id;
|
@@ -1,13 +1,15 @@
|
|
1
|
-
const mongoose = require('mongoose');
|
1
|
+
const mongoose = require('mongoose/browser');
|
2
|
+
|
3
|
+
const { IdSchema } = require('./Id');
|
2
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
3
5
|
const Code = require('./basetypes/Code');
|
4
6
|
const Interval = require('./basetypes/Interval');
|
5
7
|
const Quantity = require('./basetypes/Quantity');
|
6
8
|
const DateTime = require('./basetypes/DateTime');
|
7
|
-
const { ComponentSchema } = require('./Component');
|
8
|
-
const { FacilityLocationSchema } = require('./FacilityLocation');
|
9
|
-
const { IdSchema } = require('./Id');
|
10
9
|
const Any = require('./basetypes/Any');
|
10
|
+
const { ComponentSchema } = require('./attributes/Component');
|
11
|
+
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
12
|
+
|
11
13
|
|
12
14
|
const [Number, String] = [
|
13
15
|
mongoose.Schema.Types.Number,
|
@@ -20,14 +22,21 @@ const ImmunizationAdministeredSchema = DataElementSchema({
|
|
20
22
|
dosage: Quantity,
|
21
23
|
route: Code,
|
22
24
|
negationRationale: Code,
|
23
|
-
|
25
|
+
qdmTitle: { type: String, default: 'Immunization, Administered' },
|
26
|
+
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.112' },
|
24
27
|
qrdaOid: { type: String, default: '2.16.840.1.113883.10.20.24.3.140' },
|
25
28
|
qdmCategory: { type: String, default: 'immunization' },
|
26
29
|
qdmStatus: { type: String, default: 'administered' },
|
27
30
|
qdmVersion: { type: String, default: '5.4' },
|
28
|
-
_type: { type: String, default: 'ImmunizationAdministered' },
|
31
|
+
_type: { type: String, default: 'QDM::ImmunizationAdministered' },
|
29
32
|
|
30
33
|
});
|
31
34
|
|
32
35
|
module.exports.ImmunizationAdministeredSchema = ImmunizationAdministeredSchema;
|
33
|
-
|
36
|
+
class ImmunizationAdministered extends mongoose.Document {
|
37
|
+
constructor(object) {
|
38
|
+
super(object, ImmunizationAdministeredSchema);
|
39
|
+
this._type = 'QDM::ImmunizationAdministered';
|
40
|
+
}
|
41
|
+
}
|
42
|
+
module.exports.ImmunizationAdministered = ImmunizationAdministered;
|
@@ -1,13 +1,15 @@
|
|
1
|
-
const mongoose = require('mongoose');
|
1
|
+
const mongoose = require('mongoose/browser');
|
2
|
+
|
3
|
+
const { IdSchema } = require('./Id');
|
2
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
3
5
|
const Code = require('./basetypes/Code');
|
4
6
|
const Interval = require('./basetypes/Interval');
|
5
7
|
const Quantity = require('./basetypes/Quantity');
|
6
8
|
const DateTime = require('./basetypes/DateTime');
|
7
|
-
const { ComponentSchema } = require('./Component');
|
8
|
-
const { FacilityLocationSchema } = require('./FacilityLocation');
|
9
|
-
const { IdSchema } = require('./Id');
|
10
9
|
const Any = require('./basetypes/Any');
|
10
|
+
const { ComponentSchema } = require('./attributes/Component');
|
11
|
+
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
12
|
+
|
11
13
|
|
12
14
|
const [Number, String] = [
|
13
15
|
mongoose.Schema.Types.Number,
|
@@ -22,13 +24,20 @@ const ImmunizationOrderSchema = DataElementSchema({
|
|
22
24
|
reason: Code,
|
23
25
|
route: Code,
|
24
26
|
negationRationale: Code,
|
25
|
-
|
27
|
+
qdmTitle: { type: String, default: 'Immunization, Order' },
|
28
|
+
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.113' },
|
26
29
|
qdmCategory: { type: String, default: 'immunization' },
|
27
30
|
qdmStatus: { type: String, default: 'order' },
|
28
31
|
qdmVersion: { type: String, default: '5.4' },
|
29
|
-
_type: { type: String, default: 'ImmunizationOrder' },
|
32
|
+
_type: { type: String, default: 'QDM::ImmunizationOrder' },
|
30
33
|
|
31
34
|
});
|
32
35
|
|
33
36
|
module.exports.ImmunizationOrderSchema = ImmunizationOrderSchema;
|
34
|
-
|
37
|
+
class ImmunizationOrder extends mongoose.Document {
|
38
|
+
constructor(object) {
|
39
|
+
super(object, ImmunizationOrderSchema);
|
40
|
+
this._type = 'QDM::ImmunizationOrder';
|
41
|
+
}
|
42
|
+
}
|
43
|
+
module.exports.ImmunizationOrder = ImmunizationOrder;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const mongoose = require('mongoose');
|
1
|
+
const mongoose = require('mongoose/browser');
|
2
2
|
|
3
3
|
const [Number, String, Mixed, ObjectId] = [
|
4
4
|
mongoose.Schema.Types.Number,
|
@@ -54,4 +54,9 @@ const IndividualResultSchema = mongoose.Schema(
|
|
54
54
|
);
|
55
55
|
|
56
56
|
module.exports.IndividualResultSchema = IndividualResultSchema;
|
57
|
-
|
57
|
+
class IndividualResult extends mongoose.Document {
|
58
|
+
constructor(object) {
|
59
|
+
super(object, IndividualResultSchema);
|
60
|
+
}
|
61
|
+
}
|
62
|
+
module.exports.IndividualResult = IndividualResult;
|
@@ -1,13 +1,15 @@
|
|
1
|
-
const mongoose = require('mongoose');
|
1
|
+
const mongoose = require('mongoose/browser');
|
2
|
+
|
3
|
+
const { IdSchema } = require('./Id');
|
2
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
3
5
|
const Code = require('./basetypes/Code');
|
4
6
|
const Interval = require('./basetypes/Interval');
|
5
7
|
const Quantity = require('./basetypes/Quantity');
|
6
8
|
const DateTime = require('./basetypes/DateTime');
|
7
|
-
const { ComponentSchema } = require('./Component');
|
8
|
-
const { FacilityLocationSchema } = require('./FacilityLocation');
|
9
|
-
const { IdSchema } = require('./Id');
|
10
9
|
const Any = require('./basetypes/Any');
|
10
|
+
const { ComponentSchema } = require('./attributes/Component');
|
11
|
+
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
12
|
+
|
11
13
|
|
12
14
|
const [Number, String] = [
|
13
15
|
mongoose.Schema.Types.Number,
|
@@ -18,13 +20,20 @@ const InterventionOrderSchema = DataElementSchema({
|
|
18
20
|
authorDatetime: DateTime,
|
19
21
|
reason: Code,
|
20
22
|
negationRationale: Code,
|
21
|
-
|
23
|
+
qdmTitle: { type: String, default: 'Intervention, Order' },
|
24
|
+
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.35' },
|
22
25
|
qdmCategory: { type: String, default: 'intervention' },
|
23
26
|
qdmStatus: { type: String, default: 'order' },
|
24
27
|
qdmVersion: { type: String, default: '5.4' },
|
25
|
-
_type: { type: String, default: 'InterventionOrder' },
|
28
|
+
_type: { type: String, default: 'QDM::InterventionOrder' },
|
26
29
|
|
27
30
|
});
|
28
31
|
|
29
32
|
module.exports.InterventionOrderSchema = InterventionOrderSchema;
|
30
|
-
|
33
|
+
class InterventionOrder extends mongoose.Document {
|
34
|
+
constructor(object) {
|
35
|
+
super(object, InterventionOrderSchema);
|
36
|
+
this._type = 'QDM::InterventionOrder';
|
37
|
+
}
|
38
|
+
}
|
39
|
+
module.exports.InterventionOrder = InterventionOrder;
|
@@ -1,13 +1,15 @@
|
|
1
|
-
const mongoose = require('mongoose');
|
1
|
+
const mongoose = require('mongoose/browser');
|
2
|
+
|
3
|
+
const { IdSchema } = require('./Id');
|
2
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
3
5
|
const Code = require('./basetypes/Code');
|
4
6
|
const Interval = require('./basetypes/Interval');
|
5
7
|
const Quantity = require('./basetypes/Quantity');
|
6
8
|
const DateTime = require('./basetypes/DateTime');
|
7
|
-
const { ComponentSchema } = require('./Component');
|
8
|
-
const { FacilityLocationSchema } = require('./FacilityLocation');
|
9
|
-
const { IdSchema } = require('./Id');
|
10
9
|
const Any = require('./basetypes/Any');
|
10
|
+
const { ComponentSchema } = require('./attributes/Component');
|
11
|
+
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
12
|
+
|
11
13
|
|
12
14
|
const [Number, String] = [
|
13
15
|
mongoose.Schema.Types.Number,
|
@@ -21,13 +23,20 @@ const InterventionPerformedSchema = DataElementSchema({
|
|
21
23
|
result: Any,
|
22
24
|
status: Code,
|
23
25
|
negationRationale: Code,
|
24
|
-
|
26
|
+
qdmTitle: { type: String, default: 'Intervention, Performed' },
|
27
|
+
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.36' },
|
25
28
|
qdmCategory: { type: String, default: 'intervention' },
|
26
29
|
qdmStatus: { type: String, default: 'performed' },
|
27
30
|
qdmVersion: { type: String, default: '5.4' },
|
28
|
-
_type: { type: String, default: 'InterventionPerformed' },
|
31
|
+
_type: { type: String, default: 'QDM::InterventionPerformed' },
|
29
32
|
|
30
33
|
});
|
31
34
|
|
32
35
|
module.exports.InterventionPerformedSchema = InterventionPerformedSchema;
|
33
|
-
|
36
|
+
class InterventionPerformed extends mongoose.Document {
|
37
|
+
constructor(object) {
|
38
|
+
super(object, InterventionPerformedSchema);
|
39
|
+
this._type = 'QDM::InterventionPerformed';
|
40
|
+
}
|
41
|
+
}
|
42
|
+
module.exports.InterventionPerformed = InterventionPerformed;
|
@@ -1,13 +1,15 @@
|
|
1
|
-
const mongoose = require('mongoose');
|
1
|
+
const mongoose = require('mongoose/browser');
|
2
|
+
|
3
|
+
const { IdSchema } = require('./Id');
|
2
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
3
5
|
const Code = require('./basetypes/Code');
|
4
6
|
const Interval = require('./basetypes/Interval');
|
5
7
|
const Quantity = require('./basetypes/Quantity');
|
6
8
|
const DateTime = require('./basetypes/DateTime');
|
7
|
-
const { ComponentSchema } = require('./Component');
|
8
|
-
const { FacilityLocationSchema } = require('./FacilityLocation');
|
9
|
-
const { IdSchema } = require('./Id');
|
10
9
|
const Any = require('./basetypes/Any');
|
10
|
+
const { ComponentSchema } = require('./attributes/Component');
|
11
|
+
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
12
|
+
|
11
13
|
|
12
14
|
const [Number, String] = [
|
13
15
|
mongoose.Schema.Types.Number,
|
@@ -18,13 +20,20 @@ const InterventionRecommendedSchema = DataElementSchema({
|
|
18
20
|
authorDatetime: DateTime,
|
19
21
|
reason: Code,
|
20
22
|
negationRationale: Code,
|
21
|
-
|
23
|
+
qdmTitle: { type: String, default: 'Intervention, Recommended' },
|
24
|
+
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.37' },
|
22
25
|
qdmCategory: { type: String, default: 'intervention' },
|
23
26
|
qdmStatus: { type: String, default: 'recommended' },
|
24
27
|
qdmVersion: { type: String, default: '5.4' },
|
25
|
-
_type: { type: String, default: 'InterventionRecommended' },
|
28
|
+
_type: { type: String, default: 'QDM::InterventionRecommended' },
|
26
29
|
|
27
30
|
});
|
28
31
|
|
29
32
|
module.exports.InterventionRecommendedSchema = InterventionRecommendedSchema;
|
30
|
-
|
33
|
+
class InterventionRecommended extends mongoose.Document {
|
34
|
+
constructor(object) {
|
35
|
+
super(object, InterventionRecommendedSchema);
|
36
|
+
this._type = 'QDM::InterventionRecommended';
|
37
|
+
}
|
38
|
+
}
|
39
|
+
module.exports.InterventionRecommended = InterventionRecommended;
|
@@ -1,13 +1,15 @@
|
|
1
|
-
const mongoose = require('mongoose');
|
1
|
+
const mongoose = require('mongoose/browser');
|
2
|
+
|
3
|
+
const { IdSchema } = require('./Id');
|
2
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
3
5
|
const Code = require('./basetypes/Code');
|
4
6
|
const Interval = require('./basetypes/Interval');
|
5
7
|
const Quantity = require('./basetypes/Quantity');
|
6
8
|
const DateTime = require('./basetypes/DateTime');
|
7
|
-
const { ComponentSchema } = require('./Component');
|
8
|
-
const { FacilityLocationSchema } = require('./FacilityLocation');
|
9
|
-
const { IdSchema } = require('./Id');
|
10
9
|
const Any = require('./basetypes/Any');
|
10
|
+
const { ComponentSchema } = require('./attributes/Component');
|
11
|
+
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
12
|
+
|
11
13
|
|
12
14
|
const [Number, String] = [
|
13
15
|
mongoose.Schema.Types.Number,
|
@@ -18,13 +20,20 @@ const LaboratoryTestOrderSchema = DataElementSchema({
|
|
18
20
|
authorDatetime: DateTime,
|
19
21
|
reason: Code,
|
20
22
|
negationRationale: Code,
|
21
|
-
|
23
|
+
qdmTitle: { type: String, default: 'Laboratory Test, Order' },
|
24
|
+
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.41' },
|
22
25
|
qdmCategory: { type: String, default: 'laboratory_test' },
|
23
26
|
qdmStatus: { type: String, default: 'order' },
|
24
27
|
qdmVersion: { type: String, default: '5.4' },
|
25
|
-
_type: { type: String, default: 'LaboratoryTestOrder' },
|
28
|
+
_type: { type: String, default: 'QDM::LaboratoryTestOrder' },
|
26
29
|
|
27
30
|
});
|
28
31
|
|
29
32
|
module.exports.LaboratoryTestOrderSchema = LaboratoryTestOrderSchema;
|
30
|
-
|
33
|
+
class LaboratoryTestOrder extends mongoose.Document {
|
34
|
+
constructor(object) {
|
35
|
+
super(object, LaboratoryTestOrderSchema);
|
36
|
+
this._type = 'QDM::LaboratoryTestOrder';
|
37
|
+
}
|
38
|
+
}
|
39
|
+
module.exports.LaboratoryTestOrder = LaboratoryTestOrder;
|
@@ -1,13 +1,15 @@
|
|
1
|
-
const mongoose = require('mongoose');
|
1
|
+
const mongoose = require('mongoose/browser');
|
2
|
+
|
3
|
+
const { IdSchema } = require('./Id');
|
2
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
3
5
|
const Code = require('./basetypes/Code');
|
4
6
|
const Interval = require('./basetypes/Interval');
|
5
7
|
const Quantity = require('./basetypes/Quantity');
|
6
8
|
const DateTime = require('./basetypes/DateTime');
|
7
|
-
const { ComponentSchema } = require('./Component');
|
8
|
-
const { FacilityLocationSchema } = require('./FacilityLocation');
|
9
|
-
const { IdSchema } = require('./Id');
|
10
9
|
const Any = require('./basetypes/Any');
|
10
|
+
const { ComponentSchema } = require('./attributes/Component');
|
11
|
+
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
12
|
+
|
11
13
|
|
12
14
|
const [Number, String] = [
|
13
15
|
mongoose.Schema.Types.Number,
|
@@ -25,13 +27,20 @@ const LaboratoryTestPerformedSchema = DataElementSchema({
|
|
25
27
|
referenceRange: Interval,
|
26
28
|
negationRationale: Code,
|
27
29
|
components: [ComponentSchema],
|
28
|
-
|
30
|
+
qdmTitle: { type: String, default: 'Laboratory Test, Performed' },
|
31
|
+
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.42' },
|
29
32
|
qdmCategory: { type: String, default: 'laboratory_test' },
|
30
33
|
qdmStatus: { type: String, default: 'performed' },
|
31
34
|
qdmVersion: { type: String, default: '5.4' },
|
32
|
-
_type: { type: String, default: 'LaboratoryTestPerformed' },
|
35
|
+
_type: { type: String, default: 'QDM::LaboratoryTestPerformed' },
|
33
36
|
|
34
37
|
});
|
35
38
|
|
36
39
|
module.exports.LaboratoryTestPerformedSchema = LaboratoryTestPerformedSchema;
|
37
|
-
|
40
|
+
class LaboratoryTestPerformed extends mongoose.Document {
|
41
|
+
constructor(object) {
|
42
|
+
super(object, LaboratoryTestPerformedSchema);
|
43
|
+
this._type = 'QDM::LaboratoryTestPerformed';
|
44
|
+
}
|
45
|
+
}
|
46
|
+
module.exports.LaboratoryTestPerformed = LaboratoryTestPerformed;
|
@@ -1,13 +1,15 @@
|
|
1
|
-
const mongoose = require('mongoose');
|
1
|
+
const mongoose = require('mongoose/browser');
|
2
|
+
|
3
|
+
const { IdSchema } = require('./Id');
|
2
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
3
5
|
const Code = require('./basetypes/Code');
|
4
6
|
const Interval = require('./basetypes/Interval');
|
5
7
|
const Quantity = require('./basetypes/Quantity');
|
6
8
|
const DateTime = require('./basetypes/DateTime');
|
7
|
-
const { ComponentSchema } = require('./Component');
|
8
|
-
const { FacilityLocationSchema } = require('./FacilityLocation');
|
9
|
-
const { IdSchema } = require('./Id');
|
10
9
|
const Any = require('./basetypes/Any');
|
10
|
+
const { ComponentSchema } = require('./attributes/Component');
|
11
|
+
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
12
|
+
|
11
13
|
|
12
14
|
const [Number, String] = [
|
13
15
|
mongoose.Schema.Types.Number,
|
@@ -18,13 +20,20 @@ const LaboratoryTestRecommendedSchema = DataElementSchema({
|
|
18
20
|
authorDatetime: DateTime,
|
19
21
|
reason: Code,
|
20
22
|
negationRationale: Code,
|
21
|
-
|
23
|
+
qdmTitle: { type: String, default: 'Laboratory Test, Recommended' },
|
24
|
+
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.43' },
|
22
25
|
qdmCategory: { type: String, default: 'laboratory_test' },
|
23
26
|
qdmStatus: { type: String, default: 'recommended' },
|
24
27
|
qdmVersion: { type: String, default: '5.4' },
|
25
|
-
_type: { type: String, default: 'LaboratoryTestRecommended' },
|
28
|
+
_type: { type: String, default: 'QDM::LaboratoryTestRecommended' },
|
26
29
|
|
27
30
|
});
|
28
31
|
|
29
32
|
module.exports.LaboratoryTestRecommendedSchema = LaboratoryTestRecommendedSchema;
|
30
|
-
|
33
|
+
class LaboratoryTestRecommended extends mongoose.Document {
|
34
|
+
constructor(object) {
|
35
|
+
super(object, LaboratoryTestRecommendedSchema);
|
36
|
+
this._type = 'QDM::LaboratoryTestRecommended';
|
37
|
+
}
|
38
|
+
}
|
39
|
+
module.exports.LaboratoryTestRecommended = LaboratoryTestRecommended;
|
@@ -1,13 +1,15 @@
|
|
1
|
-
const mongoose = require('mongoose');
|
1
|
+
const mongoose = require('mongoose/browser');
|
2
|
+
|
3
|
+
const { IdSchema } = require('./Id');
|
2
4
|
const { DataElementSchema } = require('./basetypes/DataElement');
|
3
5
|
const Code = require('./basetypes/Code');
|
4
6
|
const Interval = require('./basetypes/Interval');
|
5
7
|
const Quantity = require('./basetypes/Quantity');
|
6
8
|
const DateTime = require('./basetypes/DateTime');
|
7
|
-
const { ComponentSchema } = require('./Component');
|
8
|
-
const { FacilityLocationSchema } = require('./FacilityLocation');
|
9
|
-
const { IdSchema } = require('./Id');
|
10
9
|
const Any = require('./basetypes/Any');
|
10
|
+
const { ComponentSchema } = require('./attributes/Component');
|
11
|
+
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
12
|
+
|
11
13
|
|
12
14
|
const [Number, String] = [
|
13
15
|
mongoose.Schema.Types.Number,
|
@@ -19,13 +21,20 @@ const MedicationActiveSchema = DataElementSchema({
|
|
19
21
|
dosage: Quantity,
|
20
22
|
frequency: Code,
|
21
23
|
route: Code,
|
22
|
-
|
24
|
+
qdmTitle: { type: String, default: 'Medication, Active' },
|
25
|
+
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.44' },
|
23
26
|
qdmCategory: { type: String, default: 'medication' },
|
24
27
|
qdmStatus: { type: String, default: 'active' },
|
25
28
|
qdmVersion: { type: String, default: '5.4' },
|
26
|
-
_type: { type: String, default: 'MedicationActive' },
|
29
|
+
_type: { type: String, default: 'QDM::MedicationActive' },
|
27
30
|
|
28
31
|
});
|
29
32
|
|
30
33
|
module.exports.MedicationActiveSchema = MedicationActiveSchema;
|
31
|
-
|
34
|
+
class MedicationActive extends mongoose.Document {
|
35
|
+
constructor(object) {
|
36
|
+
super(object, MedicationActiveSchema);
|
37
|
+
this._type = 'QDM::MedicationActive';
|
38
|
+
}
|
39
|
+
}
|
40
|
+
module.exports.MedicationActive = MedicationActive;
|