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,19 +7,19 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['author', 'code', 'created', 'identifier', 'patient', 'subject']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'Basic.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'Basic.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'Basic.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'Basic.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'text' => {'type'=>'Narrative', 'path'=>'Basic.text', 'min'=>0, 'max'=>1},
15
- 'contained' => {'type'=>'Resource', 'path'=>'Basic.contained', 'min'=>0, 'max'=>Float::INFINITY},
16
- 'extension' => {'type'=>'Extension', 'path'=>'Basic.extension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Basic.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'identifier' => {'type'=>'Identifier', 'path'=>'Basic.identifier', 'min'=>0, 'max'=>Float::INFINITY},
19
- 'code' => {'valid_codes'=>{'http://hl7.org/fhir/basic-resource-type'=>['consent', 'referral', 'advevent', 'aptmtreq', 'transfer', 'diet', 'adminact', 'exposure', 'investigation', 'account', 'invoice', 'adjudicat', 'predetreq', 'predetermine', 'study', 'protocol']}, 'type'=>'CodeableConcept', 'path'=>'Basic.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/basic-resource-type'}},
20
- 'subject' => {'type'=>'Reference', 'path'=>'Basic.subject', 'min'=>0, 'max'=>1},
21
- 'author' => {'type'=>'Reference', 'path'=>'Basic.author', 'min'=>0, 'max'=>1},
22
- 'created' => {'type'=>'date', 'path'=>'Basic.created', 'min'=>0, 'max'=>1}
10
+ 'id' => { 'type' => 'id', 'path' => 'Basic.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'Basic.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'Basic.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'Basic.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'text' => { 'type' => 'Narrative', 'path' => 'Basic.text', 'min' => 0, 'max' => 1 },
15
+ 'contained' => { 'type' => 'Resource', 'path' => 'Basic.contained', 'min' => 0, 'max' => Float::INFINITY },
16
+ 'extension' => { 'type' => 'Extension', 'path' => 'Basic.extension', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Basic.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'Basic.identifier', 'min' => 0, 'max' => Float::INFINITY },
19
+ 'code' => { 'valid_codes' => { 'http://hl7.org/fhir/basic-resource-type' => ['consent', 'referral', 'advevent', 'aptmtreq', 'transfer', 'diet', 'adminact', 'exposure', 'investigation', 'account', 'invoice', 'adjudicat', 'predetreq', 'predetermine', 'study', 'protocol'] }, 'type' => 'CodeableConcept', 'path' => 'Basic.code', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/basic-resource-type' } },
20
+ 'subject' => { 'type' => 'Reference', 'path' => 'Basic.subject', 'min' => 0, 'max' => 1 },
21
+ 'author' => { 'type' => 'Reference', 'path' => 'Basic.author', 'min' => 0, 'max' => 1 },
22
+ 'created' => { 'type' => 'date', 'path' => 'Basic.created', 'min' => 0, 'max' => 1 }
23
23
  }
24
24
 
25
25
  attr_accessor :id # 0-1 id
@@ -41,4 +41,4 @@ module FHIR
41
41
  end
42
42
  end
43
43
  end
44
- end
44
+ end
@@ -7,12 +7,12 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['contenttype']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'Binary.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'Binary.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'Binary.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'Binary.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'contentType' => {'type'=>'code', 'path'=>'Binary.contentType', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://www.rfc-editor.org/bcp/bcp13.txt'}},
15
- 'content' => {'type'=>'base64Binary', 'path'=>'Binary.content', 'min'=>1, 'max'=>1}
10
+ 'id' => { 'type' => 'id', 'path' => 'Binary.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'Binary.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'Binary.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'Binary.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'contentType' => { 'type' => 'code', 'path' => 'Binary.contentType', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://www.rfc-editor.org/bcp/bcp13.txt' } },
15
+ 'content' => { 'type' => 'base64Binary', 'path' => 'Binary.content', 'min' => 1, 'max' => 1 }
16
16
  }
17
17
 
18
18
  attr_accessor :id # 0-1 id
@@ -27,4 +27,4 @@ module FHIR
27
27
  end
28
28
  end
29
29
  end
30
- end
30
+ end
@@ -7,20 +7,20 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['code', 'identifier', 'patient']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'BodySite.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'BodySite.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'BodySite.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'BodySite.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'text' => {'type'=>'Narrative', 'path'=>'BodySite.text', 'min'=>0, 'max'=>1},
15
- 'contained' => {'type'=>'Resource', 'path'=>'BodySite.contained', 'min'=>0, 'max'=>Float::INFINITY},
16
- 'extension' => {'type'=>'Extension', 'path'=>'BodySite.extension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'BodySite.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'patient' => {'type'=>'Reference', 'path'=>'BodySite.patient', 'min'=>1, 'max'=>1},
19
- 'identifier' => {'type'=>'Identifier', 'path'=>'BodySite.identifier', 'min'=>0, 'max'=>Float::INFINITY},
20
- 'code' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'BodySite.code', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/body-site'}},
21
- 'modifier' => {'valid_codes'=>{'http://snomed.info/sct'=>['419161000', '419465000', '51440002', '261183002', '261122009', '255561001', '49370004', '264217000', '261089000', '255551008', '351726001', '352730000']}, 'type'=>'CodeableConcept', 'path'=>'BodySite.modifier', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/bodysite-relative-location'}},
22
- 'description' => {'type'=>'string', 'path'=>'BodySite.description', 'min'=>0, 'max'=>1},
23
- 'image' => {'type'=>'Attachment', 'path'=>'BodySite.image', 'min'=>0, 'max'=>Float::INFINITY}
10
+ 'id' => { 'type' => 'id', 'path' => 'BodySite.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'BodySite.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'BodySite.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'BodySite.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'text' => { 'type' => 'Narrative', 'path' => 'BodySite.text', 'min' => 0, 'max' => 1 },
15
+ 'contained' => { 'type' => 'Resource', 'path' => 'BodySite.contained', 'min' => 0, 'max' => Float::INFINITY },
16
+ 'extension' => { 'type' => 'Extension', 'path' => 'BodySite.extension', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'BodySite.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'patient' => { 'type' => 'Reference', 'path' => 'BodySite.patient', 'min' => 1, 'max' => 1 },
19
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'BodySite.identifier', 'min' => 0, 'max' => Float::INFINITY },
20
+ 'code' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'BodySite.code', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/body-site' } },
21
+ 'modifier' => { 'valid_codes' => { 'http://snomed.info/sct' => ['419161000', '419465000', '51440002', '261183002', '261122009', '255561001', '49370004', '264217000', '261089000', '255551008', '351726001', '352730000'] }, 'type' => 'CodeableConcept', 'path' => 'BodySite.modifier', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/bodysite-relative-location' } },
22
+ 'description' => { 'type' => 'string', 'path' => 'BodySite.description', 'min' => 0, 'max' => 1 },
23
+ 'image' => { 'type' => 'Attachment', 'path' => 'BodySite.image', 'min' => 0, 'max' => Float::INFINITY }
24
24
  }
25
25
 
26
26
  attr_accessor :id # 0-1 id
@@ -43,4 +43,4 @@ module FHIR
43
43
  end
44
44
  end
45
45
  end
46
- end
46
+ end
@@ -7,15 +7,15 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['composition', 'message', 'type']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'Bundle.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'Bundle.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'Bundle.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'Bundle.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'type' => {'valid_codes'=>{'http://hl7.org/fhir/bundle-type'=>['document', 'message', 'transaction', 'transaction-response', 'batch', 'batch-response', 'history', 'searchset', 'collection']}, 'type'=>'code', 'path'=>'Bundle.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/bundle-type'}},
15
- 'total' => {'type'=>'unsignedInt', 'path'=>'Bundle.total', 'min'=>0, 'max'=>1},
16
- 'link' => {'type'=>'Bundle::Link', 'path'=>'Bundle.link', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'entry' => {'type'=>'Bundle::Entry', 'path'=>'Bundle.entry', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'signature' => {'type'=>'Signature', 'path'=>'Bundle.signature', 'min'=>0, 'max'=>1}
10
+ 'id' => { 'type' => 'id', 'path' => 'Bundle.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'Bundle.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'Bundle.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'Bundle.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'type' => { 'valid_codes' => { 'http://hl7.org/fhir/bundle-type' => ['document', 'message', 'transaction', 'transaction-response', 'batch', 'batch-response', 'history', 'searchset', 'collection'] }, 'type' => 'code', 'path' => 'Bundle.type', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/bundle-type' } },
15
+ 'total' => { 'type' => 'unsignedInt', 'path' => 'Bundle.total', 'min' => 0, 'max' => 1 },
16
+ 'link' => { 'type' => 'Bundle::Link', 'path' => 'Bundle.link', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'entry' => { 'type' => 'Bundle::Entry', 'path' => 'Bundle.entry', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'signature' => { 'type' => 'Signature', 'path' => 'Bundle.signature', 'min' => 0, 'max' => 1 }
19
19
  }
20
20
 
21
21
  class Link < FHIR::DSTU2::Model
@@ -24,11 +24,11 @@ module FHIR
24
24
  include FHIR::DSTU2::Xml
25
25
 
26
26
  METADATA = {
27
- 'id' => {'type'=>'id', 'path'=>'Link.id', 'min'=>0, 'max'=>1},
28
- 'extension' => {'type'=>'Extension', 'path'=>'Link.extension', 'min'=>0, 'max'=>Float::INFINITY},
29
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Link.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
30
- 'relation' => {'type'=>'string', 'path'=>'Link.relation', 'min'=>1, 'max'=>1},
31
- 'url' => {'type'=>'uri', 'path'=>'Link.url', 'min'=>1, 'max'=>1}
27
+ 'id' => { 'type' => 'id', 'path' => 'Link.id', 'min' => 0, 'max' => 1 },
28
+ 'extension' => { 'type' => 'Extension', 'path' => 'Link.extension', 'min' => 0, 'max' => Float::INFINITY },
29
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Link.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
30
+ 'relation' => { 'type' => 'string', 'path' => 'Link.relation', 'min' => 1, 'max' => 1 },
31
+ 'url' => { 'type' => 'uri', 'path' => 'Link.url', 'min' => 1, 'max' => 1 }
32
32
  }
33
33
 
34
34
  attr_accessor :id # 0-1 id
@@ -44,15 +44,15 @@ module FHIR
44
44
  include FHIR::DSTU2::Xml
45
45
 
46
46
  METADATA = {
47
- 'id' => {'type'=>'id', 'path'=>'Entry.id', 'min'=>0, 'max'=>1},
48
- 'extension' => {'type'=>'Extension', 'path'=>'Entry.extension', 'min'=>0, 'max'=>Float::INFINITY},
49
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Entry.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
50
- 'link' => {'type'=>'Bundle::Link', 'path'=>'Entry.link', 'min'=>0, 'max'=>Float::INFINITY},
51
- 'fullUrl' => {'type'=>'uri', 'path'=>'Entry.fullUrl', 'min'=>0, 'max'=>1},
52
- 'resource' => {'type'=>'Resource', 'path'=>'Entry.resource', 'min'=>0, 'max'=>1},
53
- 'search' => {'type'=>'Bundle::Entry::Search', 'path'=>'Entry.search', 'min'=>0, 'max'=>1},
54
- 'request' => {'type'=>'Bundle::Entry::Request', 'path'=>'Entry.request', 'min'=>0, 'max'=>1},
55
- 'response' => {'type'=>'Bundle::Entry::Response', 'path'=>'Entry.response', 'min'=>0, 'max'=>1}
47
+ 'id' => { 'type' => 'id', 'path' => 'Entry.id', 'min' => 0, 'max' => 1 },
48
+ 'extension' => { 'type' => 'Extension', 'path' => 'Entry.extension', 'min' => 0, 'max' => Float::INFINITY },
49
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Entry.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
50
+ 'link' => { 'type' => 'Bundle::Link', 'path' => 'Entry.link', 'min' => 0, 'max' => Float::INFINITY },
51
+ 'fullUrl' => { 'type' => 'uri', 'path' => 'Entry.fullUrl', 'min' => 0, 'max' => 1 },
52
+ 'resource' => { 'type' => 'Resource', 'path' => 'Entry.resource', 'min' => 0, 'max' => 1 },
53
+ 'search' => { 'type' => 'Bundle::Entry::Search', 'path' => 'Entry.search', 'min' => 0, 'max' => 1 },
54
+ 'request' => { 'type' => 'Bundle::Entry::Request', 'path' => 'Entry.request', 'min' => 0, 'max' => 1 },
55
+ 'response' => { 'type' => 'Bundle::Entry::Response', 'path' => 'Entry.response', 'min' => 0, 'max' => 1 }
56
56
  }
57
57
 
58
58
  class Search < FHIR::DSTU2::Model
@@ -61,11 +61,11 @@ module FHIR
61
61
  include FHIR::DSTU2::Xml
62
62
 
63
63
  METADATA = {
64
- 'id' => {'type'=>'id', 'path'=>'Search.id', 'min'=>0, 'max'=>1},
65
- 'extension' => {'type'=>'Extension', 'path'=>'Search.extension', 'min'=>0, 'max'=>Float::INFINITY},
66
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Search.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
67
- 'mode' => {'valid_codes'=>{'http://hl7.org/fhir/search-entry-mode'=>['match', 'include', 'outcome']}, 'type'=>'code', 'path'=>'Search.mode', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/search-entry-mode'}},
68
- 'score' => {'type'=>'decimal', 'path'=>'Search.score', 'min'=>0, 'max'=>1}
64
+ 'id' => { 'type' => 'id', 'path' => 'Search.id', 'min' => 0, 'max' => 1 },
65
+ 'extension' => { 'type' => 'Extension', 'path' => 'Search.extension', 'min' => 0, 'max' => Float::INFINITY },
66
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Search.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
67
+ 'mode' => { 'valid_codes' => { 'http://hl7.org/fhir/search-entry-mode' => ['match', 'include', 'outcome'] }, 'type' => 'code', 'path' => 'Search.mode', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/search-entry-mode' } },
68
+ 'score' => { 'type' => 'decimal', 'path' => 'Search.score', 'min' => 0, 'max' => 1 }
69
69
  }
70
70
 
71
71
  attr_accessor :id # 0-1 id
@@ -81,15 +81,15 @@ module FHIR
81
81
  include FHIR::DSTU2::Xml
82
82
 
83
83
  METADATA = {
84
- 'id' => {'type'=>'id', 'path'=>'Request.id', 'min'=>0, 'max'=>1},
85
- 'extension' => {'type'=>'Extension', 'path'=>'Request.extension', 'min'=>0, 'max'=>Float::INFINITY},
86
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Request.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
87
- 'method' => {'local_name'=>'local_method', 'valid_codes'=>{'http://hl7.org/fhir/http-verb'=>['GET', 'POST', 'PUT', 'DELETE']}, 'type'=>'code', 'path'=>'Request.method', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/http-verb'}},
88
- 'url' => {'type'=>'uri', 'path'=>'Request.url', 'min'=>1, 'max'=>1},
89
- 'ifNoneMatch' => {'type'=>'string', 'path'=>'Request.ifNoneMatch', 'min'=>0, 'max'=>1},
90
- 'ifModifiedSince' => {'type'=>'instant', 'path'=>'Request.ifModifiedSince', 'min'=>0, 'max'=>1},
91
- 'ifMatch' => {'type'=>'string', 'path'=>'Request.ifMatch', 'min'=>0, 'max'=>1},
92
- 'ifNoneExist' => {'type'=>'string', 'path'=>'Request.ifNoneExist', 'min'=>0, 'max'=>1}
84
+ 'id' => { 'type' => 'id', 'path' => 'Request.id', 'min' => 0, 'max' => 1 },
85
+ 'extension' => { 'type' => 'Extension', 'path' => 'Request.extension', 'min' => 0, 'max' => Float::INFINITY },
86
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Request.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
87
+ 'method' => { 'local_name' => 'local_method', 'valid_codes' => { 'http://hl7.org/fhir/http-verb' => ['GET', 'POST', 'PUT', 'DELETE'] }, 'type' => 'code', 'path' => 'Request.method', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/http-verb' } },
88
+ 'url' => { 'type' => 'uri', 'path' => 'Request.url', 'min' => 1, 'max' => 1 },
89
+ 'ifNoneMatch' => { 'type' => 'string', 'path' => 'Request.ifNoneMatch', 'min' => 0, 'max' => 1 },
90
+ 'ifModifiedSince' => { 'type' => 'instant', 'path' => 'Request.ifModifiedSince', 'min' => 0, 'max' => 1 },
91
+ 'ifMatch' => { 'type' => 'string', 'path' => 'Request.ifMatch', 'min' => 0, 'max' => 1 },
92
+ 'ifNoneExist' => { 'type' => 'string', 'path' => 'Request.ifNoneExist', 'min' => 0, 'max' => 1 }
93
93
  }
94
94
 
95
95
  attr_accessor :id # 0-1 id
@@ -109,13 +109,13 @@ module FHIR
109
109
  include FHIR::DSTU2::Xml
110
110
 
111
111
  METADATA = {
112
- 'id' => {'type'=>'id', 'path'=>'Response.id', 'min'=>0, 'max'=>1},
113
- 'extension' => {'type'=>'Extension', 'path'=>'Response.extension', 'min'=>0, 'max'=>Float::INFINITY},
114
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Response.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
115
- 'status' => {'type'=>'string', 'path'=>'Response.status', 'min'=>1, 'max'=>1},
116
- 'location' => {'type'=>'uri', 'path'=>'Response.location', 'min'=>0, 'max'=>1},
117
- 'etag' => {'type'=>'string', 'path'=>'Response.etag', 'min'=>0, 'max'=>1},
118
- 'lastModified' => {'type'=>'instant', 'path'=>'Response.lastModified', 'min'=>0, 'max'=>1}
112
+ 'id' => { 'type' => 'id', 'path' => 'Response.id', 'min' => 0, 'max' => 1 },
113
+ 'extension' => { 'type' => 'Extension', 'path' => 'Response.extension', 'min' => 0, 'max' => Float::INFINITY },
114
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Response.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
115
+ 'status' => { 'type' => 'string', 'path' => 'Response.status', 'min' => 1, 'max' => 1 },
116
+ 'location' => { 'type' => 'uri', 'path' => 'Response.location', 'min' => 0, 'max' => 1 },
117
+ 'etag' => { 'type' => 'string', 'path' => 'Response.etag', 'min' => 0, 'max' => 1 },
118
+ 'lastModified' => { 'type' => 'instant', 'path' => 'Response.lastModified', 'min' => 0, 'max' => 1 }
119
119
  }
120
120
 
121
121
  attr_accessor :id # 0-1 id
@@ -153,4 +153,4 @@ module FHIR
153
153
  end
154
154
  end
155
155
  end
156
- end
156
+ end
@@ -7,30 +7,30 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['activitycode', 'activitydate', 'activityreference', 'condition', 'date', 'goal', 'participant', 'patient', 'performer', 'relatedcode', 'relatedplan', 'subject']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'CarePlan.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'CarePlan.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'CarePlan.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'CarePlan.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'text' => {'type'=>'Narrative', 'path'=>'CarePlan.text', 'min'=>0, 'max'=>1},
15
- 'contained' => {'type'=>'Resource', 'path'=>'CarePlan.contained', 'min'=>0, 'max'=>Float::INFINITY},
16
- 'extension' => {'type'=>'Extension', 'path'=>'CarePlan.extension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'CarePlan.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'identifier' => {'type'=>'Identifier', 'path'=>'CarePlan.identifier', 'min'=>0, 'max'=>Float::INFINITY},
19
- 'subject' => {'type'=>'Reference', 'path'=>'CarePlan.subject', 'min'=>0, 'max'=>1},
20
- 'status' => {'valid_codes'=>{'http://hl7.org/fhir/care-plan-status'=>['proposed', 'draft', 'active', 'completed', 'cancelled']}, 'type'=>'code', 'path'=>'CarePlan.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/care-plan-status'}},
21
- 'context' => {'type'=>'Reference', 'path'=>'CarePlan.context', 'min'=>0, 'max'=>1},
22
- 'period' => {'type'=>'Period', 'path'=>'CarePlan.period', 'min'=>0, 'max'=>1},
23
- 'author' => {'type'=>'Reference', 'path'=>'CarePlan.author', 'min'=>0, 'max'=>Float::INFINITY},
24
- 'modified' => {'type'=>'dateTime', 'path'=>'CarePlan.modified', 'min'=>0, 'max'=>1},
25
- 'category' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'CarePlan.category', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/care-plan-category'}},
26
- 'description' => {'type'=>'string', 'path'=>'CarePlan.description', 'min'=>0, 'max'=>1},
27
- 'addresses' => {'type'=>'Reference', 'path'=>'CarePlan.addresses', 'min'=>0, 'max'=>Float::INFINITY},
28
- 'support' => {'type'=>'Reference', 'path'=>'CarePlan.support', 'min'=>0, 'max'=>Float::INFINITY},
29
- 'relatedPlan' => {'type'=>'CarePlan::RelatedPlan', 'path'=>'CarePlan.relatedPlan', 'min'=>0, 'max'=>Float::INFINITY},
30
- 'participant' => {'type'=>'CarePlan::Participant', 'path'=>'CarePlan.participant', 'min'=>0, 'max'=>Float::INFINITY},
31
- 'goal' => {'type'=>'Reference', 'path'=>'CarePlan.goal', 'min'=>0, 'max'=>Float::INFINITY},
32
- 'activity' => {'type'=>'CarePlan::Activity', 'path'=>'CarePlan.activity', 'min'=>0, 'max'=>Float::INFINITY},
33
- 'note' => {'type'=>'Annotation', 'path'=>'CarePlan.note', 'min'=>0, 'max'=>1}
10
+ 'id' => { 'type' => 'id', 'path' => 'CarePlan.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'CarePlan.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'CarePlan.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'CarePlan.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'text' => { 'type' => 'Narrative', 'path' => 'CarePlan.text', 'min' => 0, 'max' => 1 },
15
+ 'contained' => { 'type' => 'Resource', 'path' => 'CarePlan.contained', 'min' => 0, 'max' => Float::INFINITY },
16
+ 'extension' => { 'type' => 'Extension', 'path' => 'CarePlan.extension', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'CarePlan.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'CarePlan.identifier', 'min' => 0, 'max' => Float::INFINITY },
19
+ 'subject' => { 'type' => 'Reference', 'path' => 'CarePlan.subject', 'min' => 0, 'max' => 1 },
20
+ 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/care-plan-status' => ['proposed', 'draft', 'active', 'completed', 'cancelled'] }, 'type' => 'code', 'path' => 'CarePlan.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/care-plan-status' } },
21
+ 'context' => { 'type' => 'Reference', 'path' => 'CarePlan.context', 'min' => 0, 'max' => 1 },
22
+ 'period' => { 'type' => 'Period', 'path' => 'CarePlan.period', 'min' => 0, 'max' => 1 },
23
+ 'author' => { 'type' => 'Reference', 'path' => 'CarePlan.author', 'min' => 0, 'max' => Float::INFINITY },
24
+ 'modified' => { 'type' => 'dateTime', 'path' => 'CarePlan.modified', 'min' => 0, 'max' => 1 },
25
+ 'category' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'CarePlan.category', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/care-plan-category' } },
26
+ 'description' => { 'type' => 'string', 'path' => 'CarePlan.description', 'min' => 0, 'max' => 1 },
27
+ 'addresses' => { 'type' => 'Reference', 'path' => 'CarePlan.addresses', 'min' => 0, 'max' => Float::INFINITY },
28
+ 'support' => { 'type' => 'Reference', 'path' => 'CarePlan.support', 'min' => 0, 'max' => Float::INFINITY },
29
+ 'relatedPlan' => { 'type' => 'CarePlan::RelatedPlan', 'path' => 'CarePlan.relatedPlan', 'min' => 0, 'max' => Float::INFINITY },
30
+ 'participant' => { 'type' => 'CarePlan::Participant', 'path' => 'CarePlan.participant', 'min' => 0, 'max' => Float::INFINITY },
31
+ 'goal' => { 'type' => 'Reference', 'path' => 'CarePlan.goal', 'min' => 0, 'max' => Float::INFINITY },
32
+ 'activity' => { 'type' => 'CarePlan::Activity', 'path' => 'CarePlan.activity', 'min' => 0, 'max' => Float::INFINITY },
33
+ 'note' => { 'type' => 'Annotation', 'path' => 'CarePlan.note', 'min' => 0, 'max' => 1 }
34
34
  }
35
35
 
36
36
  class RelatedPlan < FHIR::DSTU2::Model
@@ -39,11 +39,11 @@ module FHIR
39
39
  include FHIR::DSTU2::Xml
40
40
 
41
41
  METADATA = {
42
- 'id' => {'type'=>'id', 'path'=>'RelatedPlan.id', 'min'=>0, 'max'=>1},
43
- 'extension' => {'type'=>'Extension', 'path'=>'RelatedPlan.extension', 'min'=>0, 'max'=>Float::INFINITY},
44
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'RelatedPlan.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
45
- 'code' => {'valid_codes'=>{'http://hl7.org/fhir/care-plan-relationship'=>['includes', 'replaces', 'fulfills']}, 'type'=>'code', 'path'=>'RelatedPlan.code', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/care-plan-relationship'}},
46
- 'plan' => {'type'=>'Reference', 'path'=>'RelatedPlan.plan', 'min'=>1, 'max'=>1}
42
+ 'id' => { 'type' => 'id', 'path' => 'RelatedPlan.id', 'min' => 0, 'max' => 1 },
43
+ 'extension' => { 'type' => 'Extension', 'path' => 'RelatedPlan.extension', 'min' => 0, 'max' => Float::INFINITY },
44
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'RelatedPlan.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
45
+ 'code' => { 'valid_codes' => { 'http://hl7.org/fhir/care-plan-relationship' => ['includes', 'replaces', 'fulfills'] }, 'type' => 'code', 'path' => 'RelatedPlan.code', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/care-plan-relationship' } },
46
+ 'plan' => { 'type' => 'Reference', 'path' => 'RelatedPlan.plan', 'min' => 1, 'max' => 1 }
47
47
  }
48
48
 
49
49
  attr_accessor :id # 0-1 id
@@ -59,11 +59,11 @@ module FHIR
59
59
  include FHIR::DSTU2::Xml
60
60
 
61
61
  METADATA = {
62
- 'id' => {'type'=>'id', 'path'=>'Participant.id', 'min'=>0, 'max'=>1},
63
- 'extension' => {'type'=>'Extension', 'path'=>'Participant.extension', 'min'=>0, 'max'=>Float::INFINITY},
64
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Participant.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
65
- 'role' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Participant.role', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/participant-role'}},
66
- 'member' => {'type'=>'Reference', 'path'=>'Participant.member', 'min'=>0, 'max'=>1}
62
+ 'id' => { 'type' => 'id', 'path' => 'Participant.id', 'min' => 0, 'max' => 1 },
63
+ 'extension' => { 'type' => 'Extension', 'path' => 'Participant.extension', 'min' => 0, 'max' => Float::INFINITY },
64
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Participant.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
65
+ 'role' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Participant.role', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/participant-role' } },
66
+ 'member' => { 'type' => 'Reference', 'path' => 'Participant.member', 'min' => 0, 'max' => 1 }
67
67
  }
68
68
 
69
69
  attr_accessor :id # 0-1 id
@@ -79,13 +79,13 @@ module FHIR
79
79
  include FHIR::DSTU2::Xml
80
80
 
81
81
  METADATA = {
82
- 'id' => {'type'=>'id', 'path'=>'Activity.id', 'min'=>0, 'max'=>1},
83
- 'extension' => {'type'=>'Extension', 'path'=>'Activity.extension', 'min'=>0, 'max'=>Float::INFINITY},
84
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Activity.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
85
- 'actionResulting' => {'type'=>'Reference', 'path'=>'Activity.actionResulting', 'min'=>0, 'max'=>Float::INFINITY},
86
- 'progress' => {'type'=>'Annotation', 'path'=>'Activity.progress', 'min'=>0, 'max'=>Float::INFINITY},
87
- 'reference' => {'type'=>'Reference', 'path'=>'Activity.reference', 'min'=>0, 'max'=>1},
88
- 'detail' => {'type'=>'CarePlan::Activity::Detail', 'path'=>'Activity.detail', 'min'=>0, 'max'=>1}
82
+ 'id' => { 'type' => 'id', 'path' => 'Activity.id', 'min' => 0, 'max' => 1 },
83
+ 'extension' => { 'type' => 'Extension', 'path' => 'Activity.extension', 'min' => 0, 'max' => Float::INFINITY },
84
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Activity.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
85
+ 'actionResulting' => { 'type' => 'Reference', 'path' => 'Activity.actionResulting', 'min' => 0, 'max' => Float::INFINITY },
86
+ 'progress' => { 'type' => 'Annotation', 'path' => 'Activity.progress', 'min' => 0, 'max' => Float::INFINITY },
87
+ 'reference' => { 'type' => 'Reference', 'path' => 'Activity.reference', 'min' => 0, 'max' => 1 },
88
+ 'detail' => { 'type' => 'CarePlan::Activity::Detail', 'path' => 'Activity.detail', 'min' => 0, 'max' => 1 }
89
89
  }
90
90
 
91
91
  class Detail < FHIR::DSTU2::Model
@@ -98,27 +98,27 @@ module FHIR
98
98
  'product' => ['CodeableConcept', 'Reference']
99
99
  }
100
100
  METADATA = {
101
- 'id' => {'type'=>'id', 'path'=>'Detail.id', 'min'=>0, 'max'=>1},
102
- 'extension' => {'type'=>'Extension', 'path'=>'Detail.extension', 'min'=>0, 'max'=>Float::INFINITY},
103
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Detail.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
104
- 'category' => {'valid_codes'=>{'http://hl7.org/fhir/care-plan-activity-category'=>['diet', 'drug', 'encounter', 'observation', 'procedure', 'supply', 'other']}, 'type'=>'CodeableConcept', 'path'=>'Detail.category', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/care-plan-activity-category'}},
105
- 'code' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Detail.code', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/care-plan-activity'}},
106
- 'reasonCode' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Detail.reasonCode', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/activity-reason'}},
107
- 'reasonReference' => {'type'=>'Reference', 'path'=>'Detail.reasonReference', 'min'=>0, 'max'=>Float::INFINITY},
108
- 'goal' => {'type'=>'Reference', 'path'=>'Detail.goal', 'min'=>0, 'max'=>Float::INFINITY},
109
- 'status' => {'valid_codes'=>{'http://hl7.org/fhir/care-plan-activity-status'=>['not-started', 'scheduled', 'in-progress', 'on-hold', 'completed', 'cancelled']}, 'type'=>'code', 'path'=>'Detail.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/care-plan-activity-status'}},
110
- 'statusReason' => {'valid_codes'=>{'http://hl7.org/fhir/goal-status-reason'=>['surgery', 'life-event', 'replaced', 'patient-request']}, 'type'=>'CodeableConcept', 'path'=>'Detail.statusReason', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/goal-status-reason'}},
111
- 'prohibited' => {'type'=>'boolean', 'path'=>'Detail.prohibited', 'min'=>1, 'max'=>1},
112
- 'scheduledTiming' => {'type'=>'Timing', 'path'=>'Detail.scheduled[x]', 'min'=>0, 'max'=>1},
113
- 'scheduledPeriod' => {'type'=>'Period', 'path'=>'Detail.scheduled[x]', 'min'=>0, 'max'=>1},
114
- 'scheduledString' => {'type'=>'string', 'path'=>'Detail.scheduled[x]', 'min'=>0, 'max'=>1},
115
- 'location' => {'type'=>'Reference', 'path'=>'Detail.location', 'min'=>0, 'max'=>1},
116
- 'performer' => {'type'=>'Reference', 'path'=>'Detail.performer', 'min'=>0, 'max'=>Float::INFINITY},
117
- 'productCodeableConcept' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Detail.product[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/medication-codes'}},
118
- 'productReference' => {'type'=>'Reference', 'path'=>'Detail.product[x]', 'min'=>0, 'max'=>1},
119
- 'dailyAmount' => {'type'=>'Quantity', 'path'=>'Detail.dailyAmount', 'min'=>0, 'max'=>1},
120
- 'quantity' => {'type'=>'Quantity', 'path'=>'Detail.quantity', 'min'=>0, 'max'=>1},
121
- 'description' => {'type'=>'string', 'path'=>'Detail.description', 'min'=>0, 'max'=>1}
101
+ 'id' => { 'type' => 'id', 'path' => 'Detail.id', 'min' => 0, 'max' => 1 },
102
+ 'extension' => { 'type' => 'Extension', 'path' => 'Detail.extension', 'min' => 0, 'max' => Float::INFINITY },
103
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Detail.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
104
+ 'category' => { 'valid_codes' => { 'http://hl7.org/fhir/care-plan-activity-category' => ['diet', 'drug', 'encounter', 'observation', 'procedure', 'supply', 'other'] }, 'type' => 'CodeableConcept', 'path' => 'Detail.category', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/care-plan-activity-category' } },
105
+ 'code' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Detail.code', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/care-plan-activity' } },
106
+ 'reasonCode' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Detail.reasonCode', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/activity-reason' } },
107
+ 'reasonReference' => { 'type' => 'Reference', 'path' => 'Detail.reasonReference', 'min' => 0, 'max' => Float::INFINITY },
108
+ 'goal' => { 'type' => 'Reference', 'path' => 'Detail.goal', 'min' => 0, 'max' => Float::INFINITY },
109
+ 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/care-plan-activity-status' => ['not-started', 'scheduled', 'in-progress', 'on-hold', 'completed', 'cancelled'] }, 'type' => 'code', 'path' => 'Detail.status', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/care-plan-activity-status' } },
110
+ 'statusReason' => { 'valid_codes' => { 'http://hl7.org/fhir/goal-status-reason' => ['surgery', 'life-event', 'replaced', 'patient-request'] }, 'type' => 'CodeableConcept', 'path' => 'Detail.statusReason', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/goal-status-reason' } },
111
+ 'prohibited' => { 'type' => 'boolean', 'path' => 'Detail.prohibited', 'min' => 1, 'max' => 1 },
112
+ 'scheduledTiming' => { 'type' => 'Timing', 'path' => 'Detail.scheduled[x]', 'min' => 0, 'max' => 1 },
113
+ 'scheduledPeriod' => { 'type' => 'Period', 'path' => 'Detail.scheduled[x]', 'min' => 0, 'max' => 1 },
114
+ 'scheduledString' => { 'type' => 'string', 'path' => 'Detail.scheduled[x]', 'min' => 0, 'max' => 1 },
115
+ 'location' => { 'type' => 'Reference', 'path' => 'Detail.location', 'min' => 0, 'max' => 1 },
116
+ 'performer' => { 'type' => 'Reference', 'path' => 'Detail.performer', 'min' => 0, 'max' => Float::INFINITY },
117
+ 'productCodeableConcept' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Detail.product[x]', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/medication-codes' } },
118
+ 'productReference' => { 'type' => 'Reference', 'path' => 'Detail.product[x]', 'min' => 0, 'max' => 1 },
119
+ 'dailyAmount' => { 'type' => 'Quantity', 'path' => 'Detail.dailyAmount', 'min' => 0, 'max' => 1 },
120
+ 'quantity' => { 'type' => 'Quantity', 'path' => 'Detail.quantity', 'min' => 0, 'max' => 1 },
121
+ 'description' => { 'type' => 'string', 'path' => 'Detail.description', 'min' => 0, 'max' => 1 }
122
122
  }
123
123
 
124
124
  attr_accessor :id # 0-1 id
@@ -183,4 +183,4 @@ module FHIR
183
183
  end
184
184
  end
185
185
  end
186
- end
186
+ end