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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98d1bd8630f286f1af0217ea291b3a175bdd0052
4
- data.tar.gz: 4b404ae8ca67e7481f03897fcd7df8a824ea29d4
3
+ metadata.gz: 5733809db5163fce86600f334ec039a4e23e1143
4
+ data.tar.gz: 04aee8cbbffe9662f5975055d7f099c619a2a1c9
5
5
  SHA512:
6
- metadata.gz: 1564d61cf59e565814cf004c9c4337333fcb2197a31838f9f36f39d9f3af192dd9915a94619792d5b723224c701dd13280eb128d4751d103adab615739ab1b28
7
- data.tar.gz: c16fce91079f7da3eccc8dff4dc26b5733b23d77785e0836840b0f0e46b8386e061a0ee8ff8db374c21dbe25f4de7c47eb4a1546eff8feb1c51aa151041e410e
6
+ metadata.gz: 03b1d7f5efe070d2003d4e8d207173a533877d2e2e4caea6af7e1f764fcaa0b3cdcdd1f6617a907aa1e2800de70e1229cd32d6654b18af8c105f1200f043b585
7
+ data.tar.gz: dd875d71609c1202a3344e534fd72e18518547825aefa53014f0bd63461912099e916a46bddbdb460d899fd98ba26fbcb44d85308e37301c6e6a4b51b032bb16
data/.eslintrc.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "extends": "airbnb-base",
3
3
  "rules": {
4
4
  "max-len": ["error", {"code": 200, "ignoreComments": true}],
5
- "no-unused-vars": ["error", { "varsIgnorePattern": "Code|Quantity|Interval|Integer|Array|Float|Time|Number|Date|Mixed" }],
5
+ "no-unused-vars": ["error", { "varsIgnorePattern": "Code|Quantity|Interval|Integer|Array|Float|Time|Number|Date|Mixed|Any" }],
6
6
  "camelcase": "off",
7
7
  "comma-dangle": ["error", {
8
8
  "arrays": "always-multiline",
data/.travis.yml CHANGED
@@ -18,4 +18,5 @@ matrix:
18
18
  - "node_modules"
19
19
  script:
20
20
  - npm run lint
21
+ - yarn run test
21
22
  - ./bin/validate_dist.sh
@@ -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,
@@ -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,
@@ -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,
@@ -15,7 +16,7 @@ const AssessmentPerformedSchema = DataElementSchema({
15
16
  negationRationale: Code,
16
17
  reason: Code,
17
18
  method: Code,
18
- result: {},
19
+ result: Any,
19
20
  components: [],
20
21
  relatedTo: [String],
21
22
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.117' },
@@ -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,
@@ -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,
@@ -13,7 +14,7 @@ const [Number, String] = [
13
14
  const CareGoalSchema = DataElementSchema({
14
15
  relevantPeriod: Interval,
15
16
  relatedTo: [String],
16
- targetOutcome: {},
17
+ targetOutcome: Any,
17
18
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.7' },
18
19
  category: { type: String, default: 'care_goal' },
19
20
  qdmVersion: { type: String, default: '5.3' },
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -12,7 +13,7 @@ const [Number, String] = [
12
13
 
13
14
  const ComponentSchema = DataElementSchema({
14
15
  code: Code,
15
- result: {},
16
+ result: Any,
16
17
  qdmVersion: { type: String, default: '5.3' },
17
18
  _type: { type: String, default: 'Component' },
18
19
 
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -14,7 +15,7 @@ const DiagnosticStudyPerformedSchema = DataElementSchema({
14
15
  authorDatetime: DateTime,
15
16
  relevantPeriod: Interval,
16
17
  reason: Code,
17
- result: {},
18
+ result: Any,
18
19
  resultDatetime: DateTime,
19
20
  status: Code,
20
21
  method: Code,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -14,7 +15,7 @@ const InterventionPerformedSchema = DataElementSchema({
14
15
  authorDatetime: DateTime,
15
16
  relevantPeriod: Interval,
16
17
  reason: Code,
17
- result: {},
18
+ result: Any,
18
19
  status: Code,
19
20
  negationRationale: Code,
20
21
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.3.36' },
@@ -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,
@@ -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,
@@ -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,
@@ -15,7 +16,7 @@ const LaboratoryTestPerformedSchema = DataElementSchema({
15
16
  relevantPeriod: Interval,
16
17
  status: Code,
17
18
  method: Code,
18
- result: {},
19
+ result: Any,
19
20
  resultDatetime: DateTime,
20
21
  reason: Code,
21
22
  referenceRange: Interval,
@@ -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,
@@ -52,6 +52,8 @@ const MeasureSchema = mongoose.Schema(
52
52
  populations: [Mixed],
53
53
  populations_cql_map: Mixed,
54
54
  observations: [Mixed],
55
+ // TODO: Depending on how we restructure the Measure/Population object, may be deleted in the future
56
+ population_ids: Mixed,
55
57
 
56
58
  value_sets: [{ type: ObjectId, ref: 'ValueSet' }],
57
59
 
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -15,7 +16,7 @@ const PhysicalExamPerformedSchema = DataElementSchema({
15
16
  relevantPeriod: Interval,
16
17
  reason: Code,
17
18
  method: Code,
18
- result: {},
19
+ result: Any,
19
20
  anatomicalLocationSite: Code,
20
21
  negationRationale: Code,
21
22
  components: [],
@@ -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,
@@ -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,
@@ -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,
@@ -15,7 +16,7 @@ const ProcedurePerformedSchema = DataElementSchema({
15
16
  relevantPeriod: Interval,
16
17
  reason: Code,
17
18
  method: Code,
18
- result: {},
19
+ result: Any,
19
20
  status: Code,
20
21
  anatomicalApproachSite: Code,
21
22
  anatomicalLocationSite: Code,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,