cqm-models 3.0.4 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +56 -0
- 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 +3 -3
- 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 +1 -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/Any.js +6 -0
- data/app/assets/javascripts/basetypes/AnyEntity.js +3 -0
- data/app/models/hqmfOid_to_datatype_map.json +2 -2
- 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 +3 -3
- 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 +2 -2
- data/cqm-models.gemspec +1 -1
- data/data/oids_qdm_5.5.json +2 -2
- data/data/oids_qdm_5.6.json +335 -0
- data/dist/browser.js +61015 -93235
- data/dist/index.js +61015 -93235
- data/lib/generate_entities.rb +18 -10
- data/lib/generate_models.rb +28 -20
- data/lib/generate_patients.rb +1 -1
- data/modelinfo/qdm-modelinfo-5.6.xml +1102 -0
- data/package.json +3 -3
- data/templates/models_template.rb.erb +3 -1
- data/templates/mongoose_template.js.erb +9 -2
- data/templates/patient_template.js.erb +24 -4
- data/yarn.lock +426 -230
- metadata +12 -10
- data/.travis.yml +0 -52
- data/app/assets/javascripts/DeviceApplied.js +0 -48
- 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:
|
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:
|
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: []
|
@@ -162,11 +162,11 @@ files:
|
|
162
162
|
- ".eslintignore"
|
163
163
|
- ".eslintrc.json"
|
164
164
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
165
|
+
- ".github/workflows/ci.yml"
|
165
166
|
- ".github/workflows/gitleaks_github_actions.yml"
|
166
167
|
- ".gitignore"
|
167
168
|
- ".rspec"
|
168
169
|
- ".rubocop.yml"
|
169
|
-
- ".travis.yml"
|
170
170
|
- Gemfile
|
171
171
|
- LICENSE.txt
|
172
172
|
- README.md
|
@@ -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.
|
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: []
|
data/.travis.yml
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
matrix:
|
2
|
-
include:
|
3
|
-
- language: ruby
|
4
|
-
cache: bundler
|
5
|
-
rvm:
|
6
|
-
- 2.4.6
|
7
|
-
services:
|
8
|
-
- mongodb
|
9
|
-
before_install:
|
10
|
-
- "find /home/travis/.rvm/rubies -wholename '*default/bundler-*.gemspec' -delete"
|
11
|
-
- rvm @global do gem uninstall bundler -a -x -I || true
|
12
|
-
- gem install bundler -v "2.1.4"
|
13
|
-
script:
|
14
|
-
- bundle exec rake
|
15
|
-
- bundle exec rubocop
|
16
|
-
- bundle exec bundle-audit update && bundle exec bundle-audit check
|
17
|
-
- language: ruby
|
18
|
-
cache: bundler
|
19
|
-
rvm:
|
20
|
-
- 2.3.8
|
21
|
-
services:
|
22
|
-
- mongodb
|
23
|
-
before_install:
|
24
|
-
- "find /home/travis/.rvm/rubies -wholename '*default/bundler-*.gemspec' -delete"
|
25
|
-
- rvm @global do gem uninstall bundler -a -x -I || true
|
26
|
-
- gem install bundler -v "2.1.4"
|
27
|
-
script:
|
28
|
-
- bundle exec rake
|
29
|
-
- bundle exec rubocop
|
30
|
-
- bundle exec bundle-audit update && bundle exec bundle-audit check
|
31
|
-
- language: node_js
|
32
|
-
before_install:
|
33
|
-
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.12.3
|
34
|
-
- export PATH=$HOME/.yarn/bin:$PATH
|
35
|
-
install:
|
36
|
-
- npm install -g codecov
|
37
|
-
- npm install -g istanbul
|
38
|
-
node_js:
|
39
|
-
- "node"
|
40
|
-
- "lts/*"
|
41
|
-
cache:
|
42
|
-
directories:
|
43
|
-
- "node_modules"
|
44
|
-
script:
|
45
|
-
- yarn install
|
46
|
-
- yarn run lint
|
47
|
-
- yarn run test
|
48
|
-
- yarn audit
|
49
|
-
- ./bin/validate_dist.sh
|
50
|
-
- ./bin/validate_browser.sh
|
51
|
-
- ./bin/validate_generator.sh
|
52
|
-
- codecov
|
@@ -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
|