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.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/.eslintrc.json +1 -1
  3. data/.travis.yml +1 -0
  4. data/app/assets/javascripts/AdverseEvent.js +1 -0
  5. data/app/assets/javascripts/AllergyIntolerance.js +1 -0
  6. data/app/assets/javascripts/AssessmentPerformed.js +2 -1
  7. data/app/assets/javascripts/AssessmentRecommended.js +1 -0
  8. data/app/assets/javascripts/CareGoal.js +2 -1
  9. data/app/assets/javascripts/CommunicationFromPatientToProvider.js +1 -0
  10. data/app/assets/javascripts/CommunicationFromProviderToPatient.js +1 -0
  11. data/app/assets/javascripts/CommunicationFromProviderToProvider.js +1 -0
  12. data/app/assets/javascripts/Component.js +2 -1
  13. data/app/assets/javascripts/DeviceApplied.js +1 -0
  14. data/app/assets/javascripts/DeviceOrder.js +1 -0
  15. data/app/assets/javascripts/DeviceRecommended.js +1 -0
  16. data/app/assets/javascripts/Diagnosis.js +1 -0
  17. data/app/assets/javascripts/DiagnosticStudyOrder.js +1 -0
  18. data/app/assets/javascripts/DiagnosticStudyPerformed.js +2 -1
  19. data/app/assets/javascripts/DiagnosticStudyRecommended.js +1 -0
  20. data/app/assets/javascripts/EncounterOrder.js +1 -0
  21. data/app/assets/javascripts/EncounterPerformed.js +1 -0
  22. data/app/assets/javascripts/EncounterRecommended.js +1 -0
  23. data/app/assets/javascripts/FacilityLocation.js +1 -0
  24. data/app/assets/javascripts/FamilyHistory.js +1 -0
  25. data/app/assets/javascripts/Id.js +1 -0
  26. data/app/assets/javascripts/ImmunizationAdministered.js +1 -0
  27. data/app/assets/javascripts/ImmunizationOrder.js +1 -0
  28. data/app/assets/javascripts/InterventionOrder.js +1 -0
  29. data/app/assets/javascripts/InterventionPerformed.js +2 -1
  30. data/app/assets/javascripts/InterventionRecommended.js +1 -0
  31. data/app/assets/javascripts/LaboratoryTestOrder.js +1 -0
  32. data/app/assets/javascripts/LaboratoryTestPerformed.js +2 -1
  33. data/app/assets/javascripts/LaboratoryTestRecommended.js +1 -0
  34. data/app/assets/javascripts/Measure.js +2 -0
  35. data/app/assets/javascripts/MedicationActive.js +1 -0
  36. data/app/assets/javascripts/MedicationAdministered.js +1 -0
  37. data/app/assets/javascripts/MedicationDischarge.js +1 -0
  38. data/app/assets/javascripts/MedicationDispensed.js +1 -0
  39. data/app/assets/javascripts/MedicationOrder.js +1 -0
  40. data/app/assets/javascripts/Participation.js +1 -0
  41. data/app/assets/javascripts/PatientCareExperience.js +1 -0
  42. data/app/assets/javascripts/PatientCharacteristic.js +1 -0
  43. data/app/assets/javascripts/PatientCharacteristicBirthdate.js +1 -0
  44. data/app/assets/javascripts/PatientCharacteristicClinicalTrialParticipant.js +1 -0
  45. data/app/assets/javascripts/PatientCharacteristicEthnicity.js +1 -0
  46. data/app/assets/javascripts/PatientCharacteristicExpired.js +1 -0
  47. data/app/assets/javascripts/PatientCharacteristicPayer.js +1 -0
  48. data/app/assets/javascripts/PatientCharacteristicRace.js +1 -0
  49. data/app/assets/javascripts/PatientCharacteristicSex.js +1 -0
  50. data/app/assets/javascripts/PhysicalExamOrder.js +1 -0
  51. data/app/assets/javascripts/PhysicalExamPerformed.js +2 -1
  52. data/app/assets/javascripts/PhysicalExamRecommended.js +1 -0
  53. data/app/assets/javascripts/ProcedureOrder.js +1 -0
  54. data/app/assets/javascripts/ProcedurePerformed.js +2 -1
  55. data/app/assets/javascripts/ProcedureRecommended.js +1 -0
  56. data/app/assets/javascripts/ProviderCareExperience.js +1 -0
  57. data/app/assets/javascripts/ProviderCharacteristic.js +1 -0
  58. data/app/assets/javascripts/Ratio.js +1 -0
  59. data/app/assets/javascripts/ResultComponent.js +1 -0
  60. data/app/assets/javascripts/SubstanceAdministered.js +1 -0
  61. data/app/assets/javascripts/SubstanceOrder.js +1 -0
  62. data/app/assets/javascripts/SubstanceRecommended.js +1 -0
  63. data/app/assets/javascripts/Symptom.js +1 -0
  64. data/app/assets/javascripts/basetypes/Any.js +50 -0
  65. data/app/models/qdm/tacoma/measure.rb +2 -0
  66. data/cqm-models.gemspec +2 -2
  67. data/dist/index.js +687 -574
  68. data/lib/generate_models.rb +2 -2
  69. data/package.json +2 -2
  70. data/templates/mongoose_template.js.erb +1 -0
  71. metadata +5 -4
@@ -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.1",
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.2
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-20 00:00:00.000000000 Z
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 Mongoid (Ruby) and Mongoose (JavaScript)
114
- models that correspond to the QDM (Quality Data Model) specification.
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