fhir_dstu2_models 1.1.1 → 1.2.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/.codeclimate.yml +1 -1
  3. data/.github/workflows/ruby.yml +2 -1
  4. data/.rubocop.yml +7 -1
  5. data/.rubocop_todo.yml +56 -161
  6. data/.ruby-version +1 -0
  7. data/.simplecov +1 -5
  8. data/.tool-versions +1 -0
  9. data/Gemfile.lock +37 -35
  10. data/Guardfile +1 -1
  11. data/fhir_dstu2_models.gemspec +2 -1
  12. data/lib/fhir_dstu2_models/bootstrap/definitions.rb +18 -4
  13. data/lib/fhir_dstu2_models/bootstrap/field.rb +2 -2
  14. data/lib/fhir_dstu2_models/bootstrap/generator.rb +6 -4
  15. data/lib/fhir_dstu2_models/bootstrap/hashable.rb +6 -5
  16. data/lib/fhir_dstu2_models/bootstrap/json.rb +2 -2
  17. data/lib/fhir_dstu2_models/bootstrap/model.rb +45 -32
  18. data/lib/fhir_dstu2_models/bootstrap/preprocess.rb +19 -11
  19. data/lib/fhir_dstu2_models/bootstrap/xml.rb +9 -7
  20. data/lib/fhir_dstu2_models/deprecate.rb +1 -0
  21. data/lib/fhir_dstu2_models/fhir/metadata.rb +19 -21
  22. data/lib/fhir_dstu2_models/fhir/resources/Account.rb +20 -20
  23. data/lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb +34 -34
  24. data/lib/fhir_dstu2_models/fhir/resources/Appointment.rb +28 -28
  25. data/lib/fhir_dstu2_models/fhir/resources/AppointmentResponse.rb +17 -17
  26. data/lib/fhir_dstu2_models/fhir/resources/AuditEvent.rb +66 -66
  27. data/lib/fhir_dstu2_models/fhir/resources/Basic.rb +14 -14
  28. data/lib/fhir_dstu2_models/fhir/resources/Binary.rb +7 -7
  29. data/lib/fhir_dstu2_models/fhir/resources/BodySite.rb +15 -15
  30. data/lib/fhir_dstu2_models/fhir/resources/Bundle.rb +45 -45
  31. data/lib/fhir_dstu2_models/fhir/resources/CarePlan.rb +63 -63
  32. data/lib/fhir_dstu2_models/fhir/resources/Claim.rb +118 -118
  33. data/lib/fhir_dstu2_models/fhir/resources/ClaimResponse.rb +122 -124
  34. data/lib/fhir_dstu2_models/fhir/resources/ClinicalImpression.rb +42 -42
  35. data/lib/fhir_dstu2_models/fhir/resources/Communication.rb +28 -28
  36. data/lib/fhir_dstu2_models/fhir/resources/CommunicationRequest.rb +30 -30
  37. data/lib/fhir_dstu2_models/fhir/resources/Composition.rb +46 -46
  38. data/lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb +53 -53
  39. data/lib/fhir_dstu2_models/fhir/resources/Condition.rb +44 -44
  40. data/lib/fhir_dstu2_models/fhir/resources/Conformance.rb +138 -138
  41. data/lib/fhir_dstu2_models/fhir/resources/Contract.rb +98 -98
  42. data/lib/fhir_dstu2_models/fhir/resources/Coverage.rb +23 -23
  43. data/lib/fhir_dstu2_models/fhir/resources/DataElement.rb +35 -35
  44. data/lib/fhir_dstu2_models/fhir/resources/DetectedIssue.rb +25 -25
  45. data/lib/fhir_dstu2_models/fhir/resources/Device.rb +25 -25
  46. data/lib/fhir_dstu2_models/fhir/resources/DeviceComponent.rb +25 -25
  47. data/lib/fhir_dstu2_models/fhir/resources/DeviceMetric.rb +25 -25
  48. data/lib/fhir_dstu2_models/fhir/resources/DeviceUseRequest.rb +25 -25
  49. data/lib/fhir_dstu2_models/fhir/resources/DeviceUseStatement.rb +21 -21
  50. data/lib/fhir_dstu2_models/fhir/resources/DiagnosticOrder.rb +36 -36
  51. data/lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb +32 -32
  52. data/lib/fhir_dstu2_models/fhir/resources/DocumentManifest.rb +31 -31
  53. data/lib/fhir_dstu2_models/fhir/resources/DocumentReference.rb +51 -51
  54. data/lib/fhir_dstu2_models/fhir/resources/DomainResource.rb +12 -12
  55. data/lib/fhir_dstu2_models/fhir/resources/EligibilityRequest.rb +16 -16
  56. data/lib/fhir_dstu2_models/fhir/resources/EligibilityResponse.rb +19 -19
  57. data/lib/fhir_dstu2_models/fhir/resources/Encounter.rb +59 -59
  58. data/lib/fhir_dstu2_models/fhir/resources/EnrollmentRequest.rb +19 -19
  59. data/lib/fhir_dstu2_models/fhir/resources/EnrollmentResponse.rb +19 -19
  60. data/lib/fhir_dstu2_models/fhir/resources/EpisodeOfCare.rb +31 -31
  61. data/lib/fhir_dstu2_models/fhir/resources/ExplanationOfBenefit.rb +19 -19
  62. data/lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb +39 -39
  63. data/lib/fhir_dstu2_models/fhir/resources/Flag.rb +17 -17
  64. data/lib/fhir_dstu2_models/fhir/resources/Goal.rb +30 -30
  65. data/lib/fhir_dstu2_models/fhir/resources/Group.rb +33 -33
  66. data/lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb +48 -48
  67. data/lib/fhir_dstu2_models/fhir/resources/ImagingObjectSelection.rb +41 -41
  68. data/lib/fhir_dstu2_models/fhir/resources/ImagingStudy.rb +48 -48
  69. data/lib/fhir_dstu2_models/fhir/resources/Immunization.rb +52 -52
  70. data/lib/fhir_dstu2_models/fhir/resources/ImmunizationRecommendation.rb +35 -35
  71. data/lib/fhir_dstu2_models/fhir/resources/ImplementationGuide.rb +67 -67
  72. data/lib/fhir_dstu2_models/fhir/resources/List.rb +29 -29
  73. data/lib/fhir_dstu2_models/fhir/resources/Location.rb +27 -27
  74. data/lib/fhir_dstu2_models/fhir/resources/Media.rb +21 -21
  75. data/lib/fhir_dstu2_models/fhir/resources/Medication.rb +40 -40
  76. data/lib/fhir_dstu2_models/fhir/resources/MedicationAdministration.rb +36 -36
  77. data/lib/fhir_dstu2_models/fhir/resources/MedicationDispense.rb +49 -49
  78. data/lib/fhir_dstu2_models/fhir/resources/MedicationOrder.rb +57 -57
  79. data/lib/fhir_dstu2_models/fhir/resources/MedicationStatement.rb +41 -41
  80. data/lib/fhir_dstu2_models/fhir/resources/MessageHeader.rb +40 -40
  81. data/lib/fhir_dstu2_models/fhir/resources/NamingSystem.rb +34 -34
  82. data/lib/fhir_dstu2_models/fhir/resources/NutritionOrder.rb +67 -67
  83. data/lib/fhir_dstu2_models/fhir/resources/Observation.rb +68 -68
  84. data/lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb +51 -51
  85. data/lib/fhir_dstu2_models/fhir/resources/OperationOutcome.rb +21 -21
  86. data/lib/fhir_dstu2_models/fhir/resources/Order.rb +23 -23
  87. data/lib/fhir_dstu2_models/fhir/resources/OrderResponse.rb +16 -16
  88. data/lib/fhir_dstu2_models/fhir/resources/Organization.rb +24 -24
  89. data/lib/fhir_dstu2_models/fhir/resources/Parameters.rb +48 -48
  90. data/lib/fhir_dstu2_models/fhir/resources/Patient.rb +54 -54
  91. data/lib/fhir_dstu2_models/fhir/resources/PaymentNotice.rb +19 -19
  92. data/lib/fhir_dstu2_models/fhir/resources/PaymentReconciliation.rb +39 -39
  93. data/lib/fhir_dstu2_models/fhir/resources/Person.rb +24 -24
  94. data/lib/fhir_dstu2_models/fhir/resources/Practitioner.rb +36 -36
  95. data/lib/fhir_dstu2_models/fhir/resources/Procedure.rb +42 -42
  96. data/lib/fhir_dstu2_models/fhir/resources/ProcedureRequest.rb +27 -27
  97. data/lib/fhir_dstu2_models/fhir/resources/ProcessRequest.rb +29 -29
  98. data/lib/fhir_dstu2_models/fhir/resources/ProcessResponse.rb +27 -27
  99. data/lib/fhir_dstu2_models/fhir/resources/Provenance.rb +39 -39
  100. data/lib/fhir_dstu2_models/fhir/resources/Questionnaire.rb +40 -40
  101. data/lib/fhir_dstu2_models/fhir/resources/QuestionnaireResponse.rb +50 -50
  102. data/lib/fhir_dstu2_models/fhir/resources/ReferralRequest.rb +25 -25
  103. data/lib/fhir_dstu2_models/fhir/resources/RelatedPerson.rb +19 -19
  104. data/lib/fhir_dstu2_models/fhir/resources/Resource.rb +5 -5
  105. data/lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb +30 -30
  106. data/lib/fhir_dstu2_models/fhir/resources/Schedule.rb +14 -14
  107. data/lib/fhir_dstu2_models/fhir/resources/SearchParameter.rb +29 -29
  108. data/lib/fhir_dstu2_models/fhir/resources/Slot.rb +17 -17
  109. data/lib/fhir_dstu2_models/fhir/resources/Specimen.rb +45 -45
  110. data/lib/fhir_dstu2_models/fhir/resources/StructureDefinition.rb +54 -54
  111. data/lib/fhir_dstu2_models/fhir/resources/Subscription.rb +24 -24
  112. data/lib/fhir_dstu2_models/fhir/resources/Substance.rb +26 -26
  113. data/lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb +20 -20
  114. data/lib/fhir_dstu2_models/fhir/resources/SupplyRequest.rb +25 -25
  115. data/lib/fhir_dstu2_models/fhir/resources/TestScript.rb +140 -140
  116. data/lib/fhir_dstu2_models/fhir/resources/ValueSet.rb +108 -108
  117. data/lib/fhir_dstu2_models/fhir/resources/VisionPrescription.rb +35 -35
  118. data/lib/fhir_dstu2_models/fhir/types/Address.rb +16 -16
  119. data/lib/fhir_dstu2_models/fhir/types/Annotation.rb +10 -10
  120. data/lib/fhir_dstu2_models/fhir/types/Attachment.rb +14 -14
  121. data/lib/fhir_dstu2_models/fhir/types/BackboneElement.rb +7 -7
  122. data/lib/fhir_dstu2_models/fhir/types/CodeableConcept.rb +8 -8
  123. data/lib/fhir_dstu2_models/fhir/types/Coding.rb +11 -11
  124. data/lib/fhir_dstu2_models/fhir/types/ContactPoint.rb +11 -11
  125. data/lib/fhir_dstu2_models/fhir/types/Element.rb +3 -3
  126. data/lib/fhir_dstu2_models/fhir/types/ElementDefinition.rb +263 -263
  127. data/lib/fhir_dstu2_models/fhir/types/Extension.rb +40 -40
  128. data/lib/fhir_dstu2_models/fhir/types/HumanName.rb +13 -13
  129. data/lib/fhir_dstu2_models/fhir/types/Identifier.rb +12 -12
  130. data/lib/fhir_dstu2_models/fhir/types/Meta.rb +11 -11
  131. data/lib/fhir_dstu2_models/fhir/types/Narrative.rb +8 -8
  132. data/lib/fhir_dstu2_models/fhir/types/Period.rb +8 -8
  133. data/lib/fhir_dstu2_models/fhir/types/Quantity.rb +11 -11
  134. data/lib/fhir_dstu2_models/fhir/types/Range.rb +8 -8
  135. data/lib/fhir_dstu2_models/fhir/types/Ratio.rb +8 -8
  136. data/lib/fhir_dstu2_models/fhir/types/Reference.rb +5 -5
  137. data/lib/fhir_dstu2_models/fhir/types/SampledData.rb +13 -13
  138. data/lib/fhir_dstu2_models/fhir/types/Signature.rb +12 -12
  139. data/lib/fhir_dstu2_models/fhir/types/Timing.rb +24 -24
  140. data/lib/fhir_dstu2_models/fhir.rb +7 -6
  141. data/lib/fhir_dstu2_models/fhir_ext/element_definition.rb +3 -0
  142. data/lib/fhir_dstu2_models/fhir_ext/structure_definition.rb +19 -14
  143. data/lib/fhir_dstu2_models/fhir_ext/structure_definition_compare.rb +10 -0
  144. data/lib/fhir_dstu2_models/fhir_ext/structure_definition_finding.rb +2 -2
  145. data/lib/fhir_dstu2_models/fluentpath/evaluate.rb +18 -11
  146. data/lib/fhir_dstu2_models/fluentpath/expression.rb +3 -5
  147. data/lib/fhir_dstu2_models/fluentpath/parse.rb +7 -4
  148. data/lib/fhir_dstu2_models/version.rb +1 -1
  149. metadata +11 -9
@@ -5,18 +5,18 @@ module FHIR
5
5
  include FHIR::DSTU2::Json
6
6
  include FHIR::DSTU2::Xml
7
7
 
8
- SEARCH_PARAMS =
9
- METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'OperationOutcome.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'OperationOutcome.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'OperationOutcome.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'OperationOutcome.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'text' => {'type'=>'Narrative', 'path'=>'OperationOutcome.text', 'min'=>0, 'max'=>1},
15
- 'contained' => {'type'=>'Resource', 'path'=>'OperationOutcome.contained', 'min'=>0, 'max'=>Float::INFINITY},
16
- 'extension' => {'type'=>'Extension', 'path'=>'OperationOutcome.extension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'OperationOutcome.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'issue' => {'type'=>'OperationOutcome::Issue', 'path'=>'OperationOutcome.issue', 'min'=>1, 'max'=>Float::INFINITY}
19
- }
8
+ SEARCH_PARAMS =
9
+ METADATA = {
10
+ 'id' => { 'type' => 'id', 'path' => 'OperationOutcome.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'OperationOutcome.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'OperationOutcome.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'OperationOutcome.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'text' => { 'type' => 'Narrative', 'path' => 'OperationOutcome.text', 'min' => 0, 'max' => 1 },
15
+ 'contained' => { 'type' => 'Resource', 'path' => 'OperationOutcome.contained', 'min' => 0, 'max' => Float::INFINITY },
16
+ 'extension' => { 'type' => 'Extension', 'path' => 'OperationOutcome.extension', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'OperationOutcome.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'issue' => { 'type' => 'OperationOutcome::Issue', 'path' => 'OperationOutcome.issue', 'min' => 1, 'max' => Float::INFINITY }
19
+ }
20
20
 
21
21
  class Issue < FHIR::DSTU2::Model
22
22
  include FHIR::DSTU2::Hashable
@@ -24,14 +24,14 @@ module FHIR
24
24
  include FHIR::DSTU2::Xml
25
25
 
26
26
  METADATA = {
27
- 'id' => {'type'=>'id', 'path'=>'Issue.id', 'min'=>0, 'max'=>1},
28
- 'extension' => {'type'=>'Extension', 'path'=>'Issue.extension', 'min'=>0, 'max'=>Float::INFINITY},
29
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Issue.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
30
- 'severity' => {'valid_codes'=>{'http://hl7.org/fhir/issue-severity'=>['fatal', 'error', 'warning', 'information']}, 'type'=>'code', 'path'=>'Issue.severity', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/issue-severity'}},
31
- 'code' => {'valid_codes'=>{'http://hl7.org/fhir/issue-type'=>['invalid', 'structure', 'required', 'value', 'invariant', 'security', 'login', 'unknown', 'expired', 'forbidden', 'suppressed', 'processing', 'not-supported', 'duplicate', 'not-found', 'too-long', 'code-invalid', 'extension', 'too-costly', 'business-rule', 'conflict', 'incomplete', 'transient', 'lock-error', 'no-store', 'exception', 'timeout', 'throttled', 'informational']}, 'type'=>'code', 'path'=>'Issue.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/issue-type'}},
32
- 'details' => {'valid_codes'=>{'http://hl7.org/fhir/operation-outcome'=>['MSG_AUTH_REQUIRED', 'MSG_BAD_FORMAT', 'MSG_BAD_SYNTAX', 'MSG_CANT_PARSE_CONTENT', 'MSG_CANT_PARSE_ROOT', 'MSG_CREATED', 'MSG_DATE_FORMAT', 'MSG_DELETED', 'MSG_DELETED_DONE', 'MSG_DELETED_ID', 'MSG_DUPLICATE_ID', 'MSG_ERROR_PARSING', 'MSG_ID_INVALID', 'MSG_ID_TOO_LONG', 'MSG_INVALID_ID', 'MSG_JSON_OBJECT', 'MSG_LOCAL_FAIL', 'MSG_NO_MATCH', 'MSG_NO_EXIST', 'MSG_NO_MODULE', 'MSG_NO_SUMMARY', 'MSG_OP_NOT_ALLOWED', 'MSG_PARAM_CHAINED', 'MSG_PARAM_NO_REPEAT', 'MSG_PARAM_UNKNOWN', 'MSG_PARAM_INVALID', 'MSG_PARAM_MODIFIER_INVALID', 'MSG_RESOURCE_EXAMPLE_PROTECTED', 'MSG_RESOURCE_ID_FAIL', 'MSG_RESOURCE_NOT_ALLOWED', 'MSG_RESOURCE_REQUIRED', 'MSG_RESOURCE_ID_MISMATCH', 'MSG_RESOURCE_ID_MISSING', 'MSG_RESOURCE_TYPE_MISMATCH', 'MSG_SORT_UNKNOWN', 'MSG_TRANSACTION_DUPLICATE_ID', 'MSG_TRANSACTION_MISSING_ID', 'MSG_UNHANDLED_NODE_TYPE', 'MSG_UNKNOWN_CONTENT', 'MSG_UNKNOWN_OPERATION', 'MSG_UNKNOWN_TYPE', 'MSG_UPDATED', 'MSG_VERSION_AWARE', 'MSG_VERSION_AWARE_CONFLICT', 'MSG_VERSION_AWARE_URL', 'MSG_WRONG_NS', 'SEARCH_MULTIPLE', 'UPDATE_MULTIPLE_MATCHES', 'SEARCH_NONE']}, 'type'=>'CodeableConcept', 'path'=>'Issue.details', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/operation-outcome'}},
33
- 'diagnostics' => {'type'=>'string', 'path'=>'Issue.diagnostics', 'min'=>0, 'max'=>1},
34
- 'location' => {'type'=>'string', 'path'=>'Issue.location', 'min'=>0, 'max'=>Float::INFINITY}
27
+ 'id' => { 'type' => 'id', 'path' => 'Issue.id', 'min' => 0, 'max' => 1 },
28
+ 'extension' => { 'type' => 'Extension', 'path' => 'Issue.extension', 'min' => 0, 'max' => Float::INFINITY },
29
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Issue.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
30
+ 'severity' => { 'valid_codes' => { 'http://hl7.org/fhir/issue-severity' => ['fatal', 'error', 'warning', 'information'] }, 'type' => 'code', 'path' => 'Issue.severity', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/issue-severity' } },
31
+ 'code' => { 'valid_codes' => { 'http://hl7.org/fhir/issue-type' => ['invalid', 'structure', 'required', 'value', 'invariant', 'security', 'login', 'unknown', 'expired', 'forbidden', 'suppressed', 'processing', 'not-supported', 'duplicate', 'not-found', 'too-long', 'code-invalid', 'extension', 'too-costly', 'business-rule', 'conflict', 'incomplete', 'transient', 'lock-error', 'no-store', 'exception', 'timeout', 'throttled', 'informational'] }, 'type' => 'code', 'path' => 'Issue.code', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/issue-type' } },
32
+ 'details' => { 'valid_codes' => { 'http://hl7.org/fhir/operation-outcome' => ['MSG_AUTH_REQUIRED', 'MSG_BAD_FORMAT', 'MSG_BAD_SYNTAX', 'MSG_CANT_PARSE_CONTENT', 'MSG_CANT_PARSE_ROOT', 'MSG_CREATED', 'MSG_DATE_FORMAT', 'MSG_DELETED', 'MSG_DELETED_DONE', 'MSG_DELETED_ID', 'MSG_DUPLICATE_ID', 'MSG_ERROR_PARSING', 'MSG_ID_INVALID', 'MSG_ID_TOO_LONG', 'MSG_INVALID_ID', 'MSG_JSON_OBJECT', 'MSG_LOCAL_FAIL', 'MSG_NO_MATCH', 'MSG_NO_EXIST', 'MSG_NO_MODULE', 'MSG_NO_SUMMARY', 'MSG_OP_NOT_ALLOWED', 'MSG_PARAM_CHAINED', 'MSG_PARAM_NO_REPEAT', 'MSG_PARAM_UNKNOWN', 'MSG_PARAM_INVALID', 'MSG_PARAM_MODIFIER_INVALID', 'MSG_RESOURCE_EXAMPLE_PROTECTED', 'MSG_RESOURCE_ID_FAIL', 'MSG_RESOURCE_NOT_ALLOWED', 'MSG_RESOURCE_REQUIRED', 'MSG_RESOURCE_ID_MISMATCH', 'MSG_RESOURCE_ID_MISSING', 'MSG_RESOURCE_TYPE_MISMATCH', 'MSG_SORT_UNKNOWN', 'MSG_TRANSACTION_DUPLICATE_ID', 'MSG_TRANSACTION_MISSING_ID', 'MSG_UNHANDLED_NODE_TYPE', 'MSG_UNKNOWN_CONTENT', 'MSG_UNKNOWN_OPERATION', 'MSG_UNKNOWN_TYPE', 'MSG_UPDATED', 'MSG_VERSION_AWARE', 'MSG_VERSION_AWARE_CONFLICT', 'MSG_VERSION_AWARE_URL', 'MSG_WRONG_NS', 'SEARCH_MULTIPLE', 'UPDATE_MULTIPLE_MATCHES', 'SEARCH_NONE'] }, 'type' => 'CodeableConcept', 'path' => 'Issue.details', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/operation-outcome' } },
33
+ 'diagnostics' => { 'type' => 'string', 'path' => 'Issue.diagnostics', 'min' => 0, 'max' => 1 },
34
+ 'location' => { 'type' => 'string', 'path' => 'Issue.location', 'min' => 0, 'max' => Float::INFINITY }
35
35
  }
36
36
 
37
37
  attr_accessor :id # 0-1 id
@@ -59,4 +59,4 @@ module FHIR
59
59
  end
60
60
  end
61
61
  end
62
- end
62
+ end
@@ -10,23 +10,23 @@ module FHIR
10
10
  }
11
11
  SEARCH_PARAMS = ['code', 'date', 'fulfillment', 'identifier', 'request', 'who', 'date', 'detail', 'identifier', 'patient', 'source', 'subject', 'target', 'when', 'when_code', 'additive', 'datetime', 'encounter', 'formula', 'identifier', 'oraldiet', 'patient', 'provider', 'status', 'supplement', 'code', 'datewritten', 'encounter', 'identifier', 'medication', 'patient', 'prescriber', 'status', 'actor', 'bodysite', 'code', 'encounter', 'event-date', 'event-status', 'identifier', 'item-date', 'item-past-status', 'item-status', 'orderer', 'patient', 'specimen', 'status', 'subject']
12
12
  METADATA = {
13
- 'id' => {'type'=>'id', 'path'=>'Order.id', 'min'=>0, 'max'=>1},
14
- 'meta' => {'type'=>'Meta', 'path'=>'Order.meta', 'min'=>0, 'max'=>1},
15
- 'implicitRules' => {'type'=>'uri', 'path'=>'Order.implicitRules', 'min'=>0, 'max'=>1},
16
- 'language' => {'type'=>'code', 'path'=>'Order.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
17
- 'text' => {'type'=>'Narrative', 'path'=>'Order.text', 'min'=>0, 'max'=>1},
18
- 'contained' => {'type'=>'Resource', 'path'=>'Order.contained', 'min'=>0, 'max'=>Float::INFINITY},
19
- 'extension' => {'type'=>'Extension', 'path'=>'Order.extension', 'min'=>0, 'max'=>Float::INFINITY},
20
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Order.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
21
- 'identifier' => {'type'=>'Identifier', 'path'=>'Order.identifier', 'min'=>0, 'max'=>Float::INFINITY},
22
- 'date' => {'type'=>'dateTime', 'path'=>'Order.date', 'min'=>0, 'max'=>1},
23
- 'subject' => {'type'=>'Reference', 'path'=>'Order.subject', 'min'=>0, 'max'=>1},
24
- 'source' => {'type'=>'Reference', 'path'=>'Order.source', 'min'=>0, 'max'=>1},
25
- 'target' => {'type'=>'Reference', 'path'=>'Order.target', 'min'=>0, 'max'=>1},
26
- 'reasonCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'Order.reason[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
27
- 'reasonReference' => {'type'=>'Reference', 'path'=>'Order.reason[x]', 'min'=>0, 'max'=>1},
28
- 'when' => {'type'=>'Order::When', 'path'=>'Order.when', 'min'=>0, 'max'=>1},
29
- 'detail' => {'type'=>'Reference', 'path'=>'Order.detail', 'min'=>1, 'max'=>Float::INFINITY}
13
+ 'id' => { 'type' => 'id', 'path' => 'Order.id', 'min' => 0, 'max' => 1 },
14
+ 'meta' => { 'type' => 'Meta', 'path' => 'Order.meta', 'min' => 0, 'max' => 1 },
15
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'Order.implicitRules', 'min' => 0, 'max' => 1 },
16
+ 'language' => { 'type' => 'code', 'path' => 'Order.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
17
+ 'text' => { 'type' => 'Narrative', 'path' => 'Order.text', 'min' => 0, 'max' => 1 },
18
+ 'contained' => { 'type' => 'Resource', 'path' => 'Order.contained', 'min' => 0, 'max' => Float::INFINITY },
19
+ 'extension' => { 'type' => 'Extension', 'path' => 'Order.extension', 'min' => 0, 'max' => Float::INFINITY },
20
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Order.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
21
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'Order.identifier', 'min' => 0, 'max' => Float::INFINITY },
22
+ 'date' => { 'type' => 'dateTime', 'path' => 'Order.date', 'min' => 0, 'max' => 1 },
23
+ 'subject' => { 'type' => 'Reference', 'path' => 'Order.subject', 'min' => 0, 'max' => 1 },
24
+ 'source' => { 'type' => 'Reference', 'path' => 'Order.source', 'min' => 0, 'max' => 1 },
25
+ 'target' => { 'type' => 'Reference', 'path' => 'Order.target', 'min' => 0, 'max' => 1 },
26
+ 'reasonCodeableConcept' => { 'type' => 'CodeableConcept', 'path' => 'Order.reason[x]', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => nil } },
27
+ 'reasonReference' => { 'type' => 'Reference', 'path' => 'Order.reason[x]', 'min' => 0, 'max' => 1 },
28
+ 'when' => { 'type' => 'Order::When', 'path' => 'Order.when', 'min' => 0, 'max' => 1 },
29
+ 'detail' => { 'type' => 'Reference', 'path' => 'Order.detail', 'min' => 1, 'max' => Float::INFINITY }
30
30
  }
31
31
 
32
32
  class When < FHIR::DSTU2::Model
@@ -35,11 +35,11 @@ module FHIR
35
35
  include FHIR::DSTU2::Xml
36
36
 
37
37
  METADATA = {
38
- 'id' => {'type'=>'id', 'path'=>'When.id', 'min'=>0, 'max'=>1},
39
- 'extension' => {'type'=>'Extension', 'path'=>'When.extension', 'min'=>0, 'max'=>Float::INFINITY},
40
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'When.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
41
- 'code' => {'type'=>'CodeableConcept', 'path'=>'When.code', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
42
- 'schedule' => {'type'=>'Timing', 'path'=>'When.schedule', 'min'=>0, 'max'=>1}
38
+ 'id' => { 'type' => 'id', 'path' => 'When.id', 'min' => 0, 'max' => 1 },
39
+ 'extension' => { 'type' => 'Extension', 'path' => 'When.extension', 'min' => 0, 'max' => Float::INFINITY },
40
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'When.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
41
+ 'code' => { 'type' => 'CodeableConcept', 'path' => 'When.code', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => nil } },
42
+ 'schedule' => { 'type' => 'Timing', 'path' => 'When.schedule', 'min' => 0, 'max' => 1 }
43
43
  }
44
44
 
45
45
  attr_accessor :id # 0-1 id
@@ -72,4 +72,4 @@ module FHIR
72
72
  end
73
73
  end
74
74
  end
75
- end
75
+ end
@@ -7,21 +7,21 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['code', 'date', 'fulfillment', 'identifier', 'request', 'who']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'OrderResponse.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'OrderResponse.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'OrderResponse.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'OrderResponse.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'text' => {'type'=>'Narrative', 'path'=>'OrderResponse.text', 'min'=>0, 'max'=>1},
15
- 'contained' => {'type'=>'Resource', 'path'=>'OrderResponse.contained', 'min'=>0, 'max'=>Float::INFINITY},
16
- 'extension' => {'type'=>'Extension', 'path'=>'OrderResponse.extension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'OrderResponse.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'identifier' => {'type'=>'Identifier', 'path'=>'OrderResponse.identifier', 'min'=>0, 'max'=>Float::INFINITY},
19
- 'request' => {'type'=>'Reference', 'path'=>'OrderResponse.request', 'min'=>1, 'max'=>1},
20
- 'date' => {'type'=>'dateTime', 'path'=>'OrderResponse.date', 'min'=>0, 'max'=>1},
21
- 'who' => {'type'=>'Reference', 'path'=>'OrderResponse.who', 'min'=>0, 'max'=>1},
22
- 'orderStatus' => {'valid_codes'=>{'http://hl7.org/fhir/order-status'=>['pending', 'review', 'rejected', 'error', 'accepted', 'cancelled', 'replaced', 'aborted', 'completed']}, 'type'=>'code', 'path'=>'OrderResponse.orderStatus', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/order-status'}},
23
- 'description' => {'type'=>'string', 'path'=>'OrderResponse.description', 'min'=>0, 'max'=>1},
24
- 'fulfillment' => {'type'=>'Reference', 'path'=>'OrderResponse.fulfillment', 'min'=>0, 'max'=>Float::INFINITY}
10
+ 'id' => { 'type' => 'id', 'path' => 'OrderResponse.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'OrderResponse.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'OrderResponse.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'OrderResponse.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'text' => { 'type' => 'Narrative', 'path' => 'OrderResponse.text', 'min' => 0, 'max' => 1 },
15
+ 'contained' => { 'type' => 'Resource', 'path' => 'OrderResponse.contained', 'min' => 0, 'max' => Float::INFINITY },
16
+ 'extension' => { 'type' => 'Extension', 'path' => 'OrderResponse.extension', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'OrderResponse.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'OrderResponse.identifier', 'min' => 0, 'max' => Float::INFINITY },
19
+ 'request' => { 'type' => 'Reference', 'path' => 'OrderResponse.request', 'min' => 1, 'max' => 1 },
20
+ 'date' => { 'type' => 'dateTime', 'path' => 'OrderResponse.date', 'min' => 0, 'max' => 1 },
21
+ 'who' => { 'type' => 'Reference', 'path' => 'OrderResponse.who', 'min' => 0, 'max' => 1 },
22
+ 'orderStatus' => { 'valid_codes' => { 'http://hl7.org/fhir/order-status' => ['pending', 'review', 'rejected', 'error', 'accepted', 'cancelled', 'replaced', 'aborted', 'completed'] }, 'type' => 'code', 'path' => 'OrderResponse.orderStatus', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/order-status' } },
23
+ 'description' => { 'type' => 'string', 'path' => 'OrderResponse.description', 'min' => 0, 'max' => 1 },
24
+ 'fulfillment' => { 'type' => 'Reference', 'path' => 'OrderResponse.fulfillment', 'min' => 0, 'max' => Float::INFINITY }
25
25
  }
26
26
 
27
27
  attr_accessor :id # 0-1 id
@@ -45,4 +45,4 @@ module FHIR
45
45
  end
46
46
  end
47
47
  end
48
- end
48
+ end
@@ -7,22 +7,22 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['active', 'address', 'address-city', 'address-country', 'address-postalcode', 'address-state', 'address-use', 'identifier', 'name', 'partof', 'phonetic', 'type']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'Organization.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'Organization.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'Organization.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'Organization.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'text' => {'type'=>'Narrative', 'path'=>'Organization.text', 'min'=>0, 'max'=>1},
15
- 'contained' => {'type'=>'Resource', 'path'=>'Organization.contained', 'min'=>0, 'max'=>Float::INFINITY},
16
- 'extension' => {'type'=>'Extension', 'path'=>'Organization.extension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Organization.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'identifier' => {'type'=>'Identifier', 'path'=>'Organization.identifier', 'min'=>0, 'max'=>Float::INFINITY},
19
- 'active' => {'type'=>'boolean', 'path'=>'Organization.active', 'min'=>0, 'max'=>1},
20
- 'type' => {'valid_codes'=>{'http://hl7.org/fhir/organization-type'=>['prov', 'dept', 'team', 'govt', 'ins', 'edu', 'reli', 'crs', 'cg', 'bus', 'other']}, 'type'=>'CodeableConcept', 'path'=>'Organization.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/organization-type'}},
21
- 'name' => {'type'=>'string', 'path'=>'Organization.name', 'min'=>0, 'max'=>1},
22
- 'telecom' => {'type'=>'ContactPoint', 'path'=>'Organization.telecom', 'min'=>0, 'max'=>Float::INFINITY},
23
- 'address' => {'type'=>'Address', 'path'=>'Organization.address', 'min'=>0, 'max'=>Float::INFINITY},
24
- 'partOf' => {'type'=>'Reference', 'path'=>'Organization.partOf', 'min'=>0, 'max'=>1},
25
- 'contact' => {'type'=>'Organization::Contact', 'path'=>'Organization.contact', 'min'=>0, 'max'=>Float::INFINITY}
10
+ 'id' => { 'type' => 'id', 'path' => 'Organization.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'Organization.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'Organization.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'Organization.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'text' => { 'type' => 'Narrative', 'path' => 'Organization.text', 'min' => 0, 'max' => 1 },
15
+ 'contained' => { 'type' => 'Resource', 'path' => 'Organization.contained', 'min' => 0, 'max' => Float::INFINITY },
16
+ 'extension' => { 'type' => 'Extension', 'path' => 'Organization.extension', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Organization.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'Organization.identifier', 'min' => 0, 'max' => Float::INFINITY },
19
+ 'active' => { 'type' => 'boolean', 'path' => 'Organization.active', 'min' => 0, 'max' => 1 },
20
+ 'type' => { 'valid_codes' => { 'http://hl7.org/fhir/organization-type' => ['prov', 'dept', 'team', 'govt', 'ins', 'edu', 'reli', 'crs', 'cg', 'bus', 'other'] }, 'type' => 'CodeableConcept', 'path' => 'Organization.type', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/organization-type' } },
21
+ 'name' => { 'type' => 'string', 'path' => 'Organization.name', 'min' => 0, 'max' => 1 },
22
+ 'telecom' => { 'type' => 'ContactPoint', 'path' => 'Organization.telecom', 'min' => 0, 'max' => Float::INFINITY },
23
+ 'address' => { 'type' => 'Address', 'path' => 'Organization.address', 'min' => 0, 'max' => Float::INFINITY },
24
+ 'partOf' => { 'type' => 'Reference', 'path' => 'Organization.partOf', 'min' => 0, 'max' => 1 },
25
+ 'contact' => { 'type' => 'Organization::Contact', 'path' => 'Organization.contact', 'min' => 0, 'max' => Float::INFINITY }
26
26
  }
27
27
 
28
28
  class Contact < FHIR::DSTU2::Model
@@ -31,13 +31,13 @@ module FHIR
31
31
  include FHIR::DSTU2::Xml
32
32
 
33
33
  METADATA = {
34
- 'id' => {'type'=>'id', 'path'=>'Contact.id', 'min'=>0, 'max'=>1},
35
- 'extension' => {'type'=>'Extension', 'path'=>'Contact.extension', 'min'=>0, 'max'=>Float::INFINITY},
36
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Contact.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
37
- 'purpose' => {'valid_codes'=>{'http://hl7.org/fhir/contactentity-type'=>['BILL', 'ADMIN', 'HR', 'PAYOR', 'PATINF', 'PRESS']}, 'type'=>'CodeableConcept', 'path'=>'Contact.purpose', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/contactentity-type'}},
38
- 'name' => {'type'=>'HumanName', 'path'=>'Contact.name', 'min'=>0, 'max'=>1},
39
- 'telecom' => {'type'=>'ContactPoint', 'path'=>'Contact.telecom', 'min'=>0, 'max'=>Float::INFINITY},
40
- 'address' => {'type'=>'Address', 'path'=>'Contact.address', 'min'=>0, 'max'=>1}
34
+ 'id' => { 'type' => 'id', 'path' => 'Contact.id', 'min' => 0, 'max' => 1 },
35
+ 'extension' => { 'type' => 'Extension', 'path' => 'Contact.extension', 'min' => 0, 'max' => Float::INFINITY },
36
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Contact.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
37
+ 'purpose' => { 'valid_codes' => { 'http://hl7.org/fhir/contactentity-type' => ['BILL', 'ADMIN', 'HR', 'PAYOR', 'PATINF', 'PRESS'] }, 'type' => 'CodeableConcept', 'path' => 'Contact.purpose', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'extensible', 'uri' => 'http://hl7.org/fhir/ValueSet/contactentity-type' } },
38
+ 'name' => { 'type' => 'HumanName', 'path' => 'Contact.name', 'min' => 0, 'max' => 1 },
39
+ 'telecom' => { 'type' => 'ContactPoint', 'path' => 'Contact.telecom', 'min' => 0, 'max' => Float::INFINITY },
40
+ 'address' => { 'type' => 'Address', 'path' => 'Contact.address', 'min' => 0, 'max' => 1 }
41
41
  }
42
42
 
43
43
  attr_accessor :id # 0-1 id
@@ -71,4 +71,4 @@ module FHIR
71
71
  end
72
72
  end
73
73
  end
74
- end
74
+ end
@@ -5,14 +5,14 @@ module FHIR
5
5
  include FHIR::DSTU2::Json
6
6
  include FHIR::DSTU2::Xml
7
7
 
8
- SEARCH_PARAMS =
9
- METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'Parameters.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'Parameters.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'Parameters.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'Parameters.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'parameter' => {'type'=>'Parameters::Parameter', 'path'=>'Parameters.parameter', 'min'=>0, 'max'=>Float::INFINITY}
15
- }
8
+ SEARCH_PARAMS =
9
+ METADATA = {
10
+ 'id' => { 'type' => 'id', 'path' => 'Parameters.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'Parameters.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'Parameters.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'Parameters.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'parameter' => { 'type' => 'Parameters::Parameter', 'path' => 'Parameters.parameter', 'min' => 0, 'max' => Float::INFINITY }
15
+ }
16
16
 
17
17
  class Parameter < FHIR::DSTU2::Model
18
18
  include FHIR::DSTU2::Hashable
@@ -23,45 +23,45 @@ module FHIR
23
23
  'value' => ['boolean', 'integer', 'decimal', 'base64Binary', 'instant', 'string', 'uri', 'date', 'dateTime', 'time', 'code', 'oid', 'id', 'unsignedInt', 'positiveInt', 'markdown', 'Annotation', 'Attachment', 'Identifier', 'CodeableConcept', 'Coding', 'Quantity', 'Range', 'Period', 'Ratio', 'SampledData', 'Signature', 'HumanName', 'Address', 'ContactPoint', 'Timing', 'Reference', 'Meta']
24
24
  }
25
25
  METADATA = {
26
- 'id' => {'type'=>'id', 'path'=>'Parameter.id', 'min'=>0, 'max'=>1},
27
- 'extension' => {'type'=>'Extension', 'path'=>'Parameter.extension', 'min'=>0, 'max'=>Float::INFINITY},
28
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Parameter.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
29
- 'name' => {'type'=>'string', 'path'=>'Parameter.name', 'min'=>1, 'max'=>1},
30
- 'valueBoolean' => {'type'=>'boolean', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
31
- 'valueInteger' => {'type'=>'integer', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
32
- 'valueDecimal' => {'type'=>'decimal', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
33
- 'valueBase64Binary' => {'type'=>'base64Binary', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
34
- 'valueInstant' => {'type'=>'instant', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
35
- 'valueString' => {'type'=>'string', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
36
- 'valueUri' => {'type'=>'uri', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
37
- 'valueDate' => {'type'=>'date', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
38
- 'valueDateTime' => {'type'=>'dateTime', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
39
- 'valueTime' => {'type'=>'time', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
40
- 'valueCode' => {'type'=>'code', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
41
- 'valueOid' => {'type'=>'oid', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
42
- 'valueId' => {'type'=>'id', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
43
- 'valueUnsignedInt' => {'type'=>'unsignedInt', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
44
- 'valuePositiveInt' => {'type'=>'positiveInt', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
45
- 'valueMarkdown' => {'type'=>'markdown', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
46
- 'valueAnnotation' => {'type'=>'Annotation', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
47
- 'valueAttachment' => {'type'=>'Attachment', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
48
- 'valueIdentifier' => {'type'=>'Identifier', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
49
- 'valueCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
50
- 'valueCoding' => {'type'=>'Coding', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
51
- 'valueQuantity' => {'type'=>'Quantity', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
52
- 'valueRange' => {'type'=>'Range', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
53
- 'valuePeriod' => {'type'=>'Period', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
54
- 'valueRatio' => {'type'=>'Ratio', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
55
- 'valueSampledData' => {'type'=>'SampledData', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
56
- 'valueSignature' => {'type'=>'Signature', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
57
- 'valueHumanName' => {'type'=>'HumanName', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
58
- 'valueAddress' => {'type'=>'Address', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
59
- 'valueContactPoint' => {'type'=>'ContactPoint', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
60
- 'valueTiming' => {'type'=>'Timing', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
61
- 'valueReference' => {'type'=>'Reference', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
62
- 'valueMeta' => {'type'=>'Meta', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
63
- 'resource' => {'type'=>'Resource', 'path'=>'Parameter.resource', 'min'=>0, 'max'=>1},
64
- 'part' => {'type'=>'Parameters::Parameter', 'path'=>'Parameter.part', 'min'=>0, 'max'=>Float::INFINITY}
26
+ 'id' => { 'type' => 'id', 'path' => 'Parameter.id', 'min' => 0, 'max' => 1 },
27
+ 'extension' => { 'type' => 'Extension', 'path' => 'Parameter.extension', 'min' => 0, 'max' => Float::INFINITY },
28
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Parameter.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
29
+ 'name' => { 'type' => 'string', 'path' => 'Parameter.name', 'min' => 1, 'max' => 1 },
30
+ 'valueBoolean' => { 'type' => 'boolean', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
31
+ 'valueInteger' => { 'type' => 'integer', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
32
+ 'valueDecimal' => { 'type' => 'decimal', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
33
+ 'valueBase64Binary' => { 'type' => 'base64Binary', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
34
+ 'valueInstant' => { 'type' => 'instant', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
35
+ 'valueString' => { 'type' => 'string', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
36
+ 'valueUri' => { 'type' => 'uri', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
37
+ 'valueDate' => { 'type' => 'date', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
38
+ 'valueDateTime' => { 'type' => 'dateTime', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
39
+ 'valueTime' => { 'type' => 'time', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
40
+ 'valueCode' => { 'type' => 'code', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
41
+ 'valueOid' => { 'type' => 'oid', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
42
+ 'valueId' => { 'type' => 'id', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
43
+ 'valueUnsignedInt' => { 'type' => 'unsignedInt', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
44
+ 'valuePositiveInt' => { 'type' => 'positiveInt', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
45
+ 'valueMarkdown' => { 'type' => 'markdown', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
46
+ 'valueAnnotation' => { 'type' => 'Annotation', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
47
+ 'valueAttachment' => { 'type' => 'Attachment', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
48
+ 'valueIdentifier' => { 'type' => 'Identifier', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
49
+ 'valueCodeableConcept' => { 'type' => 'CodeableConcept', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
50
+ 'valueCoding' => { 'type' => 'Coding', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
51
+ 'valueQuantity' => { 'type' => 'Quantity', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
52
+ 'valueRange' => { 'type' => 'Range', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
53
+ 'valuePeriod' => { 'type' => 'Period', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
54
+ 'valueRatio' => { 'type' => 'Ratio', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
55
+ 'valueSampledData' => { 'type' => 'SampledData', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
56
+ 'valueSignature' => { 'type' => 'Signature', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
57
+ 'valueHumanName' => { 'type' => 'HumanName', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
58
+ 'valueAddress' => { 'type' => 'Address', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
59
+ 'valueContactPoint' => { 'type' => 'ContactPoint', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
60
+ 'valueTiming' => { 'type' => 'Timing', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
61
+ 'valueReference' => { 'type' => 'Reference', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
62
+ 'valueMeta' => { 'type' => 'Meta', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
63
+ 'resource' => { 'type' => 'Resource', 'path' => 'Parameter.resource', 'min' => 0, 'max' => 1 },
64
+ 'part' => { 'type' => 'Parameters::Parameter', 'path' => 'Parameter.part', 'min' => 0, 'max' => Float::INFINITY }
65
65
  }
66
66
 
67
67
  attr_accessor :id # 0-1 id
@@ -116,4 +116,4 @@ module FHIR
116
116
  end
117
117
  end
118
118
  end
119
- end
119
+ end