cqm-models 3.1.0 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.eslintrc.json +6 -0
- data/.github/workflows/ci.yml +2 -1
- data/README.md +3 -2
- data/app/assets/javascripts/AdverseEvent.js +2 -2
- data/app/assets/javascripts/AllDataElements.js +2 -2
- data/app/assets/javascripts/AllergyIntolerance.js +2 -2
- data/app/assets/javascripts/AssessmentOrder.js +2 -2
- data/app/assets/javascripts/AssessmentPerformed.js +3 -2
- data/app/assets/javascripts/AssessmentRecommended.js +2 -2
- data/app/assets/javascripts/CareGoal.js +2 -2
- data/app/assets/javascripts/CommunicationPerformed.js +3 -3
- data/app/assets/javascripts/DeviceOrder.js +2 -2
- data/app/assets/javascripts/DeviceRecommended.js +2 -2
- data/app/assets/javascripts/Diagnosis.js +2 -2
- data/app/assets/javascripts/DiagnosticStudyOrder.js +2 -2
- data/app/assets/javascripts/DiagnosticStudyPerformed.js +4 -2
- data/app/assets/javascripts/DiagnosticStudyRecommended.js +2 -2
- data/app/assets/javascripts/EncounterOrder.js +2 -2
- data/app/assets/javascripts/EncounterPerformed.js +7 -3
- data/app/assets/javascripts/EncounterRecommended.js +2 -2
- data/app/assets/javascripts/FamilyHistory.js +2 -2
- data/app/assets/javascripts/ImmunizationAdministered.js +2 -2
- data/app/assets/javascripts/ImmunizationOrder.js +2 -2
- data/app/assets/javascripts/InterventionOrder.js +2 -2
- data/app/assets/javascripts/InterventionPerformed.js +3 -2
- data/app/assets/javascripts/InterventionRecommended.js +2 -2
- data/app/assets/javascripts/LaboratoryTestOrder.js +2 -2
- data/app/assets/javascripts/LaboratoryTestPerformed.js +4 -2
- data/app/assets/javascripts/LaboratoryTestRecommended.js +2 -2
- data/app/assets/javascripts/MedicationActive.js +2 -2
- data/app/assets/javascripts/MedicationAdministered.js +2 -2
- data/app/assets/javascripts/MedicationDischarge.js +3 -3
- data/app/assets/javascripts/MedicationDispensed.js +4 -3
- data/app/assets/javascripts/MedicationOrder.js +3 -2
- data/app/assets/javascripts/Participation.js +1 -2
- data/app/assets/javascripts/PatientCareExperience.js +2 -2
- data/app/assets/javascripts/PatientCharacteristic.js +1 -1
- data/app/assets/javascripts/PatientCharacteristicBirthdate.js +1 -1
- data/app/assets/javascripts/PatientCharacteristicClinicalTrialParticipant.js +1 -1
- data/app/assets/javascripts/PatientCharacteristicEthnicity.js +1 -1
- data/app/assets/javascripts/PatientCharacteristicExpired.js +1 -1
- data/app/assets/javascripts/PatientCharacteristicPayer.js +1 -1
- data/app/assets/javascripts/PatientCharacteristicRace.js +1 -1
- data/app/assets/javascripts/PatientCharacteristicSex.js +1 -1
- data/app/assets/javascripts/PhysicalExamOrder.js +2 -2
- data/app/assets/javascripts/PhysicalExamPerformed.js +3 -2
- data/app/assets/javascripts/PhysicalExamRecommended.js +2 -2
- data/app/assets/javascripts/ProcedureOrder.js +2 -2
- data/app/assets/javascripts/ProcedurePerformed.js +3 -3
- data/app/assets/javascripts/ProcedureRecommended.js +2 -2
- data/app/assets/javascripts/ProviderCareExperience.js +2 -2
- data/app/assets/javascripts/QDMPatient.js +26 -1
- data/app/assets/javascripts/RelatedPerson.js +1 -1
- data/app/assets/javascripts/SubstanceAdministered.js +2 -2
- data/app/assets/javascripts/SubstanceOrder.js +2 -2
- data/app/assets/javascripts/SubstanceRecommended.js +2 -2
- data/app/assets/javascripts/Symptom.js +2 -2
- data/app/assets/javascripts/attributes/Component.js +2 -2
- data/app/assets/javascripts/attributes/DiagnosisComponent.js +1 -1
- data/app/assets/javascripts/attributes/Entity.js +2 -2
- data/app/assets/javascripts/attributes/FacilityLocation.js +1 -1
- data/app/assets/javascripts/attributes/Identifier.js +1 -1
- data/app/assets/javascripts/attributes/Location.js +32 -0
- data/app/assets/javascripts/attributes/Organization.js +1 -1
- data/app/assets/javascripts/basetypes/AnyEntity.js +3 -0
- data/app/assets/javascripts/basetypes/DataElement.js +26 -1
- data/app/models/hqmfOid_to_datatype_map.json +1 -1
- data/app/models/models.rb +2 -2
- data/app/models/qdm/adverse_event.rb +2 -2
- data/app/models/qdm/allergy_intolerance.rb +2 -2
- data/app/models/qdm/assessment_order.rb +2 -2
- data/app/models/qdm/assessment_performed.rb +3 -2
- data/app/models/qdm/assessment_recommended.rb +2 -2
- data/app/models/qdm/attributes/component.rb +1 -1
- data/app/models/qdm/attributes/diagnosis_component.rb +1 -1
- data/app/models/qdm/attributes/entity.rb +1 -1
- data/app/models/qdm/attributes/facility_location.rb +1 -1
- data/app/models/qdm/attributes/identifier.rb +1 -1
- data/app/models/qdm/attributes/location.rb +9 -0
- data/app/models/qdm/attributes/organization.rb +1 -1
- data/app/models/qdm/basetypes/data_element.rb +5 -0
- data/app/models/qdm/care_goal.rb +2 -2
- data/app/models/qdm/communication_performed.rb +3 -3
- data/app/models/qdm/device_order.rb +2 -2
- data/app/models/qdm/device_recommended.rb +2 -2
- data/app/models/qdm/diagnosis.rb +2 -2
- data/app/models/qdm/diagnostic_study_order.rb +2 -2
- data/app/models/qdm/diagnostic_study_performed.rb +4 -2
- data/app/models/qdm/diagnostic_study_recommended.rb +2 -2
- data/app/models/qdm/encounter_order.rb +2 -2
- data/app/models/qdm/encounter_performed.rb +4 -3
- data/app/models/qdm/encounter_recommended.rb +2 -2
- data/app/models/qdm/family_history.rb +2 -2
- data/app/models/qdm/immunization_administered.rb +2 -2
- data/app/models/qdm/immunization_order.rb +2 -2
- data/app/models/qdm/intervention_order.rb +2 -2
- data/app/models/qdm/intervention_performed.rb +3 -2
- data/app/models/qdm/intervention_recommended.rb +2 -2
- data/app/models/qdm/laboratory_test_order.rb +2 -2
- data/app/models/qdm/laboratory_test_performed.rb +4 -2
- data/app/models/qdm/laboratory_test_recommended.rb +2 -2
- data/app/models/qdm/medication_active.rb +2 -2
- data/app/models/qdm/medication_administered.rb +2 -2
- data/app/models/qdm/medication_discharge.rb +3 -3
- 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 -2
- data/app/models/qdm/patient.rb +1 -1
- data/app/models/qdm/patient_care_experience.rb +2 -2
- 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 -2
- data/app/models/qdm/physical_exam_performed.rb +3 -2
- data/app/models/qdm/physical_exam_recommended.rb +2 -2
- data/app/models/qdm/procedure_order.rb +2 -2
- data/app/models/qdm/procedure_performed.rb +3 -3
- data/app/models/qdm/procedure_recommended.rb +2 -2
- data/app/models/qdm/provider_care_experience.rb +2 -2
- data/app/models/qdm/related_person.rb +1 -1
- data/app/models/qdm/substance_administered.rb +2 -2
- data/app/models/qdm/substance_order.rb +2 -2
- data/app/models/qdm/substance_recommended.rb +2 -2
- data/app/models/qdm/symptom.rb +2 -2
- data/bin/validate_generator.sh +1 -1
- data/cqm-models.gemspec +1 -1
- data/data/oids_qdm_5.6.json +335 -0
- data/dist/browser.js +2200 -1451
- data/dist/index.js +2200 -1451
- data/lib/generate_entities.rb +18 -10
- data/lib/generate_models.rb +27 -19
- data/lib/generate_patients.rb +1 -1
- data/modelinfo/qdm-modelinfo-5.6.xml +1102 -0
- data/package.json +5 -5
- data/templates/models_template.rb.erb +3 -1
- data/templates/mongoose_template.js.erb +9 -2
- data/templates/patient_template.js.erb +25 -0
- data/yarn.lock +699 -682
- metadata +6 -4
- data/app/assets/javascripts/DeviceApplied.js +0 -48
- data/app/models/qdm/device_applied.rb +0 -19
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cqm-models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- aholmes@mitre.org
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-
|
13
|
+
date: 2021-11-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundle-audit
|
@@ -179,7 +179,6 @@ files:
|
|
179
179
|
- app/assets/javascripts/AssessmentRecommended.js
|
180
180
|
- app/assets/javascripts/CareGoal.js
|
181
181
|
- app/assets/javascripts/CommunicationPerformed.js
|
182
|
-
- app/assets/javascripts/DeviceApplied.js
|
183
182
|
- app/assets/javascripts/DeviceOrder.js
|
184
183
|
- app/assets/javascripts/DeviceRecommended.js
|
185
184
|
- app/assets/javascripts/Diagnosis.js
|
@@ -233,6 +232,7 @@ files:
|
|
233
232
|
- app/assets/javascripts/attributes/Entity.js
|
234
233
|
- app/assets/javascripts/attributes/FacilityLocation.js
|
235
234
|
- app/assets/javascripts/attributes/Identifier.js
|
235
|
+
- app/assets/javascripts/attributes/Location.js
|
236
236
|
- app/assets/javascripts/attributes/Organization.js
|
237
237
|
- app/assets/javascripts/attributes/PatientEntity.js
|
238
238
|
- app/assets/javascripts/attributes/Practitioner.js
|
@@ -288,6 +288,7 @@ files:
|
|
288
288
|
- app/models/qdm/attributes/entity.rb
|
289
289
|
- app/models/qdm/attributes/facility_location.rb
|
290
290
|
- app/models/qdm/attributes/identifier.rb
|
291
|
+
- app/models/qdm/attributes/location.rb
|
291
292
|
- app/models/qdm/attributes/organization.rb
|
292
293
|
- app/models/qdm/attributes/patient_entity.rb
|
293
294
|
- app/models/qdm/attributes/practitioner.rb
|
@@ -300,7 +301,6 @@ files:
|
|
300
301
|
- app/models/qdm/basetypes/ratio.rb
|
301
302
|
- app/models/qdm/care_goal.rb
|
302
303
|
- app/models/qdm/communication_performed.rb
|
303
|
-
- app/models/qdm/device_applied.rb
|
304
304
|
- app/models/qdm/device_order.rb
|
305
305
|
- app/models/qdm/device_recommended.rb
|
306
306
|
- app/models/qdm/diagnosis.rb
|
@@ -357,6 +357,7 @@ files:
|
|
357
357
|
- cqm-models.gemspec
|
358
358
|
- data/oids_qdm_5.4.json
|
359
359
|
- data/oids_qdm_5.5.json
|
360
|
+
- data/oids_qdm_5.6.json
|
360
361
|
- data/oids_unversioned.json
|
361
362
|
- dist/browser.js
|
362
363
|
- dist/index.js
|
@@ -376,6 +377,7 @@ files:
|
|
376
377
|
- modelinfo/qdm-modelinfo-5.3.xml
|
377
378
|
- modelinfo/qdm-modelinfo-5.4.xml
|
378
379
|
- modelinfo/qdm-modelinfo-5.5.xml
|
380
|
+
- modelinfo/qdm-modelinfo-5.6.xml
|
379
381
|
- notice.md
|
380
382
|
- package.json
|
381
383
|
- templates/all_data_elements_template.js.erb
|
@@ -1,48 +0,0 @@
|
|
1
|
-
const mongoose = require('mongoose/browser');
|
2
|
-
|
3
|
-
const { IdentifierSchema } = require('./attributes/Identifier');
|
4
|
-
const { DataElementSchema } = require('./basetypes/DataElement');
|
5
|
-
const Code = require('./basetypes/Code');
|
6
|
-
const Interval = require('./basetypes/Interval');
|
7
|
-
const Quantity = require('./basetypes/Quantity');
|
8
|
-
const DateTime = require('./basetypes/DateTime');
|
9
|
-
const QDMDate = require('./basetypes/QDMDate');
|
10
|
-
const Any = require('./basetypes/Any');
|
11
|
-
const AnyEntity = require('./basetypes/AnyEntity');
|
12
|
-
const { ComponentSchema } = require('./attributes/Component');
|
13
|
-
const { FacilityLocationSchema } = require('./attributes/FacilityLocation');
|
14
|
-
const { EntitySchema } = require('./attributes/Entity');
|
15
|
-
|
16
|
-
|
17
|
-
const [Number, String] = [
|
18
|
-
mongoose.Schema.Types.Number,
|
19
|
-
mongoose.Schema.Types.String,
|
20
|
-
];
|
21
|
-
|
22
|
-
const DeviceAppliedSchema = DataElementSchema({
|
23
|
-
authorDatetime: DateTime,
|
24
|
-
relevantDatetime: DateTime,
|
25
|
-
relevantPeriod: Interval,
|
26
|
-
negationRationale: Code,
|
27
|
-
reason: Code,
|
28
|
-
anatomicalLocationSite: Code,
|
29
|
-
performer: AnyEntity,
|
30
|
-
qdmTitle: { type: String, default: 'Device, Applied' },
|
31
|
-
hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.13' },
|
32
|
-
qdmCategory: { type: String, default: 'device' },
|
33
|
-
qdmStatus: { type: String, default: 'applied' },
|
34
|
-
qdmVersion: { type: String, default: '5.5' },
|
35
|
-
_type: { type: String, default: 'QDM::DeviceApplied' },
|
36
|
-
|
37
|
-
});
|
38
|
-
|
39
|
-
module.exports.DeviceAppliedSchema = DeviceAppliedSchema;
|
40
|
-
class DeviceApplied extends mongoose.Document {
|
41
|
-
constructor(object) {
|
42
|
-
super(object, DeviceAppliedSchema);
|
43
|
-
this._type = 'QDM::DeviceApplied';
|
44
|
-
}
|
45
|
-
}
|
46
|
-
|
47
|
-
module.exports.DeviceApplied = DeviceApplied;
|
48
|
-
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module QDM
|
2
|
-
# app/models/qdm/device_applied.rb
|
3
|
-
class DeviceApplied < DataElement
|
4
|
-
include Mongoid::Document
|
5
|
-
embedded_in :patient
|
6
|
-
field :authorDatetime, type: DateTime
|
7
|
-
field :relevantDatetime, type: DateTime
|
8
|
-
field :relevantPeriod, type: QDM::Interval
|
9
|
-
field :negationRationale, type: QDM::Code
|
10
|
-
field :reason, type: QDM::Code
|
11
|
-
field :anatomicalLocationSite, type: QDM::Code
|
12
|
-
embeds_one :performer, class_name: 'QDM::Entity'
|
13
|
-
field :qdmTitle, type: String, default: 'Device, Applied'
|
14
|
-
field :hqmfOid, type: String, default: '2.16.840.1.113883.10.20.28.4.13'
|
15
|
-
field :qdmCategory, type: String, default: 'device'
|
16
|
-
field :qdmStatus, type: String, default: 'applied'
|
17
|
-
field :qdmVersion, type: String, default: '5.5'
|
18
|
-
end
|
19
|
-
end
|