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
@@ -7,39 +7,39 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['abstract', 'base', 'base-path', 'code', 'context', 'context-type', 'date', 'description', 'display', 'experimental', 'ext-context', 'identifier', 'kind', 'name', 'path', 'publisher', 'status', 'type', 'url', 'valueset', 'version']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'StructureDefinition.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'StructureDefinition.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'StructureDefinition.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'StructureDefinition.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'text' => {'type'=>'Narrative', 'path'=>'StructureDefinition.text', 'min'=>0, 'max'=>1},
15
- 'contained' => {'type'=>'Resource', 'path'=>'StructureDefinition.contained', 'min'=>0, 'max'=>Float::INFINITY},
16
- 'extension' => {'type'=>'Extension', 'path'=>'StructureDefinition.extension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'StructureDefinition.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'url' => {'type'=>'uri', 'path'=>'StructureDefinition.url', 'min'=>1, 'max'=>1},
19
- 'identifier' => {'type'=>'Identifier', 'path'=>'StructureDefinition.identifier', 'min'=>0, 'max'=>Float::INFINITY},
20
- 'version' => {'type'=>'string', 'path'=>'StructureDefinition.version', 'min'=>0, 'max'=>1},
21
- 'name' => {'type'=>'string', 'path'=>'StructureDefinition.name', 'min'=>1, 'max'=>1},
22
- 'display' => {'type'=>'string', 'path'=>'StructureDefinition.display', 'min'=>0, 'max'=>1},
23
- 'status' => {'valid_codes'=>{'http://hl7.org/fhir/conformance-resource-status'=>['draft', 'active', 'retired']}, 'type'=>'code', 'path'=>'StructureDefinition.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/conformance-resource-status'}},
24
- 'experimental' => {'type'=>'boolean', 'path'=>'StructureDefinition.experimental', 'min'=>0, 'max'=>1},
25
- 'publisher' => {'type'=>'string', 'path'=>'StructureDefinition.publisher', 'min'=>0, 'max'=>1},
26
- 'contact' => {'type'=>'StructureDefinition::Contact', 'path'=>'StructureDefinition.contact', 'min'=>0, 'max'=>Float::INFINITY},
27
- 'date' => {'type'=>'dateTime', 'path'=>'StructureDefinition.date', 'min'=>0, 'max'=>1},
28
- 'description' => {'type'=>'string', 'path'=>'StructureDefinition.description', 'min'=>0, 'max'=>1},
29
- 'useContext' => {'valid_codes'=>{'urn:iso:std:iso:3166'=>[], 'http://unstats.un.org/unsd/methods/m49/m49.htm'=>[], 'https://www.usps.com/'=>['AK', 'AL', 'AR', 'AS', 'AZ', 'CA', 'CO', 'CT', 'DC', 'DE', 'FL', 'FM', 'GA', 'GU', 'HI', 'IA', 'ID', 'IL', 'IN', 'KS', 'KY', 'LA', 'MA', 'MD', 'ME', 'MH', 'MI', 'MN', 'MO', 'MP', 'MS', 'MT', 'NC', 'ND', 'NE', 'NH', 'NJ', 'NM', 'NV', 'NY', 'OH', 'OK', 'OR', 'PA', 'PR', 'PW', 'RI', 'SC', 'SD', 'TN', 'TX', 'UM', 'UT', 'VA', 'VI', 'VT', 'WA', 'WI', 'WV', 'WY'], 'http://hl7.org/fhir/practitioner-specialty'=>['cardio', 'dent', 'dietary', 'midw', 'sysarch']}, 'type'=>'CodeableConcept', 'path'=>'StructureDefinition.useContext', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/use-context'}},
30
- 'requirements' => {'type'=>'string', 'path'=>'StructureDefinition.requirements', 'min'=>0, 'max'=>1},
31
- 'copyright' => {'type'=>'string', 'path'=>'StructureDefinition.copyright', 'min'=>0, 'max'=>1},
32
- 'code' => {'valid_codes'=>{'http://snomed.info/sct'=>[], 'http://loinc.org'=>[]}, 'type'=>'Coding', 'path'=>'StructureDefinition.code', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/profile-code'}},
33
- 'fhirVersion' => {'type'=>'id', 'path'=>'StructureDefinition.fhirVersion', 'min'=>0, 'max'=>1},
34
- 'mapping' => {'type'=>'StructureDefinition::Mapping', 'path'=>'StructureDefinition.mapping', 'min'=>0, 'max'=>Float::INFINITY},
35
- 'kind' => {'valid_codes'=>{'http://hl7.org/fhir/structure-definition-kind'=>['datatype', 'resource', 'logical']}, 'type'=>'code', 'path'=>'StructureDefinition.kind', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/structure-definition-kind'}},
36
- 'constrainedType' => {'valid_codes'=>{'http://hl7.org/fhir/data-types'=>['Address', 'Age', 'Annotation', 'Attachment', 'BackboneElement', 'CodeableConcept', 'Coding', 'ContactPoint', 'Count', 'Distance', 'Duration', 'Element', 'ElementDefinition', 'Extension', 'HumanName', 'Identifier', 'Meta', 'Money', 'Narrative', 'Period', 'Quantity', 'Range', 'Ratio', 'Reference', 'SampledData', 'Signature', 'SimpleQuantity', 'Timing', 'base64Binary', 'boolean', 'code', 'date', 'dateTime', 'decimal', 'id', 'instant', 'integer', 'markdown', 'oid', 'positiveInt', 'string', 'time', 'unsignedInt', 'uri', 'uuid', 'xhtml'], 'http://hl7.org/fhir/resource-types'=>['Account', 'AllergyIntolerance', 'Appointment', 'AppointmentResponse', 'AuditEvent', 'Basic', 'Binary', 'BodySite', 'Bundle', 'CarePlan', 'Claim', 'ClaimResponse', 'ClinicalImpression', 'Communication', 'CommunicationRequest', 'Composition', 'ConceptMap', 'Condition', 'Conformance', 'Contract', 'Coverage', 'DataElement', 'DetectedIssue', 'Device', 'DeviceComponent', 'DeviceMetric', 'DeviceUseRequest', 'DeviceUseStatement', 'DiagnosticOrder', 'DiagnosticReport', 'DocumentManifest', 'DocumentReference', 'DomainResource', 'EligibilityRequest', 'EligibilityResponse', 'Encounter', 'EnrollmentRequest', 'EnrollmentResponse', 'EpisodeOfCare', 'ExplanationOfBenefit', 'FamilyMemberHistory', 'Flag', 'Goal', 'Group', 'HealthcareService', 'ImagingObjectSelection', 'ImagingStudy', 'Immunization', 'ImmunizationRecommendation', 'ImplementationGuide', 'List', 'Location', 'Media', 'Medication', 'MedicationAdministration', 'MedicationDispense', 'MedicationOrder', 'MedicationStatement', 'MessageHeader', 'NamingSystem', 'NutritionOrder', 'Observation', 'OperationDefinition', 'OperationOutcome', 'Order', 'OrderResponse', 'Organization', 'Parameters', 'Patient', 'PaymentNotice', 'PaymentReconciliation', 'Person', 'Practitioner', 'Procedure', 'ProcedureRequest', 'ProcessRequest', 'ProcessResponse', 'Provenance', 'Questionnaire', 'QuestionnaireResponse', 'ReferralRequest', 'RelatedPerson', 'Resource', 'RiskAssessment', 'Schedule', 'SearchParameter', 'Slot', 'Specimen', 'StructureDefinition', 'Subscription', 'Substance', 'SupplyDelivery', 'SupplyRequest', 'TestScript', 'ValueSet', 'VisionPrescription']}, 'type'=>'code', 'path'=>'StructureDefinition.constrainedType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/defined-types'}},
37
- 'abstract' => {'type'=>'boolean', 'path'=>'StructureDefinition.abstract', 'min'=>1, 'max'=>1},
38
- 'contextType' => {'valid_codes'=>{'http://hl7.org/fhir/extension-context'=>['resource', 'datatype', 'mapping', 'extension']}, 'type'=>'code', 'path'=>'StructureDefinition.contextType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/extension-context'}},
39
- 'context' => {'type'=>'string', 'path'=>'StructureDefinition.context', 'min'=>0, 'max'=>Float::INFINITY},
40
- 'base' => {'type'=>'uri', 'path'=>'StructureDefinition.base', 'min'=>0, 'max'=>1},
41
- 'snapshot' => {'type'=>'StructureDefinition::Snapshot', 'path'=>'StructureDefinition.snapshot', 'min'=>0, 'max'=>1},
42
- 'differential' => {'type'=>'StructureDefinition::Differential', 'path'=>'StructureDefinition.differential', 'min'=>0, 'max'=>1}
10
+ 'id' => { 'type' => 'id', 'path' => 'StructureDefinition.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'StructureDefinition.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'StructureDefinition.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'StructureDefinition.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'text' => { 'type' => 'Narrative', 'path' => 'StructureDefinition.text', 'min' => 0, 'max' => 1 },
15
+ 'contained' => { 'type' => 'Resource', 'path' => 'StructureDefinition.contained', 'min' => 0, 'max' => Float::INFINITY },
16
+ 'extension' => { 'type' => 'Extension', 'path' => 'StructureDefinition.extension', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'StructureDefinition.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'url' => { 'type' => 'uri', 'path' => 'StructureDefinition.url', 'min' => 1, 'max' => 1 },
19
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'StructureDefinition.identifier', 'min' => 0, 'max' => Float::INFINITY },
20
+ 'version' => { 'type' => 'string', 'path' => 'StructureDefinition.version', 'min' => 0, 'max' => 1 },
21
+ 'name' => { 'type' => 'string', 'path' => 'StructureDefinition.name', 'min' => 1, 'max' => 1 },
22
+ 'display' => { 'type' => 'string', 'path' => 'StructureDefinition.display', 'min' => 0, 'max' => 1 },
23
+ 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/conformance-resource-status' => ['draft', 'active', 'retired'] }, 'type' => 'code', 'path' => 'StructureDefinition.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/conformance-resource-status' } },
24
+ 'experimental' => { 'type' => 'boolean', 'path' => 'StructureDefinition.experimental', 'min' => 0, 'max' => 1 },
25
+ 'publisher' => { 'type' => 'string', 'path' => 'StructureDefinition.publisher', 'min' => 0, 'max' => 1 },
26
+ 'contact' => { 'type' => 'StructureDefinition::Contact', 'path' => 'StructureDefinition.contact', 'min' => 0, 'max' => Float::INFINITY },
27
+ 'date' => { 'type' => 'dateTime', 'path' => 'StructureDefinition.date', 'min' => 0, 'max' => 1 },
28
+ 'description' => { 'type' => 'string', 'path' => 'StructureDefinition.description', 'min' => 0, 'max' => 1 },
29
+ 'useContext' => { 'valid_codes' => { 'urn:iso:std:iso:3166' => [], 'http://unstats.un.org/unsd/methods/m49/m49.htm' => [], 'https://www.usps.com/' => ['AK', 'AL', 'AR', 'AS', 'AZ', 'CA', 'CO', 'CT', 'DC', 'DE', 'FL', 'FM', 'GA', 'GU', 'HI', 'IA', 'ID', 'IL', 'IN', 'KS', 'KY', 'LA', 'MA', 'MD', 'ME', 'MH', 'MI', 'MN', 'MO', 'MP', 'MS', 'MT', 'NC', 'ND', 'NE', 'NH', 'NJ', 'NM', 'NV', 'NY', 'OH', 'OK', 'OR', 'PA', 'PR', 'PW', 'RI', 'SC', 'SD', 'TN', 'TX', 'UM', 'UT', 'VA', 'VI', 'VT', 'WA', 'WI', 'WV', 'WY'], 'http://hl7.org/fhir/practitioner-specialty' => ['cardio', 'dent', 'dietary', 'midw', 'sysarch'] }, 'type' => 'CodeableConcept', 'path' => 'StructureDefinition.useContext', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'extensible', 'uri' => 'http://hl7.org/fhir/ValueSet/use-context' } },
30
+ 'requirements' => { 'type' => 'string', 'path' => 'StructureDefinition.requirements', 'min' => 0, 'max' => 1 },
31
+ 'copyright' => { 'type' => 'string', 'path' => 'StructureDefinition.copyright', 'min' => 0, 'max' => 1 },
32
+ 'code' => { 'valid_codes' => { 'http://snomed.info/sct' => [], 'http://loinc.org' => [] }, 'type' => 'Coding', 'path' => 'StructureDefinition.code', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/profile-code' } },
33
+ 'fhirVersion' => { 'type' => 'id', 'path' => 'StructureDefinition.fhirVersion', 'min' => 0, 'max' => 1 },
34
+ 'mapping' => { 'type' => 'StructureDefinition::Mapping', 'path' => 'StructureDefinition.mapping', 'min' => 0, 'max' => Float::INFINITY },
35
+ 'kind' => { 'valid_codes' => { 'http://hl7.org/fhir/structure-definition-kind' => ['datatype', 'resource', 'logical'] }, 'type' => 'code', 'path' => 'StructureDefinition.kind', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/structure-definition-kind' } },
36
+ 'constrainedType' => { 'valid_codes' => { 'http://hl7.org/fhir/data-types' => ['Address', 'Age', 'Annotation', 'Attachment', 'BackboneElement', 'CodeableConcept', 'Coding', 'ContactPoint', 'Count', 'Distance', 'Duration', 'Element', 'ElementDefinition', 'Extension', 'HumanName', 'Identifier', 'Meta', 'Money', 'Narrative', 'Period', 'Quantity', 'Range', 'Ratio', 'Reference', 'SampledData', 'Signature', 'SimpleQuantity', 'Timing', 'base64Binary', 'boolean', 'code', 'date', 'dateTime', 'decimal', 'id', 'instant', 'integer', 'markdown', 'oid', 'positiveInt', 'string', 'time', 'unsignedInt', 'uri', 'uuid', 'xhtml'], 'http://hl7.org/fhir/resource-types' => ['Account', 'AllergyIntolerance', 'Appointment', 'AppointmentResponse', 'AuditEvent', 'Basic', 'Binary', 'BodySite', 'Bundle', 'CarePlan', 'Claim', 'ClaimResponse', 'ClinicalImpression', 'Communication', 'CommunicationRequest', 'Composition', 'ConceptMap', 'Condition', 'Conformance', 'Contract', 'Coverage', 'DataElement', 'DetectedIssue', 'Device', 'DeviceComponent', 'DeviceMetric', 'DeviceUseRequest', 'DeviceUseStatement', 'DiagnosticOrder', 'DiagnosticReport', 'DocumentManifest', 'DocumentReference', 'DomainResource', 'EligibilityRequest', 'EligibilityResponse', 'Encounter', 'EnrollmentRequest', 'EnrollmentResponse', 'EpisodeOfCare', 'ExplanationOfBenefit', 'FamilyMemberHistory', 'Flag', 'Goal', 'Group', 'HealthcareService', 'ImagingObjectSelection', 'ImagingStudy', 'Immunization', 'ImmunizationRecommendation', 'ImplementationGuide', 'List', 'Location', 'Media', 'Medication', 'MedicationAdministration', 'MedicationDispense', 'MedicationOrder', 'MedicationStatement', 'MessageHeader', 'NamingSystem', 'NutritionOrder', 'Observation', 'OperationDefinition', 'OperationOutcome', 'Order', 'OrderResponse', 'Organization', 'Parameters', 'Patient', 'PaymentNotice', 'PaymentReconciliation', 'Person', 'Practitioner', 'Procedure', 'ProcedureRequest', 'ProcessRequest', 'ProcessResponse', 'Provenance', 'Questionnaire', 'QuestionnaireResponse', 'ReferralRequest', 'RelatedPerson', 'Resource', 'RiskAssessment', 'Schedule', 'SearchParameter', 'Slot', 'Specimen', 'StructureDefinition', 'Subscription', 'Substance', 'SupplyDelivery', 'SupplyRequest', 'TestScript', 'ValueSet', 'VisionPrescription'] }, 'type' => 'code', 'path' => 'StructureDefinition.constrainedType', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/defined-types' } },
37
+ 'abstract' => { 'type' => 'boolean', 'path' => 'StructureDefinition.abstract', 'min' => 1, 'max' => 1 },
38
+ 'contextType' => { 'valid_codes' => { 'http://hl7.org/fhir/extension-context' => ['resource', 'datatype', 'mapping', 'extension'] }, 'type' => 'code', 'path' => 'StructureDefinition.contextType', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/extension-context' } },
39
+ 'context' => { 'type' => 'string', 'path' => 'StructureDefinition.context', 'min' => 0, 'max' => Float::INFINITY },
40
+ 'base' => { 'type' => 'uri', 'path' => 'StructureDefinition.base', 'min' => 0, 'max' => 1 },
41
+ 'snapshot' => { 'type' => 'StructureDefinition::Snapshot', 'path' => 'StructureDefinition.snapshot', 'min' => 0, 'max' => 1 },
42
+ 'differential' => { 'type' => 'StructureDefinition::Differential', 'path' => 'StructureDefinition.differential', 'min' => 0, 'max' => 1 }
43
43
  }
44
44
 
45
45
  class Contact < FHIR::DSTU2::Model
@@ -48,11 +48,11 @@ module FHIR
48
48
  include FHIR::DSTU2::Xml
49
49
 
50
50
  METADATA = {
51
- 'id' => {'type'=>'id', 'path'=>'Contact.id', 'min'=>0, 'max'=>1},
52
- 'extension' => {'type'=>'Extension', 'path'=>'Contact.extension', 'min'=>0, 'max'=>Float::INFINITY},
53
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Contact.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
54
- 'name' => {'type'=>'string', 'path'=>'Contact.name', 'min'=>0, 'max'=>1},
55
- 'telecom' => {'type'=>'ContactPoint', 'path'=>'Contact.telecom', 'min'=>0, 'max'=>Float::INFINITY}
51
+ 'id' => { 'type' => 'id', 'path' => 'Contact.id', 'min' => 0, 'max' => 1 },
52
+ 'extension' => { 'type' => 'Extension', 'path' => 'Contact.extension', 'min' => 0, 'max' => Float::INFINITY },
53
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Contact.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
54
+ 'name' => { 'type' => 'string', 'path' => 'Contact.name', 'min' => 0, 'max' => 1 },
55
+ 'telecom' => { 'type' => 'ContactPoint', 'path' => 'Contact.telecom', 'min' => 0, 'max' => Float::INFINITY }
56
56
  }
57
57
 
58
58
  attr_accessor :id # 0-1 id
@@ -68,13 +68,13 @@ module FHIR
68
68
  include FHIR::DSTU2::Xml
69
69
 
70
70
  METADATA = {
71
- 'id' => {'type'=>'id', 'path'=>'Mapping.id', 'min'=>0, 'max'=>1},
72
- 'extension' => {'type'=>'Extension', 'path'=>'Mapping.extension', 'min'=>0, 'max'=>Float::INFINITY},
73
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Mapping.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
74
- 'identity' => {'type'=>'id', 'path'=>'Mapping.identity', 'min'=>1, 'max'=>1},
75
- 'uri' => {'type'=>'uri', 'path'=>'Mapping.uri', 'min'=>0, 'max'=>1},
76
- 'name' => {'type'=>'string', 'path'=>'Mapping.name', 'min'=>0, 'max'=>1},
77
- 'comments' => {'type'=>'string', 'path'=>'Mapping.comments', 'min'=>0, 'max'=>1}
71
+ 'id' => { 'type' => 'id', 'path' => 'Mapping.id', 'min' => 0, 'max' => 1 },
72
+ 'extension' => { 'type' => 'Extension', 'path' => 'Mapping.extension', 'min' => 0, 'max' => Float::INFINITY },
73
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Mapping.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
74
+ 'identity' => { 'type' => 'id', 'path' => 'Mapping.identity', 'min' => 1, 'max' => 1 },
75
+ 'uri' => { 'type' => 'uri', 'path' => 'Mapping.uri', 'min' => 0, 'max' => 1 },
76
+ 'name' => { 'type' => 'string', 'path' => 'Mapping.name', 'min' => 0, 'max' => 1 },
77
+ 'comments' => { 'type' => 'string', 'path' => 'Mapping.comments', 'min' => 0, 'max' => 1 }
78
78
  }
79
79
 
80
80
  attr_accessor :id # 0-1 id
@@ -92,10 +92,10 @@ module FHIR
92
92
  include FHIR::DSTU2::Xml
93
93
 
94
94
  METADATA = {
95
- 'id' => {'type'=>'id', 'path'=>'Snapshot.id', 'min'=>0, 'max'=>1},
96
- 'extension' => {'type'=>'Extension', 'path'=>'Snapshot.extension', 'min'=>0, 'max'=>Float::INFINITY},
97
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Snapshot.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
98
- 'element' => {'type'=>'ElementDefinition', 'path'=>'Snapshot.element', 'min'=>1, 'max'=>Float::INFINITY}
95
+ 'id' => { 'type' => 'id', 'path' => 'Snapshot.id', 'min' => 0, 'max' => 1 },
96
+ 'extension' => { 'type' => 'Extension', 'path' => 'Snapshot.extension', 'min' => 0, 'max' => Float::INFINITY },
97
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Snapshot.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
98
+ 'element' => { 'type' => 'ElementDefinition', 'path' => 'Snapshot.element', 'min' => 1, 'max' => Float::INFINITY }
99
99
  }
100
100
 
101
101
  attr_accessor :id # 0-1 id
@@ -110,10 +110,10 @@ module FHIR
110
110
  include FHIR::DSTU2::Xml
111
111
 
112
112
  METADATA = {
113
- 'id' => {'type'=>'id', 'path'=>'Differential.id', 'min'=>0, 'max'=>1},
114
- 'extension' => {'type'=>'Extension', 'path'=>'Differential.extension', 'min'=>0, 'max'=>Float::INFINITY},
115
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Differential.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
116
- 'element' => {'type'=>'ElementDefinition', 'path'=>'Differential.element', 'min'=>1, 'max'=>Float::INFINITY}
113
+ 'id' => { 'type' => 'id', 'path' => 'Differential.id', 'min' => 0, 'max' => 1 },
114
+ 'extension' => { 'type' => 'Extension', 'path' => 'Differential.extension', 'min' => 0, 'max' => Float::INFINITY },
115
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Differential.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
116
+ 'element' => { 'type' => 'ElementDefinition', 'path' => 'Differential.element', 'min' => 1, 'max' => Float::INFINITY }
117
117
  }
118
118
 
119
119
  attr_accessor :id # 0-1 id
@@ -161,4 +161,4 @@ module FHIR
161
161
  end
162
162
  end
163
163
  end
164
- end
164
+ end
@@ -7,22 +7,22 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['contact', 'criteria', 'payload', 'status', 'tag', 'type', 'url']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'Subscription.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'Subscription.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'Subscription.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'Subscription.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'text' => {'type'=>'Narrative', 'path'=>'Subscription.text', 'min'=>0, 'max'=>1},
15
- 'contained' => {'type'=>'Resource', 'path'=>'Subscription.contained', 'min'=>0, 'max'=>Float::INFINITY},
16
- 'extension' => {'type'=>'Extension', 'path'=>'Subscription.extension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Subscription.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'criteria' => {'type'=>'string', 'path'=>'Subscription.criteria', 'min'=>1, 'max'=>1},
19
- 'contact' => {'type'=>'ContactPoint', 'path'=>'Subscription.contact', 'min'=>0, 'max'=>Float::INFINITY},
20
- 'reason' => {'type'=>'string', 'path'=>'Subscription.reason', 'min'=>1, 'max'=>1},
21
- 'status' => {'valid_codes'=>{'http://hl7.org/fhir/subscription-status'=>['requested', 'active', 'error', 'off']}, 'type'=>'code', 'path'=>'Subscription.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/subscription-status'}},
22
- 'error' => {'type'=>'string', 'path'=>'Subscription.error', 'min'=>0, 'max'=>1},
23
- 'channel' => {'type'=>'Subscription::Channel', 'path'=>'Subscription.channel', 'min'=>1, 'max'=>1},
24
- 'end' => {'type'=>'instant', 'path'=>'Subscription.end', 'min'=>0, 'max'=>1},
25
- 'tag' => {'valid_codes'=>{'http://hl7.org/fhir/subscription-tag'=>['queued', 'delivered']}, 'type'=>'Coding', 'path'=>'Subscription.tag', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/subscription-tag'}}
10
+ 'id' => { 'type' => 'id', 'path' => 'Subscription.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'Subscription.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'Subscription.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'Subscription.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'text' => { 'type' => 'Narrative', 'path' => 'Subscription.text', 'min' => 0, 'max' => 1 },
15
+ 'contained' => { 'type' => 'Resource', 'path' => 'Subscription.contained', 'min' => 0, 'max' => Float::INFINITY },
16
+ 'extension' => { 'type' => 'Extension', 'path' => 'Subscription.extension', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Subscription.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'criteria' => { 'type' => 'string', 'path' => 'Subscription.criteria', 'min' => 1, 'max' => 1 },
19
+ 'contact' => { 'type' => 'ContactPoint', 'path' => 'Subscription.contact', 'min' => 0, 'max' => Float::INFINITY },
20
+ 'reason' => { 'type' => 'string', 'path' => 'Subscription.reason', 'min' => 1, 'max' => 1 },
21
+ 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/subscription-status' => ['requested', 'active', 'error', 'off'] }, 'type' => 'code', 'path' => 'Subscription.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/subscription-status' } },
22
+ 'error' => { 'type' => 'string', 'path' => 'Subscription.error', 'min' => 0, 'max' => 1 },
23
+ 'channel' => { 'type' => 'Subscription::Channel', 'path' => 'Subscription.channel', 'min' => 1, 'max' => 1 },
24
+ 'end' => { 'type' => 'instant', 'path' => 'Subscription.end', 'min' => 0, 'max' => 1 },
25
+ 'tag' => { 'valid_codes' => { 'http://hl7.org/fhir/subscription-tag' => ['queued', 'delivered'] }, 'type' => 'Coding', 'path' => 'Subscription.tag', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/subscription-tag' } }
26
26
  }
27
27
 
28
28
  class Channel < 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'=>'Channel.id', 'min'=>0, 'max'=>1},
35
- 'extension' => {'type'=>'Extension', 'path'=>'Channel.extension', 'min'=>0, 'max'=>Float::INFINITY},
36
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Channel.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
37
- 'type' => {'valid_codes'=>{'http://hl7.org/fhir/subscription-channel-type'=>['rest-hook', 'websocket', 'email', 'sms', 'message']}, 'type'=>'code', 'path'=>'Channel.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/subscription-channel-type'}},
38
- 'endpoint' => {'type'=>'uri', 'path'=>'Channel.endpoint', 'min'=>0, 'max'=>1},
39
- 'payload' => {'type'=>'string', 'path'=>'Channel.payload', 'min'=>1, 'max'=>1},
40
- 'header' => {'type'=>'string', 'path'=>'Channel.header', 'min'=>0, 'max'=>1}
34
+ 'id' => { 'type' => 'id', 'path' => 'Channel.id', 'min' => 0, 'max' => 1 },
35
+ 'extension' => { 'type' => 'Extension', 'path' => 'Channel.extension', 'min' => 0, 'max' => Float::INFINITY },
36
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Channel.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
37
+ 'type' => { 'valid_codes' => { 'http://hl7.org/fhir/subscription-channel-type' => ['rest-hook', 'websocket', 'email', 'sms', 'message'] }, 'type' => 'code', 'path' => 'Channel.type', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/subscription-channel-type' } },
38
+ 'endpoint' => { 'type' => 'uri', 'path' => 'Channel.endpoint', 'min' => 0, 'max' => 1 },
39
+ 'payload' => { 'type' => 'string', 'path' => 'Channel.payload', 'min' => 1, 'max' => 1 },
40
+ 'header' => { 'type' => 'string', 'path' => 'Channel.header', '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
@@ -7,20 +7,20 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['category', 'code', 'container-identifier', 'expiry', 'identifier', 'quantity', 'substance']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'Substance.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'Substance.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'Substance.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'Substance.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'text' => {'type'=>'Narrative', 'path'=>'Substance.text', 'min'=>0, 'max'=>1},
15
- 'contained' => {'type'=>'Resource', 'path'=>'Substance.contained', 'min'=>0, 'max'=>Float::INFINITY},
16
- 'extension' => {'type'=>'Extension', 'path'=>'Substance.extension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Substance.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'identifier' => {'type'=>'Identifier', 'path'=>'Substance.identifier', 'min'=>0, 'max'=>Float::INFINITY},
19
- 'category' => {'valid_codes'=>{'http://hl7.org/fhir/substance-category'=>['allergen', 'biological', 'body', 'chemical', 'food', 'drug', 'material']}, 'type'=>'CodeableConcept', 'path'=>'Substance.category', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/substance-category'}},
20
- 'code' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Substance.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/substance-code'}},
21
- 'description' => {'type'=>'string', 'path'=>'Substance.description', 'min'=>0, 'max'=>1},
22
- 'instance' => {'type'=>'Substance::Instance', 'path'=>'Substance.instance', 'min'=>0, 'max'=>Float::INFINITY},
23
- 'ingredient' => {'type'=>'Substance::Ingredient', 'path'=>'Substance.ingredient', 'min'=>0, 'max'=>Float::INFINITY}
10
+ 'id' => { 'type' => 'id', 'path' => 'Substance.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'Substance.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'Substance.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'Substance.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'text' => { 'type' => 'Narrative', 'path' => 'Substance.text', 'min' => 0, 'max' => 1 },
15
+ 'contained' => { 'type' => 'Resource', 'path' => 'Substance.contained', 'min' => 0, 'max' => Float::INFINITY },
16
+ 'extension' => { 'type' => 'Extension', 'path' => 'Substance.extension', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Substance.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'Substance.identifier', 'min' => 0, 'max' => Float::INFINITY },
19
+ 'category' => { 'valid_codes' => { 'http://hl7.org/fhir/substance-category' => ['allergen', 'biological', 'body', 'chemical', 'food', 'drug', 'material'] }, 'type' => 'CodeableConcept', 'path' => 'Substance.category', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'extensible', 'uri' => 'http://hl7.org/fhir/ValueSet/substance-category' } },
20
+ 'code' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Substance.code', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/substance-code' } },
21
+ 'description' => { 'type' => 'string', 'path' => 'Substance.description', 'min' => 0, 'max' => 1 },
22
+ 'instance' => { 'type' => 'Substance::Instance', 'path' => 'Substance.instance', 'min' => 0, 'max' => Float::INFINITY },
23
+ 'ingredient' => { 'type' => 'Substance::Ingredient', 'path' => 'Substance.ingredient', 'min' => 0, 'max' => Float::INFINITY }
24
24
  }
25
25
 
26
26
  class Instance < FHIR::DSTU2::Model
@@ -29,12 +29,12 @@ module FHIR
29
29
  include FHIR::DSTU2::Xml
30
30
 
31
31
  METADATA = {
32
- 'id' => {'type'=>'id', 'path'=>'Instance.id', 'min'=>0, 'max'=>1},
33
- 'extension' => {'type'=>'Extension', 'path'=>'Instance.extension', 'min'=>0, 'max'=>Float::INFINITY},
34
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Instance.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
35
- 'identifier' => {'type'=>'Identifier', 'path'=>'Instance.identifier', 'min'=>0, 'max'=>1},
36
- 'expiry' => {'type'=>'dateTime', 'path'=>'Instance.expiry', 'min'=>0, 'max'=>1},
37
- 'quantity' => {'type'=>'Quantity', 'path'=>'Instance.quantity', 'min'=>0, 'max'=>1}
32
+ 'id' => { 'type' => 'id', 'path' => 'Instance.id', 'min' => 0, 'max' => 1 },
33
+ 'extension' => { 'type' => 'Extension', 'path' => 'Instance.extension', 'min' => 0, 'max' => Float::INFINITY },
34
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Instance.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
35
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'Instance.identifier', 'min' => 0, 'max' => 1 },
36
+ 'expiry' => { 'type' => 'dateTime', 'path' => 'Instance.expiry', 'min' => 0, 'max' => 1 },
37
+ 'quantity' => { 'type' => 'Quantity', 'path' => 'Instance.quantity', 'min' => 0, 'max' => 1 }
38
38
  }
39
39
 
40
40
  attr_accessor :id # 0-1 id
@@ -51,11 +51,11 @@ module FHIR
51
51
  include FHIR::DSTU2::Xml
52
52
 
53
53
  METADATA = {
54
- 'id' => {'type'=>'id', 'path'=>'Ingredient.id', 'min'=>0, 'max'=>1},
55
- 'extension' => {'type'=>'Extension', 'path'=>'Ingredient.extension', 'min'=>0, 'max'=>Float::INFINITY},
56
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Ingredient.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
57
- 'quantity' => {'type'=>'Ratio', 'path'=>'Ingredient.quantity', 'min'=>0, 'max'=>1},
58
- 'substance' => {'type'=>'Reference', 'path'=>'Ingredient.substance', 'min'=>1, 'max'=>1}
54
+ 'id' => { 'type' => 'id', 'path' => 'Ingredient.id', 'min' => 0, 'max' => 1 },
55
+ 'extension' => { 'type' => 'Extension', 'path' => 'Ingredient.extension', 'min' => 0, 'max' => Float::INFINITY },
56
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Ingredient.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
57
+ 'quantity' => { 'type' => 'Ratio', 'path' => 'Ingredient.quantity', 'min' => 0, 'max' => 1 },
58
+ 'substance' => { 'type' => 'Reference', 'path' => 'Ingredient.substance', 'min' => 1, 'max' => 1 }
59
59
  }
60
60
 
61
61
  attr_accessor :id # 0-1 id
@@ -85,4 +85,4 @@ module FHIR
85
85
  end
86
86
  end
87
87
  end
88
- end
88
+ end
@@ -7,25 +7,25 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['identifier', 'patient', 'receiver', 'status', 'supplier']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'SupplyDelivery.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'SupplyDelivery.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'SupplyDelivery.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'SupplyDelivery.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'text' => {'type'=>'Narrative', 'path'=>'SupplyDelivery.text', 'min'=>0, 'max'=>1},
15
- 'contained' => {'type'=>'Resource', 'path'=>'SupplyDelivery.contained', 'min'=>0, 'max'=>Float::INFINITY},
16
- 'extension' => {'type'=>'Extension', 'path'=>'SupplyDelivery.extension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'SupplyDelivery.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'identifier' => {'type'=>'Identifier', 'path'=>'SupplyDelivery.identifier', 'min'=>0, 'max'=>1},
19
- 'status' => {'valid_codes'=>{'http://hl7.org/fhir/supplydelivery-status'=>['in-progress', 'completed', 'abandoned']}, 'type'=>'code', 'path'=>'SupplyDelivery.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/supplydelivery-status'}},
20
- 'patient' => {'type'=>'Reference', 'path'=>'SupplyDelivery.patient', 'min'=>0, 'max'=>1},
21
- 'type' => {'valid_codes'=>{'http://hl7.org/fhir/supply-item-type'=>['medication', 'device']}, 'type'=>'CodeableConcept', 'path'=>'SupplyDelivery.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/supplydelivery-type'}},
22
- 'quantity' => {'type'=>'Quantity', 'path'=>'SupplyDelivery.quantity', 'min'=>0, 'max'=>1},
23
- 'suppliedItem' => {'type'=>'Reference', 'path'=>'SupplyDelivery.suppliedItem', 'min'=>0, 'max'=>1},
24
- 'supplier' => {'type'=>'Reference', 'path'=>'SupplyDelivery.supplier', 'min'=>0, 'max'=>1},
25
- 'whenPrepared' => {'type'=>'Period', 'path'=>'SupplyDelivery.whenPrepared', 'min'=>0, 'max'=>1},
26
- 'time' => {'type'=>'dateTime', 'path'=>'SupplyDelivery.time', 'min'=>0, 'max'=>1},
27
- 'destination' => {'type'=>'Reference', 'path'=>'SupplyDelivery.destination', 'min'=>0, 'max'=>1},
28
- 'receiver' => {'type'=>'Reference', 'path'=>'SupplyDelivery.receiver', 'min'=>0, 'max'=>Float::INFINITY}
10
+ 'id' => { 'type' => 'id', 'path' => 'SupplyDelivery.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'SupplyDelivery.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'SupplyDelivery.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'SupplyDelivery.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'text' => { 'type' => 'Narrative', 'path' => 'SupplyDelivery.text', 'min' => 0, 'max' => 1 },
15
+ 'contained' => { 'type' => 'Resource', 'path' => 'SupplyDelivery.contained', 'min' => 0, 'max' => Float::INFINITY },
16
+ 'extension' => { 'type' => 'Extension', 'path' => 'SupplyDelivery.extension', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'SupplyDelivery.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'SupplyDelivery.identifier', 'min' => 0, 'max' => 1 },
19
+ 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/supplydelivery-status' => ['in-progress', 'completed', 'abandoned'] }, 'type' => 'code', 'path' => 'SupplyDelivery.status', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/supplydelivery-status' } },
20
+ 'patient' => { 'type' => 'Reference', 'path' => 'SupplyDelivery.patient', 'min' => 0, 'max' => 1 },
21
+ 'type' => { 'valid_codes' => { 'http://hl7.org/fhir/supply-item-type' => ['medication', 'device'] }, 'type' => 'CodeableConcept', 'path' => 'SupplyDelivery.type', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/supplydelivery-type' } },
22
+ 'quantity' => { 'type' => 'Quantity', 'path' => 'SupplyDelivery.quantity', 'min' => 0, 'max' => 1 },
23
+ 'suppliedItem' => { 'type' => 'Reference', 'path' => 'SupplyDelivery.suppliedItem', 'min' => 0, 'max' => 1 },
24
+ 'supplier' => { 'type' => 'Reference', 'path' => 'SupplyDelivery.supplier', 'min' => 0, 'max' => 1 },
25
+ 'whenPrepared' => { 'type' => 'Period', 'path' => 'SupplyDelivery.whenPrepared', 'min' => 0, 'max' => 1 },
26
+ 'time' => { 'type' => 'dateTime', 'path' => 'SupplyDelivery.time', 'min' => 0, 'max' => 1 },
27
+ 'destination' => { 'type' => 'Reference', 'path' => 'SupplyDelivery.destination', 'min' => 0, 'max' => 1 },
28
+ 'receiver' => { 'type' => 'Reference', 'path' => 'SupplyDelivery.receiver', 'min' => 0, 'max' => Float::INFINITY }
29
29
  }
30
30
 
31
31
  attr_accessor :id # 0-1 id
@@ -53,4 +53,4 @@ module FHIR
53
53
  end
54
54
  end
55
55
  end
56
- end
56
+ end
@@ -10,25 +10,25 @@ module FHIR
10
10
  }
11
11
  SEARCH_PARAMS = ['date', 'identifier', 'kind', 'patient', 'source', 'status', 'supplier']
12
12
  METADATA = {
13
- 'id' => {'type'=>'id', 'path'=>'SupplyRequest.id', 'min'=>0, 'max'=>1},
14
- 'meta' => {'type'=>'Meta', 'path'=>'SupplyRequest.meta', 'min'=>0, 'max'=>1},
15
- 'implicitRules' => {'type'=>'uri', 'path'=>'SupplyRequest.implicitRules', 'min'=>0, 'max'=>1},
16
- 'language' => {'type'=>'code', 'path'=>'SupplyRequest.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
17
- 'text' => {'type'=>'Narrative', 'path'=>'SupplyRequest.text', 'min'=>0, 'max'=>1},
18
- 'contained' => {'type'=>'Resource', 'path'=>'SupplyRequest.contained', 'min'=>0, 'max'=>Float::INFINITY},
19
- 'extension' => {'type'=>'Extension', 'path'=>'SupplyRequest.extension', 'min'=>0, 'max'=>Float::INFINITY},
20
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'SupplyRequest.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
21
- 'patient' => {'type'=>'Reference', 'path'=>'SupplyRequest.patient', 'min'=>0, 'max'=>1},
22
- 'source' => {'type'=>'Reference', 'path'=>'SupplyRequest.source', 'min'=>0, 'max'=>1},
23
- 'date' => {'type'=>'dateTime', 'path'=>'SupplyRequest.date', 'min'=>0, 'max'=>1},
24
- 'identifier' => {'type'=>'Identifier', 'path'=>'SupplyRequest.identifier', 'min'=>0, 'max'=>1},
25
- 'status' => {'valid_codes'=>{'http://hl7.org/fhir/supplyrequest-status'=>['requested', 'completed', 'failed', 'cancelled']}, 'type'=>'code', 'path'=>'SupplyRequest.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/supplyrequest-status'}},
26
- 'kind' => {'valid_codes'=>{'http://hl7.org/fhir/supply-kind'=>['central', 'nonstock']}, 'type'=>'CodeableConcept', 'path'=>'SupplyRequest.kind', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/supplyrequest-kind'}},
27
- 'orderedItem' => {'type'=>'Reference', 'path'=>'SupplyRequest.orderedItem', 'min'=>0, 'max'=>1},
28
- 'supplier' => {'type'=>'Reference', 'path'=>'SupplyRequest.supplier', 'min'=>0, 'max'=>Float::INFINITY},
29
- 'reasonCodeableConcept' => {'valid_codes'=>{'http://hl7.org/fhir/supplyrequest-reason'=>['patient-care', 'ward-stock']}, 'type'=>'CodeableConcept', 'path'=>'SupplyRequest.reason[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/supplyrequest-reason'}},
30
- 'reasonReference' => {'type'=>'Reference', 'path'=>'SupplyRequest.reason[x]', 'min'=>0, 'max'=>1},
31
- 'when' => {'type'=>'SupplyRequest::When', 'path'=>'SupplyRequest.when', 'min'=>0, 'max'=>1}
13
+ 'id' => { 'type' => 'id', 'path' => 'SupplyRequest.id', 'min' => 0, 'max' => 1 },
14
+ 'meta' => { 'type' => 'Meta', 'path' => 'SupplyRequest.meta', 'min' => 0, 'max' => 1 },
15
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'SupplyRequest.implicitRules', 'min' => 0, 'max' => 1 },
16
+ 'language' => { 'type' => 'code', 'path' => 'SupplyRequest.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
17
+ 'text' => { 'type' => 'Narrative', 'path' => 'SupplyRequest.text', 'min' => 0, 'max' => 1 },
18
+ 'contained' => { 'type' => 'Resource', 'path' => 'SupplyRequest.contained', 'min' => 0, 'max' => Float::INFINITY },
19
+ 'extension' => { 'type' => 'Extension', 'path' => 'SupplyRequest.extension', 'min' => 0, 'max' => Float::INFINITY },
20
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'SupplyRequest.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
21
+ 'patient' => { 'type' => 'Reference', 'path' => 'SupplyRequest.patient', 'min' => 0, 'max' => 1 },
22
+ 'source' => { 'type' => 'Reference', 'path' => 'SupplyRequest.source', 'min' => 0, 'max' => 1 },
23
+ 'date' => { 'type' => 'dateTime', 'path' => 'SupplyRequest.date', 'min' => 0, 'max' => 1 },
24
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'SupplyRequest.identifier', 'min' => 0, 'max' => 1 },
25
+ 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/supplyrequest-status' => ['requested', 'completed', 'failed', 'cancelled'] }, 'type' => 'code', 'path' => 'SupplyRequest.status', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/supplyrequest-status' } },
26
+ 'kind' => { 'valid_codes' => { 'http://hl7.org/fhir/supply-kind' => ['central', 'nonstock'] }, 'type' => 'CodeableConcept', 'path' => 'SupplyRequest.kind', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/supplyrequest-kind' } },
27
+ 'orderedItem' => { 'type' => 'Reference', 'path' => 'SupplyRequest.orderedItem', 'min' => 0, 'max' => 1 },
28
+ 'supplier' => { 'type' => 'Reference', 'path' => 'SupplyRequest.supplier', 'min' => 0, 'max' => Float::INFINITY },
29
+ 'reasonCodeableConcept' => { 'valid_codes' => { 'http://hl7.org/fhir/supplyrequest-reason' => ['patient-care', 'ward-stock'] }, 'type' => 'CodeableConcept', 'path' => 'SupplyRequest.reason[x]', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/supplyrequest-reason' } },
30
+ 'reasonReference' => { 'type' => 'Reference', 'path' => 'SupplyRequest.reason[x]', 'min' => 0, 'max' => 1 },
31
+ 'when' => { 'type' => 'SupplyRequest::When', 'path' => 'SupplyRequest.when', 'min' => 0, 'max' => 1 }
32
32
  }
33
33
 
34
34
  class When < FHIR::DSTU2::Model
@@ -37,11 +37,11 @@ module FHIR
37
37
  include FHIR::DSTU2::Xml
38
38
 
39
39
  METADATA = {
40
- 'id' => {'type'=>'id', 'path'=>'When.id', 'min'=>0, 'max'=>1},
41
- 'extension' => {'type'=>'Extension', 'path'=>'When.extension', 'min'=>0, 'max'=>Float::INFINITY},
42
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'When.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
43
- 'code' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'When.code', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/supplyrequest-when'}},
44
- 'schedule' => {'type'=>'Timing', 'path'=>'When.schedule', 'min'=>0, 'max'=>1}
40
+ 'id' => { 'type' => 'id', 'path' => 'When.id', 'min' => 0, 'max' => 1 },
41
+ 'extension' => { 'type' => 'Extension', 'path' => 'When.extension', 'min' => 0, 'max' => Float::INFINITY },
42
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'When.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
43
+ 'code' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'When.code', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/supplyrequest-when' } },
44
+ 'schedule' => { 'type' => 'Timing', 'path' => 'When.schedule', 'min' => 0, 'max' => 1 }
45
45
  }
46
46
 
47
47
  attr_accessor :id # 0-1 id
@@ -76,4 +76,4 @@ module FHIR
76
76
  end
77
77
  end
78
78
  end
79
- end
79
+ end