cqm-models 3.1.2 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/.eslintrc.json +0 -7
  3. data/.github/workflows/ci.yml +2 -2
  4. data/README.md +3 -2
  5. data/app/assets/javascripts/AdverseEvent.js +2 -2
  6. data/app/assets/javascripts/AllDataElements.js +2 -2
  7. data/app/assets/javascripts/AllergyIntolerance.js +2 -2
  8. data/app/assets/javascripts/AssessmentOrder.js +2 -2
  9. data/app/assets/javascripts/AssessmentPerformed.js +3 -2
  10. data/app/assets/javascripts/AssessmentRecommended.js +2 -2
  11. data/app/assets/javascripts/CareGoal.js +2 -2
  12. data/app/assets/javascripts/CommunicationPerformed.js +3 -3
  13. data/app/assets/javascripts/DeviceOrder.js +2 -2
  14. data/app/assets/javascripts/DeviceRecommended.js +2 -2
  15. data/app/assets/javascripts/Diagnosis.js +2 -2
  16. data/app/assets/javascripts/DiagnosticStudyOrder.js +2 -2
  17. data/app/assets/javascripts/DiagnosticStudyPerformed.js +4 -2
  18. data/app/assets/javascripts/DiagnosticStudyRecommended.js +2 -2
  19. data/app/assets/javascripts/EncounterOrder.js +2 -2
  20. data/app/assets/javascripts/EncounterPerformed.js +7 -3
  21. data/app/assets/javascripts/EncounterRecommended.js +2 -2
  22. data/app/assets/javascripts/FamilyHistory.js +2 -2
  23. data/app/assets/javascripts/ImmunizationAdministered.js +2 -2
  24. data/app/assets/javascripts/ImmunizationOrder.js +2 -2
  25. data/app/assets/javascripts/InterventionOrder.js +2 -2
  26. data/app/assets/javascripts/InterventionPerformed.js +3 -2
  27. data/app/assets/javascripts/InterventionRecommended.js +2 -2
  28. data/app/assets/javascripts/LaboratoryTestOrder.js +2 -2
  29. data/app/assets/javascripts/LaboratoryTestPerformed.js +4 -2
  30. data/app/assets/javascripts/LaboratoryTestRecommended.js +2 -2
  31. data/app/assets/javascripts/MedicationActive.js +2 -2
  32. data/app/assets/javascripts/MedicationAdministered.js +2 -2
  33. data/app/assets/javascripts/MedicationDischarge.js +3 -3
  34. data/app/assets/javascripts/MedicationDispensed.js +4 -3
  35. data/app/assets/javascripts/MedicationOrder.js +3 -2
  36. data/app/assets/javascripts/Participation.js +1 -2
  37. data/app/assets/javascripts/PatientCareExperience.js +2 -2
  38. data/app/assets/javascripts/PatientCharacteristic.js +1 -1
  39. data/app/assets/javascripts/PatientCharacteristicBirthdate.js +1 -1
  40. data/app/assets/javascripts/PatientCharacteristicClinicalTrialParticipant.js +1 -1
  41. data/app/assets/javascripts/PatientCharacteristicEthnicity.js +1 -1
  42. data/app/assets/javascripts/PatientCharacteristicExpired.js +1 -1
  43. data/app/assets/javascripts/PatientCharacteristicPayer.js +1 -1
  44. data/app/assets/javascripts/PatientCharacteristicRace.js +1 -1
  45. data/app/assets/javascripts/PatientCharacteristicSex.js +1 -1
  46. data/app/assets/javascripts/PhysicalExamOrder.js +2 -2
  47. data/app/assets/javascripts/PhysicalExamPerformed.js +3 -2
  48. data/app/assets/javascripts/PhysicalExamRecommended.js +2 -2
  49. data/app/assets/javascripts/ProcedureOrder.js +2 -2
  50. data/app/assets/javascripts/ProcedurePerformed.js +3 -3
  51. data/app/assets/javascripts/ProcedureRecommended.js +2 -2
  52. data/app/assets/javascripts/ProviderCareExperience.js +2 -2
  53. data/app/assets/javascripts/QDMPatient.js +1 -1
  54. data/app/assets/javascripts/RelatedPerson.js +1 -1
  55. data/app/assets/javascripts/SubstanceAdministered.js +2 -2
  56. data/app/assets/javascripts/SubstanceOrder.js +2 -2
  57. data/app/assets/javascripts/SubstanceRecommended.js +2 -2
  58. data/app/assets/javascripts/Symptom.js +2 -2
  59. data/app/assets/javascripts/attributes/Component.js +2 -2
  60. data/app/assets/javascripts/attributes/DiagnosisComponent.js +1 -1
  61. data/app/assets/javascripts/attributes/Entity.js +2 -2
  62. data/app/assets/javascripts/attributes/FacilityLocation.js +1 -1
  63. data/app/assets/javascripts/attributes/Identifier.js +1 -1
  64. data/app/assets/javascripts/attributes/Location.js +32 -0
  65. data/app/assets/javascripts/attributes/Organization.js +1 -1
  66. data/app/assets/javascripts/basetypes/Any.js +1 -1
  67. data/app/assets/javascripts/basetypes/AnyEntity.js +3 -0
  68. data/app/models/cqm/individual_result.rb +2 -2
  69. data/app/models/cqm/measure.rb +1 -1
  70. data/app/models/cqm/patient.rb +1 -1
  71. data/app/models/hqmfOid_to_datatype_map.json +1 -1
  72. data/app/models/models.rb +2 -2
  73. data/app/models/qdm/adverse_event.rb +2 -2
  74. data/app/models/qdm/allergy_intolerance.rb +2 -2
  75. data/app/models/qdm/assessment_order.rb +2 -2
  76. data/app/models/qdm/assessment_performed.rb +3 -2
  77. data/app/models/qdm/assessment_recommended.rb +2 -2
  78. data/app/models/qdm/attributes/component.rb +1 -1
  79. data/app/models/qdm/attributes/diagnosis_component.rb +1 -1
  80. data/app/models/qdm/attributes/entity.rb +1 -1
  81. data/app/models/qdm/attributes/facility_location.rb +1 -1
  82. data/app/models/qdm/attributes/identifier.rb +1 -1
  83. data/app/models/qdm/attributes/location.rb +9 -0
  84. data/app/models/qdm/attributes/organization.rb +1 -1
  85. data/app/models/qdm/basetypes/data_element.rb +5 -0
  86. data/app/models/qdm/care_goal.rb +2 -2
  87. data/app/models/qdm/communication_performed.rb +3 -3
  88. data/app/models/qdm/device_order.rb +2 -2
  89. data/app/models/qdm/device_recommended.rb +2 -2
  90. data/app/models/qdm/diagnosis.rb +2 -2
  91. data/app/models/qdm/diagnostic_study_order.rb +2 -2
  92. data/app/models/qdm/diagnostic_study_performed.rb +4 -2
  93. data/app/models/qdm/diagnostic_study_recommended.rb +2 -2
  94. data/app/models/qdm/encounter_order.rb +2 -2
  95. data/app/models/qdm/encounter_performed.rb +4 -3
  96. data/app/models/qdm/encounter_recommended.rb +2 -2
  97. data/app/models/qdm/family_history.rb +2 -2
  98. data/app/models/qdm/immunization_administered.rb +2 -2
  99. data/app/models/qdm/immunization_order.rb +2 -2
  100. data/app/models/qdm/intervention_order.rb +2 -2
  101. data/app/models/qdm/intervention_performed.rb +3 -2
  102. data/app/models/qdm/intervention_recommended.rb +2 -2
  103. data/app/models/qdm/laboratory_test_order.rb +2 -2
  104. data/app/models/qdm/laboratory_test_performed.rb +4 -2
  105. data/app/models/qdm/laboratory_test_recommended.rb +2 -2
  106. data/app/models/qdm/medication_active.rb +2 -2
  107. data/app/models/qdm/medication_administered.rb +2 -2
  108. data/app/models/qdm/medication_discharge.rb +3 -3
  109. data/app/models/qdm/medication_dispensed.rb +4 -3
  110. data/app/models/qdm/medication_order.rb +3 -2
  111. data/app/models/qdm/participation.rb +1 -2
  112. data/app/models/qdm/patient.rb +1 -1
  113. data/app/models/qdm/patient_care_experience.rb +2 -2
  114. data/app/models/qdm/patient_characteristic.rb +1 -1
  115. data/app/models/qdm/patient_characteristic_birthdate.rb +1 -1
  116. data/app/models/qdm/patient_characteristic_clinical_trial_participant.rb +1 -1
  117. data/app/models/qdm/patient_characteristic_ethnicity.rb +1 -1
  118. data/app/models/qdm/patient_characteristic_expired.rb +1 -1
  119. data/app/models/qdm/patient_characteristic_payer.rb +1 -1
  120. data/app/models/qdm/patient_characteristic_race.rb +1 -1
  121. data/app/models/qdm/patient_characteristic_sex.rb +1 -1
  122. data/app/models/qdm/physical_exam_order.rb +2 -2
  123. data/app/models/qdm/physical_exam_performed.rb +3 -2
  124. data/app/models/qdm/physical_exam_recommended.rb +2 -2
  125. data/app/models/qdm/procedure_order.rb +2 -2
  126. data/app/models/qdm/procedure_performed.rb +3 -3
  127. data/app/models/qdm/procedure_recommended.rb +2 -2
  128. data/app/models/qdm/provider_care_experience.rb +2 -2
  129. data/app/models/qdm/related_person.rb +1 -1
  130. data/app/models/qdm/substance_administered.rb +2 -2
  131. data/app/models/qdm/substance_order.rb +2 -2
  132. data/app/models/qdm/substance_recommended.rb +2 -2
  133. data/app/models/qdm/symptom.rb +2 -2
  134. data/bin/validate_generator.sh +1 -1
  135. data/cqm-models.gemspec +1 -1
  136. data/data/oids_qdm_5.6.json +335 -0
  137. data/dist/browser.js +887 -1340
  138. data/dist/index.js +887 -1340
  139. data/lib/generate_entities.rb +18 -10
  140. data/lib/generate_models.rb +27 -19
  141. data/lib/generate_patients.rb +1 -1
  142. data/modelinfo/qdm-modelinfo-5.6.xml +1102 -0
  143. data/package.json +3 -3
  144. data/templates/models_template.rb.erb +3 -1
  145. data/templates/mongoose_template.js.erb +9 -2
  146. data/yarn.lock +999 -899
  147. metadata +11 -9
  148. data/app/assets/javascripts/DeviceApplied.js +0 -48
  149. data/app/models/qdm/device_applied.rb +0 -19
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cqm-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - aholmes@mitre.org
8
8
  - mokeefe@mitre.org
9
9
  - lades@mitre.org
10
- autorequire:
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2022-10-04 00:00:00.000000000 Z
13
+ date: 2021-07-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundle-audit
@@ -154,7 +154,7 @@ dependencies:
154
154
  version: '0'
155
155
  description: This library contains auto generated Mongo (Mongoid) models that correspond
156
156
  to the QDM (Quality Data Model) specification.
157
- email:
157
+ email:
158
158
  executables: []
159
159
  extensions: []
160
160
  extra_rdoc_files: []
@@ -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
@@ -393,7 +395,7 @@ homepage: https://github.com/projecttacoma/cqm-models
393
395
  licenses:
394
396
  - Apache-2.0
395
397
  metadata: {}
396
- post_install_message:
398
+ post_install_message:
397
399
  rdoc_options: []
398
400
  require_paths:
399
401
  - lib
@@ -408,8 +410,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
408
410
  - !ruby/object:Gem::Version
409
411
  version: '0'
410
412
  requirements: []
411
- rubygems_version: 3.1.6
412
- signing_key:
413
+ rubygems_version: 3.1.4
414
+ signing_key:
413
415
  specification_version: 4
414
416
  summary: Mongo models that correspond to the QDM specification.
415
417
  test_files: []
@@ -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