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
@@ -11,31 +11,31 @@ module FHIR
11
11
  }
12
12
  SEARCH_PARAMS = ['code', 'datewritten', 'encounter', 'identifier', 'medication', 'patient', 'prescriber', 'status']
13
13
  METADATA = {
14
- 'id' => {'type'=>'id', 'path'=>'MedicationOrder.id', 'min'=>0, 'max'=>1},
15
- 'meta' => {'type'=>'Meta', 'path'=>'MedicationOrder.meta', 'min'=>0, 'max'=>1},
16
- 'implicitRules' => {'type'=>'uri', 'path'=>'MedicationOrder.implicitRules', 'min'=>0, 'max'=>1},
17
- 'language' => {'type'=>'code', 'path'=>'MedicationOrder.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
18
- 'text' => {'type'=>'Narrative', 'path'=>'MedicationOrder.text', 'min'=>0, 'max'=>1},
19
- 'contained' => {'type'=>'Resource', 'path'=>'MedicationOrder.contained', 'min'=>0, 'max'=>Float::INFINITY},
20
- 'extension' => {'type'=>'Extension', 'path'=>'MedicationOrder.extension', 'min'=>0, 'max'=>Float::INFINITY},
21
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'MedicationOrder.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
22
- 'identifier' => {'type'=>'Identifier', 'path'=>'MedicationOrder.identifier', 'min'=>0, 'max'=>Float::INFINITY},
23
- 'dateWritten' => {'type'=>'dateTime', 'path'=>'MedicationOrder.dateWritten', 'min'=>0, 'max'=>1},
24
- 'status' => {'valid_codes'=>{'http://hl7.org/fhir/medication-order-status'=>['active', 'on-hold', 'completed', 'entered-in-error', 'stopped', 'draft']}, 'type'=>'code', 'path'=>'MedicationOrder.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/medication-order-status'}},
25
- 'dateEnded' => {'type'=>'dateTime', 'path'=>'MedicationOrder.dateEnded', 'min'=>0, 'max'=>1},
26
- 'reasonEnded' => {'type'=>'CodeableConcept', 'path'=>'MedicationOrder.reasonEnded', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
27
- 'patient' => {'type'=>'Reference', 'path'=>'MedicationOrder.patient', 'min'=>0, 'max'=>1},
28
- 'prescriber' => {'type'=>'Reference', 'path'=>'MedicationOrder.prescriber', 'min'=>0, 'max'=>1},
29
- 'encounter' => {'type'=>'Reference', 'path'=>'MedicationOrder.encounter', 'min'=>0, 'max'=>1},
30
- 'reasonCodeableConcept' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'MedicationOrder.reason[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/condition-code'}},
31
- 'reasonReference' => {'type'=>'Reference', 'path'=>'MedicationOrder.reason[x]', 'min'=>0, 'max'=>1},
32
- 'note' => {'type'=>'string', 'path'=>'MedicationOrder.note', 'min'=>0, 'max'=>1},
33
- 'medicationCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'MedicationOrder.medication[x]', 'min'=>1, 'max'=>1},
34
- 'medicationReference' => {'type'=>'Reference', 'path'=>'MedicationOrder.medication[x]', 'min'=>1, 'max'=>1},
35
- 'dosageInstruction' => {'type'=>'MedicationOrder::DosageInstruction', 'path'=>'MedicationOrder.dosageInstruction', 'min'=>0, 'max'=>Float::INFINITY},
36
- 'dispenseRequest' => {'type'=>'MedicationOrder::DispenseRequest', 'path'=>'MedicationOrder.dispenseRequest', 'min'=>0, 'max'=>1},
37
- 'substitution' => {'type'=>'MedicationOrder::Substitution', 'path'=>'MedicationOrder.substitution', 'min'=>0, 'max'=>1},
38
- 'priorPrescription' => {'type'=>'Reference', 'path'=>'MedicationOrder.priorPrescription', 'min'=>0, 'max'=>1}
14
+ 'id' => { 'type' => 'id', 'path' => 'MedicationOrder.id', 'min' => 0, 'max' => 1 },
15
+ 'meta' => { 'type' => 'Meta', 'path' => 'MedicationOrder.meta', 'min' => 0, 'max' => 1 },
16
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'MedicationOrder.implicitRules', 'min' => 0, 'max' => 1 },
17
+ 'language' => { 'type' => 'code', 'path' => 'MedicationOrder.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
18
+ 'text' => { 'type' => 'Narrative', 'path' => 'MedicationOrder.text', 'min' => 0, 'max' => 1 },
19
+ 'contained' => { 'type' => 'Resource', 'path' => 'MedicationOrder.contained', 'min' => 0, 'max' => Float::INFINITY },
20
+ 'extension' => { 'type' => 'Extension', 'path' => 'MedicationOrder.extension', 'min' => 0, 'max' => Float::INFINITY },
21
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'MedicationOrder.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
22
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'MedicationOrder.identifier', 'min' => 0, 'max' => Float::INFINITY },
23
+ 'dateWritten' => { 'type' => 'dateTime', 'path' => 'MedicationOrder.dateWritten', 'min' => 0, 'max' => 1 },
24
+ 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/medication-order-status' => ['active', 'on-hold', 'completed', 'entered-in-error', 'stopped', 'draft'] }, 'type' => 'code', 'path' => 'MedicationOrder.status', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/medication-order-status' } },
25
+ 'dateEnded' => { 'type' => 'dateTime', 'path' => 'MedicationOrder.dateEnded', 'min' => 0, 'max' => 1 },
26
+ 'reasonEnded' => { 'type' => 'CodeableConcept', 'path' => 'MedicationOrder.reasonEnded', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => nil } },
27
+ 'patient' => { 'type' => 'Reference', 'path' => 'MedicationOrder.patient', 'min' => 0, 'max' => 1 },
28
+ 'prescriber' => { 'type' => 'Reference', 'path' => 'MedicationOrder.prescriber', 'min' => 0, 'max' => 1 },
29
+ 'encounter' => { 'type' => 'Reference', 'path' => 'MedicationOrder.encounter', 'min' => 0, 'max' => 1 },
30
+ 'reasonCodeableConcept' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'MedicationOrder.reason[x]', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/condition-code' } },
31
+ 'reasonReference' => { 'type' => 'Reference', 'path' => 'MedicationOrder.reason[x]', 'min' => 0, 'max' => 1 },
32
+ 'note' => { 'type' => 'string', 'path' => 'MedicationOrder.note', 'min' => 0, 'max' => 1 },
33
+ 'medicationCodeableConcept' => { 'type' => 'CodeableConcept', 'path' => 'MedicationOrder.medication[x]', 'min' => 1, 'max' => 1 },
34
+ 'medicationReference' => { 'type' => 'Reference', 'path' => 'MedicationOrder.medication[x]', 'min' => 1, 'max' => 1 },
35
+ 'dosageInstruction' => { 'type' => 'MedicationOrder::DosageInstruction', 'path' => 'MedicationOrder.dosageInstruction', 'min' => 0, 'max' => Float::INFINITY },
36
+ 'dispenseRequest' => { 'type' => 'MedicationOrder::DispenseRequest', 'path' => 'MedicationOrder.dispenseRequest', 'min' => 0, 'max' => 1 },
37
+ 'substitution' => { 'type' => 'MedicationOrder::Substitution', 'path' => 'MedicationOrder.substitution', 'min' => 0, 'max' => 1 },
38
+ 'priorPrescription' => { 'type' => 'Reference', 'path' => 'MedicationOrder.priorPrescription', 'min' => 0, 'max' => 1 }
39
39
  }
40
40
 
41
41
  class DosageInstruction < FHIR::DSTU2::Model
@@ -50,23 +50,23 @@ module FHIR
50
50
  'rate' => ['Ratio', 'Range']
51
51
  }
52
52
  METADATA = {
53
- 'id' => {'type'=>'id', 'path'=>'DosageInstruction.id', 'min'=>0, 'max'=>1},
54
- 'extension' => {'type'=>'Extension', 'path'=>'DosageInstruction.extension', 'min'=>0, 'max'=>Float::INFINITY},
55
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'DosageInstruction.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
56
- 'text' => {'type'=>'string', 'path'=>'DosageInstruction.text', 'min'=>0, 'max'=>1},
57
- 'additionalInstructions' => {'type'=>'CodeableConcept', 'path'=>'DosageInstruction.additionalInstructions', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
58
- 'timing' => {'type'=>'Timing', 'path'=>'DosageInstruction.timing', 'min'=>0, 'max'=>1},
59
- 'asNeededBoolean' => {'type'=>'boolean', 'path'=>'DosageInstruction.asNeeded[x]', 'min'=>0, 'max'=>1},
60
- 'asNeededCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'DosageInstruction.asNeeded[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
61
- 'siteCodeableConcept' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'DosageInstruction.site[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/approach-site-codes'}},
62
- 'siteReference' => {'type'=>'Reference', 'path'=>'DosageInstruction.site[x]', 'min'=>0, 'max'=>1},
63
- 'route' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'DosageInstruction.route', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/route-codes'}},
64
- 'method' => {'local_name'=>'local_method', 'type'=>'CodeableConcept', 'path'=>'DosageInstruction.method', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
65
- 'doseRange' => {'type'=>'Range', 'path'=>'DosageInstruction.dose[x]', 'min'=>0, 'max'=>1},
66
- 'doseQuantity' => {'type'=>'Quantity', 'path'=>'DosageInstruction.dose[x]', 'min'=>0, 'max'=>1},
67
- 'rateRatio' => {'type'=>'Ratio', 'path'=>'DosageInstruction.rate[x]', 'min'=>0, 'max'=>1},
68
- 'rateRange' => {'type'=>'Range', 'path'=>'DosageInstruction.rate[x]', 'min'=>0, 'max'=>1},
69
- 'maxDosePerPeriod' => {'type'=>'Ratio', 'path'=>'DosageInstruction.maxDosePerPeriod', 'min'=>0, 'max'=>1}
53
+ 'id' => { 'type' => 'id', 'path' => 'DosageInstruction.id', 'min' => 0, 'max' => 1 },
54
+ 'extension' => { 'type' => 'Extension', 'path' => 'DosageInstruction.extension', 'min' => 0, 'max' => Float::INFINITY },
55
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'DosageInstruction.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
56
+ 'text' => { 'type' => 'string', 'path' => 'DosageInstruction.text', 'min' => 0, 'max' => 1 },
57
+ 'additionalInstructions' => { 'type' => 'CodeableConcept', 'path' => 'DosageInstruction.additionalInstructions', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => nil } },
58
+ 'timing' => { 'type' => 'Timing', 'path' => 'DosageInstruction.timing', 'min' => 0, 'max' => 1 },
59
+ 'asNeededBoolean' => { 'type' => 'boolean', 'path' => 'DosageInstruction.asNeeded[x]', 'min' => 0, 'max' => 1 },
60
+ 'asNeededCodeableConcept' => { 'type' => 'CodeableConcept', 'path' => 'DosageInstruction.asNeeded[x]', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => nil } },
61
+ 'siteCodeableConcept' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'DosageInstruction.site[x]', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/approach-site-codes' } },
62
+ 'siteReference' => { 'type' => 'Reference', 'path' => 'DosageInstruction.site[x]', 'min' => 0, 'max' => 1 },
63
+ 'route' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'DosageInstruction.route', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/route-codes' } },
64
+ 'method' => { 'local_name' => 'local_method', 'type' => 'CodeableConcept', 'path' => 'DosageInstruction.method', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => nil } },
65
+ 'doseRange' => { 'type' => 'Range', 'path' => 'DosageInstruction.dose[x]', 'min' => 0, 'max' => 1 },
66
+ 'doseQuantity' => { 'type' => 'Quantity', 'path' => 'DosageInstruction.dose[x]', 'min' => 0, 'max' => 1 },
67
+ 'rateRatio' => { 'type' => 'Ratio', 'path' => 'DosageInstruction.rate[x]', 'min' => 0, 'max' => 1 },
68
+ 'rateRange' => { 'type' => 'Range', 'path' => 'DosageInstruction.rate[x]', 'min' => 0, 'max' => 1 },
69
+ 'maxDosePerPeriod' => { 'type' => 'Ratio', 'path' => 'DosageInstruction.maxDosePerPeriod', 'min' => 0, 'max' => 1 }
70
70
  }
71
71
 
72
72
  attr_accessor :id # 0-1 id
@@ -97,15 +97,15 @@ module FHIR
97
97
  'medication' => ['CodeableConcept', 'Reference']
98
98
  }
99
99
  METADATA = {
100
- 'id' => {'type'=>'id', 'path'=>'DispenseRequest.id', 'min'=>0, 'max'=>1},
101
- 'extension' => {'type'=>'Extension', 'path'=>'DispenseRequest.extension', 'min'=>0, 'max'=>Float::INFINITY},
102
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'DispenseRequest.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
103
- 'medicationCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'DispenseRequest.medication[x]', 'min'=>0, 'max'=>1},
104
- 'medicationReference' => {'type'=>'Reference', 'path'=>'DispenseRequest.medication[x]', 'min'=>0, 'max'=>1},
105
- 'validityPeriod' => {'type'=>'Period', 'path'=>'DispenseRequest.validityPeriod', 'min'=>0, 'max'=>1},
106
- 'numberOfRepeatsAllowed' => {'type'=>'positiveInt', 'path'=>'DispenseRequest.numberOfRepeatsAllowed', 'min'=>0, 'max'=>1},
107
- 'quantity' => {'type'=>'Quantity', 'path'=>'DispenseRequest.quantity', 'min'=>0, 'max'=>1},
108
- 'expectedSupplyDuration' => {'type'=>'Quantity', 'path'=>'DispenseRequest.expectedSupplyDuration', 'min'=>0, 'max'=>1}
100
+ 'id' => { 'type' => 'id', 'path' => 'DispenseRequest.id', 'min' => 0, 'max' => 1 },
101
+ 'extension' => { 'type' => 'Extension', 'path' => 'DispenseRequest.extension', 'min' => 0, 'max' => Float::INFINITY },
102
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'DispenseRequest.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
103
+ 'medicationCodeableConcept' => { 'type' => 'CodeableConcept', 'path' => 'DispenseRequest.medication[x]', 'min' => 0, 'max' => 1 },
104
+ 'medicationReference' => { 'type' => 'Reference', 'path' => 'DispenseRequest.medication[x]', 'min' => 0, 'max' => 1 },
105
+ 'validityPeriod' => { 'type' => 'Period', 'path' => 'DispenseRequest.validityPeriod', 'min' => 0, 'max' => 1 },
106
+ 'numberOfRepeatsAllowed' => { 'type' => 'positiveInt', 'path' => 'DispenseRequest.numberOfRepeatsAllowed', 'min' => 0, 'max' => 1 },
107
+ 'quantity' => { 'type' => 'Quantity', 'path' => 'DispenseRequest.quantity', 'min' => 0, 'max' => 1 },
108
+ 'expectedSupplyDuration' => { 'type' => 'Quantity', 'path' => 'DispenseRequest.expectedSupplyDuration', 'min' => 0, 'max' => 1 }
109
109
  }
110
110
 
111
111
  attr_accessor :id # 0-1 id
@@ -125,11 +125,11 @@ module FHIR
125
125
  include FHIR::DSTU2::Xml
126
126
 
127
127
  METADATA = {
128
- 'id' => {'type'=>'id', 'path'=>'Substitution.id', 'min'=>0, 'max'=>1},
129
- 'extension' => {'type'=>'Extension', 'path'=>'Substitution.extension', 'min'=>0, 'max'=>Float::INFINITY},
130
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Substitution.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
131
- 'type' => {'valid_codes'=>{'http://hl7.org/fhir/v3/substanceAdminSubstitution'=>['E', 'EC', 'BC', 'G', 'TE', 'TB', 'TG', 'F', 'N']}, 'type'=>'CodeableConcept', 'path'=>'Substitution.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-ActSubstanceAdminSubstitutionCode'}},
132
- 'reason' => {'valid_codes'=>{'http://hl7.org/fhir/v3/ActReason'=>['_ActAccommodationReason', 'ACCREQNA', 'FLRCNV', 'MEDNEC', 'PAT', '_ActCoverageReason', '_EligibilityActReasonCode', '_ActIneligibilityReason', 'COVSUS', 'DECSD', 'REGERR', '_CoverageEligibilityReason', 'AGE', 'CRIME', 'DIS', 'EMPLOY', 'FINAN', 'HEALTH', 'MULTI', 'PNC', 'STATUTORY', 'VEHIC', 'WORK', '_ActInformationManagementReason', '_ActHealthInformationManagementReason', '_ActConsentInformationAccessOverrideReason', 'OVRER', 'OVRPJ', 'OVRPS', 'OVRTPS', 'PurposeOfUse', 'HMARKT', 'HOPERAT', 'DONAT', 'FRAUD', 'GOV', 'HACCRED', 'HCOMPL', 'HDECD', 'HDIRECT', 'HLEGAL', 'HOUTCOMS', 'HPRGRP', 'HQUALIMP', 'HSYSADMIN', 'MEMADMIN', 'PATADMIN', 'PATSFTY', 'PERFMSR', 'RECORDMGT', 'TRAIN', 'HPAYMT', 'CLMATTCH', 'COVAUTH', 'COVERAGE', 'ELIGDTRM', 'ELIGVER', 'ENROLLM', 'REMITADV', 'HRESCH', 'CLINTRCH', 'PATRQT', 'FAMRQT', 'PWATRNY', 'SUPNWK', 'PUBHLTH', 'DISASTER', 'THREAT', 'TREAT', 'CAREMGT', 'CLINTRL', 'ETREAT', 'POPHLTH', '_ActInformationPrivacyReason', 'MARKT', 'OPERAT', 'LEGAL', 'ACCRED', 'COMPL', 'ENADMIN', 'OUTCOMS', 'PRGRPT', 'QUALIMP', 'SYSADMN', 'PAYMT', 'RESCH', 'SRVC', '_ActInvalidReason', 'ADVSTORAGE', 'COLDCHNBRK', 'EXPLOT', 'OUTSIDESCHED', 'PRODRECALL', '_ActInvoiceCancelReason', 'INCCOVPTY', 'INCINVOICE', 'INCPOLICY', 'INCPROV', '_ActNoImmunizationReason', 'IMMUNE', 'MEDPREC', 'OSTOCK', 'PATOBJ', 'PHILISOP', 'RELIG', 'VACEFF', 'VACSAF', '_ActSupplyFulfillmentRefusalReason', 'FRR01', 'FRR02', 'FRR03', 'FRR04', 'FRR05', 'FRR06', '_ClinicalResearchEventReason', 'RET', 'SCH', 'TRM', 'UNS', '_ClinicalResearchObservationReason', 'NPT', 'PPT', 'UPT', '_CombinedPharmacyOrderSuspendReasonCode', 'ALTCHOICE', 'CLARIF', 'DRUGHIGH', 'HOSPADM', 'LABINT', 'NON-AVAIL', 'PREG', 'SALG', 'SDDI', 'SDUPTHER', 'SINTOL', 'SURG', 'WASHOUT', '_ControlActNullificationReasonCode', 'ALTD', 'EIE', 'NORECMTCH', '_ControlActNullificationRefusalReasonType', 'INRQSTATE', 'NOMATCH', 'NOPRODMTCH', 'NOSERMTCH', 'NOVERMTCH', 'NOPERM', 'NOUSERPERM', 'NOAGNTPERM', 'NOUSRPERM', 'WRNGVER', '_ControlActReason', '_MedicationOrderAbortReasonCode', 'DISCONT', 'INEFFECT', 'MONIT', 'NOREQ', 'NOTCOVER', 'PREFUS', 'RECALL', 'REPLACE', 'DOSECHG', 'REPLACEFIX', 'UNABLE', '_MedicationOrderReleaseReasonCode', 'HOLDDONE', 'HOLDINAP', '_ModifyPrescriptionReasonType', 'ADMINERROR', 'CLINMOD', '_PharmacySupplyEventAbortReason', 'CONTRA', 'FOABORT', 'FOSUSP', 'NOPICK', 'PATDEC', 'QUANTCHG', '_PharmacySupplyEventStockReasonCode', 'FLRSTCK', 'LTC', 'OFFICE', 'PHARM', 'PROG', '_PharmacySupplyRequestRenewalRefusalReasonCode', 'ALREADYRX', 'FAMPHYS', 'MODIFY', 'NEEDAPMT', 'NOTAVAIL', 'NOTPAT', 'ONHOLD', 'PRNA', 'STOPMED', 'TOOEARLY', '_SupplyOrderAbortReasonCode', 'IMPROV', 'INTOL', 'NEWSTR', 'NEWTHER', '_GenericUpdateReasonCode', 'CHGDATA', 'FIXDATA', 'MDATA', 'NEWDATA', 'UMDATA', '_PatientProfileQueryReasonCode', 'ADMREV', 'PATCAR', 'PATREQ', 'PRCREV', 'REGUL', 'RSRCH', 'VALIDATION', '_PharmacySupplyRequestFulfillerRevisionRefusalReasonCode', 'LOCKED', 'UNKWNTARGET', '_RefusalReasonCode', '_SchedulingActReason', 'BLK', 'DEC', 'FIN', 'MED', 'MTG', 'PHY', '_StatusRevisionRefusalReasonCode', 'FILLED', '_SubstanceAdministrationPermissionRefusalReasonCode', 'PATINELIG', 'PROTUNMET', 'PROVUNAUTH', '_SubstanceAdminSubstitutionNotAllowedReason', 'ALGINT', 'COMPCON', 'THERCHAR', 'TRIAL', 'CT', 'FP', 'OS', 'RR', '_TransferActReason', 'ER', 'RQ', '_ActBillableServiceReason', '_ActBillableClinicalServiceReason', 'BONUS', 'CHD', 'DEP', 'ECH', 'EDU', 'EMP', 'ESP', 'FAM', 'IND', 'INVOICE', 'PROA', 'RECOV', 'RETRO', 'SPC', 'SPO', 'TRAN']}, 'type'=>'CodeableConcept', 'path'=>'Substitution.reason', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-SubstanceAdminSubstitutionReason'}}
128
+ 'id' => { 'type' => 'id', 'path' => 'Substitution.id', 'min' => 0, 'max' => 1 },
129
+ 'extension' => { 'type' => 'Extension', 'path' => 'Substitution.extension', 'min' => 0, 'max' => Float::INFINITY },
130
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Substitution.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
131
+ 'type' => { 'valid_codes' => { 'http://hl7.org/fhir/v3/substanceAdminSubstitution' => ['E', 'EC', 'BC', 'G', 'TE', 'TB', 'TG', 'F', 'N'] }, 'type' => 'CodeableConcept', 'path' => 'Substitution.type', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/v3-ActSubstanceAdminSubstitutionCode' } },
132
+ 'reason' => { 'valid_codes' => { 'http://hl7.org/fhir/v3/ActReason' => ['_ActAccommodationReason', 'ACCREQNA', 'FLRCNV', 'MEDNEC', 'PAT', '_ActCoverageReason', '_EligibilityActReasonCode', '_ActIneligibilityReason', 'COVSUS', 'DECSD', 'REGERR', '_CoverageEligibilityReason', 'AGE', 'CRIME', 'DIS', 'EMPLOY', 'FINAN', 'HEALTH', 'MULTI', 'PNC', 'STATUTORY', 'VEHIC', 'WORK', '_ActInformationManagementReason', '_ActHealthInformationManagementReason', '_ActConsentInformationAccessOverrideReason', 'OVRER', 'OVRPJ', 'OVRPS', 'OVRTPS', 'PurposeOfUse', 'HMARKT', 'HOPERAT', 'DONAT', 'FRAUD', 'GOV', 'HACCRED', 'HCOMPL', 'HDECD', 'HDIRECT', 'HLEGAL', 'HOUTCOMS', 'HPRGRP', 'HQUALIMP', 'HSYSADMIN', 'MEMADMIN', 'PATADMIN', 'PATSFTY', 'PERFMSR', 'RECORDMGT', 'TRAIN', 'HPAYMT', 'CLMATTCH', 'COVAUTH', 'COVERAGE', 'ELIGDTRM', 'ELIGVER', 'ENROLLM', 'REMITADV', 'HRESCH', 'CLINTRCH', 'PATRQT', 'FAMRQT', 'PWATRNY', 'SUPNWK', 'PUBHLTH', 'DISASTER', 'THREAT', 'TREAT', 'CAREMGT', 'CLINTRL', 'ETREAT', 'POPHLTH', '_ActInformationPrivacyReason', 'MARKT', 'OPERAT', 'LEGAL', 'ACCRED', 'COMPL', 'ENADMIN', 'OUTCOMS', 'PRGRPT', 'QUALIMP', 'SYSADMN', 'PAYMT', 'RESCH', 'SRVC', '_ActInvalidReason', 'ADVSTORAGE', 'COLDCHNBRK', 'EXPLOT', 'OUTSIDESCHED', 'PRODRECALL', '_ActInvoiceCancelReason', 'INCCOVPTY', 'INCINVOICE', 'INCPOLICY', 'INCPROV', '_ActNoImmunizationReason', 'IMMUNE', 'MEDPREC', 'OSTOCK', 'PATOBJ', 'PHILISOP', 'RELIG', 'VACEFF', 'VACSAF', '_ActSupplyFulfillmentRefusalReason', 'FRR01', 'FRR02', 'FRR03', 'FRR04', 'FRR05', 'FRR06', '_ClinicalResearchEventReason', 'RET', 'SCH', 'TRM', 'UNS', '_ClinicalResearchObservationReason', 'NPT', 'PPT', 'UPT', '_CombinedPharmacyOrderSuspendReasonCode', 'ALTCHOICE', 'CLARIF', 'DRUGHIGH', 'HOSPADM', 'LABINT', 'NON-AVAIL', 'PREG', 'SALG', 'SDDI', 'SDUPTHER', 'SINTOL', 'SURG', 'WASHOUT', '_ControlActNullificationReasonCode', 'ALTD', 'EIE', 'NORECMTCH', '_ControlActNullificationRefusalReasonType', 'INRQSTATE', 'NOMATCH', 'NOPRODMTCH', 'NOSERMTCH', 'NOVERMTCH', 'NOPERM', 'NOUSERPERM', 'NOAGNTPERM', 'NOUSRPERM', 'WRNGVER', '_ControlActReason', '_MedicationOrderAbortReasonCode', 'DISCONT', 'INEFFECT', 'MONIT', 'NOREQ', 'NOTCOVER', 'PREFUS', 'RECALL', 'REPLACE', 'DOSECHG', 'REPLACEFIX', 'UNABLE', '_MedicationOrderReleaseReasonCode', 'HOLDDONE', 'HOLDINAP', '_ModifyPrescriptionReasonType', 'ADMINERROR', 'CLINMOD', '_PharmacySupplyEventAbortReason', 'CONTRA', 'FOABORT', 'FOSUSP', 'NOPICK', 'PATDEC', 'QUANTCHG', '_PharmacySupplyEventStockReasonCode', 'FLRSTCK', 'LTC', 'OFFICE', 'PHARM', 'PROG', '_PharmacySupplyRequestRenewalRefusalReasonCode', 'ALREADYRX', 'FAMPHYS', 'MODIFY', 'NEEDAPMT', 'NOTAVAIL', 'NOTPAT', 'ONHOLD', 'PRNA', 'STOPMED', 'TOOEARLY', '_SupplyOrderAbortReasonCode', 'IMPROV', 'INTOL', 'NEWSTR', 'NEWTHER', '_GenericUpdateReasonCode', 'CHGDATA', 'FIXDATA', 'MDATA', 'NEWDATA', 'UMDATA', '_PatientProfileQueryReasonCode', 'ADMREV', 'PATCAR', 'PATREQ', 'PRCREV', 'REGUL', 'RSRCH', 'VALIDATION', '_PharmacySupplyRequestFulfillerRevisionRefusalReasonCode', 'LOCKED', 'UNKWNTARGET', '_RefusalReasonCode', '_SchedulingActReason', 'BLK', 'DEC', 'FIN', 'MED', 'MTG', 'PHY', '_StatusRevisionRefusalReasonCode', 'FILLED', '_SubstanceAdministrationPermissionRefusalReasonCode', 'PATINELIG', 'PROTUNMET', 'PROVUNAUTH', '_SubstanceAdminSubstitutionNotAllowedReason', 'ALGINT', 'COMPCON', 'THERCHAR', 'TRIAL', 'CT', 'FP', 'OS', 'RR', '_TransferActReason', 'ER', 'RQ', '_ActBillableServiceReason', '_ActBillableClinicalServiceReason', 'BONUS', 'CHD', 'DEP', 'ECH', 'EDU', 'EMP', 'ESP', 'FAM', 'IND', 'INVOICE', 'PROA', 'RECOV', 'RETRO', 'SPC', 'SPO', 'TRAN'] }, 'type' => 'CodeableConcept', 'path' => 'Substitution.reason', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/v3-SubstanceAdminSubstitutionReason' } }
133
133
  }
134
134
 
135
135
  attr_accessor :id # 0-1 id
@@ -170,4 +170,4 @@ module FHIR
170
170
  end
171
171
  end
172
172
  end
173
- end
173
+ end
@@ -12,30 +12,30 @@ module FHIR
12
12
  }
13
13
  SEARCH_PARAMS = ['code', 'effectivedate', 'identifier', 'medication', 'patient', 'source', 'status']
14
14
  METADATA = {
15
- 'id' => {'type'=>'id', 'path'=>'MedicationStatement.id', 'min'=>0, 'max'=>1},
16
- 'meta' => {'type'=>'Meta', 'path'=>'MedicationStatement.meta', 'min'=>0, 'max'=>1},
17
- 'implicitRules' => {'type'=>'uri', 'path'=>'MedicationStatement.implicitRules', 'min'=>0, 'max'=>1},
18
- 'language' => {'type'=>'code', 'path'=>'MedicationStatement.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
19
- 'text' => {'type'=>'Narrative', 'path'=>'MedicationStatement.text', 'min'=>0, 'max'=>1},
20
- 'contained' => {'type'=>'Resource', 'path'=>'MedicationStatement.contained', 'min'=>0, 'max'=>Float::INFINITY},
21
- 'extension' => {'type'=>'Extension', 'path'=>'MedicationStatement.extension', 'min'=>0, 'max'=>Float::INFINITY},
22
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'MedicationStatement.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
23
- 'identifier' => {'type'=>'Identifier', 'path'=>'MedicationStatement.identifier', 'min'=>0, 'max'=>Float::INFINITY},
24
- 'patient' => {'type'=>'Reference', 'path'=>'MedicationStatement.patient', 'min'=>1, 'max'=>1},
25
- 'informationSource' => {'type'=>'Reference', 'path'=>'MedicationStatement.informationSource', 'min'=>0, 'max'=>1},
26
- 'dateAsserted' => {'type'=>'dateTime', 'path'=>'MedicationStatement.dateAsserted', 'min'=>0, 'max'=>1},
27
- 'status' => {'valid_codes'=>{'http://hl7.org/fhir/medication-statement-status'=>['active', 'completed', 'entered-in-error', 'intended']}, 'type'=>'code', 'path'=>'MedicationStatement.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/medication-statement-status'}},
28
- 'wasNotTaken' => {'type'=>'boolean', 'path'=>'MedicationStatement.wasNotTaken', 'min'=>0, 'max'=>1},
29
- 'reasonNotTaken' => {'valid_codes'=>{'http://hl7.org/fhir/reason-medication-not-given'=>['a', 'b', 'c', 'd']}, 'type'=>'CodeableConcept', 'path'=>'MedicationStatement.reasonNotTaken', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/reason-medication-not-given-codes'}},
30
- 'reasonForUseCodeableConcept' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'MedicationStatement.reasonForUse[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/condition-code'}},
31
- 'reasonForUseReference' => {'type'=>'Reference', 'path'=>'MedicationStatement.reasonForUse[x]', 'min'=>0, 'max'=>1},
32
- 'effectiveDateTime' => {'type'=>'dateTime', 'path'=>'MedicationStatement.effective[x]', 'min'=>0, 'max'=>1},
33
- 'effectivePeriod' => {'type'=>'Period', 'path'=>'MedicationStatement.effective[x]', 'min'=>0, 'max'=>1},
34
- 'note' => {'type'=>'string', 'path'=>'MedicationStatement.note', 'min'=>0, 'max'=>1},
35
- 'supportingInformation' => {'type'=>'Reference', 'path'=>'MedicationStatement.supportingInformation', 'min'=>0, 'max'=>Float::INFINITY},
36
- 'medicationCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'MedicationStatement.medication[x]', 'min'=>1, 'max'=>1},
37
- 'medicationReference' => {'type'=>'Reference', 'path'=>'MedicationStatement.medication[x]', 'min'=>1, 'max'=>1},
38
- 'dosage' => {'type'=>'MedicationStatement::Dosage', 'path'=>'MedicationStatement.dosage', 'min'=>0, 'max'=>Float::INFINITY}
15
+ 'id' => { 'type' => 'id', 'path' => 'MedicationStatement.id', 'min' => 0, 'max' => 1 },
16
+ 'meta' => { 'type' => 'Meta', 'path' => 'MedicationStatement.meta', 'min' => 0, 'max' => 1 },
17
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'MedicationStatement.implicitRules', 'min' => 0, 'max' => 1 },
18
+ 'language' => { 'type' => 'code', 'path' => 'MedicationStatement.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
19
+ 'text' => { 'type' => 'Narrative', 'path' => 'MedicationStatement.text', 'min' => 0, 'max' => 1 },
20
+ 'contained' => { 'type' => 'Resource', 'path' => 'MedicationStatement.contained', 'min' => 0, 'max' => Float::INFINITY },
21
+ 'extension' => { 'type' => 'Extension', 'path' => 'MedicationStatement.extension', 'min' => 0, 'max' => Float::INFINITY },
22
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'MedicationStatement.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
23
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'MedicationStatement.identifier', 'min' => 0, 'max' => Float::INFINITY },
24
+ 'patient' => { 'type' => 'Reference', 'path' => 'MedicationStatement.patient', 'min' => 1, 'max' => 1 },
25
+ 'informationSource' => { 'type' => 'Reference', 'path' => 'MedicationStatement.informationSource', 'min' => 0, 'max' => 1 },
26
+ 'dateAsserted' => { 'type' => 'dateTime', 'path' => 'MedicationStatement.dateAsserted', 'min' => 0, 'max' => 1 },
27
+ 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/medication-statement-status' => ['active', 'completed', 'entered-in-error', 'intended'] }, 'type' => 'code', 'path' => 'MedicationStatement.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/medication-statement-status' } },
28
+ 'wasNotTaken' => { 'type' => 'boolean', 'path' => 'MedicationStatement.wasNotTaken', 'min' => 0, 'max' => 1 },
29
+ 'reasonNotTaken' => { 'valid_codes' => { 'http://hl7.org/fhir/reason-medication-not-given' => ['a', 'b', 'c', 'd'] }, 'type' => 'CodeableConcept', 'path' => 'MedicationStatement.reasonNotTaken', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/reason-medication-not-given-codes' } },
30
+ 'reasonForUseCodeableConcept' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'MedicationStatement.reasonForUse[x]', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/condition-code' } },
31
+ 'reasonForUseReference' => { 'type' => 'Reference', 'path' => 'MedicationStatement.reasonForUse[x]', 'min' => 0, 'max' => 1 },
32
+ 'effectiveDateTime' => { 'type' => 'dateTime', 'path' => 'MedicationStatement.effective[x]', 'min' => 0, 'max' => 1 },
33
+ 'effectivePeriod' => { 'type' => 'Period', 'path' => 'MedicationStatement.effective[x]', 'min' => 0, 'max' => 1 },
34
+ 'note' => { 'type' => 'string', 'path' => 'MedicationStatement.note', 'min' => 0, 'max' => 1 },
35
+ 'supportingInformation' => { 'type' => 'Reference', 'path' => 'MedicationStatement.supportingInformation', 'min' => 0, 'max' => Float::INFINITY },
36
+ 'medicationCodeableConcept' => { 'type' => 'CodeableConcept', 'path' => 'MedicationStatement.medication[x]', 'min' => 1, 'max' => 1 },
37
+ 'medicationReference' => { 'type' => 'Reference', 'path' => 'MedicationStatement.medication[x]', 'min' => 1, 'max' => 1 },
38
+ 'dosage' => { 'type' => 'MedicationStatement::Dosage', 'path' => 'MedicationStatement.dosage', 'min' => 0, 'max' => Float::INFINITY }
39
39
  }
40
40
 
41
41
  class Dosage < FHIR::DSTU2::Model
@@ -50,22 +50,22 @@ module FHIR
50
50
  'rate' => ['Ratio', 'Range']
51
51
  }
52
52
  METADATA = {
53
- 'id' => {'type'=>'id', 'path'=>'Dosage.id', 'min'=>0, 'max'=>1},
54
- 'extension' => {'type'=>'Extension', 'path'=>'Dosage.extension', 'min'=>0, 'max'=>Float::INFINITY},
55
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Dosage.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
56
- 'text' => {'type'=>'string', 'path'=>'Dosage.text', 'min'=>0, 'max'=>1},
57
- 'timing' => {'type'=>'Timing', 'path'=>'Dosage.timing', 'min'=>0, 'max'=>1},
58
- 'asNeededBoolean' => {'type'=>'boolean', 'path'=>'Dosage.asNeeded[x]', 'min'=>0, 'max'=>1},
59
- 'asNeededCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'Dosage.asNeeded[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
60
- 'siteCodeableConcept' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Dosage.site[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/approach-site-codes'}},
61
- 'siteReference' => {'type'=>'Reference', 'path'=>'Dosage.site[x]', 'min'=>0, 'max'=>1},
62
- 'route' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Dosage.route', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/route-codes'}},
63
- 'method' => {'local_name'=>'local_method', 'type'=>'CodeableConcept', 'path'=>'Dosage.method', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
64
- 'quantityQuantity' => {'type'=>'Quantity', 'path'=>'Dosage.quantity[x]', 'min'=>0, 'max'=>1},
65
- 'quantityRange' => {'type'=>'Range', 'path'=>'Dosage.quantity[x]', 'min'=>0, 'max'=>1},
66
- 'rateRatio' => {'type'=>'Ratio', 'path'=>'Dosage.rate[x]', 'min'=>0, 'max'=>1},
67
- 'rateRange' => {'type'=>'Range', 'path'=>'Dosage.rate[x]', 'min'=>0, 'max'=>1},
68
- 'maxDosePerPeriod' => {'type'=>'Ratio', 'path'=>'Dosage.maxDosePerPeriod', 'min'=>0, 'max'=>1}
53
+ 'id' => { 'type' => 'id', 'path' => 'Dosage.id', 'min' => 0, 'max' => 1 },
54
+ 'extension' => { 'type' => 'Extension', 'path' => 'Dosage.extension', 'min' => 0, 'max' => Float::INFINITY },
55
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Dosage.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
56
+ 'text' => { 'type' => 'string', 'path' => 'Dosage.text', 'min' => 0, 'max' => 1 },
57
+ 'timing' => { 'type' => 'Timing', 'path' => 'Dosage.timing', 'min' => 0, 'max' => 1 },
58
+ 'asNeededBoolean' => { 'type' => 'boolean', 'path' => 'Dosage.asNeeded[x]', 'min' => 0, 'max' => 1 },
59
+ 'asNeededCodeableConcept' => { 'type' => 'CodeableConcept', 'path' => 'Dosage.asNeeded[x]', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => nil } },
60
+ 'siteCodeableConcept' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Dosage.site[x]', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/approach-site-codes' } },
61
+ 'siteReference' => { 'type' => 'Reference', 'path' => 'Dosage.site[x]', 'min' => 0, 'max' => 1 },
62
+ 'route' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Dosage.route', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/route-codes' } },
63
+ 'method' => { 'local_name' => 'local_method', 'type' => 'CodeableConcept', 'path' => 'Dosage.method', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => nil } },
64
+ 'quantityQuantity' => { 'type' => 'Quantity', 'path' => 'Dosage.quantity[x]', 'min' => 0, 'max' => 1 },
65
+ 'quantityRange' => { 'type' => 'Range', 'path' => 'Dosage.quantity[x]', 'min' => 0, 'max' => 1 },
66
+ 'rateRatio' => { 'type' => 'Ratio', 'path' => 'Dosage.rate[x]', 'min' => 0, 'max' => 1 },
67
+ 'rateRange' => { 'type' => 'Range', 'path' => 'Dosage.rate[x]', 'min' => 0, 'max' => 1 },
68
+ 'maxDosePerPeriod' => { 'type' => 'Ratio', 'path' => 'Dosage.maxDosePerPeriod', 'min' => 0, 'max' => 1 }
69
69
  }
70
70
 
71
71
  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
@@ -7,25 +7,25 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['author', 'code', 'data', 'destination', 'destination-uri', 'enterer', 'event', 'receiver', 'response-id', 'responsible', 'source', 'source-uri', 'target', 'timestamp']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'MessageHeader.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'MessageHeader.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'MessageHeader.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'MessageHeader.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'text' => {'type'=>'Narrative', 'path'=>'MessageHeader.text', 'min'=>0, 'max'=>1},
15
- 'contained' => {'type'=>'Resource', 'path'=>'MessageHeader.contained', 'min'=>0, 'max'=>Float::INFINITY},
16
- 'extension' => {'type'=>'Extension', 'path'=>'MessageHeader.extension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'MessageHeader.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'timestamp' => {'type'=>'instant', 'path'=>'MessageHeader.timestamp', 'min'=>1, 'max'=>1},
19
- 'event' => {'valid_codes'=>{'http://hl7.org/fhir/message-events'=>['MedicationAdministration-Complete', 'MedicationAdministration-Nullification', 'MedicationAdministration-Recording', 'MedicationAdministration-Update', 'admin-notify', 'diagnosticreport-provide', 'observation-provide', 'patient-link', 'patient-unlink', 'valueset-expand']}, 'type'=>'Coding', 'path'=>'MessageHeader.event', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/message-events'}},
20
- 'response' => {'type'=>'MessageHeader::Response', 'path'=>'MessageHeader.response', 'min'=>0, 'max'=>1},
21
- 'source' => {'type'=>'MessageHeader::Source', 'path'=>'MessageHeader.source', 'min'=>1, 'max'=>1},
22
- 'destination' => {'type'=>'MessageHeader::Destination', 'path'=>'MessageHeader.destination', 'min'=>0, 'max'=>Float::INFINITY},
23
- 'enterer' => {'type'=>'Reference', 'path'=>'MessageHeader.enterer', 'min'=>0, 'max'=>1},
24
- 'author' => {'type'=>'Reference', 'path'=>'MessageHeader.author', 'min'=>0, 'max'=>1},
25
- 'receiver' => {'type'=>'Reference', 'path'=>'MessageHeader.receiver', 'min'=>0, 'max'=>1},
26
- 'responsible' => {'type'=>'Reference', 'path'=>'MessageHeader.responsible', 'min'=>0, 'max'=>1},
27
- 'reason' => {'valid_codes'=>{'http://hl7.org/fhir/message-reasons-encounter'=>['admit', 'discharge', 'absent', 'return', 'moved', 'edit']}, 'type'=>'CodeableConcept', 'path'=>'MessageHeader.reason', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/message-reason-encounter'}},
28
- 'data' => {'type'=>'Reference', 'path'=>'MessageHeader.data', 'min'=>0, 'max'=>Float::INFINITY}
10
+ 'id' => { 'type' => 'id', 'path' => 'MessageHeader.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'MessageHeader.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'MessageHeader.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'MessageHeader.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'text' => { 'type' => 'Narrative', 'path' => 'MessageHeader.text', 'min' => 0, 'max' => 1 },
15
+ 'contained' => { 'type' => 'Resource', 'path' => 'MessageHeader.contained', 'min' => 0, 'max' => Float::INFINITY },
16
+ 'extension' => { 'type' => 'Extension', 'path' => 'MessageHeader.extension', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'MessageHeader.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'timestamp' => { 'type' => 'instant', 'path' => 'MessageHeader.timestamp', 'min' => 1, 'max' => 1 },
19
+ 'event' => { 'valid_codes' => { 'http://hl7.org/fhir/message-events' => ['MedicationAdministration-Complete', 'MedicationAdministration-Nullification', 'MedicationAdministration-Recording', 'MedicationAdministration-Update', 'admin-notify', 'diagnosticreport-provide', 'observation-provide', 'patient-link', 'patient-unlink', 'valueset-expand'] }, 'type' => 'Coding', 'path' => 'MessageHeader.event', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'preferred', 'uri' => 'http://hl7.org/fhir/ValueSet/message-events' } },
20
+ 'response' => { 'type' => 'MessageHeader::Response', 'path' => 'MessageHeader.response', 'min' => 0, 'max' => 1 },
21
+ 'source' => { 'type' => 'MessageHeader::Source', 'path' => 'MessageHeader.source', 'min' => 1, 'max' => 1 },
22
+ 'destination' => { 'type' => 'MessageHeader::Destination', 'path' => 'MessageHeader.destination', 'min' => 0, 'max' => Float::INFINITY },
23
+ 'enterer' => { 'type' => 'Reference', 'path' => 'MessageHeader.enterer', 'min' => 0, 'max' => 1 },
24
+ 'author' => { 'type' => 'Reference', 'path' => 'MessageHeader.author', 'min' => 0, 'max' => 1 },
25
+ 'receiver' => { 'type' => 'Reference', 'path' => 'MessageHeader.receiver', 'min' => 0, 'max' => 1 },
26
+ 'responsible' => { 'type' => 'Reference', 'path' => 'MessageHeader.responsible', 'min' => 0, 'max' => 1 },
27
+ 'reason' => { 'valid_codes' => { 'http://hl7.org/fhir/message-reasons-encounter' => ['admit', 'discharge', 'absent', 'return', 'moved', 'edit'] }, 'type' => 'CodeableConcept', 'path' => 'MessageHeader.reason', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/message-reason-encounter' } },
28
+ 'data' => { 'type' => 'Reference', 'path' => 'MessageHeader.data', 'min' => 0, 'max' => Float::INFINITY }
29
29
  }
30
30
 
31
31
  class Response < FHIR::DSTU2::Model
@@ -34,12 +34,12 @@ module FHIR
34
34
  include FHIR::DSTU2::Xml
35
35
 
36
36
  METADATA = {
37
- 'id' => {'type'=>'id', 'path'=>'Response.id', 'min'=>0, 'max'=>1},
38
- 'extension' => {'type'=>'Extension', 'path'=>'Response.extension', 'min'=>0, 'max'=>Float::INFINITY},
39
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Response.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
40
- 'identifier' => {'type'=>'id', 'path'=>'Response.identifier', 'min'=>1, 'max'=>1},
41
- 'code' => {'valid_codes'=>{'http://hl7.org/fhir/response-code'=>['ok', 'transient-error', 'fatal-error']}, 'type'=>'code', 'path'=>'Response.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/response-code'}},
42
- 'details' => {'type'=>'Reference', 'path'=>'Response.details', 'min'=>0, 'max'=>1}
37
+ 'id' => { 'type' => 'id', 'path' => 'Response.id', 'min' => 0, 'max' => 1 },
38
+ 'extension' => { 'type' => 'Extension', 'path' => 'Response.extension', 'min' => 0, 'max' => Float::INFINITY },
39
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Response.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
40
+ 'identifier' => { 'type' => 'id', 'path' => 'Response.identifier', 'min' => 1, 'max' => 1 },
41
+ 'code' => { 'valid_codes' => { 'http://hl7.org/fhir/response-code' => ['ok', 'transient-error', 'fatal-error'] }, 'type' => 'code', 'path' => 'Response.code', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/response-code' } },
42
+ 'details' => { 'type' => 'Reference', 'path' => 'Response.details', 'min' => 0, 'max' => 1 }
43
43
  }
44
44
 
45
45
  attr_accessor :id # 0-1 id
@@ -56,14 +56,14 @@ module FHIR
56
56
  include FHIR::DSTU2::Xml
57
57
 
58
58
  METADATA = {
59
- 'id' => {'type'=>'id', 'path'=>'Source.id', 'min'=>0, 'max'=>1},
60
- 'extension' => {'type'=>'Extension', 'path'=>'Source.extension', 'min'=>0, 'max'=>Float::INFINITY},
61
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Source.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
62
- 'name' => {'type'=>'string', 'path'=>'Source.name', 'min'=>0, 'max'=>1},
63
- 'software' => {'type'=>'string', 'path'=>'Source.software', 'min'=>0, 'max'=>1},
64
- 'version' => {'type'=>'string', 'path'=>'Source.version', 'min'=>0, 'max'=>1},
65
- 'contact' => {'type'=>'ContactPoint', 'path'=>'Source.contact', 'min'=>0, 'max'=>1},
66
- 'endpoint' => {'type'=>'uri', 'path'=>'Source.endpoint', 'min'=>1, 'max'=>1}
59
+ 'id' => { 'type' => 'id', 'path' => 'Source.id', 'min' => 0, 'max' => 1 },
60
+ 'extension' => { 'type' => 'Extension', 'path' => 'Source.extension', 'min' => 0, 'max' => Float::INFINITY },
61
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Source.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
62
+ 'name' => { 'type' => 'string', 'path' => 'Source.name', 'min' => 0, 'max' => 1 },
63
+ 'software' => { 'type' => 'string', 'path' => 'Source.software', 'min' => 0, 'max' => 1 },
64
+ 'version' => { 'type' => 'string', 'path' => 'Source.version', 'min' => 0, 'max' => 1 },
65
+ 'contact' => { 'type' => 'ContactPoint', 'path' => 'Source.contact', 'min' => 0, 'max' => 1 },
66
+ 'endpoint' => { 'type' => 'uri', 'path' => 'Source.endpoint', 'min' => 1, 'max' => 1 }
67
67
  }
68
68
 
69
69
  attr_accessor :id # 0-1 id
@@ -82,12 +82,12 @@ module FHIR
82
82
  include FHIR::DSTU2::Xml
83
83
 
84
84
  METADATA = {
85
- 'id' => {'type'=>'id', 'path'=>'Destination.id', 'min'=>0, 'max'=>1},
86
- 'extension' => {'type'=>'Extension', 'path'=>'Destination.extension', 'min'=>0, 'max'=>Float::INFINITY},
87
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Destination.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
88
- 'name' => {'type'=>'string', 'path'=>'Destination.name', 'min'=>0, 'max'=>1},
89
- 'target' => {'type'=>'Reference', 'path'=>'Destination.target', 'min'=>0, 'max'=>1},
90
- 'endpoint' => {'type'=>'uri', 'path'=>'Destination.endpoint', 'min'=>1, 'max'=>1}
85
+ 'id' => { 'type' => 'id', 'path' => 'Destination.id', 'min' => 0, 'max' => 1 },
86
+ 'extension' => { 'type' => 'Extension', 'path' => 'Destination.extension', 'min' => 0, 'max' => Float::INFINITY },
87
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Destination.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
88
+ 'name' => { 'type' => 'string', 'path' => 'Destination.name', 'min' => 0, 'max' => 1 },
89
+ 'target' => { 'type' => 'Reference', 'path' => 'Destination.target', 'min' => 0, 'max' => 1 },
90
+ 'endpoint' => { 'type' => 'uri', 'path' => 'Destination.endpoint', 'min' => 1, 'max' => 1 }
91
91
  }
92
92
 
93
93
  attr_accessor :id # 0-1 id
@@ -123,4 +123,4 @@ module FHIR
123
123
  end
124
124
  end
125
125
  end
126
- end
126
+ end