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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7d3b400a5f8d0f657491a3f4b1f2f1354a07a313fd147f61b25b3c652a6247b
|
4
|
+
data.tar.gz: 12f63f0bc2393654960743a8f7e504c644016fbcf0304915b709630399766fc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73223da2add2d692e9c435546e1f44d35bb900fa47a32eb69c91455c54ef3e6353f3e987997e1aacffe195c2f90833989d967554c3e59e79861c21bb8b5ee696
|
7
|
+
data.tar.gz: efe123a74ad9817febf85dd7a24cfaafabba0d9218d7752a773d7a57287e15d4015df9caa04f02276cefa19198e4ef43ec520ec99df7eab4c1e821dd062f1d82
|
data/.eslintrc.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"extends": "airbnb-base",
|
3
3
|
"rules": {
|
4
4
|
"max-len": ["error", {"code": 200, "ignoreComments": true}],
|
5
|
-
"no-unused-vars": ["error", { "varsIgnorePattern": "
|
5
|
+
"no-unused-vars": ["error", { "varsIgnorePattern": "EntitySchema|Identifier|IdentifierSchema|DataElementSchema|ComponentSchema|FacilityLocationSchema|Code|Quantity|Interval|Integer|Array|Float|Time|Number|Date|Mixed|Any" }],
|
6
6
|
"camelcase": "off",
|
7
7
|
"comma-dangle": ["error", {
|
8
8
|
"arrays": "always-multiline",
|
data/README.md
CHANGED
@@ -17,7 +17,7 @@ See the top of the `lib/generate_models.rb` script for RubyGem requirements.
|
|
17
17
|
|
18
18
|
To use, execute the following:
|
19
19
|
```
|
20
|
-
ruby lib/generate_models.rb modelinfo/qdm-modelinfo-5.
|
20
|
+
ruby lib/generate_models.rb modelinfo/qdm-modelinfo-5.5.xml data/oids_qdm_5.5.json
|
21
21
|
```
|
22
22
|
|
23
23
|
The first parameter is the file path to the modelinfo file you wish to generate from. The second parameter is the OID map file. You must include both.
|
@@ -61,15 +61,18 @@ bundle exec rake
|
|
61
61
|
|
62
62
|
## Versioning
|
63
63
|
|
64
|
-
Starting with version **
|
64
|
+
Starting with version **2.0.0** released on 6/20/2019, cqm-models versioning has the format **X.Y.Z**, where:
|
65
65
|
|
66
|
-
* **
|
66
|
+
* **X** maps to a version of QDM. See the table below to see the existing mapping to QDM versions.
|
67
67
|
|
68
|
-
|
|
68
|
+
| X | QDM version |
|
69
69
|
| --- | --- |
|
70
|
-
|
|
70
|
+
| 2 | 5.4 |
|
71
|
+
| 3 | 5.5 |
|
71
72
|
|
72
|
-
* **
|
73
|
+
* **Y** indicates major changes (incompatible API changes)
|
74
|
+
|
75
|
+
* **Z** indicates minor changes (added functionality in a backwards-compatible manner) and patch changes (backwards-compatible bug fixes)
|
73
76
|
|
74
77
|
For the versions available, see [tags on this repository](https://github.com/projecttacoma/cqm-models/tags).
|
75
78
|
|
@@ -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,14 +21,15 @@ const [Number, String] = [
|
|
18
21
|
|
19
22
|
const AdverseEventSchema = DataElementSchema({
|
20
23
|
authorDatetime: DateTime,
|
21
|
-
|
24
|
+
relevantDatetime: DateTime,
|
22
25
|
severity: Code,
|
23
26
|
facilityLocation: FacilityLocationSchema,
|
24
27
|
type: Code,
|
28
|
+
recorder: AnyEntity,
|
25
29
|
qdmTitle: { type: String, default: 'Adverse Event' },
|
26
30
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.120' },
|
27
31
|
qdmCategory: { type: String, default: 'adverse_event' },
|
28
|
-
qdmVersion: { type: String, default: '5.
|
32
|
+
qdmVersion: { type: String, default: '5.5' },
|
29
33
|
_type: { type: String, default: 'QDM::AdverseEvent' },
|
30
34
|
|
31
35
|
});
|
@@ -37,4 +41,6 @@ class AdverseEvent extends mongoose.Document {
|
|
37
41
|
this._type = 'QDM::AdverseEvent';
|
38
42
|
}
|
39
43
|
}
|
44
|
+
|
40
45
|
module.exports.AdverseEvent = AdverseEvent;
|
46
|
+
|
@@ -1,5 +1,17 @@
|
|
1
|
-
module.exports.
|
2
|
-
module.exports.
|
1
|
+
module.exports.Identifier = require('./attributes/Identifier.js').Identifier;
|
2
|
+
module.exports.IdentifierSchema = require('./attributes/Identifier.js').IdentifierSchema;
|
3
|
+
module.exports.Entity = require('./attributes/Entity.js').Entity;
|
4
|
+
module.exports.EntitySchema = require('./attributes/Entity.js').EntitySchema;
|
5
|
+
module.exports.PatientEntity = require('./attributes/PatientEntity.js').PatientEntity;
|
6
|
+
module.exports.PatientEntitySchema = require('./attributes/PatientEntity.js').PatientEntitySchema;
|
7
|
+
module.exports.CarePartner = require('./attributes/CarePartner.js').CarePartner;
|
8
|
+
module.exports.CarePartnerSchema = require('./attributes/CarePartner.js').CarePartnerSchema;
|
9
|
+
module.exports.RelatedPerson = require('./RelatedPerson.js').RelatedPerson;
|
10
|
+
module.exports.RelatedPersonSchema = require('./RelatedPerson.js').RelatedPersonSchema;
|
11
|
+
module.exports.Practitioner = require('./attributes/Practitioner.js').Practitioner;
|
12
|
+
module.exports.PractitionerSchema = require('./attributes/Practitioner.js').PractitionerSchema;
|
13
|
+
module.exports.Organization = require('./attributes/Organization.js').Organization;
|
14
|
+
module.exports.OrganizationSchema = require('./attributes/Organization.js').OrganizationSchema;
|
3
15
|
module.exports.PhysicalExamOrder = require('./PhysicalExamOrder.js').PhysicalExamOrder;
|
4
16
|
module.exports.PhysicalExamOrderSchema = require('./PhysicalExamOrder.js').PhysicalExamOrderSchema;
|
5
17
|
module.exports.Participation = require('./Participation.js').Participation;
|
@@ -42,8 +54,10 @@ module.exports.FamilyHistory = require('./FamilyHistory.js').FamilyHistory;
|
|
42
54
|
module.exports.FamilyHistorySchema = require('./FamilyHistory.js').FamilyHistorySchema;
|
43
55
|
module.exports.Component = require('./attributes/Component.js').Component;
|
44
56
|
module.exports.ComponentSchema = require('./attributes/Component.js').ComponentSchema;
|
45
|
-
module.exports.
|
46
|
-
module.exports.
|
57
|
+
module.exports.DiagnosisComponent = require('./attributes/DiagnosisComponent.js').DiagnosisComponent;
|
58
|
+
module.exports.DiagnosisComponentSchema = require('./attributes/DiagnosisComponent.js').DiagnosisComponentSchema;
|
59
|
+
module.exports.ResultComponent = require('./attributes/ResultComponent.js').ResultComponent;
|
60
|
+
module.exports.ResultComponentSchema = require('./attributes/ResultComponent.js').ResultComponentSchema;
|
47
61
|
module.exports.FacilityLocation = require('./attributes/FacilityLocation.js').FacilityLocation;
|
48
62
|
module.exports.FacilityLocationSchema = require('./attributes/FacilityLocation.js').FacilityLocationSchema;
|
49
63
|
module.exports.MedicationActive = require('./MedicationActive.js').MedicationActive;
|
@@ -74,8 +88,6 @@ module.exports.ProcedurePerformed = require('./ProcedurePerformed.js').Procedure
|
|
74
88
|
module.exports.ProcedurePerformedSchema = require('./ProcedurePerformed.js').ProcedurePerformedSchema;
|
75
89
|
module.exports.AllergyIntolerance = require('./AllergyIntolerance.js').AllergyIntolerance;
|
76
90
|
module.exports.AllergyIntoleranceSchema = require('./AllergyIntolerance.js').AllergyIntoleranceSchema;
|
77
|
-
module.exports.ProviderCharacteristic = require('./ProviderCharacteristic.js').ProviderCharacteristic;
|
78
|
-
module.exports.ProviderCharacteristicSchema = require('./ProviderCharacteristic.js').ProviderCharacteristicSchema;
|
79
91
|
module.exports.PhysicalExamRecommended = require('./PhysicalExamRecommended.js').PhysicalExamRecommended;
|
80
92
|
module.exports.PhysicalExamRecommendedSchema = require('./PhysicalExamRecommended.js').PhysicalExamRecommendedSchema;
|
81
93
|
module.exports.PatientCharacteristicBirthdate = require('./PatientCharacteristicBirthdate.js').PatientCharacteristicBirthdate;
|
@@ -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 AllergyIntoleranceSchema = DataElementSchema({
|
|
21
24
|
prevalencePeriod: Interval,
|
22
25
|
type: Code,
|
23
26
|
severity: Code,
|
27
|
+
recorder: AnyEntity,
|
24
28
|
qdmTitle: { type: String, default: 'Allergy/Intolerance' },
|
25
29
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.119' },
|
26
30
|
qdmCategory: { type: String, default: 'allergy' },
|
27
31
|
qdmStatus: { type: String, default: 'intolerance' },
|
28
|
-
qdmVersion: { type: String, default: '5.
|
32
|
+
qdmVersion: { type: String, default: '5.5' },
|
29
33
|
_type: { type: String, default: 'QDM::AllergyIntolerance' },
|
30
34
|
|
31
35
|
});
|
@@ -37,4 +41,6 @@ class AllergyIntolerance extends mongoose.Document {
|
|
37
41
|
this._type = 'QDM::AllergyIntolerance';
|
38
42
|
}
|
39
43
|
}
|
44
|
+
|
40
45
|
module.exports.AllergyIntolerance = AllergyIntolerance;
|
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] = [
|
@@ -20,11 +23,12 @@ const AssessmentOrderSchema = DataElementSchema({
|
|
20
23
|
authorDatetime: DateTime,
|
21
24
|
negationRationale: Code,
|
22
25
|
reason: Code,
|
26
|
+
requester: AnyEntity,
|
23
27
|
qdmTitle: { type: String, default: 'Assessment, Order' },
|
24
28
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.131' },
|
25
29
|
qdmCategory: { type: String, default: 'assessment' },
|
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::AssessmentOrder' },
|
29
33
|
|
30
34
|
});
|
@@ -36,4 +40,6 @@ class AssessmentOrder extends mongoose.Document {
|
|
36
40
|
this._type = 'QDM::AssessmentOrder';
|
37
41
|
}
|
38
42
|
}
|
43
|
+
|
39
44
|
module.exports.AssessmentOrder = AssessmentOrder;
|
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,17 +21,20 @@ const [Number, String] = [
|
|
18
21
|
|
19
22
|
const AssessmentPerformedSchema = DataElementSchema({
|
20
23
|
authorDatetime: DateTime,
|
24
|
+
relevantDatetime: DateTime,
|
25
|
+
relevantPeriod: Interval,
|
21
26
|
negationRationale: Code,
|
22
27
|
reason: Code,
|
23
28
|
method: Code,
|
24
29
|
result: Any,
|
25
30
|
components: [ComponentSchema],
|
26
|
-
relatedTo: [
|
31
|
+
relatedTo: [String],
|
32
|
+
performer: AnyEntity,
|
27
33
|
qdmTitle: { type: String, default: 'Assessment, Performed' },
|
28
34
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.117' },
|
29
35
|
qdmCategory: { type: String, default: 'assessment' },
|
30
36
|
qdmStatus: { type: String, default: 'performed' },
|
31
|
-
qdmVersion: { type: String, default: '5.
|
37
|
+
qdmVersion: { type: String, default: '5.5' },
|
32
38
|
_type: { type: String, default: 'QDM::AssessmentPerformed' },
|
33
39
|
|
34
40
|
});
|
@@ -40,4 +46,6 @@ class AssessmentPerformed extends mongoose.Document {
|
|
40
46
|
this._type = 'QDM::AssessmentPerformed';
|
41
47
|
}
|
42
48
|
}
|
49
|
+
|
43
50
|
module.exports.AssessmentPerformed = AssessmentPerformed;
|
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] = [
|
@@ -20,11 +23,12 @@ const AssessmentRecommendedSchema = DataElementSchema({
|
|
20
23
|
authorDatetime: DateTime,
|
21
24
|
negationRationale: Code,
|
22
25
|
reason: Code,
|
26
|
+
requester: AnyEntity,
|
23
27
|
qdmTitle: { type: String, default: 'Assessment, Recommended' },
|
24
28
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.118' },
|
25
29
|
qdmCategory: { type: String, default: 'assessment' },
|
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::AssessmentRecommended' },
|
29
33
|
|
30
34
|
});
|
@@ -36,4 +40,6 @@ class AssessmentRecommended extends mongoose.Document {
|
|
36
40
|
this._type = 'QDM::AssessmentRecommended';
|
37
41
|
}
|
38
42
|
}
|
43
|
+
|
39
44
|
module.exports.AssessmentRecommended = AssessmentRecommended;
|
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,13 +20,15 @@ const [Number, String] = [
|
|
17
20
|
];
|
18
21
|
|
19
22
|
const CareGoalSchema = DataElementSchema({
|
23
|
+
statusDate: QDMDate,
|
20
24
|
relevantPeriod: Interval,
|
21
|
-
relatedTo: [
|
25
|
+
relatedTo: [String],
|
22
26
|
targetOutcome: Any,
|
27
|
+
performer: AnyEntity,
|
23
28
|
qdmTitle: { type: String, default: 'Care Goal' },
|
24
29
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.7' },
|
25
30
|
qdmCategory: { type: String, default: 'care_goal' },
|
26
|
-
qdmVersion: { type: String, default: '5.
|
31
|
+
qdmVersion: { type: String, default: '5.5' },
|
27
32
|
_type: { type: String, default: 'QDM::CareGoal' },
|
28
33
|
|
29
34
|
});
|
@@ -35,4 +40,6 @@ class CareGoal extends mongoose.Document {
|
|
35
40
|
this._type = 'QDM::CareGoal';
|
36
41
|
}
|
37
42
|
}
|
43
|
+
|
38
44
|
module.exports.CareGoal = CareGoal;
|
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,16 +23,17 @@ const CommunicationPerformedSchema = DataElementSchema({
|
|
20
23
|
authorDatetime: DateTime,
|
21
24
|
category: Code,
|
22
25
|
medium: Code,
|
23
|
-
sender:
|
24
|
-
recipient:
|
25
|
-
relatedTo: [
|
26
|
-
|
26
|
+
sender: AnyEntity,
|
27
|
+
recipient: AnyEntity,
|
28
|
+
relatedTo: [String],
|
29
|
+
sentDatetime: DateTime,
|
30
|
+
receivedDatetime: DateTime,
|
27
31
|
negationRationale: Code,
|
28
32
|
qdmTitle: { type: String, default: 'Communication, Performed' },
|
29
33
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.132' },
|
30
34
|
qdmCategory: { type: String, default: 'communication' },
|
31
35
|
qdmStatus: { type: String, default: 'performed' },
|
32
|
-
qdmVersion: { type: String, default: '5.
|
36
|
+
qdmVersion: { type: String, default: '5.5' },
|
33
37
|
_type: { type: String, default: 'QDM::CommunicationPerformed' },
|
34
38
|
|
35
39
|
});
|
@@ -41,4 +45,6 @@ class CommunicationPerformed extends mongoose.Document {
|
|
41
45
|
this._type = 'QDM::CommunicationPerformed';
|
42
46
|
}
|
43
47
|
}
|
48
|
+
|
44
49
|
module.exports.CommunicationPerformed = CommunicationPerformed;
|
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] = [
|
@@ -18,15 +21,17 @@ const [Number, String] = [
|
|
18
21
|
|
19
22
|
const DeviceAppliedSchema = DataElementSchema({
|
20
23
|
authorDatetime: DateTime,
|
24
|
+
relevantDatetime: DateTime,
|
21
25
|
relevantPeriod: Interval,
|
22
26
|
negationRationale: Code,
|
23
27
|
reason: Code,
|
24
28
|
anatomicalLocationSite: Code,
|
29
|
+
performer: AnyEntity,
|
25
30
|
qdmTitle: { type: String, default: 'Device, Applied' },
|
26
31
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.13' },
|
27
32
|
qdmCategory: { type: String, default: 'device' },
|
28
33
|
qdmStatus: { type: String, default: 'applied' },
|
29
|
-
qdmVersion: { type: String, default: '5.
|
34
|
+
qdmVersion: { type: String, default: '5.5' },
|
30
35
|
_type: { type: String, default: 'QDM::DeviceApplied' },
|
31
36
|
|
32
37
|
});
|
@@ -38,4 +43,6 @@ class DeviceApplied extends mongoose.Document {
|
|
38
43
|
this._type = 'QDM::DeviceApplied';
|
39
44
|
}
|
40
45
|
}
|
46
|
+
|
41
47
|
module.exports.DeviceApplied = DeviceApplied;
|
48
|
+
|
@@ -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 DeviceOrderSchema = DataElementSchema({
|
|
20
23
|
authorDatetime: DateTime,
|
21
24
|
negationRationale: Code,
|
22
25
|
reason: Code,
|
26
|
+
requester: AnyEntity,
|
23
27
|
qdmTitle: { type: String, default: 'Device, Order' },
|
24
28
|
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.15' },
|
25
29
|
qdmCategory: { type: String, default: 'device' },
|
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::DeviceOrder' },
|
29
33
|
|
30
34
|
});
|
@@ -36,4 +40,6 @@ class DeviceOrder extends mongoose.Document {
|
|
36
40
|
this._type = 'QDM::DeviceOrder';
|
37
41
|
}
|
38
42
|
}
|
43
|
+
|
39
44
|
module.exports.DeviceOrder = DeviceOrder;
|
45
|
+
|