fhir_models 1.8.0 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fhir_models/bootstrap/definitions.rb +1 -1
  3. data/lib/fhir_models/bootstrap/generator.rb +1 -1
  4. data/lib/fhir_models/bootstrap/template.rb +1 -1
  5. data/lib/fhir_models/examples/json/claim-example-vision-glasses.json +1 -1
  6. data/lib/fhir_models/examples/json/claimresponse-example.json +1 -1
  7. data/lib/fhir_models/examples/json/conceptmap-example-specimen-type.json +1 -3
  8. data/lib/fhir_models/examples/json/eligibilityresponse-example-benefits.json +1 -1
  9. data/lib/fhir_models/examples/json/eligibilityresponse-example.json +1 -1
  10. data/lib/fhir_models/examples/json/enrollmentresponse-example.json +1 -1
  11. data/lib/fhir_models/examples/json/paymentreconciliation-example.json +1 -1
  12. data/lib/fhir_models/examples/xml/claim-example-vision-glasses.xml +1 -1
  13. data/lib/fhir_models/examples/xml/claimresponse-example.xml +1 -1
  14. data/lib/fhir_models/examples/xml/conceptmap-example-specimen-type.xml +1 -3
  15. data/lib/fhir_models/examples/xml/eligibilityresponse-example-benefits.xml +1 -1
  16. data/lib/fhir_models/examples/xml/eligibilityresponse-example.xml +1 -1
  17. data/lib/fhir_models/examples/xml/enrollmentresponse-example.xml +1 -1
  18. data/lib/fhir_models/examples/xml/paymentreconciliation-example.xml +1 -1
  19. data/lib/fhir_models/fhir/metadata.rb +2 -2
  20. data/lib/fhir_models/fhir/resources/Account.rb +9 -9
  21. data/lib/fhir_models/fhir/resources/ActivityDefinition.rb +9 -9
  22. data/lib/fhir_models/fhir/resources/AllergyIntolerance.rb +7 -7
  23. data/lib/fhir_models/fhir/resources/Appointment.rb +5 -5
  24. data/lib/fhir_models/fhir/resources/AppointmentResponse.rb +5 -5
  25. data/lib/fhir_models/fhir/resources/AuditEvent.rb +7 -7
  26. data/lib/fhir_models/fhir/resources/Basic.rb +5 -5
  27. data/lib/fhir_models/fhir/resources/Binary.rb +3 -3
  28. data/lib/fhir_models/fhir/resources/BodySite.rb +3 -3
  29. data/lib/fhir_models/fhir/resources/Bundle.rb +1 -1
  30. data/lib/fhir_models/fhir/resources/CapabilityStatement.rb +13 -13
  31. data/lib/fhir_models/fhir/resources/CarePlan.rb +35 -35
  32. data/lib/fhir_models/fhir/resources/CareTeam.rb +7 -7
  33. data/lib/fhir_models/fhir/resources/Claim.rb +45 -45
  34. data/lib/fhir_models/fhir/resources/ClaimResponse.rb +15 -15
  35. data/lib/fhir_models/fhir/resources/ClinicalImpression.rb +19 -19
  36. data/lib/fhir_models/fhir/resources/CodeSystem.rb +1 -1
  37. data/lib/fhir_models/fhir/resources/Communication.rb +17 -17
  38. data/lib/fhir_models/fhir/resources/CommunicationRequest.rb +15 -15
  39. data/lib/fhir_models/fhir/resources/CompartmentDefinition.rb +1 -1
  40. data/lib/fhir_models/fhir/resources/Composition.rb +15 -15
  41. data/lib/fhir_models/fhir/resources/ConceptMap.rb +5 -5
  42. data/lib/fhir_models/fhir/resources/Condition.rb +11 -11
  43. data/lib/fhir_models/fhir/resources/Consent.rb +15 -15
  44. data/lib/fhir_models/fhir/resources/Contract.rb +29 -29
  45. data/lib/fhir_models/fhir/resources/Coverage.rb +11 -11
  46. data/lib/fhir_models/fhir/resources/DataElement.rb +1 -1
  47. data/lib/fhir_models/fhir/resources/DetectedIssue.rb +9 -9
  48. data/lib/fhir_models/fhir/resources/Device.rb +7 -7
  49. data/lib/fhir_models/fhir/resources/DeviceComponent.rb +5 -5
  50. data/lib/fhir_models/fhir/resources/DeviceMetric.rb +5 -5
  51. data/lib/fhir_models/fhir/resources/DeviceUseRequest.rb +23 -23
  52. data/lib/fhir_models/fhir/resources/DeviceUseStatement.rb +5 -5
  53. data/lib/fhir_models/fhir/resources/DiagnosticReport.rb +17 -17
  54. data/lib/fhir_models/fhir/resources/DiagnosticRequest.rb +21 -21
  55. data/lib/fhir_models/fhir/resources/DocumentManifest.rb +11 -11
  56. data/lib/fhir_models/fhir/resources/DocumentReference.rb +17 -17
  57. data/lib/fhir_models/fhir/resources/DomainResource.rb +1 -1
  58. data/lib/fhir_models/fhir/resources/EligibilityRequest.rb +15 -15
  59. data/lib/fhir_models/fhir/resources/EligibilityResponse.rb +13 -13
  60. data/lib/fhir_models/fhir/resources/Encounter.rb +29 -29
  61. data/lib/fhir_models/fhir/resources/Endpoint.rb +3 -3
  62. data/lib/fhir_models/fhir/resources/EnrollmentRequest.rb +11 -11
  63. data/lib/fhir_models/fhir/resources/EnrollmentResponse.rb +9 -9
  64. data/lib/fhir_models/fhir/resources/EpisodeOfCare.rb +15 -15
  65. data/lib/fhir_models/fhir/resources/ExpansionProfile.rb +1 -1
  66. data/lib/fhir_models/fhir/resources/ExplanationOfBenefit.rb +47 -47
  67. data/lib/fhir_models/fhir/resources/FamilyMemberHistory.rb +3 -3
  68. data/lib/fhir_models/fhir/resources/Flag.rb +7 -7
  69. data/lib/fhir_models/fhir/resources/Goal.rb +9 -9
  70. data/lib/fhir_models/fhir/resources/Group.rb +3 -3
  71. data/lib/fhir_models/fhir/resources/GuidanceResponse.rb +17 -17
  72. data/lib/fhir_models/fhir/resources/HealthcareService.rb +9 -9
  73. data/lib/fhir_models/fhir/resources/ImagingManifest.rb +7 -7
  74. data/lib/fhir_models/fhir/resources/ImagingStudy.rb +13 -13
  75. data/lib/fhir_models/fhir/resources/Immunization.rb +17 -17
  76. data/lib/fhir_models/fhir/resources/ImmunizationRecommendation.rb +9 -9
  77. data/lib/fhir_models/fhir/resources/ImplementationGuide.rb +7 -7
  78. data/lib/fhir_models/fhir/resources/Library.rb +1 -1
  79. data/lib/fhir_models/fhir/resources/Linkage.rb +3 -3
  80. data/lib/fhir_models/fhir/resources/List.rb +9 -9
  81. data/lib/fhir_models/fhir/resources/Location.rb +7 -7
  82. data/lib/fhir_models/fhir/resources/Measure.rb +3 -3
  83. data/lib/fhir_models/fhir/resources/MeasureReport.rb +15 -15
  84. data/lib/fhir_models/fhir/resources/Media.rb +5 -5
  85. data/lib/fhir_models/fhir/resources/Medication.rb +7 -7
  86. data/lib/fhir_models/fhir/resources/MedicationAdministration.rb +19 -19
  87. data/lib/fhir_models/fhir/resources/MedicationDispense.rb +21 -21
  88. data/lib/fhir_models/fhir/resources/MedicationRequest.rb +23 -23
  89. data/lib/fhir_models/fhir/resources/MedicationStatement.rb +11 -11
  90. data/lib/fhir_models/fhir/resources/MessageDefinition.rb +11 -11
  91. data/lib/fhir_models/fhir/resources/MessageHeader.rb +15 -15
  92. data/lib/fhir_models/fhir/resources/MetadataResource.rb +1 -1
  93. data/lib/fhir_models/fhir/resources/NamingSystem.rb +3 -3
  94. data/lib/fhir_models/fhir/resources/NutritionRequest.rb +9 -9
  95. data/lib/fhir_models/fhir/resources/Observation.rb +13 -13
  96. data/lib/fhir_models/fhir/resources/OperationDefinition.rb +7 -7
  97. data/lib/fhir_models/fhir/resources/OperationOutcome.rb +1 -1
  98. data/lib/fhir_models/fhir/resources/Organization.rb +5 -5
  99. data/lib/fhir_models/fhir/resources/Parameters.rb +1 -1
  100. data/lib/fhir_models/fhir/resources/Patient.rb +9 -9
  101. data/lib/fhir_models/fhir/resources/PaymentNotice.rb +11 -11
  102. data/lib/fhir_models/fhir/resources/PaymentReconciliation.rb +17 -17
  103. data/lib/fhir_models/fhir/resources/Person.rb +5 -5
  104. data/lib/fhir_models/fhir/resources/PlanDefinition.rb +7 -7
  105. data/lib/fhir_models/fhir/resources/Practitioner.rb +11 -11
  106. data/lib/fhir_models/fhir/resources/PractitionerRole.rb +11 -11
  107. data/lib/fhir_models/fhir/resources/Procedure.rb +21 -21
  108. data/lib/fhir_models/fhir/resources/ProcedureRequest.rb +13 -13
  109. data/lib/fhir_models/fhir/resources/ProcessRequest.rb +11 -11
  110. data/lib/fhir_models/fhir/resources/ProcessResponse.rb +11 -11
  111. data/lib/fhir_models/fhir/resources/Provenance.rb +11 -11
  112. data/lib/fhir_models/fhir/resources/Questionnaire.rb +7 -7
  113. data/lib/fhir_models/fhir/resources/QuestionnaireResponse.rb +19 -19
  114. data/lib/fhir_models/fhir/resources/ReferralRequest.rb +13 -13
  115. data/lib/fhir_models/fhir/resources/RelatedPerson.rb +3 -3
  116. data/lib/fhir_models/fhir/resources/RequestGroup.rb +13 -13
  117. data/lib/fhir_models/fhir/resources/ResearchStudy.rb +13 -13
  118. data/lib/fhir_models/fhir/resources/ResearchSubject.rb +7 -7
  119. data/lib/fhir_models/fhir/resources/Resource.rb +1 -1
  120. data/lib/fhir_models/fhir/resources/RiskAssessment.rb +17 -17
  121. data/lib/fhir_models/fhir/resources/Schedule.rb +3 -3
  122. data/lib/fhir_models/fhir/resources/SearchParameter.rb +3 -3
  123. data/lib/fhir_models/fhir/resources/Sequence.rb +15 -15
  124. data/lib/fhir_models/fhir/resources/ServiceDefinition.rb +3 -3
  125. data/lib/fhir_models/fhir/resources/Slot.rb +3 -3
  126. data/lib/fhir_models/fhir/resources/Specimen.rb +13 -13
  127. data/lib/fhir_models/fhir/resources/StructureDefinition.rb +1 -1
  128. data/lib/fhir_models/fhir/resources/StructureMap.rb +1 -1
  129. data/lib/fhir_models/fhir/resources/Subscription.rb +1 -1
  130. data/lib/fhir_models/fhir/resources/Substance.rb +3 -3
  131. data/lib/fhir_models/fhir/resources/SupplyDelivery.rb +11 -11
  132. data/lib/fhir_models/fhir/resources/SupplyRequest.rb +11 -11
  133. data/lib/fhir_models/fhir/resources/Task.rb +23 -23
  134. data/lib/fhir_models/fhir/resources/TestReport.rb +3 -3
  135. data/lib/fhir_models/fhir/resources/TestScript.rb +11 -11
  136. data/lib/fhir_models/fhir/resources/ValueSet.rb +1 -1
  137. data/lib/fhir_models/fhir/resources/VisionPrescription.rb +9 -9
  138. data/lib/fhir_models/fhir/types/Address.rb +1 -1
  139. data/lib/fhir_models/fhir/types/Age.rb +1 -1
  140. data/lib/fhir_models/fhir/types/Annotation.rb +3 -3
  141. data/lib/fhir_models/fhir/types/Attachment.rb +1 -1
  142. data/lib/fhir_models/fhir/types/BackboneElement.rb +1 -1
  143. data/lib/fhir_models/fhir/types/CodeableConcept.rb +1 -1
  144. data/lib/fhir_models/fhir/types/Coding.rb +1 -1
  145. data/lib/fhir_models/fhir/types/ContactDetail.rb +1 -1
  146. data/lib/fhir_models/fhir/types/ContactPoint.rb +1 -1
  147. data/lib/fhir_models/fhir/types/Contributor.rb +1 -1
  148. data/lib/fhir_models/fhir/types/Count.rb +1 -1
  149. data/lib/fhir_models/fhir/types/DataRequirement.rb +3 -3
  150. data/lib/fhir_models/fhir/types/Distance.rb +1 -1
  151. data/lib/fhir_models/fhir/types/DosageInstruction.rb +1 -1
  152. data/lib/fhir_models/fhir/types/Duration.rb +1 -1
  153. data/lib/fhir_models/fhir/types/Element.rb +1 -1
  154. data/lib/fhir_models/fhir/types/ElementDefinition.rb +3 -3
  155. data/lib/fhir_models/fhir/types/Extension.rb +1 -1
  156. data/lib/fhir_models/fhir/types/HumanName.rb +1 -1
  157. data/lib/fhir_models/fhir/types/Identifier.rb +3 -3
  158. data/lib/fhir_models/fhir/types/Meta.rb +1 -1
  159. data/lib/fhir_models/fhir/types/Money.rb +1 -1
  160. data/lib/fhir_models/fhir/types/Narrative.rb +1 -1
  161. data/lib/fhir_models/fhir/types/ParameterDefinition.rb +3 -3
  162. data/lib/fhir_models/fhir/types/Period.rb +1 -1
  163. data/lib/fhir_models/fhir/types/Quantity.rb +1 -1
  164. data/lib/fhir_models/fhir/types/Range.rb +1 -1
  165. data/lib/fhir_models/fhir/types/Ratio.rb +1 -1
  166. data/lib/fhir_models/fhir/types/Reference.rb +1 -1
  167. data/lib/fhir_models/fhir/types/RelatedArtifact.rb +3 -3
  168. data/lib/fhir_models/fhir/types/SampledData.rb +1 -1
  169. data/lib/fhir_models/fhir/types/Signature.rb +5 -5
  170. data/lib/fhir_models/fhir/types/Timing.rb +1 -1
  171. data/lib/fhir_models/fhir/types/TriggerDefinition.rb +3 -3
  172. data/lib/fhir_models/fhir/types/UsageContext.rb +1 -1
  173. data/lib/fhir_models/version.rb +1 -1
  174. metadata +2 -2
@@ -4,7 +4,7 @@ module FHIR
4
4
  include FHIR::Json
5
5
  include FHIR::Xml
6
6
 
7
- SEARCH_PARAMS = []
7
+ SEARCH_PARAMS = ['action', 'identifier', 'organization', 'provider']
8
8
  METADATA = {
9
9
  'id' => {'type'=>'id', 'path'=>'ProcessRequest.id', 'min'=>0, 'max'=>1},
10
10
  'meta' => {'type'=>'Meta', 'path'=>'ProcessRequest.meta', 'min'=>0, 'max'=>1},
@@ -17,12 +17,12 @@ module FHIR
17
17
  'identifier' => {'type'=>'Identifier', 'path'=>'ProcessRequest.identifier', 'min'=>0, 'max'=>Float::INFINITY},
18
18
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/fm-status'=>['active', 'cancelled', 'draft', 'entered-in-error', 'active', 'cancelled', 'draft', 'entered-in-error']}, 'type'=>'code', 'path'=>'ProcessRequest.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/fm-status'}},
19
19
  'action' => {'valid_codes'=>{'http://hl7.org/fhir/actionlist'=>['cancel', 'poll', 'reprocess', 'status', 'cancel', 'poll', 'reprocess', 'status']}, 'type'=>'code', 'path'=>'ProcessRequest.action', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/actionlist'}},
20
- 'target' => {'type'=>'Reference', 'path'=>'ProcessRequest.target', 'min'=>0, 'max'=>1},
20
+ 'target' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'ProcessRequest.target', 'min'=>0, 'max'=>1},
21
21
  'created' => {'type'=>'dateTime', 'path'=>'ProcessRequest.created', 'min'=>0, 'max'=>1},
22
- 'provider' => {'type'=>'Reference', 'path'=>'ProcessRequest.provider', 'min'=>0, 'max'=>1},
23
- 'organization' => {'type'=>'Reference', 'path'=>'ProcessRequest.organization', 'min'=>0, 'max'=>1},
24
- 'request' => {'type'=>'Reference', 'path'=>'ProcessRequest.request', 'min'=>0, 'max'=>1},
25
- 'response' => {'type'=>'Reference', 'path'=>'ProcessRequest.response', 'min'=>0, 'max'=>1},
22
+ 'provider' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'ProcessRequest.provider', 'min'=>0, 'max'=>1},
23
+ 'organization' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'ProcessRequest.organization', 'min'=>0, 'max'=>1},
24
+ 'request' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'ProcessRequest.request', 'min'=>0, 'max'=>1},
25
+ 'response' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'ProcessRequest.response', 'min'=>0, 'max'=>1},
26
26
  'nullify' => {'type'=>'boolean', 'path'=>'ProcessRequest.nullify', 'min'=>0, 'max'=>1},
27
27
  'reference' => {'type'=>'string', 'path'=>'ProcessRequest.reference', 'min'=>0, 'max'=>1},
28
28
  'item' => {'type'=>'ProcessRequest::Item', 'path'=>'ProcessRequest.item', 'min'=>0, 'max'=>Float::INFINITY},
@@ -60,12 +60,12 @@ module FHIR
60
60
  attr_accessor :identifier # 0-* [ Identifier ]
61
61
  attr_accessor :status # 0-1 code
62
62
  attr_accessor :action # 0-1 code
63
- attr_accessor :target # 0-1 Reference()
63
+ attr_accessor :target # 0-1 Reference(Organization)
64
64
  attr_accessor :created # 0-1 dateTime
65
- attr_accessor :provider # 0-1 Reference()
66
- attr_accessor :organization # 0-1 Reference()
67
- attr_accessor :request # 0-1 Reference()
68
- attr_accessor :response # 0-1 Reference()
65
+ attr_accessor :provider # 0-1 Reference(Practitioner)
66
+ attr_accessor :organization # 0-1 Reference(Organization)
67
+ attr_accessor :request # 0-1 Reference(Resource)
68
+ attr_accessor :response # 0-1 Reference(Resource)
69
69
  attr_accessor :nullify # 0-1 boolean
70
70
  attr_accessor :reference # 0-1 string
71
71
  attr_accessor :item # 0-* [ ProcessRequest::Item ]
@@ -4,7 +4,7 @@ module FHIR
4
4
  include FHIR::Json
5
5
  include FHIR::Xml
6
6
 
7
- SEARCH_PARAMS = []
7
+ SEARCH_PARAMS = ['identifier', 'organization', 'request', 'request-organization', 'request-provider']
8
8
  METADATA = {
9
9
  'id' => {'type'=>'id', 'path'=>'ProcessResponse.id', 'min'=>0, 'max'=>1},
10
10
  'meta' => {'type'=>'Meta', 'path'=>'ProcessResponse.meta', 'min'=>0, 'max'=>1},
@@ -17,16 +17,16 @@ module FHIR
17
17
  'identifier' => {'type'=>'Identifier', 'path'=>'ProcessResponse.identifier', 'min'=>0, 'max'=>Float::INFINITY},
18
18
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/fm-status'=>['active', 'cancelled', 'draft', 'entered-in-error', 'active', 'cancelled', 'draft', 'entered-in-error']}, 'type'=>'code', 'path'=>'ProcessResponse.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/fm-status'}},
19
19
  'created' => {'type'=>'dateTime', 'path'=>'ProcessResponse.created', 'min'=>0, 'max'=>1},
20
- 'organization' => {'type'=>'Reference', 'path'=>'ProcessResponse.organization', 'min'=>0, 'max'=>1},
21
- 'request' => {'type'=>'Reference', 'path'=>'ProcessResponse.request', 'min'=>0, 'max'=>1},
20
+ 'organization' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'ProcessResponse.organization', 'min'=>0, 'max'=>1},
21
+ 'request' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'ProcessResponse.request', 'min'=>0, 'max'=>1},
22
22
  'outcome' => {'valid_codes'=>{'http://hl7.org/fhir/processoutcomecodes'=>['complete', 'pended', 'error', 'complete', 'pended', 'error']}, 'type'=>'CodeableConcept', 'path'=>'ProcessResponse.outcome', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/process-outcome'}},
23
23
  'disposition' => {'type'=>'string', 'path'=>'ProcessResponse.disposition', 'min'=>0, 'max'=>1},
24
- 'requestProvider' => {'type'=>'Reference', 'path'=>'ProcessResponse.requestProvider', 'min'=>0, 'max'=>1},
25
- 'requestOrganization' => {'type'=>'Reference', 'path'=>'ProcessResponse.requestOrganization', 'min'=>0, 'max'=>1},
24
+ 'requestProvider' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'ProcessResponse.requestProvider', 'min'=>0, 'max'=>1},
25
+ 'requestOrganization' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'ProcessResponse.requestOrganization', 'min'=>0, 'max'=>1},
26
26
  'form' => {'valid_codes'=>{'http://hl7.org/fhir/forms-codes'=>['1', '2', '1', '2']}, 'type'=>'CodeableConcept', 'path'=>'ProcessResponse.form', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/forms'}},
27
27
  'note' => {'type'=>'ProcessResponse::Note', 'path'=>'ProcessResponse.note', 'min'=>0, 'max'=>Float::INFINITY},
28
28
  'error' => {'valid_codes'=>{'http://hl7.org/fhir/adjudication-error'=>['a001', 'a002', 'a001', 'a002']}, 'type'=>'CodeableConcept', 'path'=>'ProcessResponse.error', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/adjudication-error'}},
29
- 'communicationRequest' => {'type'=>'Reference', 'path'=>'ProcessResponse.communicationRequest', 'min'=>0, 'max'=>Float::INFINITY}
29
+ 'communicationRequest' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/CommunicationRequest'], 'type'=>'Reference', 'path'=>'ProcessResponse.communicationRequest', 'min'=>0, 'max'=>Float::INFINITY}
30
30
  }
31
31
 
32
32
  class Note < FHIR::Model
@@ -60,16 +60,16 @@ module FHIR
60
60
  attr_accessor :identifier # 0-* [ Identifier ]
61
61
  attr_accessor :status # 0-1 code
62
62
  attr_accessor :created # 0-1 dateTime
63
- attr_accessor :organization # 0-1 Reference()
64
- attr_accessor :request # 0-1 Reference()
63
+ attr_accessor :organization # 0-1 Reference(Organization)
64
+ attr_accessor :request # 0-1 Reference(Resource)
65
65
  attr_accessor :outcome # 0-1 CodeableConcept
66
66
  attr_accessor :disposition # 0-1 string
67
- attr_accessor :requestProvider # 0-1 Reference()
68
- attr_accessor :requestOrganization # 0-1 Reference()
67
+ attr_accessor :requestProvider # 0-1 Reference(Practitioner)
68
+ attr_accessor :requestOrganization # 0-1 Reference(Organization)
69
69
  attr_accessor :form # 0-1 CodeableConcept
70
70
  attr_accessor :note # 0-* [ ProcessResponse::Note ]
71
71
  attr_accessor :error # 0-* [ CodeableConcept ]
72
- attr_accessor :communicationRequest # 0-* [ Reference() ]
72
+ attr_accessor :communicationRequest # 0-* [ Reference(CommunicationRequest) ]
73
73
 
74
74
  def resourceType
75
75
  'ProcessResponse'
@@ -4,7 +4,7 @@ module FHIR
4
4
  include FHIR::Json
5
5
  include FHIR::Xml
6
6
 
7
- SEARCH_PARAMS = []
7
+ SEARCH_PARAMS = ['agent', 'end', 'entity', 'location', 'patient', 'sig', 'start', 'target']
8
8
  METADATA = {
9
9
  'id' => {'type'=>'id', 'path'=>'Provenance.id', 'min'=>0, 'max'=>1},
10
10
  'meta' => {'type'=>'Meta', 'path'=>'Provenance.meta', 'min'=>0, 'max'=>1},
@@ -14,12 +14,12 @@ module FHIR
14
14
  'contained' => {'type'=>'Resource', 'path'=>'Provenance.contained', 'min'=>0, 'max'=>Float::INFINITY},
15
15
  'extension' => {'type'=>'Extension', 'path'=>'Provenance.extension', 'min'=>0, 'max'=>Float::INFINITY},
16
16
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Provenance.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'target' => {'type'=>'Reference', 'path'=>'Provenance.target', 'min'=>1, 'max'=>Float::INFINITY},
17
+ 'target' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Provenance.target', 'min'=>1, 'max'=>Float::INFINITY},
18
18
  'period' => {'type'=>'Period', 'path'=>'Provenance.period', 'min'=>0, 'max'=>1},
19
19
  'recorded' => {'type'=>'instant', 'path'=>'Provenance.recorded', 'min'=>1, 'max'=>1},
20
20
  'reason' => {'valid_codes'=>{'http://hl7.org/fhir/v3/ActReason'=>['PurposeOfUse', 'HMARKT', 'HOPERAT', 'DONAT', 'FRAUD', 'GOV', 'HACCRED', 'HCOMPL', 'HDECD', 'HDIRECT', 'HLEGAL', 'HOUTCOMS', 'HPRGRP', 'HQUALIMP', 'HSYSADMIN', 'MEMADMIN', 'PATADMIN', 'PATSFTY', 'PERFMSR', 'RECORDMGT', 'TRAIN', 'HPAYMT', 'CLMATTCH', 'COVAUTH', 'COVERAGE', 'ELIGDTRM', 'ELIGVER', 'ENROLLM', 'REMITADV', 'HRESCH', 'CLINTRCH', 'PATRQT', 'FAMRQT', 'PWATRNY', 'SUPNWK', 'PUBHLTH', 'DISASTER', 'THREAT', 'TREAT', 'CAREMGT', 'CLINTRL', 'ETREAT', 'POPHLTH']}, 'type'=>'Coding', 'path'=>'Provenance.reason', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-PurposeOfUse'}},
21
21
  'activity' => {'valid_codes'=>{'http://hl7.org/fhir/v3/ActStatus'=>['aborted', 'cancelled', 'completed', 'new', 'nullified', 'obsolete'], 'http://hl7.org/fhir/v3/DocumentCompletion'=>['AU', 'DI', 'DO', 'LA', 'UC'], nil=>[]}, 'type'=>'Coding', 'path'=>'Provenance.activity', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-ProvenanceEventCurrentState'}},
22
- 'location' => {'type'=>'Reference', 'path'=>'Provenance.location', 'min'=>0, 'max'=>1},
22
+ 'location' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'Provenance.location', 'min'=>0, 'max'=>1},
23
23
  'policy' => {'type'=>'uri', 'path'=>'Provenance.policy', 'min'=>0, 'max'=>Float::INFINITY},
24
24
  'agent' => {'type'=>'Provenance::Agent', 'path'=>'Provenance.agent', 'min'=>1, 'max'=>Float::INFINITY},
25
25
  'entity' => {'type'=>'Provenance::Entity', 'path'=>'Provenance.entity', 'min'=>0, 'max'=>Float::INFINITY},
@@ -41,9 +41,9 @@ module FHIR
41
41
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Agent.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
42
42
  'role' => {'valid_codes'=>{'http://hl7.org/fhir/provenance-participant-role'=>['enterer', 'performer', 'author', 'verifier', 'legal', 'attester', 'informant', 'custodian', 'assembler', 'composer', 'enterer', 'performer', 'author', 'verifier', 'attester', 'informant', 'custodian', 'assembler', 'composer']}, 'type'=>'Coding', 'path'=>'Agent.role', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/provenance-agent-role'}},
43
43
  'whoUri' => {'type'=>'uri', 'path'=>'Agent.who[x]', 'min'=>1, 'max'=>1},
44
- 'whoReference' => {'type'=>'Reference', 'path'=>'Agent.who[x]', 'min'=>1, 'max'=>1},
44
+ 'whoReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Agent.who[x]', 'min'=>1, 'max'=>1},
45
45
  'onBehalfOfUri' => {'type'=>'uri', 'path'=>'Agent.onBehalfOf[x]', 'min'=>0, 'max'=>1},
46
- 'onBehalfOfReference' => {'type'=>'Reference', 'path'=>'Agent.onBehalfOf[x]', 'min'=>0, 'max'=>1},
46
+ 'onBehalfOfReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Agent.onBehalfOf[x]', 'min'=>0, 'max'=>1},
47
47
  'relatedAgentType' => {'valid_codes'=>{'http://hl7.org/fhir/v3/RoleLinkType'=>['REL', 'BACKUP', 'CONT', 'DIRAUTH', 'IDENT', 'INDAUTH', 'PART', 'REPL']}, 'type'=>'CodeableConcept', 'path'=>'Agent.relatedAgentType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-RoleLinkType'}}
48
48
  }
49
49
 
@@ -52,9 +52,9 @@ module FHIR
52
52
  attr_accessor :modifierExtension # 0-* [ Extension ]
53
53
  attr_accessor :role # 1-1 Coding
54
54
  attr_accessor :whoUri # 1-1 uri
55
- attr_accessor :whoReference # 1-1 Reference()
55
+ attr_accessor :whoReference # 1-1 Reference(Practitioner|RelatedPerson|Patient|Device|Organization)
56
56
  attr_accessor :onBehalfOfUri # 0-1 uri
57
- attr_accessor :onBehalfOfReference # 0-1 Reference()
57
+ attr_accessor :onBehalfOfReference # 0-1 Reference(Practitioner|RelatedPerson|Patient|Device|Organization)
58
58
  attr_accessor :relatedAgentType # 0-1 CodeableConcept
59
59
  end
60
60
 
@@ -68,7 +68,7 @@ module FHIR
68
68
  'extension' => {'type'=>'Extension', 'path'=>'Entity.extension', 'min'=>0, 'max'=>Float::INFINITY},
69
69
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Entity.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
70
70
  'role' => {'valid_codes'=>{'http://hl7.org/fhir/provenance-entity-role'=>['derivation', 'revision', 'quotation', 'source', 'removal', 'derivation']}, 'type'=>'code', 'path'=>'Entity.role', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/provenance-entity-role'}},
71
- 'reference' => {'type'=>'Reference', 'path'=>'Entity.reference', 'min'=>1, 'max'=>1},
71
+ 'reference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Entity.reference', 'min'=>1, 'max'=>1},
72
72
  'agent' => {'type'=>'Provenance::Agent', 'path'=>'Entity.agent', 'min'=>0, 'max'=>Float::INFINITY}
73
73
  }
74
74
 
@@ -76,7 +76,7 @@ module FHIR
76
76
  attr_accessor :extension # 0-* [ Extension ]
77
77
  attr_accessor :modifierExtension # 0-* [ Extension ]
78
78
  attr_accessor :role # 1-1 code
79
- attr_accessor :reference # 1-1 Reference()
79
+ attr_accessor :reference # 1-1 Reference(Resource)
80
80
  attr_accessor :agent # 0-* [ Provenance::Agent ]
81
81
  end
82
82
 
@@ -88,12 +88,12 @@ module FHIR
88
88
  attr_accessor :contained # 0-* [ Resource ]
89
89
  attr_accessor :extension # 0-* [ Extension ]
90
90
  attr_accessor :modifierExtension # 0-* [ Extension ]
91
- attr_accessor :target # 1-* [ Reference() ]
91
+ attr_accessor :target # 1-* [ Reference(Resource) ]
92
92
  attr_accessor :period # 0-1 Period
93
93
  attr_accessor :recorded # 1-1 instant
94
94
  attr_accessor :reason # 0-* [ Coding ]
95
95
  attr_accessor :activity # 0-1 Coding
96
- attr_accessor :location # 0-1 Reference()
96
+ attr_accessor :location # 0-1 Reference(Location)
97
97
  attr_accessor :policy # 0-* [ uri ]
98
98
  attr_accessor :agent # 1-* [ Provenance::Agent ]
99
99
  attr_accessor :entity # 0-* [ Provenance::Entity ]
@@ -4,7 +4,7 @@ module FHIR
4
4
  include FHIR::Json
5
5
  include FHIR::Xml
6
6
 
7
- SEARCH_PARAMS = []
7
+ SEARCH_PARAMS = ['code', 'context', 'date', 'identifier', 'publisher', 'status', 'title', 'version']
8
8
  METADATA = {
9
9
  'id' => {'type'=>'id', 'path'=>'Questionnaire.id', 'min'=>0, 'max'=>1},
10
10
  'meta' => {'type'=>'Meta', 'path'=>'Questionnaire.meta', 'min'=>0, 'max'=>1},
@@ -51,7 +51,7 @@ module FHIR
51
51
  'repeats' => {'type'=>'boolean', 'path'=>'Item.repeats', 'min'=>0, 'max'=>1},
52
52
  'readOnly' => {'type'=>'boolean', 'path'=>'Item.readOnly', 'min'=>0, 'max'=>1},
53
53
  'maxLength' => {'type'=>'integer', 'path'=>'Item.maxLength', 'min'=>0, 'max'=>1},
54
- 'options' => {'type'=>'Reference', 'path'=>'Item.options', 'min'=>0, 'max'=>1},
54
+ 'options' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/ValueSet'], 'type'=>'Reference', 'path'=>'Item.options', 'min'=>0, 'max'=>1},
55
55
  'option' => {'type'=>'Questionnaire::Item::Option', 'path'=>'Item.option', 'min'=>0, 'max'=>Float::INFINITY},
56
56
  'initialBoolean' => {'type'=>'boolean', 'path'=>'Item.initial[x]', 'min'=>0, 'max'=>1},
57
57
  'initialDecimal' => {'type'=>'decimal', 'path'=>'Item.initial[x]', 'min'=>0, 'max'=>1},
@@ -65,7 +65,7 @@ module FHIR
65
65
  'initialAttachment' => {'type'=>'Attachment', 'path'=>'Item.initial[x]', 'min'=>0, 'max'=>1},
66
66
  'initialCoding' => {'type'=>'Coding', 'path'=>'Item.initial[x]', 'min'=>0, 'max'=>1},
67
67
  'initialQuantity' => {'type'=>'Quantity', 'path'=>'Item.initial[x]', 'min'=>0, 'max'=>1},
68
- 'initialReference' => {'type'=>'Reference', 'path'=>'Item.initial[x]', 'min'=>0, 'max'=>1},
68
+ 'initialReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Item.initial[x]', 'min'=>0, 'max'=>1},
69
69
  'item' => {'type'=>'Questionnaire::Item', 'path'=>'Item.item', 'min'=>0, 'max'=>Float::INFINITY}
70
70
  }
71
71
 
@@ -95,7 +95,7 @@ module FHIR
95
95
  'answerAttachment' => {'type'=>'Attachment', 'path'=>'EnableWhen.answer[x]', 'min'=>0, 'max'=>1},
96
96
  'answerCoding' => {'type'=>'Coding', 'path'=>'EnableWhen.answer[x]', 'min'=>0, 'max'=>1},
97
97
  'answerQuantity' => {'type'=>'Quantity', 'path'=>'EnableWhen.answer[x]', 'min'=>0, 'max'=>1},
98
- 'answerReference' => {'type'=>'Reference', 'path'=>'EnableWhen.answer[x]', 'min'=>0, 'max'=>1}
98
+ 'answerReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'EnableWhen.answer[x]', 'min'=>0, 'max'=>1}
99
99
  }
100
100
 
101
101
  attr_accessor :id # 0-1 string
@@ -115,7 +115,7 @@ module FHIR
115
115
  attr_accessor :answerAttachment # 0-1 Attachment
116
116
  attr_accessor :answerCoding # 0-1 Coding
117
117
  attr_accessor :answerQuantity # 0-1 Quantity
118
- attr_accessor :answerReference # 0-1 Reference()
118
+ attr_accessor :answerReference # 0-1 Reference(Resource)
119
119
  end
120
120
 
121
121
  class Option < FHIR::Model
@@ -161,7 +161,7 @@ module FHIR
161
161
  attr_accessor :repeats # 0-1 boolean
162
162
  attr_accessor :readOnly # 0-1 boolean
163
163
  attr_accessor :maxLength # 0-1 integer
164
- attr_accessor :options # 0-1 Reference()
164
+ attr_accessor :options # 0-1 Reference(ValueSet)
165
165
  attr_accessor :option # 0-* [ Questionnaire::Item::Option ]
166
166
  attr_accessor :initialBoolean # 0-1 boolean
167
167
  attr_accessor :initialDecimal # 0-1 decimal
@@ -175,7 +175,7 @@ module FHIR
175
175
  attr_accessor :initialAttachment # 0-1 Attachment
176
176
  attr_accessor :initialCoding # 0-1 Coding
177
177
  attr_accessor :initialQuantity # 0-1 Quantity
178
- attr_accessor :initialReference # 0-1 Reference()
178
+ attr_accessor :initialReference # 0-1 Reference(Resource)
179
179
  attr_accessor :item # 0-* [ Questionnaire::Item ]
180
180
  end
181
181
 
@@ -4,7 +4,7 @@ module FHIR
4
4
  include FHIR::Json
5
5
  include FHIR::Xml
6
6
 
7
- SEARCH_PARAMS = []
7
+ SEARCH_PARAMS = ['author', 'authored', 'based-on', 'context', 'identifier', 'parent', 'patient', 'questionnaire', 'source', 'status', 'subject']
8
8
  METADATA = {
9
9
  'id' => {'type'=>'id', 'path'=>'QuestionnaireResponse.id', 'min'=>0, 'max'=>1},
10
10
  'meta' => {'type'=>'Meta', 'path'=>'QuestionnaireResponse.meta', 'min'=>0, 'max'=>1},
@@ -15,15 +15,15 @@ module FHIR
15
15
  'extension' => {'type'=>'Extension', 'path'=>'QuestionnaireResponse.extension', 'min'=>0, 'max'=>Float::INFINITY},
16
16
  'modifierExtension' => {'type'=>'Extension', 'path'=>'QuestionnaireResponse.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
17
17
  'identifier' => {'type'=>'Identifier', 'path'=>'QuestionnaireResponse.identifier', 'min'=>0, 'max'=>1},
18
- 'basedOn' => {'type'=>'Reference', 'path'=>'QuestionnaireResponse.basedOn', 'min'=>0, 'max'=>Float::INFINITY},
19
- 'parent' => {'type'=>'Reference', 'path'=>'QuestionnaireResponse.parent', 'min'=>0, 'max'=>Float::INFINITY},
20
- 'questionnaire' => {'type'=>'Reference', 'path'=>'QuestionnaireResponse.questionnaire', 'min'=>0, 'max'=>1},
18
+ 'basedOn' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/DiagnosticRequest', 'http://hl7.org/fhir/StructureDefinition/ReferralRequest', 'http://hl7.org/fhir/StructureDefinition/CarePlan'], 'type'=>'Reference', 'path'=>'QuestionnaireResponse.basedOn', 'min'=>0, 'max'=>Float::INFINITY},
19
+ 'parent' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Observation', 'http://hl7.org/fhir/StructureDefinition/Procedure'], 'type'=>'Reference', 'path'=>'QuestionnaireResponse.parent', 'min'=>0, 'max'=>Float::INFINITY},
20
+ 'questionnaire' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Questionnaire'], 'type'=>'Reference', 'path'=>'QuestionnaireResponse.questionnaire', 'min'=>0, 'max'=>1},
21
21
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/questionnaire-answers-status'=>['in-progress', 'completed', 'amended', 'entered-in-error', 'in-progress', 'completed', 'amended', 'entered-in-error']}, 'type'=>'code', 'path'=>'QuestionnaireResponse.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/questionnaire-answers-status'}},
22
- 'subject' => {'type'=>'Reference', 'path'=>'QuestionnaireResponse.subject', 'min'=>0, 'max'=>1},
23
- 'context' => {'type'=>'Reference', 'path'=>'QuestionnaireResponse.context', 'min'=>0, 'max'=>1},
24
- 'author' => {'type'=>'Reference', 'path'=>'QuestionnaireResponse.author', 'min'=>0, 'max'=>1},
22
+ 'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'QuestionnaireResponse.subject', 'min'=>0, 'max'=>1},
23
+ 'context' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter', 'http://hl7.org/fhir/StructureDefinition/EpisodeOfCare'], 'type'=>'Reference', 'path'=>'QuestionnaireResponse.context', 'min'=>0, 'max'=>1},
24
+ 'author' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'QuestionnaireResponse.author', 'min'=>0, 'max'=>1},
25
25
  'authored' => {'type'=>'dateTime', 'path'=>'QuestionnaireResponse.authored', 'min'=>0, 'max'=>1},
26
- 'source' => {'type'=>'Reference', 'path'=>'QuestionnaireResponse.source', 'min'=>0, 'max'=>1},
26
+ 'source' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'QuestionnaireResponse.source', 'min'=>0, 'max'=>1},
27
27
  'item' => {'type'=>'QuestionnaireResponse::Item', 'path'=>'QuestionnaireResponse.item', 'min'=>0, 'max'=>Float::INFINITY}
28
28
  }
29
29
 
@@ -39,7 +39,7 @@ module FHIR
39
39
  'linkId' => {'type'=>'string', 'path'=>'Item.linkId', 'min'=>1, 'max'=>1},
40
40
  'definition' => {'type'=>'uri', 'path'=>'Item.definition', 'min'=>0, 'max'=>1},
41
41
  'text' => {'type'=>'string', 'path'=>'Item.text', 'min'=>0, 'max'=>1},
42
- 'subject' => {'type'=>'Reference', 'path'=>'Item.subject', 'min'=>0, 'max'=>1},
42
+ 'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Item.subject', 'min'=>0, 'max'=>1},
43
43
  'answer' => {'type'=>'QuestionnaireResponse::Item::Answer', 'path'=>'Item.answer', 'min'=>0, 'max'=>Float::INFINITY},
44
44
  'item' => {'type'=>'QuestionnaireResponse::Item', 'path'=>'Item.item', 'min'=>0, 'max'=>Float::INFINITY}
45
45
  }
@@ -68,7 +68,7 @@ module FHIR
68
68
  'valueAttachment' => {'type'=>'Attachment', 'path'=>'Answer.value[x]', 'min'=>0, 'max'=>1},
69
69
  'valueCoding' => {'type'=>'Coding', 'path'=>'Answer.value[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
70
70
  'valueQuantity' => {'type'=>'Quantity', 'path'=>'Answer.value[x]', 'min'=>0, 'max'=>1},
71
- 'valueReference' => {'type'=>'Reference', 'path'=>'Answer.value[x]', 'min'=>0, 'max'=>1},
71
+ 'valueReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Answer.value[x]', 'min'=>0, 'max'=>1},
72
72
  'item' => {'type'=>'QuestionnaireResponse::Item', 'path'=>'Answer.item', 'min'=>0, 'max'=>Float::INFINITY}
73
73
  }
74
74
 
@@ -87,7 +87,7 @@ module FHIR
87
87
  attr_accessor :valueAttachment # 0-1 Attachment
88
88
  attr_accessor :valueCoding # 0-1 Coding
89
89
  attr_accessor :valueQuantity # 0-1 Quantity
90
- attr_accessor :valueReference # 0-1 Reference()
90
+ attr_accessor :valueReference # 0-1 Reference(Resource)
91
91
  attr_accessor :item # 0-* [ QuestionnaireResponse::Item ]
92
92
  end
93
93
 
@@ -97,7 +97,7 @@ module FHIR
97
97
  attr_accessor :linkId # 1-1 string
98
98
  attr_accessor :definition # 0-1 uri
99
99
  attr_accessor :text # 0-1 string
100
- attr_accessor :subject # 0-1 Reference()
100
+ attr_accessor :subject # 0-1 Reference(Resource)
101
101
  attr_accessor :answer # 0-* [ QuestionnaireResponse::Item::Answer ]
102
102
  attr_accessor :item # 0-* [ QuestionnaireResponse::Item ]
103
103
  end
@@ -111,15 +111,15 @@ module FHIR
111
111
  attr_accessor :extension # 0-* [ Extension ]
112
112
  attr_accessor :modifierExtension # 0-* [ Extension ]
113
113
  attr_accessor :identifier # 0-1 Identifier
114
- attr_accessor :basedOn # 0-* [ Reference() ]
115
- attr_accessor :parent # 0-* [ Reference() ]
116
- attr_accessor :questionnaire # 0-1 Reference()
114
+ attr_accessor :basedOn # 0-* [ Reference(DiagnosticRequest|ReferralRequest|CarePlan) ]
115
+ attr_accessor :parent # 0-* [ Reference(Observation|Procedure) ]
116
+ attr_accessor :questionnaire # 0-1 Reference(Questionnaire)
117
117
  attr_accessor :status # 1-1 code
118
- attr_accessor :subject # 0-1 Reference()
119
- attr_accessor :context # 0-1 Reference()
120
- attr_accessor :author # 0-1 Reference()
118
+ attr_accessor :subject # 0-1 Reference(Resource)
119
+ attr_accessor :context # 0-1 Reference(Encounter|EpisodeOfCare)
120
+ attr_accessor :author # 0-1 Reference(Device|Practitioner|Patient|RelatedPerson)
121
121
  attr_accessor :authored # 0-1 dateTime
122
- attr_accessor :source # 0-1 Reference()
122
+ attr_accessor :source # 0-1 Reference(Patient|Practitioner|RelatedPerson)
123
123
  attr_accessor :item # 0-* [ QuestionnaireResponse::Item ]
124
124
 
125
125
  def resourceType
@@ -4,7 +4,7 @@ module FHIR
4
4
  include FHIR::Json
5
5
  include FHIR::Xml
6
6
 
7
- SEARCH_PARAMS = []
7
+ SEARCH_PARAMS = ['date', 'patient', 'type', 'basedon', 'category', 'context', 'parent', 'priority', 'recipient', 'requester', 'specialty', 'status']
8
8
  METADATA = {
9
9
  'id' => {'type'=>'id', 'path'=>'ReferralRequest.id', 'min'=>0, 'max'=>1},
10
10
  'meta' => {'type'=>'Meta', 'path'=>'ReferralRequest.meta', 'min'=>0, 'max'=>1},
@@ -15,23 +15,23 @@ module FHIR
15
15
  'extension' => {'type'=>'Extension', 'path'=>'ReferralRequest.extension', 'min'=>0, 'max'=>Float::INFINITY},
16
16
  'modifierExtension' => {'type'=>'Extension', 'path'=>'ReferralRequest.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
17
17
  'identifier' => {'type'=>'Identifier', 'path'=>'ReferralRequest.identifier', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'basedOn' => {'type'=>'Reference', 'path'=>'ReferralRequest.basedOn', 'min'=>0, 'max'=>Float::INFINITY},
18
+ 'basedOn' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/ReferralRequest', 'http://hl7.org/fhir/StructureDefinition/CarePlan', 'http://hl7.org/fhir/StructureDefinition/DiagnosticRequest', 'http://hl7.org/fhir/StructureDefinition/ProcedureRequest'], 'type'=>'Reference', 'path'=>'ReferralRequest.basedOn', 'min'=>0, 'max'=>Float::INFINITY},
19
19
  'parent' => {'type'=>'Identifier', 'path'=>'ReferralRequest.parent', 'min'=>0, 'max'=>1},
20
20
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/referralstatus'=>['draft', 'active', 'cancelled', 'completed', 'entered-in-error', 'draft', 'active', 'cancelled', 'completed', 'entered-in-error']}, 'type'=>'code', 'path'=>'ReferralRequest.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/referralstatus'}},
21
21
  'category' => {'valid_codes'=>{'http://hl7.org/fhir/referralcategory'=>['proposal', 'plan', 'request', 'proposal', 'plan', 'request']}, 'type'=>'code', 'path'=>'ReferralRequest.category', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/referralcategory'}},
22
22
  'type' => {'type'=>'CodeableConcept', 'path'=>'ReferralRequest.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
23
23
  'priority' => {'valid_codes'=>{'http://hl7.org/fhir/request-priority'=>['routine', 'urgent', 'stat', 'asap', 'routine', 'urgent', 'stat', 'asap']}, 'type'=>'CodeableConcept', 'path'=>'ReferralRequest.priority', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/request-priority'}},
24
- 'patient' => {'type'=>'Reference', 'path'=>'ReferralRequest.patient', 'min'=>0, 'max'=>1},
25
- 'context' => {'type'=>'Reference', 'path'=>'ReferralRequest.context', 'min'=>0, 'max'=>1},
24
+ 'patient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'ReferralRequest.patient', 'min'=>0, 'max'=>1},
25
+ 'context' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter', 'http://hl7.org/fhir/StructureDefinition/EpisodeOfCare'], 'type'=>'Reference', 'path'=>'ReferralRequest.context', 'min'=>0, 'max'=>1},
26
26
  'fulfillmentTime' => {'type'=>'Period', 'path'=>'ReferralRequest.fulfillmentTime', 'min'=>0, 'max'=>1},
27
27
  'authored' => {'type'=>'dateTime', 'path'=>'ReferralRequest.authored', 'min'=>0, 'max'=>1},
28
- 'requester' => {'type'=>'Reference', 'path'=>'ReferralRequest.requester', 'min'=>0, 'max'=>1},
28
+ 'requester' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'ReferralRequest.requester', 'min'=>0, 'max'=>1},
29
29
  'specialty' => {'valid_codes'=>{'http://hl7.org/fhir/practitioner-specialty'=>['cardio', 'dent', 'dietary', 'midw', 'sysarch', 'cardio', 'dent', 'dietary', 'midw', 'sysarch']}, 'type'=>'CodeableConcept', 'path'=>'ReferralRequest.specialty', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/practitioner-specialty'}},
30
- 'recipient' => {'type'=>'Reference', 'path'=>'ReferralRequest.recipient', 'min'=>0, 'max'=>Float::INFINITY},
30
+ 'recipient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'ReferralRequest.recipient', 'min'=>0, 'max'=>Float::INFINITY},
31
31
  'reason' => {'type'=>'CodeableConcept', 'path'=>'ReferralRequest.reason', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
32
32
  'description' => {'type'=>'string', 'path'=>'ReferralRequest.description', 'min'=>0, 'max'=>1},
33
33
  'serviceRequested' => {'valid_codes'=>{'http://snomed.info/sct'=>['408467006', '394577000', '394578005', '421661004', '408462000', '394579002', '394804000', '394580004', '394803006', '408480009', '408454008', '394809005', '394592004', '394600006', '394601005', '394581000', '408478003', '394812008', '408444009', '394582007', '408475000', '410005002', '394583002', '419772000', '394584008', '408443003', '394802001', '394915009', '394814009', '394808002', '394811001', '408446006', '394586005', '394916005', '408472002', '394597005', '394598000', '394807007', '419192003', '408468001', '394593009', '394813003', '410001006', '394589003', '394591006', '394599008', '394649004', '408470005', '394585009', '394821009', '422191005', '394594003', '416304004', '418960008', '394882004', '394806003', '394588006', '408459003', '394607009', '419610006', '418058008', '420208008', '418652005', '418535003', '418862001', '419365004', '418002000', '419983000', '419170002', '419472004', '394539006', '420112009', '409968004', '394587001', '394913002', '408440000', '418112009', '419815003', '394914008', '408455009', '394602003', '408447002', '394810000', '408450004', '408476004', '408469009', '408466002', '408471009', '408464004', '408441001', '408465003', '394605001', '394608004', '408461007', '408460008', '394606000', '408449004', '418018006', '394604002', '394609007', '408474001', '394610002', '394611003', '408477008', '394801008', '408463005', '419321007', '394576009', '394590007', '409967009', '408448007', '419043006', '394612005', '394733009', '394732004']}, 'type'=>'CodeableConcept', 'path'=>'ReferralRequest.serviceRequested', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/c80-practice-codes'}},
34
- 'supportingInformation' => {'type'=>'Reference', 'path'=>'ReferralRequest.supportingInformation', 'min'=>0, 'max'=>Float::INFINITY}
34
+ 'supportingInformation' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'ReferralRequest.supportingInformation', 'min'=>0, 'max'=>Float::INFINITY}
35
35
  }
36
36
 
37
37
  attr_accessor :id # 0-1 id
@@ -43,23 +43,23 @@ module FHIR
43
43
  attr_accessor :extension # 0-* [ Extension ]
44
44
  attr_accessor :modifierExtension # 0-* [ Extension ]
45
45
  attr_accessor :identifier # 0-* [ Identifier ]
46
- attr_accessor :basedOn # 0-* [ Reference() ]
46
+ attr_accessor :basedOn # 0-* [ Reference(ReferralRequest|CarePlan|DiagnosticRequest|ProcedureRequest) ]
47
47
  attr_accessor :parent # 0-1 Identifier
48
48
  attr_accessor :status # 1-1 code
49
49
  attr_accessor :category # 1-1 code
50
50
  attr_accessor :type # 0-1 CodeableConcept
51
51
  attr_accessor :priority # 0-1 CodeableConcept
52
- attr_accessor :patient # 0-1 Reference()
53
- attr_accessor :context # 0-1 Reference()
52
+ attr_accessor :patient # 0-1 Reference(Patient)
53
+ attr_accessor :context # 0-1 Reference(Encounter|EpisodeOfCare)
54
54
  attr_accessor :fulfillmentTime # 0-1 Period
55
55
  attr_accessor :authored # 0-1 dateTime
56
- attr_accessor :requester # 0-1 Reference()
56
+ attr_accessor :requester # 0-1 Reference(Practitioner|Organization|Patient)
57
57
  attr_accessor :specialty # 0-1 CodeableConcept
58
- attr_accessor :recipient # 0-* [ Reference() ]
58
+ attr_accessor :recipient # 0-* [ Reference(Practitioner|Organization) ]
59
59
  attr_accessor :reason # 0-1 CodeableConcept
60
60
  attr_accessor :description # 0-1 string
61
61
  attr_accessor :serviceRequested # 0-* [ CodeableConcept ]
62
- attr_accessor :supportingInformation # 0-* [ Reference() ]
62
+ attr_accessor :supportingInformation # 0-* [ Reference(Resource) ]
63
63
 
64
64
  def resourceType
65
65
  'ReferralRequest'
@@ -4,7 +4,7 @@ module FHIR
4
4
  include FHIR::Json
5
5
  include FHIR::Xml
6
6
 
7
- SEARCH_PARAMS = []
7
+ SEARCH_PARAMS = ['address', 'address-city', 'address-country', 'address-postalcode', 'address-state', 'address-use', 'birthdate', 'email', 'gender', 'phone', 'phonetic', 'telecom', 'active', 'identifier', 'name', 'patient']
8
8
  METADATA = {
9
9
  'id' => {'type'=>'id', 'path'=>'RelatedPerson.id', 'min'=>0, 'max'=>1},
10
10
  'meta' => {'type'=>'Meta', 'path'=>'RelatedPerson.meta', 'min'=>0, 'max'=>1},
@@ -16,7 +16,7 @@ module FHIR
16
16
  'modifierExtension' => {'type'=>'Extension', 'path'=>'RelatedPerson.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
17
17
  'identifier' => {'type'=>'Identifier', 'path'=>'RelatedPerson.identifier', 'min'=>0, 'max'=>Float::INFINITY},
18
18
  'active' => {'type'=>'boolean', 'path'=>'RelatedPerson.active', 'min'=>0, 'max'=>1},
19
- 'patient' => {'type'=>'Reference', 'path'=>'RelatedPerson.patient', 'min'=>1, 'max'=>1},
19
+ 'patient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'RelatedPerson.patient', 'min'=>1, 'max'=>1},
20
20
  'relationship' => {'valid_codes'=>{'http://hl7.org/fhir/v2/0131'=>['BP', 'C', 'CP', 'E', 'EP', 'F', 'I', 'N', 'O', 'PR', 'S', 'U'], 'http://hl7.org/fhir/v3/RoleCode'=>['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']}, 'type'=>'CodeableConcept', 'path'=>'RelatedPerson.relationship', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype'}},
21
21
  'name' => {'type'=>'HumanName', 'path'=>'RelatedPerson.name', 'min'=>0, 'max'=>Float::INFINITY},
22
22
  'telecom' => {'type'=>'ContactPoint', 'path'=>'RelatedPerson.telecom', 'min'=>0, 'max'=>Float::INFINITY},
@@ -37,7 +37,7 @@ module FHIR
37
37
  attr_accessor :modifierExtension # 0-* [ Extension ]
38
38
  attr_accessor :identifier # 0-* [ Identifier ]
39
39
  attr_accessor :active # 0-1 boolean
40
- attr_accessor :patient # 1-1 Reference()
40
+ attr_accessor :patient # 1-1 Reference(Patient)
41
41
  attr_accessor :relationship # 0-1 CodeableConcept
42
42
  attr_accessor :name # 0-* [ HumanName ]
43
43
  attr_accessor :telecom # 0-* [ ContactPoint ]
@@ -7,7 +7,7 @@ module FHIR
7
7
  MULTIPLE_TYPES = {
8
8
  'reason' => ['CodeableConcept', 'Reference']
9
9
  }
10
- SEARCH_PARAMS = []
10
+ SEARCH_PARAMS = ['author', 'context', 'encounter', 'participant', 'patient', 'subject']
11
11
  METADATA = {
12
12
  'id' => {'type'=>'id', 'path'=>'RequestGroup.id', 'min'=>0, 'max'=>1},
13
13
  'meta' => {'type'=>'Meta', 'path'=>'RequestGroup.meta', 'min'=>0, 'max'=>1},
@@ -18,12 +18,12 @@ module FHIR
18
18
  'extension' => {'type'=>'Extension', 'path'=>'RequestGroup.extension', 'min'=>0, 'max'=>Float::INFINITY},
19
19
  'modifierExtension' => {'type'=>'Extension', 'path'=>'RequestGroup.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
20
20
  'identifier' => {'type'=>'Identifier', 'path'=>'RequestGroup.identifier', 'min'=>0, 'max'=>1},
21
- 'subject' => {'type'=>'Reference', 'path'=>'RequestGroup.subject', 'min'=>0, 'max'=>1},
22
- 'context' => {'type'=>'Reference', 'path'=>'RequestGroup.context', 'min'=>0, 'max'=>1},
21
+ 'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Group'], 'type'=>'Reference', 'path'=>'RequestGroup.subject', 'min'=>0, 'max'=>1},
22
+ 'context' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter', 'http://hl7.org/fhir/StructureDefinition/EpisodeOfCare'], 'type'=>'Reference', 'path'=>'RequestGroup.context', 'min'=>0, 'max'=>1},
23
23
  'occurrenceDateTime' => {'type'=>'dateTime', 'path'=>'RequestGroup.occurrenceDateTime', 'min'=>0, 'max'=>1},
24
- 'author' => {'type'=>'Reference', 'path'=>'RequestGroup.author', 'min'=>0, 'max'=>1},
24
+ 'author' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'RequestGroup.author', 'min'=>0, 'max'=>1},
25
25
  'reasonCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'RequestGroup.reason[x]', 'min'=>0, 'max'=>1},
26
- 'reasonReference' => {'type'=>'Reference', 'path'=>'RequestGroup.reason[x]', 'min'=>0, 'max'=>1},
26
+ 'reasonReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'RequestGroup.reason[x]', 'min'=>0, 'max'=>1},
27
27
  'note' => {'type'=>'Annotation', 'path'=>'RequestGroup.note', 'min'=>0, 'max'=>Float::INFINITY},
28
28
  'action' => {'type'=>'RequestGroup::Action', 'path'=>'RequestGroup.action', 'min'=>0, 'max'=>Float::INFINITY}
29
29
  }
@@ -54,14 +54,14 @@ module FHIR
54
54
  'timingDuration' => {'type'=>'Duration', 'path'=>'Action.timing[x]', 'min'=>0, 'max'=>1},
55
55
  'timingRange' => {'type'=>'Range', 'path'=>'Action.timing[x]', 'min'=>0, 'max'=>1},
56
56
  'timingTiming' => {'type'=>'Timing', 'path'=>'Action.timing[x]', 'min'=>0, 'max'=>1},
57
- 'participant' => {'type'=>'Reference', 'path'=>'Action.participant', 'min'=>0, 'max'=>Float::INFINITY},
57
+ 'participant' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Person', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'Action.participant', 'min'=>0, 'max'=>Float::INFINITY},
58
58
  'type' => {'valid_codes'=>{'http://hl7.org/fhir/action-type'=>['create', 'update', 'remove', 'fire-event', 'create', 'update', 'remove', 'fire-event']}, 'type'=>'Coding', 'path'=>'Action.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/action-type'}},
59
59
  'groupingBehavior' => {'valid_codes'=>{'http://hl7.org/fhir/action-grouping-behavior'=>['visual-group', 'logical-group', 'sentence-group', 'visual-group', 'logical-group', 'sentence-group']}, 'type'=>'code', 'path'=>'Action.groupingBehavior', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/action-grouping-behavior'}},
60
60
  'selectionBehavior' => {'valid_codes'=>{'http://hl7.org/fhir/action-selection-behavior'=>['any', 'all', 'all-or-none', 'exactly-one', 'at-most-one', 'one-or-more', 'any', 'all', 'all-or-none', 'exactly-one', 'at-most-one', 'one-or-more']}, 'type'=>'code', 'path'=>'Action.selectionBehavior', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/action-selection-behavior'}},
61
61
  'requiredBehavior' => {'valid_codes'=>{'http://hl7.org/fhir/action-required-behavior'=>['must', 'could', 'must-unless-documented', 'must', 'could', 'must-unless-documented']}, 'type'=>'code', 'path'=>'Action.requiredBehavior', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/action-required-behavior'}},
62
62
  'precheckBehavior' => {'valid_codes'=>{'http://hl7.org/fhir/action-precheck-behavior'=>['yes', 'no', 'yes', 'no']}, 'type'=>'code', 'path'=>'Action.precheckBehavior', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/action-precheck-behavior'}},
63
63
  'cardinalityBehavior' => {'valid_codes'=>{'http://hl7.org/fhir/action-cardinality-behavior'=>['single', 'multiple', 'single', 'multiple']}, 'type'=>'code', 'path'=>'Action.cardinalityBehavior', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/action-cardinality-behavior'}},
64
- 'resource' => {'type'=>'Reference', 'path'=>'Action.resource', 'min'=>0, 'max'=>1},
64
+ 'resource' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Action.resource', 'min'=>0, 'max'=>1},
65
65
  'action' => {'type'=>'RequestGroup::Action', 'path'=>'Action.action', 'min'=>0, 'max'=>Float::INFINITY}
66
66
  }
67
67
 
@@ -133,14 +133,14 @@ module FHIR
133
133
  attr_accessor :timingDuration # 0-1 Duration
134
134
  attr_accessor :timingRange # 0-1 Range
135
135
  attr_accessor :timingTiming # 0-1 Timing
136
- attr_accessor :participant # 0-* [ Reference() ]
136
+ attr_accessor :participant # 0-* [ Reference(Patient|Person|Practitioner|RelatedPerson) ]
137
137
  attr_accessor :type # 0-1 Coding
138
138
  attr_accessor :groupingBehavior # 0-1 code
139
139
  attr_accessor :selectionBehavior # 0-1 code
140
140
  attr_accessor :requiredBehavior # 0-1 code
141
141
  attr_accessor :precheckBehavior # 0-1 code
142
142
  attr_accessor :cardinalityBehavior # 0-1 code
143
- attr_accessor :resource # 0-1 Reference()
143
+ attr_accessor :resource # 0-1 Reference(Resource)
144
144
  attr_accessor :action # 0-* [ RequestGroup::Action ]
145
145
  end
146
146
 
@@ -153,12 +153,12 @@ module FHIR
153
153
  attr_accessor :extension # 0-* [ Extension ]
154
154
  attr_accessor :modifierExtension # 0-* [ Extension ]
155
155
  attr_accessor :identifier # 0-1 Identifier
156
- attr_accessor :subject # 0-1 Reference()
157
- attr_accessor :context # 0-1 Reference()
156
+ attr_accessor :subject # 0-1 Reference(Patient|Group)
157
+ attr_accessor :context # 0-1 Reference(Encounter|EpisodeOfCare)
158
158
  attr_accessor :occurrenceDateTime # 0-1 dateTime
159
- attr_accessor :author # 0-1 Reference()
159
+ attr_accessor :author # 0-1 Reference(Device|Practitioner)
160
160
  attr_accessor :reasonCodeableConcept # 0-1 CodeableConcept
161
- attr_accessor :reasonReference # 0-1 Reference()
161
+ attr_accessor :reasonReference # 0-1 Reference(Resource)
162
162
  attr_accessor :note # 0-* [ Annotation ]
163
163
  attr_accessor :action # 0-* [ RequestGroup::Action ]
164
164