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,25 +7,25 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['care-manager', 'condition', 'date', 'identifier', 'incomingreferral', 'organization', 'patient', 'status', 'team-member', 'type']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'EpisodeOfCare.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'EpisodeOfCare.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'EpisodeOfCare.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'EpisodeOfCare.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'text' => {'type'=>'Narrative', 'path'=>'EpisodeOfCare.text', 'min'=>0, 'max'=>1},
15
- 'contained' => {'type'=>'Resource', 'path'=>'EpisodeOfCare.contained', 'min'=>0, 'max'=>Float::INFINITY},
16
- 'extension' => {'type'=>'Extension', 'path'=>'EpisodeOfCare.extension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'EpisodeOfCare.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'identifier' => {'type'=>'Identifier', 'path'=>'EpisodeOfCare.identifier', 'min'=>0, 'max'=>Float::INFINITY},
19
- 'status' => {'valid_codes'=>{'http://hl7.org/fhir/episode-of-care-status'=>['planned', 'waitlist', 'active', 'onhold', 'finished', 'cancelled']}, 'type'=>'code', 'path'=>'EpisodeOfCare.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/episode-of-care-status'}},
20
- 'statusHistory' => {'type'=>'EpisodeOfCare::StatusHistory', 'path'=>'EpisodeOfCare.statusHistory', 'min'=>0, 'max'=>Float::INFINITY},
21
- 'type' => {'type'=>'CodeableConcept', 'path'=>'EpisodeOfCare.type', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
22
- 'condition' => {'type'=>'Reference', 'path'=>'EpisodeOfCare.condition', 'min'=>0, 'max'=>Float::INFINITY},
23
- 'patient' => {'type'=>'Reference', 'path'=>'EpisodeOfCare.patient', 'min'=>1, 'max'=>1},
24
- 'managingOrganization' => {'type'=>'Reference', 'path'=>'EpisodeOfCare.managingOrganization', 'min'=>0, 'max'=>1},
25
- 'period' => {'type'=>'Period', 'path'=>'EpisodeOfCare.period', 'min'=>0, 'max'=>1},
26
- 'referralRequest' => {'type'=>'Reference', 'path'=>'EpisodeOfCare.referralRequest', 'min'=>0, 'max'=>Float::INFINITY},
27
- 'careManager' => {'type'=>'Reference', 'path'=>'EpisodeOfCare.careManager', 'min'=>0, 'max'=>1},
28
- 'careTeam' => {'type'=>'EpisodeOfCare::CareTeam', 'path'=>'EpisodeOfCare.careTeam', 'min'=>0, 'max'=>Float::INFINITY}
10
+ 'id' => { 'type' => 'id', 'path' => 'EpisodeOfCare.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'EpisodeOfCare.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'EpisodeOfCare.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'EpisodeOfCare.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'text' => { 'type' => 'Narrative', 'path' => 'EpisodeOfCare.text', 'min' => 0, 'max' => 1 },
15
+ 'contained' => { 'type' => 'Resource', 'path' => 'EpisodeOfCare.contained', 'min' => 0, 'max' => Float::INFINITY },
16
+ 'extension' => { 'type' => 'Extension', 'path' => 'EpisodeOfCare.extension', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'EpisodeOfCare.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'EpisodeOfCare.identifier', 'min' => 0, 'max' => Float::INFINITY },
19
+ 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/episode-of-care-status' => ['planned', 'waitlist', 'active', 'onhold', 'finished', 'cancelled'] }, 'type' => 'code', 'path' => 'EpisodeOfCare.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/episode-of-care-status' } },
20
+ 'statusHistory' => { 'type' => 'EpisodeOfCare::StatusHistory', 'path' => 'EpisodeOfCare.statusHistory', 'min' => 0, 'max' => Float::INFINITY },
21
+ 'type' => { 'type' => 'CodeableConcept', 'path' => 'EpisodeOfCare.type', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => nil } },
22
+ 'condition' => { 'type' => 'Reference', 'path' => 'EpisodeOfCare.condition', 'min' => 0, 'max' => Float::INFINITY },
23
+ 'patient' => { 'type' => 'Reference', 'path' => 'EpisodeOfCare.patient', 'min' => 1, 'max' => 1 },
24
+ 'managingOrganization' => { 'type' => 'Reference', 'path' => 'EpisodeOfCare.managingOrganization', 'min' => 0, 'max' => 1 },
25
+ 'period' => { 'type' => 'Period', 'path' => 'EpisodeOfCare.period', 'min' => 0, 'max' => 1 },
26
+ 'referralRequest' => { 'type' => 'Reference', 'path' => 'EpisodeOfCare.referralRequest', 'min' => 0, 'max' => Float::INFINITY },
27
+ 'careManager' => { 'type' => 'Reference', 'path' => 'EpisodeOfCare.careManager', 'min' => 0, 'max' => 1 },
28
+ 'careTeam' => { 'type' => 'EpisodeOfCare::CareTeam', 'path' => 'EpisodeOfCare.careTeam', 'min' => 0, 'max' => Float::INFINITY }
29
29
  }
30
30
 
31
31
  class StatusHistory < FHIR::DSTU2::Model
@@ -34,11 +34,11 @@ module FHIR
34
34
  include FHIR::DSTU2::Xml
35
35
 
36
36
  METADATA = {
37
- 'id' => {'type'=>'id', 'path'=>'StatusHistory.id', 'min'=>0, 'max'=>1},
38
- 'extension' => {'type'=>'Extension', 'path'=>'StatusHistory.extension', 'min'=>0, 'max'=>Float::INFINITY},
39
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'StatusHistory.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
40
- 'status' => {'valid_codes'=>{'http://hl7.org/fhir/episode-of-care-status'=>['planned', 'waitlist', 'active', 'onhold', 'finished', 'cancelled']}, 'type'=>'code', 'path'=>'StatusHistory.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/episode-of-care-status'}},
41
- 'period' => {'type'=>'Period', 'path'=>'StatusHistory.period', 'min'=>1, 'max'=>1}
37
+ 'id' => { 'type' => 'id', 'path' => 'StatusHistory.id', 'min' => 0, 'max' => 1 },
38
+ 'extension' => { 'type' => 'Extension', 'path' => 'StatusHistory.extension', 'min' => 0, 'max' => Float::INFINITY },
39
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'StatusHistory.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
40
+ 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/episode-of-care-status' => ['planned', 'waitlist', 'active', 'onhold', 'finished', 'cancelled'] }, 'type' => 'code', 'path' => 'StatusHistory.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/episode-of-care-status' } },
41
+ 'period' => { 'type' => 'Period', 'path' => 'StatusHistory.period', 'min' => 1, 'max' => 1 }
42
42
  }
43
43
 
44
44
  attr_accessor :id # 0-1 id
@@ -54,12 +54,12 @@ module FHIR
54
54
  include FHIR::DSTU2::Xml
55
55
 
56
56
  METADATA = {
57
- 'id' => {'type'=>'id', 'path'=>'CareTeam.id', 'min'=>0, 'max'=>1},
58
- 'extension' => {'type'=>'Extension', 'path'=>'CareTeam.extension', 'min'=>0, 'max'=>Float::INFINITY},
59
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'CareTeam.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
60
- 'role' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'CareTeam.role', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/participant-role'}},
61
- 'period' => {'type'=>'Period', 'path'=>'CareTeam.period', 'min'=>0, 'max'=>1},
62
- 'member' => {'type'=>'Reference', 'path'=>'CareTeam.member', 'min'=>0, 'max'=>1}
57
+ 'id' => { 'type' => 'id', 'path' => 'CareTeam.id', 'min' => 0, 'max' => 1 },
58
+ 'extension' => { 'type' => 'Extension', 'path' => 'CareTeam.extension', 'min' => 0, 'max' => Float::INFINITY },
59
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'CareTeam.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
60
+ 'role' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'CareTeam.role', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/participant-role' } },
61
+ 'period' => { 'type' => 'Period', 'path' => 'CareTeam.period', 'min' => 0, 'max' => 1 },
62
+ 'member' => { 'type' => 'Reference', 'path' => 'CareTeam.member', 'min' => 0, 'max' => 1 }
63
63
  }
64
64
 
65
65
  attr_accessor :id # 0-1 id
@@ -95,4 +95,4 @@ module FHIR
95
95
  end
96
96
  end
97
97
  end
98
- end
98
+ end
@@ -7,24 +7,24 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['identifier']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'ExplanationOfBenefit.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'ExplanationOfBenefit.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'ExplanationOfBenefit.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'ExplanationOfBenefit.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'text' => {'type'=>'Narrative', 'path'=>'ExplanationOfBenefit.text', 'min'=>0, 'max'=>1},
15
- 'contained' => {'type'=>'Resource', 'path'=>'ExplanationOfBenefit.contained', 'min'=>0, 'max'=>Float::INFINITY},
16
- 'extension' => {'type'=>'Extension', 'path'=>'ExplanationOfBenefit.extension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'ExplanationOfBenefit.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'identifier' => {'type'=>'Identifier', 'path'=>'ExplanationOfBenefit.identifier', 'min'=>0, 'max'=>Float::INFINITY},
19
- 'request' => {'type'=>'Reference', 'path'=>'ExplanationOfBenefit.request', 'min'=>0, 'max'=>1},
20
- 'outcome' => {'valid_codes'=>{'http://hl7.org/fhir/remittance-outcome'=>['complete', 'error']}, 'type'=>'code', 'path'=>'ExplanationOfBenefit.outcome', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/remittance-outcome'}},
21
- 'disposition' => {'type'=>'string', 'path'=>'ExplanationOfBenefit.disposition', 'min'=>0, 'max'=>1},
22
- 'ruleset' => {'valid_codes'=>{'http://hl7.org/fhir/ruleset'=>['x12-4010', 'x12-5010', 'x12-7010', 'cdanet-v2', 'cdanet-v4', 'cpha-3']}, 'type'=>'Coding', 'path'=>'ExplanationOfBenefit.ruleset', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/ruleset'}},
23
- 'originalRuleset' => {'valid_codes'=>{'http://hl7.org/fhir/ruleset'=>['x12-4010', 'x12-5010', 'x12-7010', 'cdanet-v2', 'cdanet-v4', 'cpha-3']}, 'type'=>'Coding', 'path'=>'ExplanationOfBenefit.originalRuleset', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/ruleset'}},
24
- 'created' => {'type'=>'dateTime', 'path'=>'ExplanationOfBenefit.created', 'min'=>0, 'max'=>1},
25
- 'organization' => {'type'=>'Reference', 'path'=>'ExplanationOfBenefit.organization', 'min'=>0, 'max'=>1},
26
- 'requestProvider' => {'type'=>'Reference', 'path'=>'ExplanationOfBenefit.requestProvider', 'min'=>0, 'max'=>1},
27
- 'requestOrganization' => {'type'=>'Reference', 'path'=>'ExplanationOfBenefit.requestOrganization', 'min'=>0, 'max'=>1}
10
+ 'id' => { 'type' => 'id', 'path' => 'ExplanationOfBenefit.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'ExplanationOfBenefit.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'ExplanationOfBenefit.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'ExplanationOfBenefit.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'text' => { 'type' => 'Narrative', 'path' => 'ExplanationOfBenefit.text', 'min' => 0, 'max' => 1 },
15
+ 'contained' => { 'type' => 'Resource', 'path' => 'ExplanationOfBenefit.contained', 'min' => 0, 'max' => Float::INFINITY },
16
+ 'extension' => { 'type' => 'Extension', 'path' => 'ExplanationOfBenefit.extension', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'ExplanationOfBenefit.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'ExplanationOfBenefit.identifier', 'min' => 0, 'max' => Float::INFINITY },
19
+ 'request' => { 'type' => 'Reference', 'path' => 'ExplanationOfBenefit.request', 'min' => 0, 'max' => 1 },
20
+ 'outcome' => { 'valid_codes' => { 'http://hl7.org/fhir/remittance-outcome' => ['complete', 'error'] }, 'type' => 'code', 'path' => 'ExplanationOfBenefit.outcome', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/remittance-outcome' } },
21
+ 'disposition' => { 'type' => 'string', 'path' => 'ExplanationOfBenefit.disposition', 'min' => 0, 'max' => 1 },
22
+ 'ruleset' => { 'valid_codes' => { 'http://hl7.org/fhir/ruleset' => ['x12-4010', 'x12-5010', 'x12-7010', 'cdanet-v2', 'cdanet-v4', 'cpha-3'] }, 'type' => 'Coding', 'path' => 'ExplanationOfBenefit.ruleset', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/ruleset' } },
23
+ 'originalRuleset' => { 'valid_codes' => { 'http://hl7.org/fhir/ruleset' => ['x12-4010', 'x12-5010', 'x12-7010', 'cdanet-v2', 'cdanet-v4', 'cpha-3'] }, 'type' => 'Coding', 'path' => 'ExplanationOfBenefit.originalRuleset', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/ruleset' } },
24
+ 'created' => { 'type' => 'dateTime', 'path' => 'ExplanationOfBenefit.created', 'min' => 0, 'max' => 1 },
25
+ 'organization' => { 'type' => 'Reference', 'path' => 'ExplanationOfBenefit.organization', 'min' => 0, 'max' => 1 },
26
+ 'requestProvider' => { 'type' => 'Reference', 'path' => 'ExplanationOfBenefit.requestProvider', 'min' => 0, 'max' => 1 },
27
+ 'requestOrganization' => { 'type' => 'Reference', 'path' => 'ExplanationOfBenefit.requestOrganization', 'min' => 0, 'max' => 1 }
28
28
  }
29
29
 
30
30
  attr_accessor :id # 0-1 id
@@ -51,4 +51,4 @@ module FHIR
51
51
  end
52
52
  end
53
53
  end
54
- end
54
+ end
@@ -12,34 +12,34 @@ module FHIR
12
12
  }
13
13
  SEARCH_PARAMS = ['code', 'date', 'gender', 'identifier', 'patient', 'relationship']
14
14
  METADATA = {
15
- 'id' => {'type'=>'id', 'path'=>'FamilyMemberHistory.id', 'min'=>0, 'max'=>1},
16
- 'meta' => {'type'=>'Meta', 'path'=>'FamilyMemberHistory.meta', 'min'=>0, 'max'=>1},
17
- 'implicitRules' => {'type'=>'uri', 'path'=>'FamilyMemberHistory.implicitRules', 'min'=>0, 'max'=>1},
18
- 'language' => {'type'=>'code', 'path'=>'FamilyMemberHistory.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
19
- 'text' => {'type'=>'Narrative', 'path'=>'FamilyMemberHistory.text', 'min'=>0, 'max'=>1},
20
- 'contained' => {'type'=>'Resource', 'path'=>'FamilyMemberHistory.contained', 'min'=>0, 'max'=>Float::INFINITY},
21
- 'extension' => {'type'=>'Extension', 'path'=>'FamilyMemberHistory.extension', 'min'=>0, 'max'=>Float::INFINITY},
22
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'FamilyMemberHistory.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
23
- 'identifier' => {'type'=>'Identifier', 'path'=>'FamilyMemberHistory.identifier', 'min'=>0, 'max'=>Float::INFINITY},
24
- 'patient' => {'type'=>'Reference', 'path'=>'FamilyMemberHistory.patient', 'min'=>1, 'max'=>1},
25
- 'date' => {'type'=>'dateTime', 'path'=>'FamilyMemberHistory.date', 'min'=>0, 'max'=>1},
26
- 'status' => {'valid_codes'=>{'http://hl7.org/fhir/history-status'=>['partial', 'completed', 'entered-in-error', 'health-unknown']}, 'type'=>'code', 'path'=>'FamilyMemberHistory.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/history-status'}},
27
- 'name' => {'type'=>'string', 'path'=>'FamilyMemberHistory.name', 'min'=>0, 'max'=>1},
28
- 'relationship' => {'valid_codes'=>{'http://hl7.org/fhir/v3/RoleCode'=>['_AffiliationRoleType', '_CoverageSponsorRoleType', 'FULLINS', 'SELFINS', '_PayorRoleType', 'ENROLBKR', 'TPA', 'UMO', 'RESPRSN', 'EXCEST', 'GUADLTM', 'GUARD', 'POWATT', 'DPOWATT', 'HPOWATT', 'SPOWATT', '_AssignedRoleType', '_AssignedNonPersonLivingSubjectRoleType', 'ASSIST', 'BIOTH', 'ANTIBIOT', 'DEBR', 'CCO', 'SEE', 'SNIFF', '_CertifiedEntityType', '_CitizenRoleType', 'CAS', 'CASM', 'CN', 'CNRP', 'CNRPM', 'CPCA', 'CRP', 'CRPM', '_ContactRoleType', '_AdministrativeContactRoleType', 'BILL', 'ORG', 'PAYOR', 'ECON', 'NOK', '_IdentifiedEntityType', '_LocationIdentifiedEntityRoleCode', 'ACHFID', 'JURID', 'LOCHFID', '_LivingSubjectProductionClass', 'BF', 'BL', 'BR', 'CO', 'DA', 'DR', 'DU', 'FI', 'LY', 'MT', 'MU', 'PL', 'RC', 'SH', 'VL', 'WL', 'WO', '_MedicationGeneralizationRoleType', 'DC', 'GD', 'GDF', 'GDS', 'GDSF', 'MGDSF', '_MemberRoleType', 'TRB', '_PersonalRelationshipRoleType', 'FAMMEMB', 'CHILD', 'CHLDADOPT', 'DAUADOPT', 'SONADOPT', 'CHLDFOST', 'DAUFOST', 'SONFOST', 'DAUC', 'DAU', 'STPDAU', 'NCHILD', 'SON', 'SONC', 'STPSON', 'STPCHLD', 'EXT', 'AUNT', 'MAUNT', 'PAUNT', 'COUSN', 'MCOUSN', 'PCOUSN', 'GGRPRN', 'GGRFTH', 'MGGRFTH', 'PGGRFTH', 'GGRMTH', 'MGGRMTH', 'PGGRMTH', 'MGGRPRN', 'PGGRPRN', 'GRNDCHILD', 'GRNDDAU', 'GRNDSON', 'GRPRN', 'GRFTH', 'MGRFTH', 'PGRFTH', 'GRMTH', 'MGRMTH', 'PGRMTH', 'MGRPRN', 'PGRPRN', 'INLAW', 'CHLDINLAW', 'DAUINLAW', 'SONINLAW', 'PRNINLAW', 'FTHINLAW', 'MTHINLAW', 'SIBINLAW', 'BROINLAW', 'SISINLAW', 'NIENEPH', 'NEPHEW', 'NIECE', 'UNCLE', 'MUNCLE', 'PUNCLE', 'PRN', 'ADOPTP', 'ADOPTF', 'ADOPTM', 'FTH', 'FTHFOST', 'NFTH', 'NFTHF', 'STPFTH', 'MTH', 'GESTM', 'MTHFOST', 'NMTH', 'NMTHF', 'STPMTH', 'NPRN', 'PRNFOST', 'STPPRN', 'SIB', 'BRO', 'HBRO', 'NBRO', 'TWINBRO', 'FTWINBRO', 'ITWINBRO', 'STPBRO', 'HSIB', 'HSIS', 'NSIB', 'NSIS', 'TWINSIS', 'FTWINSIS', 'ITWINSIS', 'TWIN', 'FTWIN', 'ITWIN', 'SIS', 'STPSIS', 'STPSIB', 'SIGOTHR', 'DOMPART', 'FMRSPS', 'SPS', 'HUSB', 'WIFE', 'FRND', 'NBOR', 'ONESELF', 'ROOM', '_PolicyOrProgramCoverageRoleType', '_CoverageRoleType', 'FAMDEP', 'HANDIC', 'INJ', 'SELF', 'SPON', 'STUD', 'FSTUD', 'PSTUD', 'ADOPT', 'GCHILD', 'GPARNT', 'NAT', 'NIENE', 'PARNT', 'SPSE', 'STEP', '_CoveredPartyRoleType', '_ClaimantCoveredPartyRoleType', 'CRIMEVIC', 'INJWKR', '_DependentCoveredPartyRoleType', 'COCBEN', 'DIFFABL', 'WARD', '_IndividualInsuredPartyRoleType', 'RETIREE', '_ProgramEligiblePartyRoleType', 'INDIG', 'MIL', 'ACTMIL', 'RETMIL', 'VET', '_SubscriberCoveredPartyRoleType', '_ResearchSubjectRoleBasis', 'ERL', 'SCN', '_ServiceDeliveryLocationRoleType', '_DedicatedServiceDeliveryLocationRoleType', '_DedicatedClinicalLocationRoleType', 'DX', 'CVDX', 'CATH', 'ECHO', 'GIDX', 'ENDOS', 'RADDX', 'RADO', 'RNEU', 'HOSP', 'CHR', 'GACH', 'MHSP', 'PSYCHF', 'RH', 'RHAT', 'RHII', 'RHMAD', 'RHPI', 'RHPIH', 'RHPIMS', 'RHPIVS', 'RHYAD', 'HU', 'BMTU', 'CCU', 'CHEST', 'EPIL', 'ER', 'ETU', 'HD', 'HLAB', 'INLAB', 'OUTLAB', 'HRAD', 'HUSCS', 'ICU', 'PEDICU', 'PEDNICU', 'INPHARM', 'MBL', 'NCCS', 'NS', 'OUTPHARM', 'PEDU', 'PHU', 'RHU', 'SLEEP', 'NCCF', 'SNF', 'OF', 'ALL', 'AMPUT', 'BMTC', 'BREAST', 'CANC', 'CAPC', 'CARD', 'PEDCARD', 'COAG', 'CRS', 'DERM', 'ENDO', 'PEDE', 'ENT', 'FMC', 'GI', 'PEDGI', 'GIM', 'GYN', 'HEM', 'PEDHEM', 'HTN', 'IEC', 'INFD', 'PEDID', 'INV', 'LYMPH', 'MGEN', 'NEPH', 'PEDNEPH', 'NEUR', 'OB', 'OMS', 'ONCL', 'PEDHO', 'OPH', 'OPTC', 'ORTHO', 'HAND', 'PAINCL', 'PC', 'PEDC', 'PEDRHEUM', 'POD', 'PREV', 'PROCTO', 'PROFF', 'PROS', 'PSI', 'PSY', 'RHEUM', 'SPMED', 'SU', 'PLS', 'URO', 'TR', 'TRAVEL', 'WND', 'RTF', 'PRC', 'SURF', '_DedicatedNonClinicalLocationRoleType', 'DADDR', 'MOBL', 'AMB', 'PHARM', '_IncidentalServiceDeliveryLocationRoleType', 'ACC', 'COMM', 'CSC', 'PTRES', 'SCHOOL', 'UPC', 'WORK', '_SpecimenRoleType', 'C', 'G', 'L', 'P', 'Q', 'B', 'E', 'F', 'O', 'V', 'R', 'CLAIM', 'communityLaboratory', 'GT', 'homeHealth', 'laboratory', 'pathologist', 'PH', 'phlebotomist', 'PROG', 'PT', 'subject', 'thirdParty', 'DEP', 'DEPEN', 'FM', 'INDIV', 'NAMED', 'PSYCHCF', 'SUBSCR']}, 'type'=>'CodeableConcept', 'path'=>'FamilyMemberHistory.relationship', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-FamilyMember'}},
29
- 'gender' => {'valid_codes'=>{'http://hl7.org/fhir/administrative-gender'=>['male', 'female', 'other', 'unknown']}, 'type'=>'code', 'path'=>'FamilyMemberHistory.gender', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/administrative-gender'}},
30
- 'bornPeriod' => {'type'=>'Period', 'path'=>'FamilyMemberHistory.born[x]', 'min'=>0, 'max'=>1},
31
- 'bornDate' => {'type'=>'date', 'path'=>'FamilyMemberHistory.born[x]', 'min'=>0, 'max'=>1},
32
- 'bornString' => {'type'=>'string', 'path'=>'FamilyMemberHistory.born[x]', 'min'=>0, 'max'=>1},
33
- 'ageQuantity' => {'type'=>'Quantity', 'path'=>'FamilyMemberHistory.age[x]', 'min'=>0, 'max'=>1},
34
- 'ageRange' => {'type'=>'Range', 'path'=>'FamilyMemberHistory.age[x]', 'min'=>0, 'max'=>1},
35
- 'ageString' => {'type'=>'string', 'path'=>'FamilyMemberHistory.age[x]', 'min'=>0, 'max'=>1},
36
- 'deceasedBoolean' => {'type'=>'boolean', 'path'=>'FamilyMemberHistory.deceased[x]', 'min'=>0, 'max'=>1},
37
- 'deceasedQuantity' => {'type'=>'Quantity', 'path'=>'FamilyMemberHistory.deceased[x]', 'min'=>0, 'max'=>1},
38
- 'deceasedRange' => {'type'=>'Range', 'path'=>'FamilyMemberHistory.deceased[x]', 'min'=>0, 'max'=>1},
39
- 'deceasedDate' => {'type'=>'date', 'path'=>'FamilyMemberHistory.deceased[x]', 'min'=>0, 'max'=>1},
40
- 'deceasedString' => {'type'=>'string', 'path'=>'FamilyMemberHistory.deceased[x]', 'min'=>0, 'max'=>1},
41
- 'note' => {'type'=>'Annotation', 'path'=>'FamilyMemberHistory.note', 'min'=>0, 'max'=>1},
42
- 'condition' => {'type'=>'FamilyMemberHistory::Condition', 'path'=>'FamilyMemberHistory.condition', 'min'=>0, 'max'=>Float::INFINITY}
15
+ 'id' => { 'type' => 'id', 'path' => 'FamilyMemberHistory.id', 'min' => 0, 'max' => 1 },
16
+ 'meta' => { 'type' => 'Meta', 'path' => 'FamilyMemberHistory.meta', 'min' => 0, 'max' => 1 },
17
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'FamilyMemberHistory.implicitRules', 'min' => 0, 'max' => 1 },
18
+ 'language' => { 'type' => 'code', 'path' => 'FamilyMemberHistory.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
19
+ 'text' => { 'type' => 'Narrative', 'path' => 'FamilyMemberHistory.text', 'min' => 0, 'max' => 1 },
20
+ 'contained' => { 'type' => 'Resource', 'path' => 'FamilyMemberHistory.contained', 'min' => 0, 'max' => Float::INFINITY },
21
+ 'extension' => { 'type' => 'Extension', 'path' => 'FamilyMemberHistory.extension', 'min' => 0, 'max' => Float::INFINITY },
22
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'FamilyMemberHistory.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
23
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'FamilyMemberHistory.identifier', 'min' => 0, 'max' => Float::INFINITY },
24
+ 'patient' => { 'type' => 'Reference', 'path' => 'FamilyMemberHistory.patient', 'min' => 1, 'max' => 1 },
25
+ 'date' => { 'type' => 'dateTime', 'path' => 'FamilyMemberHistory.date', 'min' => 0, 'max' => 1 },
26
+ 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/history-status' => ['partial', 'completed', 'entered-in-error', 'health-unknown'] }, 'type' => 'code', 'path' => 'FamilyMemberHistory.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/history-status' } },
27
+ 'name' => { 'type' => 'string', 'path' => 'FamilyMemberHistory.name', 'min' => 0, 'max' => 1 },
28
+ 'relationship' => { 'valid_codes' => { 'http://hl7.org/fhir/v3/RoleCode' => ['_AffiliationRoleType', '_CoverageSponsorRoleType', 'FULLINS', 'SELFINS', '_PayorRoleType', 'ENROLBKR', 'TPA', 'UMO', 'RESPRSN', 'EXCEST', 'GUADLTM', 'GUARD', 'POWATT', 'DPOWATT', 'HPOWATT', 'SPOWATT', '_AssignedRoleType', '_AssignedNonPersonLivingSubjectRoleType', 'ASSIST', 'BIOTH', 'ANTIBIOT', 'DEBR', 'CCO', 'SEE', 'SNIFF', '_CertifiedEntityType', '_CitizenRoleType', 'CAS', 'CASM', 'CN', 'CNRP', 'CNRPM', 'CPCA', 'CRP', 'CRPM', '_ContactRoleType', '_AdministrativeContactRoleType', 'BILL', 'ORG', 'PAYOR', 'ECON', 'NOK', '_IdentifiedEntityType', '_LocationIdentifiedEntityRoleCode', 'ACHFID', 'JURID', 'LOCHFID', '_LivingSubjectProductionClass', 'BF', 'BL', 'BR', 'CO', 'DA', 'DR', 'DU', 'FI', 'LY', 'MT', 'MU', 'PL', 'RC', 'SH', 'VL', 'WL', 'WO', '_MedicationGeneralizationRoleType', 'DC', 'GD', 'GDF', 'GDS', 'GDSF', 'MGDSF', '_MemberRoleType', 'TRB', '_PersonalRelationshipRoleType', 'FAMMEMB', 'CHILD', 'CHLDADOPT', 'DAUADOPT', 'SONADOPT', 'CHLDFOST', 'DAUFOST', 'SONFOST', 'DAUC', 'DAU', 'STPDAU', 'NCHILD', 'SON', 'SONC', 'STPSON', 'STPCHLD', 'EXT', 'AUNT', 'MAUNT', 'PAUNT', 'COUSN', 'MCOUSN', 'PCOUSN', 'GGRPRN', 'GGRFTH', 'MGGRFTH', 'PGGRFTH', 'GGRMTH', 'MGGRMTH', 'PGGRMTH', 'MGGRPRN', 'PGGRPRN', 'GRNDCHILD', 'GRNDDAU', 'GRNDSON', 'GRPRN', 'GRFTH', 'MGRFTH', 'PGRFTH', 'GRMTH', 'MGRMTH', 'PGRMTH', 'MGRPRN', 'PGRPRN', 'INLAW', 'CHLDINLAW', 'DAUINLAW', 'SONINLAW', 'PRNINLAW', 'FTHINLAW', 'MTHINLAW', 'SIBINLAW', 'BROINLAW', 'SISINLAW', 'NIENEPH', 'NEPHEW', 'NIECE', 'UNCLE', 'MUNCLE', 'PUNCLE', 'PRN', 'ADOPTP', 'ADOPTF', 'ADOPTM', 'FTH', 'FTHFOST', 'NFTH', 'NFTHF', 'STPFTH', 'MTH', 'GESTM', 'MTHFOST', 'NMTH', 'NMTHF', 'STPMTH', 'NPRN', 'PRNFOST', 'STPPRN', 'SIB', 'BRO', 'HBRO', 'NBRO', 'TWINBRO', 'FTWINBRO', 'ITWINBRO', 'STPBRO', 'HSIB', 'HSIS', 'NSIB', 'NSIS', 'TWINSIS', 'FTWINSIS', 'ITWINSIS', 'TWIN', 'FTWIN', 'ITWIN', 'SIS', 'STPSIS', 'STPSIB', 'SIGOTHR', 'DOMPART', 'FMRSPS', 'SPS', 'HUSB', 'WIFE', 'FRND', 'NBOR', 'ONESELF', 'ROOM', '_PolicyOrProgramCoverageRoleType', '_CoverageRoleType', 'FAMDEP', 'HANDIC', 'INJ', 'SELF', 'SPON', 'STUD', 'FSTUD', 'PSTUD', 'ADOPT', 'GCHILD', 'GPARNT', 'NAT', 'NIENE', 'PARNT', 'SPSE', 'STEP', '_CoveredPartyRoleType', '_ClaimantCoveredPartyRoleType', 'CRIMEVIC', 'INJWKR', '_DependentCoveredPartyRoleType', 'COCBEN', 'DIFFABL', 'WARD', '_IndividualInsuredPartyRoleType', 'RETIREE', '_ProgramEligiblePartyRoleType', 'INDIG', 'MIL', 'ACTMIL', 'RETMIL', 'VET', '_SubscriberCoveredPartyRoleType', '_ResearchSubjectRoleBasis', 'ERL', 'SCN', '_ServiceDeliveryLocationRoleType', '_DedicatedServiceDeliveryLocationRoleType', '_DedicatedClinicalLocationRoleType', 'DX', 'CVDX', 'CATH', 'ECHO', 'GIDX', 'ENDOS', 'RADDX', 'RADO', 'RNEU', 'HOSP', 'CHR', 'GACH', 'MHSP', 'PSYCHF', 'RH', 'RHAT', 'RHII', 'RHMAD', 'RHPI', 'RHPIH', 'RHPIMS', 'RHPIVS', 'RHYAD', 'HU', 'BMTU', 'CCU', 'CHEST', 'EPIL', 'ER', 'ETU', 'HD', 'HLAB', 'INLAB', 'OUTLAB', 'HRAD', 'HUSCS', 'ICU', 'PEDICU', 'PEDNICU', 'INPHARM', 'MBL', 'NCCS', 'NS', 'OUTPHARM', 'PEDU', 'PHU', 'RHU', 'SLEEP', 'NCCF', 'SNF', 'OF', 'ALL', 'AMPUT', 'BMTC', 'BREAST', 'CANC', 'CAPC', 'CARD', 'PEDCARD', 'COAG', 'CRS', 'DERM', 'ENDO', 'PEDE', 'ENT', 'FMC', 'GI', 'PEDGI', 'GIM', 'GYN', 'HEM', 'PEDHEM', 'HTN', 'IEC', 'INFD', 'PEDID', 'INV', 'LYMPH', 'MGEN', 'NEPH', 'PEDNEPH', 'NEUR', 'OB', 'OMS', 'ONCL', 'PEDHO', 'OPH', 'OPTC', 'ORTHO', 'HAND', 'PAINCL', 'PC', 'PEDC', 'PEDRHEUM', 'POD', 'PREV', 'PROCTO', 'PROFF', 'PROS', 'PSI', 'PSY', 'RHEUM', 'SPMED', 'SU', 'PLS', 'URO', 'TR', 'TRAVEL', 'WND', 'RTF', 'PRC', 'SURF', '_DedicatedNonClinicalLocationRoleType', 'DADDR', 'MOBL', 'AMB', 'PHARM', '_IncidentalServiceDeliveryLocationRoleType', 'ACC', 'COMM', 'CSC', 'PTRES', 'SCHOOL', 'UPC', 'WORK', '_SpecimenRoleType', 'C', 'G', 'L', 'P', 'Q', 'B', 'E', 'F', 'O', 'V', 'R', 'CLAIM', 'communityLaboratory', 'GT', 'homeHealth', 'laboratory', 'pathologist', 'PH', 'phlebotomist', 'PROG', 'PT', 'subject', 'thirdParty', 'DEP', 'DEPEN', 'FM', 'INDIV', 'NAMED', 'PSYCHCF', 'SUBSCR'] }, 'type' => 'CodeableConcept', 'path' => 'FamilyMemberHistory.relationship', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/v3-FamilyMember' } },
29
+ 'gender' => { 'valid_codes' => { 'http://hl7.org/fhir/administrative-gender' => ['male', 'female', 'other', 'unknown'] }, 'type' => 'code', 'path' => 'FamilyMemberHistory.gender', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/administrative-gender' } },
30
+ 'bornPeriod' => { 'type' => 'Period', 'path' => 'FamilyMemberHistory.born[x]', 'min' => 0, 'max' => 1 },
31
+ 'bornDate' => { 'type' => 'date', 'path' => 'FamilyMemberHistory.born[x]', 'min' => 0, 'max' => 1 },
32
+ 'bornString' => { 'type' => 'string', 'path' => 'FamilyMemberHistory.born[x]', 'min' => 0, 'max' => 1 },
33
+ 'ageQuantity' => { 'type' => 'Quantity', 'path' => 'FamilyMemberHistory.age[x]', 'min' => 0, 'max' => 1 },
34
+ 'ageRange' => { 'type' => 'Range', 'path' => 'FamilyMemberHistory.age[x]', 'min' => 0, 'max' => 1 },
35
+ 'ageString' => { 'type' => 'string', 'path' => 'FamilyMemberHistory.age[x]', 'min' => 0, 'max' => 1 },
36
+ 'deceasedBoolean' => { 'type' => 'boolean', 'path' => 'FamilyMemberHistory.deceased[x]', 'min' => 0, 'max' => 1 },
37
+ 'deceasedQuantity' => { 'type' => 'Quantity', 'path' => 'FamilyMemberHistory.deceased[x]', 'min' => 0, 'max' => 1 },
38
+ 'deceasedRange' => { 'type' => 'Range', 'path' => 'FamilyMemberHistory.deceased[x]', 'min' => 0, 'max' => 1 },
39
+ 'deceasedDate' => { 'type' => 'date', 'path' => 'FamilyMemberHistory.deceased[x]', 'min' => 0, 'max' => 1 },
40
+ 'deceasedString' => { 'type' => 'string', 'path' => 'FamilyMemberHistory.deceased[x]', 'min' => 0, 'max' => 1 },
41
+ 'note' => { 'type' => 'Annotation', 'path' => 'FamilyMemberHistory.note', 'min' => 0, 'max' => 1 },
42
+ 'condition' => { 'type' => 'FamilyMemberHistory::Condition', 'path' => 'FamilyMemberHistory.condition', 'min' => 0, 'max' => Float::INFINITY }
43
43
  }
44
44
 
45
45
  class Condition < FHIR::DSTU2::Model
@@ -51,16 +51,16 @@ module FHIR
51
51
  'onset' => ['Quantity', 'Range', 'Period', 'string']
52
52
  }
53
53
  METADATA = {
54
- 'id' => {'type'=>'id', 'path'=>'Condition.id', 'min'=>0, 'max'=>1},
55
- 'extension' => {'type'=>'Extension', 'path'=>'Condition.extension', 'min'=>0, 'max'=>Float::INFINITY},
56
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Condition.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
57
- 'code' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Condition.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/condition-code'}},
58
- 'outcome' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Condition.outcome', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/condition-outcome'}},
59
- 'onsetQuantity' => {'type'=>'Quantity', 'path'=>'Condition.onset[x]', 'min'=>0, 'max'=>1},
60
- 'onsetRange' => {'type'=>'Range', 'path'=>'Condition.onset[x]', 'min'=>0, 'max'=>1},
61
- 'onsetPeriod' => {'type'=>'Period', 'path'=>'Condition.onset[x]', 'min'=>0, 'max'=>1},
62
- 'onsetString' => {'type'=>'string', 'path'=>'Condition.onset[x]', 'min'=>0, 'max'=>1},
63
- 'note' => {'type'=>'Annotation', 'path'=>'Condition.note', 'min'=>0, 'max'=>1}
54
+ 'id' => { 'type' => 'id', 'path' => 'Condition.id', 'min' => 0, 'max' => 1 },
55
+ 'extension' => { 'type' => 'Extension', 'path' => 'Condition.extension', 'min' => 0, 'max' => Float::INFINITY },
56
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Condition.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
57
+ 'code' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Condition.code', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/condition-code' } },
58
+ 'outcome' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Condition.outcome', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/condition-outcome' } },
59
+ 'onsetQuantity' => { 'type' => 'Quantity', 'path' => 'Condition.onset[x]', 'min' => 0, 'max' => 1 },
60
+ 'onsetRange' => { 'type' => 'Range', 'path' => 'Condition.onset[x]', 'min' => 0, 'max' => 1 },
61
+ 'onsetPeriod' => { 'type' => 'Period', 'path' => 'Condition.onset[x]', 'min' => 0, 'max' => 1 },
62
+ 'onsetString' => { 'type' => 'string', 'path' => 'Condition.onset[x]', 'min' => 0, 'max' => 1 },
63
+ 'note' => { 'type' => 'Annotation', 'path' => 'Condition.note', 'min' => 0, 'max' => 1 }
64
64
  }
65
65
 
66
66
  attr_accessor :id # 0-1 id
@@ -109,4 +109,4 @@ module FHIR
109
109
  end
110
110
  end
111
111
  end
112
- end
112
+ end
@@ -7,22 +7,22 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['author', 'date', 'encounter', 'patient', 'subject']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'Flag.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'Flag.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'Flag.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'Flag.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'text' => {'type'=>'Narrative', 'path'=>'Flag.text', 'min'=>0, 'max'=>1},
15
- 'contained' => {'type'=>'Resource', 'path'=>'Flag.contained', 'min'=>0, 'max'=>Float::INFINITY},
16
- 'extension' => {'type'=>'Extension', 'path'=>'Flag.extension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Flag.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'identifier' => {'type'=>'Identifier', 'path'=>'Flag.identifier', 'min'=>0, 'max'=>Float::INFINITY},
19
- 'category' => {'valid_codes'=>{'http://hl7.org/fhir/flag-category'=>['diet', 'drug', 'lab', 'admin', 'contact']}, 'type'=>'CodeableConcept', 'path'=>'Flag.category', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/flag-category'}},
20
- 'status' => {'valid_codes'=>{'http://hl7.org/fhir/flag-status'=>['active', 'inactive', 'entered-in-error']}, 'type'=>'code', 'path'=>'Flag.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/flag-status'}},
21
- 'period' => {'type'=>'Period', 'path'=>'Flag.period', 'min'=>0, 'max'=>1},
22
- 'subject' => {'type'=>'Reference', 'path'=>'Flag.subject', 'min'=>1, 'max'=>1},
23
- 'encounter' => {'type'=>'Reference', 'path'=>'Flag.encounter', 'min'=>0, 'max'=>1},
24
- 'author' => {'type'=>'Reference', 'path'=>'Flag.author', 'min'=>0, 'max'=>1},
25
- 'code' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Flag.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/flag-code'}}
10
+ 'id' => { 'type' => 'id', 'path' => 'Flag.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'Flag.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'Flag.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'Flag.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'text' => { 'type' => 'Narrative', 'path' => 'Flag.text', 'min' => 0, 'max' => 1 },
15
+ 'contained' => { 'type' => 'Resource', 'path' => 'Flag.contained', 'min' => 0, 'max' => Float::INFINITY },
16
+ 'extension' => { 'type' => 'Extension', 'path' => 'Flag.extension', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Flag.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'Flag.identifier', 'min' => 0, 'max' => Float::INFINITY },
19
+ 'category' => { 'valid_codes' => { 'http://hl7.org/fhir/flag-category' => ['diet', 'drug', 'lab', 'admin', 'contact'] }, 'type' => 'CodeableConcept', 'path' => 'Flag.category', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/flag-category' } },
20
+ 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/flag-status' => ['active', 'inactive', 'entered-in-error'] }, 'type' => 'code', 'path' => 'Flag.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/flag-status' } },
21
+ 'period' => { 'type' => 'Period', 'path' => 'Flag.period', 'min' => 0, 'max' => 1 },
22
+ 'subject' => { 'type' => 'Reference', 'path' => 'Flag.subject', 'min' => 1, 'max' => 1 },
23
+ 'encounter' => { 'type' => 'Reference', 'path' => 'Flag.encounter', 'min' => 0, 'max' => 1 },
24
+ 'author' => { 'type' => 'Reference', 'path' => 'Flag.author', 'min' => 0, 'max' => 1 },
25
+ 'code' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Flag.code', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/flag-code' } }
26
26
  }
27
27
 
28
28
  attr_accessor :id # 0-1 id
@@ -47,4 +47,4 @@ module FHIR
47
47
  end
48
48
  end
49
49
  end
50
- end
50
+ end
@@ -11,30 +11,30 @@ module FHIR
11
11
  }
12
12
  SEARCH_PARAMS = ['category', 'identifier', 'patient', 'status', 'subject', 'targetdate']
13
13
  METADATA = {
14
- 'id' => {'type'=>'id', 'path'=>'Goal.id', 'min'=>0, 'max'=>1},
15
- 'meta' => {'type'=>'Meta', 'path'=>'Goal.meta', 'min'=>0, 'max'=>1},
16
- 'implicitRules' => {'type'=>'uri', 'path'=>'Goal.implicitRules', 'min'=>0, 'max'=>1},
17
- 'language' => {'type'=>'code', 'path'=>'Goal.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
18
- 'text' => {'type'=>'Narrative', 'path'=>'Goal.text', 'min'=>0, 'max'=>1},
19
- 'contained' => {'type'=>'Resource', 'path'=>'Goal.contained', 'min'=>0, 'max'=>Float::INFINITY},
20
- 'extension' => {'type'=>'Extension', 'path'=>'Goal.extension', 'min'=>0, 'max'=>Float::INFINITY},
21
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Goal.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
22
- 'identifier' => {'type'=>'Identifier', 'path'=>'Goal.identifier', 'min'=>0, 'max'=>Float::INFINITY},
23
- 'subject' => {'type'=>'Reference', 'path'=>'Goal.subject', 'min'=>0, 'max'=>1},
24
- 'startDate' => {'type'=>'date', 'path'=>'Goal.start[x]', 'min'=>0, 'max'=>1},
25
- 'startCodeableConcept' => {'valid_codes'=>{'http://snomed.info/sct'=>['32485007', '308283009', '442137000', '386216000']}, 'type'=>'CodeableConcept', 'path'=>'Goal.start[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/goal-start-event'}},
26
- 'targetDate' => {'type'=>'date', 'path'=>'Goal.target[x]', 'min'=>0, 'max'=>1},
27
- 'targetQuantity' => {'type'=>'Quantity', 'path'=>'Goal.target[x]', 'min'=>0, 'max'=>1},
28
- 'category' => {'valid_codes'=>{'http://hl7.org/fhir/goal-category'=>['dietary', 'safety', 'behavioral', 'nursing', 'physiotherapy']}, 'type'=>'CodeableConcept', 'path'=>'Goal.category', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/goal-category'}},
29
- 'description' => {'type'=>'string', 'path'=>'Goal.description', 'min'=>1, 'max'=>1},
30
- 'status' => {'valid_codes'=>{'http://hl7.org/fhir/goal-status'=>['proposed', 'planned', 'accepted', 'rejected', 'in-progress', 'achieved', 'sustaining', 'on-hold', 'cancelled']}, 'type'=>'code', 'path'=>'Goal.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/goal-status'}},
31
- 'statusDate' => {'type'=>'date', 'path'=>'Goal.statusDate', 'min'=>0, 'max'=>1},
32
- 'statusReason' => {'valid_codes'=>{'http://hl7.org/fhir/goal-status-reason'=>['surgery', 'life-event', 'replaced', 'patient-request']}, 'type'=>'CodeableConcept', 'path'=>'Goal.statusReason', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/goal-status-reason'}},
33
- 'author' => {'type'=>'Reference', 'path'=>'Goal.author', 'min'=>0, 'max'=>1},
34
- 'priority' => {'valid_codes'=>{'http://hl7.org/fhir/goal-priority'=>['high', 'medium', 'low']}, 'type'=>'CodeableConcept', 'path'=>'Goal.priority', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/goal-priority'}},
35
- 'addresses' => {'type'=>'Reference', 'path'=>'Goal.addresses', 'min'=>0, 'max'=>Float::INFINITY},
36
- 'note' => {'type'=>'Annotation', 'path'=>'Goal.note', 'min'=>0, 'max'=>Float::INFINITY},
37
- 'outcome' => {'type'=>'Goal::Outcome', 'path'=>'Goal.outcome', 'min'=>0, 'max'=>Float::INFINITY}
14
+ 'id' => { 'type' => 'id', 'path' => 'Goal.id', 'min' => 0, 'max' => 1 },
15
+ 'meta' => { 'type' => 'Meta', 'path' => 'Goal.meta', 'min' => 0, 'max' => 1 },
16
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'Goal.implicitRules', 'min' => 0, 'max' => 1 },
17
+ 'language' => { 'type' => 'code', 'path' => 'Goal.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
18
+ 'text' => { 'type' => 'Narrative', 'path' => 'Goal.text', 'min' => 0, 'max' => 1 },
19
+ 'contained' => { 'type' => 'Resource', 'path' => 'Goal.contained', 'min' => 0, 'max' => Float::INFINITY },
20
+ 'extension' => { 'type' => 'Extension', 'path' => 'Goal.extension', 'min' => 0, 'max' => Float::INFINITY },
21
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Goal.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
22
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'Goal.identifier', 'min' => 0, 'max' => Float::INFINITY },
23
+ 'subject' => { 'type' => 'Reference', 'path' => 'Goal.subject', 'min' => 0, 'max' => 1 },
24
+ 'startDate' => { 'type' => 'date', 'path' => 'Goal.start[x]', 'min' => 0, 'max' => 1 },
25
+ 'startCodeableConcept' => { 'valid_codes' => { 'http://snomed.info/sct' => ['32485007', '308283009', '442137000', '386216000'] }, 'type' => 'CodeableConcept', 'path' => 'Goal.start[x]', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/goal-start-event' } },
26
+ 'targetDate' => { 'type' => 'date', 'path' => 'Goal.target[x]', 'min' => 0, 'max' => 1 },
27
+ 'targetQuantity' => { 'type' => 'Quantity', 'path' => 'Goal.target[x]', 'min' => 0, 'max' => 1 },
28
+ 'category' => { 'valid_codes' => { 'http://hl7.org/fhir/goal-category' => ['dietary', 'safety', 'behavioral', 'nursing', 'physiotherapy'] }, 'type' => 'CodeableConcept', 'path' => 'Goal.category', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/goal-category' } },
29
+ 'description' => { 'type' => 'string', 'path' => 'Goal.description', 'min' => 1, 'max' => 1 },
30
+ 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/goal-status' => ['proposed', 'planned', 'accepted', 'rejected', 'in-progress', 'achieved', 'sustaining', 'on-hold', 'cancelled'] }, 'type' => 'code', 'path' => 'Goal.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/goal-status' } },
31
+ 'statusDate' => { 'type' => 'date', 'path' => 'Goal.statusDate', 'min' => 0, 'max' => 1 },
32
+ 'statusReason' => { 'valid_codes' => { 'http://hl7.org/fhir/goal-status-reason' => ['surgery', 'life-event', 'replaced', 'patient-request'] }, 'type' => 'CodeableConcept', 'path' => 'Goal.statusReason', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/goal-status-reason' } },
33
+ 'author' => { 'type' => 'Reference', 'path' => 'Goal.author', 'min' => 0, 'max' => 1 },
34
+ 'priority' => { 'valid_codes' => { 'http://hl7.org/fhir/goal-priority' => ['high', 'medium', 'low'] }, 'type' => 'CodeableConcept', 'path' => 'Goal.priority', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'preferred', 'uri' => 'http://hl7.org/fhir/ValueSet/goal-priority' } },
35
+ 'addresses' => { 'type' => 'Reference', 'path' => 'Goal.addresses', 'min' => 0, 'max' => Float::INFINITY },
36
+ 'note' => { 'type' => 'Annotation', 'path' => 'Goal.note', 'min' => 0, 'max' => Float::INFINITY },
37
+ 'outcome' => { 'type' => 'Goal::Outcome', 'path' => 'Goal.outcome', 'min' => 0, 'max' => Float::INFINITY }
38
38
  }
39
39
 
40
40
  class Outcome < FHIR::DSTU2::Model
@@ -46,11 +46,11 @@ module FHIR
46
46
  'result' => ['CodeableConcept', 'Reference']
47
47
  }
48
48
  METADATA = {
49
- 'id' => {'type'=>'id', 'path'=>'Outcome.id', 'min'=>0, 'max'=>1},
50
- 'extension' => {'type'=>'Extension', 'path'=>'Outcome.extension', 'min'=>0, 'max'=>Float::INFINITY},
51
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Outcome.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
52
- 'resultCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'Outcome.result[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
53
- 'resultReference' => {'type'=>'Reference', 'path'=>'Outcome.result[x]', 'min'=>0, 'max'=>1}
49
+ 'id' => { 'type' => 'id', 'path' => 'Outcome.id', 'min' => 0, 'max' => 1 },
50
+ 'extension' => { 'type' => 'Extension', 'path' => 'Outcome.extension', 'min' => 0, 'max' => Float::INFINITY },
51
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Outcome.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
52
+ 'resultCodeableConcept' => { 'type' => 'CodeableConcept', 'path' => 'Outcome.result[x]', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => nil } },
53
+ 'resultReference' => { 'type' => 'Reference', 'path' => 'Outcome.result[x]', 'min' => 0, 'max' => 1 }
54
54
  }
55
55
 
56
56
  attr_accessor :id # 0-1 id
@@ -90,4 +90,4 @@ module FHIR
90
90
  end
91
91
  end
92
92
  end
93
- end
93
+ end