cqm-models 0.7.2 → 0.7.3
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/.travis.yml +1 -0
- data/app/assets/javascripts/AdverseEvent.js +1 -0
- data/app/assets/javascripts/AllergyIntolerance.js +1 -0
- data/app/assets/javascripts/AssessmentPerformed.js +2 -1
- data/app/assets/javascripts/AssessmentRecommended.js +1 -0
- data/app/assets/javascripts/CareGoal.js +2 -1
- data/app/assets/javascripts/CommunicationFromPatientToProvider.js +1 -0
- data/app/assets/javascripts/CommunicationFromProviderToPatient.js +1 -0
- data/app/assets/javascripts/CommunicationFromProviderToProvider.js +1 -0
- data/app/assets/javascripts/Component.js +2 -1
- data/app/assets/javascripts/DeviceApplied.js +1 -0
- data/app/assets/javascripts/DeviceOrder.js +1 -0
- data/app/assets/javascripts/DeviceRecommended.js +1 -0
- data/app/assets/javascripts/Diagnosis.js +1 -0
- data/app/assets/javascripts/DiagnosticStudyOrder.js +1 -0
- data/app/assets/javascripts/DiagnosticStudyPerformed.js +2 -1
- data/app/assets/javascripts/DiagnosticStudyRecommended.js +1 -0
- data/app/assets/javascripts/EncounterOrder.js +1 -0
- data/app/assets/javascripts/EncounterPerformed.js +1 -0
- data/app/assets/javascripts/EncounterRecommended.js +1 -0
- data/app/assets/javascripts/FacilityLocation.js +1 -0
- data/app/assets/javascripts/FamilyHistory.js +1 -0
- data/app/assets/javascripts/Id.js +1 -0
- data/app/assets/javascripts/ImmunizationAdministered.js +1 -0
- data/app/assets/javascripts/ImmunizationOrder.js +1 -0
- data/app/assets/javascripts/InterventionOrder.js +1 -0
- data/app/assets/javascripts/InterventionPerformed.js +2 -1
- data/app/assets/javascripts/InterventionRecommended.js +1 -0
- data/app/assets/javascripts/LaboratoryTestOrder.js +1 -0
- data/app/assets/javascripts/LaboratoryTestPerformed.js +2 -1
- data/app/assets/javascripts/LaboratoryTestRecommended.js +1 -0
- data/app/assets/javascripts/Measure.js +2 -0
- data/app/assets/javascripts/MedicationActive.js +1 -0
- data/app/assets/javascripts/MedicationAdministered.js +1 -0
- data/app/assets/javascripts/MedicationDischarge.js +1 -0
- data/app/assets/javascripts/MedicationDispensed.js +1 -0
- data/app/assets/javascripts/MedicationOrder.js +1 -0
- data/app/assets/javascripts/Participation.js +1 -0
- data/app/assets/javascripts/PatientCareExperience.js +1 -0
- data/app/assets/javascripts/PatientCharacteristic.js +1 -0
- data/app/assets/javascripts/PatientCharacteristicBirthdate.js +1 -0
- data/app/assets/javascripts/PatientCharacteristicClinicalTrialParticipant.js +1 -0
- data/app/assets/javascripts/PatientCharacteristicEthnicity.js +1 -0
- data/app/assets/javascripts/PatientCharacteristicExpired.js +1 -0
- data/app/assets/javascripts/PatientCharacteristicPayer.js +1 -0
- data/app/assets/javascripts/PatientCharacteristicRace.js +1 -0
- data/app/assets/javascripts/PatientCharacteristicSex.js +1 -0
- data/app/assets/javascripts/PhysicalExamOrder.js +1 -0
- data/app/assets/javascripts/PhysicalExamPerformed.js +2 -1
- data/app/assets/javascripts/PhysicalExamRecommended.js +1 -0
- data/app/assets/javascripts/ProcedureOrder.js +1 -0
- data/app/assets/javascripts/ProcedurePerformed.js +2 -1
- data/app/assets/javascripts/ProcedureRecommended.js +1 -0
- data/app/assets/javascripts/ProviderCareExperience.js +1 -0
- data/app/assets/javascripts/ProviderCharacteristic.js +1 -0
- data/app/assets/javascripts/Ratio.js +1 -0
- data/app/assets/javascripts/ResultComponent.js +1 -0
- data/app/assets/javascripts/SubstanceAdministered.js +1 -0
- data/app/assets/javascripts/SubstanceOrder.js +1 -0
- data/app/assets/javascripts/SubstanceRecommended.js +1 -0
- data/app/assets/javascripts/Symptom.js +1 -0
- data/app/assets/javascripts/basetypes/Any.js +50 -0
- data/app/models/qdm/tacoma/measure.rb +2 -0
- data/cqm-models.gemspec +2 -2
- data/dist/index.js +687 -574
- data/lib/generate_models.rb +2 -2
- data/package.json +2 -2
- data/templates/mongoose_template.js.erb +1 -0
- metadata +5 -4
data/lib/generate_models.rb
CHANGED
@@ -37,7 +37,7 @@ TYPE_LOOKUP_JS = {
|
|
37
37
|
'System.Integer': 'Number',
|
38
38
|
'System.Quantity': 'Quantity',
|
39
39
|
'System.Code': 'Code',
|
40
|
-
'System.Any': '
|
40
|
+
'System.Any': 'Any',
|
41
41
|
'interval<System.DateTime>': 'Interval',
|
42
42
|
'interval<System.Quantity>': 'Interval',
|
43
43
|
'list<QDM.Component>': '[]',
|
@@ -247,7 +247,7 @@ files = Dir.glob(js_models_path + '*.js').each do |file_name|
|
|
247
247
|
contents = File.read(file_name)
|
248
248
|
|
249
249
|
# Replace 'Any' type placeholder (these attributes could point to anything).
|
250
|
-
contents.gsub!(/: Any/, ':
|
250
|
+
contents.gsub!(/: Any/, ': Any')
|
251
251
|
|
252
252
|
# Add QDM version
|
253
253
|
contents.gsub!(/qdmVersion: String/, "qdmVersion: { type: String, default: '#{qdm_version}' }")
|
data/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "cqm-models",
|
3
|
-
"version": "0.7.
|
4
|
-
"description": "",
|
3
|
+
"version": "0.7.3",
|
4
|
+
"description": "This library contains auto generated Mongo (Mongoose.js) models that correspond to the QDM (Quality Data Model) specification.",
|
5
5
|
"main": "app/assets/javascripts/index.js",
|
6
6
|
"browser": {
|
7
7
|
"index.js": "dist/index.js"
|
@@ -4,6 +4,7 @@ const Code = require('./basetypes/Code');
|
|
4
4
|
const Interval = require('./basetypes/Interval');
|
5
5
|
const Quantity = require('./basetypes/Quantity');
|
6
6
|
const DateTime = require('./basetypes/DateTime');
|
7
|
+
const Any = require('./basetypes/Any');
|
7
8
|
|
8
9
|
const [Number, String] = [
|
9
10
|
mongoose.Schema.Types.Number,
|
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: 0.7.
|
4
|
+
version: 0.7.3
|
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: 2018-04-
|
13
|
+
date: 2018-04-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -110,8 +110,8 @@ dependencies:
|
|
110
110
|
- - "~>"
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: 0.54.0
|
113
|
-
description: This library contains auto generated
|
114
|
-
|
113
|
+
description: This library contains auto generated Mongo (Mongoid) models that correspond
|
114
|
+
to the QDM (Quality Data Model) specification.
|
115
115
|
email:
|
116
116
|
executables: []
|
117
117
|
extensions: []
|
@@ -194,6 +194,7 @@ files:
|
|
194
194
|
- app/assets/javascripts/SubstanceRecommended.js
|
195
195
|
- app/assets/javascripts/Symptom.js
|
196
196
|
- app/assets/javascripts/ValueSet.js
|
197
|
+
- app/assets/javascripts/basetypes/Any.js
|
197
198
|
- app/assets/javascripts/basetypes/Code.js
|
198
199
|
- app/assets/javascripts/basetypes/DataElement.js
|
199
200
|
- app/assets/javascripts/basetypes/DateTime.js
|