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 = ['category', 'date', 'description', 'event', 'focus', 'jurisdiction', 'name', 'publisher', 'status', 'title', 'url', 'version']
8
8
  METADATA = {
9
9
  'id' => {'type'=>'id', 'path'=>'MessageDefinition.id', 'min'=>0, 'max'=>1},
10
10
  'meta' => {'type'=>'Meta', 'path'=>'MessageDefinition.meta', 'min'=>0, 'max'=>1},
@@ -28,9 +28,9 @@ module FHIR
28
28
  'jurisdiction' => {'valid_codes'=>{'urn:iso:std:iso:3166'=>['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AN', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BU', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CS', 'CT', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DD', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DY', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FQ', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'HV', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'JT', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MI', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NH', 'NI', 'NL', 'NO', 'NP', 'NQ', 'NR', 'NT', 'NU', 'NZ', 'OM', 'PA', 'PC', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PU', 'PW', 'PY', 'PZ', 'QA', 'RE', 'RH', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SU', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TP', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VD', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WK', 'WS', 'YD', 'YE', 'YT', 'YU', 'ZA', 'ZM', 'ZR', 'ZW'], 'http://unstats.un.org/unsd/methods/m49/m49.htm'=>['004', '008', '012', '016', '020', '024', '028', '031', '032', '036', '040', '044', '048', '050', '051', '052', '056', '060', '064', '068', '070', '072', '076', '084', '090', '092', '096', '100', '104', '108', '112', '116', '120', '124', '132', '136', '140', '144', '148', '152', '156', '170', '174', '175', '178', '180', '184', '188', '191', '192', '196', '203', '204', '208', '212', '214', '218', '222', '226', '231', '232', '233', '234', '238', '242', '246', '248', '250', '254', '258', '262', '266', '268', '270', '275', '276', '288', '292', '296', '300', '304', '308', '312', '316', '320', '324', '328', '332', '336', '340', '344', '348', '352', '356', '360', '364', '368', '372', '376', '380', '384', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '428', '430', '434', '438', '440', '442', '446', '450', '454', '458', '462', '466', '470', '474', '478', '480', '484', '492', '496', '498', '499', '500', '504', '508', '512', '516', '520', '524', '528', '531', '533', '534', '535', '540', '548', '554', '558', '562', '566', '570', '574', '578', '580', '583', '584', '585', '586', '591', '598', '600', '604', '608', '612', '616', '620', '624', '626', '630', '634', '638', '642', '643', '646', '652', '654', '659', '660', '662', '663', '666', '670', '674', '678', '680', '682', '686', '688', '690', '694', '702', '703', '704', '705', '706', '710', '716', '724', '728', '729', '732', '740', '744', '748', '752', '756', '760', '762', '764', '768', '772', '776', '780', '784', '788', '792', '795', '796', '798', '800', '804', '807', '818', '826', '830', '831', '832', '833', '834', '840', '850', '854', '858', '860', '862', '876', '882', '887', '894'], 'https://www.usps.com/'=>['AK', 'AL', 'AR', 'AS', 'AZ', 'CA', 'CO', 'CT', 'DC', 'DE', 'FL', 'FM', 'GA', 'GU', 'HI', 'IA', 'ID', 'IL', 'IN', 'KS', 'KY', 'LA', 'MA', 'MD', 'ME', 'MH', 'MI', 'MN', 'MO', 'MP', 'MS', 'MT', 'NC', 'ND', 'NE', 'NH', 'NJ', 'NM', 'NV', 'NY', 'OH', 'OK', 'OR', 'PA', 'PR', 'PW', 'RI', 'SC', 'SD', 'TN', 'TX', 'UM', 'UT', 'VA', 'VI', 'VT', 'WA', 'WI', 'WV', 'WY'], nil=>[]}, 'type'=>'CodeableConcept', 'path'=>'MessageDefinition.jurisdiction', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/jurisdiction'}},
29
29
  'purpose' => {'type'=>'markdown', 'path'=>'MessageDefinition.purpose', 'min'=>0, 'max'=>1},
30
30
  'copyright' => {'type'=>'markdown', 'path'=>'MessageDefinition.copyright', 'min'=>0, 'max'=>1},
31
- 'base' => {'type'=>'Reference', 'path'=>'MessageDefinition.base', 'min'=>0, 'max'=>1},
32
- 'parent' => {'type'=>'Reference', 'path'=>'MessageDefinition.parent', 'min'=>0, 'max'=>Float::INFINITY},
33
- 'replaces' => {'type'=>'Reference', 'path'=>'MessageDefinition.replaces', 'min'=>0, 'max'=>Float::INFINITY},
31
+ 'base' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/MessageDefinition'], 'type'=>'Reference', 'path'=>'MessageDefinition.base', 'min'=>0, 'max'=>1},
32
+ 'parent' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/ActivityDefinition', 'http://hl7.org/fhir/StructureDefinition/PlanDefinition'], 'type'=>'Reference', 'path'=>'MessageDefinition.parent', 'min'=>0, 'max'=>Float::INFINITY},
33
+ 'replaces' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/MessageDefinition'], 'type'=>'Reference', 'path'=>'MessageDefinition.replaces', 'min'=>0, 'max'=>Float::INFINITY},
34
34
  'event' => {'valid_codes'=>{'http://hl7.org/fhir/message-events'=>['CodeSystem-expand', 'MedicationAdministration-Complete', 'MedicationAdministration-Nullification', 'MedicationAdministration-Recording', 'MedicationAdministration-Update', 'admin-notify', 'communication-request', 'diagnosticreport-provide', 'observation-provide', 'patient-link', 'patient-unlink', 'valueset-expand', 'CodeSystem-expand', 'MedicationAdministration-Complete', 'MedicationAdministration-Nullification', 'MedicationAdministration-Recording', 'MedicationAdministration-Update', 'admin-notify', 'communication-request', 'diagnosticreport-provide', 'observation-provide', 'patient-link', 'patient-unlink', 'valueset-expand']}, 'type'=>'Coding', 'path'=>'MessageDefinition.event', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/message-events'}},
35
35
  'category' => {'valid_codes'=>{'http://hl7.org/fhir/message-significance-category'=>['Consequence', 'Currency', 'Notification', 'Consequence', 'Currency', 'Notification']}, 'type'=>'code', 'path'=>'MessageDefinition.category', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/message-significance-category'}},
36
36
  'focus' => {'type'=>'MessageDefinition::Focus', 'path'=>'MessageDefinition.focus', 'min'=>0, 'max'=>Float::INFINITY},
@@ -48,7 +48,7 @@ module FHIR
48
48
  'extension' => {'type'=>'Extension', 'path'=>'Focus.extension', 'min'=>0, 'max'=>Float::INFINITY},
49
49
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Focus.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
50
50
  'code' => {'valid_codes'=>{'http://hl7.org/fhir/resource-types'=>['Account', 'ActivityDefinition', 'AllergyIntolerance', 'Appointment', 'AppointmentResponse', 'AuditEvent', 'Basic', 'Binary', 'BodySite', 'Bundle', 'CapabilityStatement', 'CarePlan', 'CareTeam', 'Claim', 'ClaimResponse', 'ClinicalImpression', 'CodeSystem', 'Communication', 'CommunicationRequest', 'CompartmentDefinition', 'Composition', 'ConceptMap', 'Condition', 'Consent', 'Contract', 'Coverage', 'DataElement', 'DetectedIssue', 'Device', 'DeviceComponent', 'DeviceMetric', 'DeviceUseRequest', 'DeviceUseStatement', 'DiagnosticReport', 'DiagnosticRequest', 'DocumentManifest', 'DocumentReference', 'DomainResource', 'EligibilityRequest', 'EligibilityResponse', 'Encounter', 'Endpoint', 'EnrollmentRequest', 'EnrollmentResponse', 'EpisodeOfCare', 'ExpansionProfile', 'ExplanationOfBenefit', 'FamilyMemberHistory', 'Flag', 'Goal', 'Group', 'GuidanceResponse', 'HealthcareService', 'ImagingManifest', 'ImagingStudy', 'Immunization', 'ImmunizationRecommendation', 'ImplementationGuide', 'Library', 'Linkage', 'List', 'Location', 'Measure', 'MeasureReport', 'Media', 'Medication', 'MedicationAdministration', 'MedicationDispense', 'MedicationRequest', 'MedicationStatement', 'MessageDefinition', 'MessageHeader', 'NamingSystem', 'NutritionRequest', 'Observation', 'OperationDefinition', 'OperationOutcome', 'Organization', 'Parameters', 'Patient', 'PaymentNotice', 'PaymentReconciliation', 'Person', 'PlanDefinition', 'Practitioner', 'PractitionerRole', 'Procedure', 'ProcedureRequest', 'ProcessRequest', 'ProcessResponse', 'Provenance', 'Questionnaire', 'QuestionnaireResponse', 'ReferralRequest', 'RelatedPerson', 'RequestGroup', 'ResearchStudy', 'ResearchSubject', 'Resource', 'RiskAssessment', 'Schedule', 'SearchParameter', 'Sequence', 'ServiceDefinition', 'Slot', 'Specimen', 'StructureDefinition', 'StructureMap', 'Subscription', 'Substance', 'SupplyDelivery', 'SupplyRequest', 'Task', 'TestReport', 'TestScript', 'ValueSet', 'VisionPrescription', 'Account', 'ActivityDefinition', 'AllergyIntolerance', 'Appointment', 'AppointmentResponse', 'AuditEvent', 'Basic', 'Binary', 'BodySite', 'Bundle', 'CapabilityStatement', 'CarePlan', 'CareTeam', 'Claim', 'ClaimResponse', 'ClinicalImpression', 'CodeSystem', 'Communication', 'CommunicationRequest', 'CompartmentDefinition', 'Composition', 'ConceptMap', 'Condition', 'Consent', 'Contract', 'Coverage', 'DataElement', 'DetectedIssue', 'Device', 'DeviceComponent', 'DeviceMetric', 'DeviceUseRequest', 'DeviceUseStatement', 'DiagnosticReport', 'DiagnosticRequest', 'DocumentManifest', 'DocumentReference', 'DomainResource', 'EligibilityRequest', 'EligibilityResponse', 'Encounter', 'Endpoint', 'EnrollmentRequest', 'EnrollmentResponse', 'EpisodeOfCare', 'ExpansionProfile', 'ExplanationOfBenefit', 'FamilyMemberHistory', 'Flag', 'Goal', 'Group', 'GuidanceResponse', 'HealthcareService', 'ImagingManifest', 'ImagingStudy', 'Immunization', 'ImmunizationRecommendation', 'ImplementationGuide', 'Library', 'Linkage', 'List', 'Location', 'Measure', 'MeasureReport', 'Media', 'Medication', 'MedicationAdministration', 'MedicationDispense', 'MedicationRequest', 'MedicationStatement', 'MessageDefinition', 'MessageHeader', 'NamingSystem', 'NutritionRequest', 'Observation', 'OperationDefinition', 'OperationOutcome', 'Organization', 'Parameters', 'Patient', 'PaymentNotice', 'PaymentReconciliation', 'Person', 'PlanDefinition', 'Practitioner', 'PractitionerRole', 'Procedure', 'ProcedureRequest', 'ProcessRequest', 'ProcessResponse', 'Provenance', 'Questionnaire', 'QuestionnaireResponse', 'ReferralRequest', 'RelatedPerson', 'RequestGroup', 'ResearchStudy', 'ResearchSubject', 'Resource', 'RiskAssessment', 'Schedule', 'SearchParameter', 'Sequence', 'ServiceDefinition', 'Slot', 'Specimen', 'StructureDefinition', 'StructureMap', 'Subscription', 'Substance', 'SupplyDelivery', 'SupplyRequest', 'Task', 'TestReport', 'TestScript', 'ValueSet', 'VisionPrescription']}, 'type'=>'code', 'path'=>'Focus.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/resource-types'}},
51
- 'profile' => {'type'=>'Reference', 'path'=>'Focus.profile', 'min'=>0, 'max'=>1},
51
+ 'profile' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/StructureDefinition'], 'type'=>'Reference', 'path'=>'Focus.profile', 'min'=>0, 'max'=>1},
52
52
  'min' => {'type'=>'unsignedInt', 'path'=>'Focus.min', 'min'=>0, 'max'=>1},
53
53
  'max' => {'type'=>'string', 'path'=>'Focus.max', 'min'=>0, 'max'=>1}
54
54
  }
@@ -57,7 +57,7 @@ module FHIR
57
57
  attr_accessor :extension # 0-* [ Extension ]
58
58
  attr_accessor :modifierExtension # 0-* [ Extension ]
59
59
  attr_accessor :code # 1-1 code
60
- attr_accessor :profile # 0-1 Reference()
60
+ attr_accessor :profile # 0-1 Reference(StructureDefinition)
61
61
  attr_accessor :min # 0-1 unsignedInt
62
62
  attr_accessor :max # 0-1 string
63
63
  end
@@ -71,14 +71,14 @@ module FHIR
71
71
  'id' => {'type'=>'string', 'path'=>'AllowedResponse.id', 'min'=>0, 'max'=>1},
72
72
  'extension' => {'type'=>'Extension', 'path'=>'AllowedResponse.extension', 'min'=>0, 'max'=>Float::INFINITY},
73
73
  'modifierExtension' => {'type'=>'Extension', 'path'=>'AllowedResponse.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
74
- 'message' => {'type'=>'Reference', 'path'=>'AllowedResponse.message', 'min'=>1, 'max'=>1},
74
+ 'message' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/MessageDefinition'], 'type'=>'Reference', 'path'=>'AllowedResponse.message', 'min'=>1, 'max'=>1},
75
75
  'situation' => {'type'=>'markdown', 'path'=>'AllowedResponse.situation', 'min'=>0, 'max'=>1}
76
76
  }
77
77
 
78
78
  attr_accessor :id # 0-1 string
79
79
  attr_accessor :extension # 0-* [ Extension ]
80
80
  attr_accessor :modifierExtension # 0-* [ Extension ]
81
- attr_accessor :message # 1-1 Reference()
81
+ attr_accessor :message # 1-1 Reference(MessageDefinition)
82
82
  attr_accessor :situation # 0-1 markdown
83
83
  end
84
84
 
@@ -104,9 +104,9 @@ module FHIR
104
104
  attr_accessor :jurisdiction # 0-* [ CodeableConcept ]
105
105
  attr_accessor :purpose # 0-1 markdown
106
106
  attr_accessor :copyright # 0-1 markdown
107
- attr_accessor :base # 0-1 Reference()
108
- attr_accessor :parent # 0-* [ Reference() ]
109
- attr_accessor :replaces # 0-* [ Reference() ]
107
+ attr_accessor :base # 0-1 Reference(MessageDefinition)
108
+ attr_accessor :parent # 0-* [ Reference(ActivityDefinition|PlanDefinition) ]
109
+ attr_accessor :replaces # 0-* [ Reference(MessageDefinition) ]
110
110
  attr_accessor :event # 1-1 Coding
111
111
  attr_accessor :category # 0-1 code
112
112
  attr_accessor :focus # 0-* [ MessageDefinition::Focus ]
@@ -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', 'code', 'data', 'destination', 'destination-uri', 'enterer', 'event', 'receiver', 'response-id', 'responsible', 'source', 'source-uri', 'target', 'timestamp']
8
8
  METADATA = {
9
9
  'id' => {'type'=>'id', 'path'=>'MessageHeader.id', 'min'=>0, 'max'=>1},
10
10
  'meta' => {'type'=>'Meta', 'path'=>'MessageHeader.meta', 'min'=>0, 'max'=>1},
@@ -19,12 +19,12 @@ module FHIR
19
19
  'response' => {'type'=>'MessageHeader::Response', 'path'=>'MessageHeader.response', 'min'=>0, 'max'=>1},
20
20
  'source' => {'type'=>'MessageHeader::Source', 'path'=>'MessageHeader.source', 'min'=>1, 'max'=>1},
21
21
  'destination' => {'type'=>'MessageHeader::Destination', 'path'=>'MessageHeader.destination', 'min'=>0, 'max'=>Float::INFINITY},
22
- 'enterer' => {'type'=>'Reference', 'path'=>'MessageHeader.enterer', 'min'=>0, 'max'=>1},
23
- 'author' => {'type'=>'Reference', 'path'=>'MessageHeader.author', 'min'=>0, 'max'=>1},
24
- 'receiver' => {'type'=>'Reference', 'path'=>'MessageHeader.receiver', 'min'=>0, 'max'=>1},
25
- 'responsible' => {'type'=>'Reference', 'path'=>'MessageHeader.responsible', 'min'=>0, 'max'=>1},
22
+ 'enterer' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'MessageHeader.enterer', 'min'=>0, 'max'=>1},
23
+ 'author' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'MessageHeader.author', 'min'=>0, 'max'=>1},
24
+ 'receiver' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'MessageHeader.receiver', 'min'=>0, 'max'=>1},
25
+ 'responsible' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'MessageHeader.responsible', 'min'=>0, 'max'=>1},
26
26
  'reason' => {'valid_codes'=>{'http://hl7.org/fhir/message-reasons-encounter'=>['admit', 'discharge', 'absent', 'return', 'moved', 'edit', 'admit', 'discharge', 'absent', 'return', 'moved', 'edit']}, 'type'=>'CodeableConcept', 'path'=>'MessageHeader.reason', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/message-reason-encounter'}},
27
- 'data' => {'type'=>'Reference', 'path'=>'MessageHeader.data', 'min'=>0, 'max'=>Float::INFINITY}
27
+ 'data' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'MessageHeader.data', 'min'=>0, 'max'=>Float::INFINITY}
28
28
  }
29
29
 
30
30
  class Response < FHIR::Model
@@ -38,7 +38,7 @@ module FHIR
38
38
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Response.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
39
39
  'identifier' => {'type'=>'id', 'path'=>'Response.identifier', 'min'=>1, 'max'=>1},
40
40
  'code' => {'valid_codes'=>{'http://hl7.org/fhir/response-code'=>['ok', 'transient-error', 'fatal-error', 'ok', 'transient-error', 'fatal-error']}, 'type'=>'code', 'path'=>'Response.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/response-code'}},
41
- 'details' => {'type'=>'Reference', 'path'=>'Response.details', 'min'=>0, 'max'=>1}
41
+ 'details' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/OperationOutcome'], 'type'=>'Reference', 'path'=>'Response.details', 'min'=>0, 'max'=>1}
42
42
  }
43
43
 
44
44
  attr_accessor :id # 0-1 string
@@ -46,7 +46,7 @@ module FHIR
46
46
  attr_accessor :modifierExtension # 0-* [ Extension ]
47
47
  attr_accessor :identifier # 1-1 id
48
48
  attr_accessor :code # 1-1 code
49
- attr_accessor :details # 0-1 Reference()
49
+ attr_accessor :details # 0-1 Reference(OperationOutcome)
50
50
  end
51
51
 
52
52
  class Source < FHIR::Model
@@ -85,7 +85,7 @@ module FHIR
85
85
  'extension' => {'type'=>'Extension', 'path'=>'Destination.extension', 'min'=>0, 'max'=>Float::INFINITY},
86
86
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Destination.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
87
87
  'name' => {'type'=>'string', 'path'=>'Destination.name', 'min'=>0, 'max'=>1},
88
- 'target' => {'type'=>'Reference', 'path'=>'Destination.target', 'min'=>0, 'max'=>1},
88
+ 'target' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Device'], 'type'=>'Reference', 'path'=>'Destination.target', 'min'=>0, 'max'=>1},
89
89
  'endpoint' => {'type'=>'uri', 'path'=>'Destination.endpoint', 'min'=>1, 'max'=>1}
90
90
  }
91
91
 
@@ -93,7 +93,7 @@ module FHIR
93
93
  attr_accessor :extension # 0-* [ Extension ]
94
94
  attr_accessor :modifierExtension # 0-* [ Extension ]
95
95
  attr_accessor :name # 0-1 string
96
- attr_accessor :target # 0-1 Reference()
96
+ attr_accessor :target # 0-1 Reference(Device)
97
97
  attr_accessor :endpoint # 1-1 uri
98
98
  end
99
99
 
@@ -110,12 +110,12 @@ module FHIR
110
110
  attr_accessor :response # 0-1 MessageHeader::Response
111
111
  attr_accessor :source # 1-1 MessageHeader::Source
112
112
  attr_accessor :destination # 0-* [ MessageHeader::Destination ]
113
- attr_accessor :enterer # 0-1 Reference()
114
- attr_accessor :author # 0-1 Reference()
115
- attr_accessor :receiver # 0-1 Reference()
116
- attr_accessor :responsible # 0-1 Reference()
113
+ attr_accessor :enterer # 0-1 Reference(Practitioner)
114
+ attr_accessor :author # 0-1 Reference(Practitioner)
115
+ attr_accessor :receiver # 0-1 Reference(Practitioner|Organization)
116
+ attr_accessor :responsible # 0-1 Reference(Practitioner|Organization)
117
117
  attr_accessor :reason # 0-1 CodeableConcept
118
- attr_accessor :data # 0-* [ Reference() ]
118
+ attr_accessor :data # 0-* [ Reference(Resource) ]
119
119
 
120
120
  def resourceType
121
121
  'MessageHeader'
@@ -4,7 +4,7 @@ module FHIR
4
4
  include FHIR::Json
5
5
  include FHIR::Xml
6
6
 
7
- SEARCH_PARAMS = []
7
+ SEARCH_PARAMS =
8
8
  METADATA = {
9
9
  'id' => {'type'=>'id', 'path'=>'MetadataResource.id', 'min'=>0, 'max'=>1},
10
10
  'meta' => {'type'=>'Meta', 'path'=>'MetadataResource.meta', 'min'=>0, 'max'=>1},
@@ -4,7 +4,7 @@ module FHIR
4
4
  include FHIR::Json
5
5
  include FHIR::Xml
6
6
 
7
- SEARCH_PARAMS = []
7
+ SEARCH_PARAMS = ['contact', 'date', 'description', 'id-type', 'jurisdiction', 'kind', 'name', 'period', 'publisher', 'replaced-by', 'responsible', 'status', 'telecom', 'type', 'value']
8
8
  METADATA = {
9
9
  'id' => {'type'=>'id', 'path'=>'NamingSystem.id', 'min'=>0, 'max'=>1},
10
10
  'meta' => {'type'=>'Meta', 'path'=>'NamingSystem.meta', 'min'=>0, 'max'=>1},
@@ -27,7 +27,7 @@ module FHIR
27
27
  'jurisdiction' => {'valid_codes'=>{'urn:iso:std:iso:3166'=>['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AN', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BU', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CS', 'CT', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DD', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DY', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FQ', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'HV', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'JT', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MI', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NH', 'NI', 'NL', 'NO', 'NP', 'NQ', 'NR', 'NT', 'NU', 'NZ', 'OM', 'PA', 'PC', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PU', 'PW', 'PY', 'PZ', 'QA', 'RE', 'RH', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SU', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TP', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VD', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WK', 'WS', 'YD', 'YE', 'YT', 'YU', 'ZA', 'ZM', 'ZR', 'ZW'], 'http://unstats.un.org/unsd/methods/m49/m49.htm'=>['004', '008', '012', '016', '020', '024', '028', '031', '032', '036', '040', '044', '048', '050', '051', '052', '056', '060', '064', '068', '070', '072', '076', '084', '090', '092', '096', '100', '104', '108', '112', '116', '120', '124', '132', '136', '140', '144', '148', '152', '156', '170', '174', '175', '178', '180', '184', '188', '191', '192', '196', '203', '204', '208', '212', '214', '218', '222', '226', '231', '232', '233', '234', '238', '242', '246', '248', '250', '254', '258', '262', '266', '268', '270', '275', '276', '288', '292', '296', '300', '304', '308', '312', '316', '320', '324', '328', '332', '336', '340', '344', '348', '352', '356', '360', '364', '368', '372', '376', '380', '384', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '428', '430', '434', '438', '440', '442', '446', '450', '454', '458', '462', '466', '470', '474', '478', '480', '484', '492', '496', '498', '499', '500', '504', '508', '512', '516', '520', '524', '528', '531', '533', '534', '535', '540', '548', '554', '558', '562', '566', '570', '574', '578', '580', '583', '584', '585', '586', '591', '598', '600', '604', '608', '612', '616', '620', '624', '626', '630', '634', '638', '642', '643', '646', '652', '654', '659', '660', '662', '663', '666', '670', '674', '678', '680', '682', '686', '688', '690', '694', '702', '703', '704', '705', '706', '710', '716', '724', '728', '729', '732', '740', '744', '748', '752', '756', '760', '762', '764', '768', '772', '776', '780', '784', '788', '792', '795', '796', '798', '800', '804', '807', '818', '826', '830', '831', '832', '833', '834', '840', '850', '854', '858', '860', '862', '876', '882', '887', '894'], 'https://www.usps.com/'=>['AK', 'AL', 'AR', 'AS', 'AZ', 'CA', 'CO', 'CT', 'DC', 'DE', 'FL', 'FM', 'GA', 'GU', 'HI', 'IA', 'ID', 'IL', 'IN', 'KS', 'KY', 'LA', 'MA', 'MD', 'ME', 'MH', 'MI', 'MN', 'MO', 'MP', 'MS', 'MT', 'NC', 'ND', 'NE', 'NH', 'NJ', 'NM', 'NV', 'NY', 'OH', 'OK', 'OR', 'PA', 'PR', 'PW', 'RI', 'SC', 'SD', 'TN', 'TX', 'UM', 'UT', 'VA', 'VI', 'VT', 'WA', 'WI', 'WV', 'WY'], nil=>[]}, 'type'=>'CodeableConcept', 'path'=>'NamingSystem.jurisdiction', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/jurisdiction'}},
28
28
  'usage' => {'type'=>'string', 'path'=>'NamingSystem.usage', 'min'=>0, 'max'=>1},
29
29
  'uniqueId' => {'type'=>'NamingSystem::UniqueId', 'path'=>'NamingSystem.uniqueId', 'min'=>1, 'max'=>Float::INFINITY},
30
- 'replacedBy' => {'type'=>'Reference', 'path'=>'NamingSystem.replacedBy', 'min'=>0, 'max'=>1}
30
+ 'replacedBy' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/NamingSystem'], 'type'=>'Reference', 'path'=>'NamingSystem.replacedBy', 'min'=>0, 'max'=>1}
31
31
  }
32
32
 
33
33
  class UniqueId < FHIR::Model
@@ -77,7 +77,7 @@ module FHIR
77
77
  attr_accessor :jurisdiction # 0-* [ CodeableConcept ]
78
78
  attr_accessor :usage # 0-1 string
79
79
  attr_accessor :uniqueId # 1-* [ NamingSystem::UniqueId ]
80
- attr_accessor :replacedBy # 0-1 Reference()
80
+ attr_accessor :replacedBy # 0-1 Reference(NamingSystem)
81
81
 
82
82
  def resourceType
83
83
  'NamingSystem'
@@ -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', 'patient', 'encounter', 'additive', 'datetime', 'formula', 'oraldiet', 'provider', 'status', 'supplement']
8
8
  METADATA = {
9
9
  'id' => {'type'=>'id', 'path'=>'NutritionRequest.id', 'min'=>0, 'max'=>1},
10
10
  'meta' => {'type'=>'Meta', 'path'=>'NutritionRequest.meta', 'min'=>0, 'max'=>1},
@@ -16,11 +16,11 @@ module FHIR
16
16
  'modifierExtension' => {'type'=>'Extension', 'path'=>'NutritionRequest.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
17
17
  'identifier' => {'type'=>'Identifier', 'path'=>'NutritionRequest.identifier', 'min'=>0, 'max'=>Float::INFINITY},
18
18
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/nutrition-request-status'=>['proposed', 'draft', 'planned', 'requested', 'active', 'on-hold', 'completed', 'cancelled', 'entered-in-error', 'proposed', 'draft', 'planned', 'requested', 'active', 'on-hold', 'completed', 'cancelled', 'entered-in-error']}, 'type'=>'code', 'path'=>'NutritionRequest.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/nutrition-request-status'}},
19
- 'patient' => {'type'=>'Reference', 'path'=>'NutritionRequest.patient', 'min'=>1, 'max'=>1},
20
- 'encounter' => {'type'=>'Reference', 'path'=>'NutritionRequest.encounter', 'min'=>0, 'max'=>1},
19
+ 'patient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'NutritionRequest.patient', 'min'=>1, 'max'=>1},
20
+ 'encounter' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter'], 'type'=>'Reference', 'path'=>'NutritionRequest.encounter', 'min'=>0, 'max'=>1},
21
21
  'dateTime' => {'type'=>'dateTime', 'path'=>'NutritionRequest.dateTime', 'min'=>1, 'max'=>1},
22
- 'orderer' => {'type'=>'Reference', 'path'=>'NutritionRequest.orderer', 'min'=>0, 'max'=>1},
23
- 'allergyIntolerance' => {'type'=>'Reference', 'path'=>'NutritionRequest.allergyIntolerance', 'min'=>0, 'max'=>Float::INFINITY},
22
+ 'orderer' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'NutritionRequest.orderer', 'min'=>0, 'max'=>1},
23
+ 'allergyIntolerance' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/AllergyIntolerance'], 'type'=>'Reference', 'path'=>'NutritionRequest.allergyIntolerance', 'min'=>0, 'max'=>Float::INFINITY},
24
24
  'foodPreferenceModifier' => {'valid_codes'=>{'http://hl7.org/fhir/diet'=>['vegetarian', 'dairy-free', 'nut-free', 'gluten-free', 'vegan', 'halal', 'kosher', 'vegetarian', 'dairy-free', 'nut-free', 'gluten-free', 'vegan', 'halal', 'kosher']}, 'type'=>'CodeableConcept', 'path'=>'NutritionRequest.foodPreferenceModifier', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/encounter-diet'}},
25
25
  'excludeFoodModifier' => {'valid_codes'=>{'http://snomed.info/sct'=>['3718001', '4700006', '7661006', '7791007', '10249006', '10827009', '13577000', '14263006', '22836000', '23182003', '24515005', '25743006', '28230009', '28647000', '28942008', '39102003', '41834005', '43708003', '44027008', '44632005', '46329000', '50479000', '50593009', '51905005', '53875002', '54041009', '63045006', '63766005', '67324005', '70813002', '72511004', '74242007', '75476008', '77722008', '80743002', '82450006', '82566005', '83235009', '83595008', '85668006', '89707004', '89811004', '90677004', '91606004', '96364008', '102259006', '102260001', '102261002', '102262009', '102263004', '102264005', '102270004', '102271000', '102697003', '102698008', '102699000', '108743002', '109010000', '116957009', '117633004', '126076005', '126077001', '126078006', '126079003', '126080000', '126081001', '126082008', '127384006', '226017009', '226021002', '226022009', '226023004', '226024005', '226037008', '226041007', '226046002', '226061001', '226062008', '226358006', '226359003', '226367006', '226368001', '226491003', '226492005', '226493000', '226495007', '226496008', '226497004', '226498009', '226529007', '226530002', '226531003', '226532005', '226533000', '226534006', '226535007', '226536008', '226537004', '226538009', '226539001', '226540004', '226541000', '226542007', '226543002', '226544008', '226546005', '226547001', '226548006', '226549003', '226550003', '226551004', '226552006', '226553001', '226554007', '226555008', '226556009', '226557000', '226558005', '226559002', '226560007', '226561006', '226562004', '226563009', '226564003', '226565002', '226566001', '226567005', '226568000', '226569008', '226570009', '226571008', '226572001', '226574000', '226575004', '226576003', '226577007', '226578002', '226579005', '226580008', '226581007', '226582000', '226583005', '226584004', '226585003', '226587006', '226589009', '226590000', '226592008', '226593003', '226595005', '226596006', '226597002', '226598007', '226601002', '226604005', '226605006', '226611009', '226612002', '226613007', '226614001', '226616004', '226617008', '226618003', '226619006', '226620000', '226621001', '226622008', '226639005', '226640007', '226641006', '226642004', '226643009', '226644003', '226645002', '226647005', '226648000', '226649008', '226650008', '226651007', '226652000', '226653005', '226654004', '226655003', '226656002', '226657006', '226658001', '226659009', '226660004', '226661000', '226662007', '226663002', '226664008', '226665009', '226666005', '226667001', '226668006', '226669003', '226670002', '226671003', '226672005', '226673000', '226674006', '226675007', '226676008', '226677004', '226678009', '226679001', '226680003', '226681004', '226682006', '226683001', '226684007', '226685008', '226686009', '226687000', '226688005', '226689002', '226690006', '226691005', '226692003', '226693008', '226694002', '226695001', '226697009', '226698004', '226699007', '226700008', '226701007', '226702000', '226703005', '226704004', '226705003', '226706002', '226707006', '226708001', '226709009', '226710004', '226711000', '226712007', '226713002', '226714008', '226715009', '226716005', '226717001', '226718006', '226719003', '226720009', '226721008', '226722001', '226723006', '226724000', '226725004', '226726003', '226727007', '226728002', '226729005', '226730000', '226731001', '226732008', '226733003', '226734009', '226735005', '226736006', '226737002', '226738007', '226739004', '226740002', '226741003', '226742005', '226743000', '226744006', '226745007', '226746008', '226747004', '226748009', '226749001', '226750001', '226751002', '226752009', '226753004', '226754005', '226755006', '226756007', '226757003', '226758008', '226759000', '226760005', '226761009', '226762002', '226763007', '226764001', '226765000', '226766004', '226767008', '226768003', '226769006', '226770007', '226771006', '226774003', '226775002', '226776001', '226777005', '226778000', '226779008', '226780006', '226781005', '226782003', '226783008', '226784002', '226785001', '226786000', '226787009', '226788004', '226789007', '226790003', '226791004', '226793001', '226795008', '226796009', '226797000', '226798005', '226799002', '226800003', '226801004', '226802006', '226803001', '226804007', '226805008', '226806009', '226807000', '226808005', '226809002', '226810007', '226811006', '226812004', '226813009', '226814003', '226815002', '226816001', '226817005', '226818000', '226819008', '226820002', '226821003', '226822005', '226823000', '226824006', '226825007', '226826008', '226827004', '226828009', '226829001', '226830006', '226831005', '226832003', '226834002', '226835001', '226836000', '226837009', '226838004', '226839007', '226840009', '226841008', '226842001', '226843006', '226844000', '226845004', '226846003', '226847007', '226848002', '226849005', '226850005', '226851009', '226852002', '226853007', '226854001', '226855000', '226856004', '226857008', '226858003', '226859006', '226860001', '226861002', '226862009', '226863004', '226864005', '226865006', '226866007', '226867003', '226868008', '226869000', '226870004', '226871000', '226872007', '226873002', '226874008', '226875009', '226876005', '226877001', '226878006', '226879003', '226880000', '226881001', '226882008', '226883003', '226884009', '226885005', '226886006', '226887002', '226888007', '226889004', '226890008', '226891007', '226892000', '226894004', '226895003', '226896002', '226897006', '226898001', '226899009', '226900004', '226901000', '226902007', '226903002', '226904008', '226905009', '226906005', '226907001', '226908006', '226909003', '226910008', '226911007', '226912000', '226913005', '226914004', '226915003', '226916002', '226917006', '226918001', '226919009', '226920003', '226921004', '226922006', '226923001', '226924007', '226925008', '226926009', '226927000', '226928005', '226929002', '226930007', '226931006', '226932004', '226933009', '226934003', '226935002', '226936001', '226937005', '226938000', '226939008', '226940005', '226941009', '226942002', '226943007', '226944001', '226945000', '226946004', '226947008', '226948003', '226949006', '226950006', '226951005', '226952003', '226953008', '226954002', '226955001', '226956000', '226957009', '226958004', '226959007', '226960002', '226961003', '226962005', '226963000', '226964006', '226965007', '226966008', '226967004', '226968009', '226969001', '226970000', '226971001', '226972008', '226973003', '226974009', '226975005', '226976006', '226977002', '226978007', '226979004', '226980001', '226981002', '226982009', '226983004', '226984005', '226985006', '226987003', '226988008', '226989000', '226990009', '226991008', '226992001', '226993006', '226994000', '226995004', '226996003', '226997007', '226998002', '226999005', '227000008', '227001007', '227002000', '227003005', '227004004', '227005003', '227006002', '227007006', '227008001', '227009009', '227010004', '227011000', '227012007', '227013002', '227014008', '227015009', '227016005', '227017001', '227018006', '227019003', '227020009', '227021008', '227022001', '227023006', '227024000', '227025004', '227026003', '227027007', '227028002', '227029005', '227030000', '227031001', '227032008', '227033003', '227034009', '227036006', '227037002', '227038007', '227040002', '227041003', '227042005', '227043000', '227044006', '227045007', '227046008', '227047004', '227048009', '227049001', '227050001', '227051002', '227052009', '227053004', '227054005', '227055006', '227056007', '227057003', '227058008', '227059000', '227060005', '227061009', '227062002', '227063007', '227064001', '227065000', '227066004', '227067008', '227068003', '227069006', '227070007', '227071006', '227072004', '227073009', '227074003', '227075002', '227076001', '227078000', '227079008', '227080006', '227081005', '227082003', '227083008', '227084002', '227085001', '227086000', '227087009', '227088004', '227089007', '227091004', '227092006', '227093001', '227094007', '227095008', '227096009', '227097000', '227098005', '227099002', '227100005', '227101009', '227102002', '227103007', '227104001', '227105000', '227106004', '227107008', '227108003', '227109006', '227110001', '227111002', '227112009', '227113004', '227114005', '227115006', '227116007', '227117003', '227118008', '227119000', '227120006', '227121005', '227122003', '227123008', '227124002', '227125001', '227126000', '227127009', '227128004', '227129007', '227130002', '227131003', '227132005', '227133000', '227134006', '227135007', '227136008', '227137004', '227138009', '227139001', '227140004', '227141000', '227142007', '227143002', '227144008', '227145009', '227146005', '227147001', '227148006', '227149003', '227150003', '227151004', '227152006', '227153001', '227154007', '227155008', '227156009', '227157000', '227158005', '227159002', '227160007', '227161006', '227162004', '227163009', '227164003', '227165002', '227167005', '227168000', '227169008', '227170009', '227171008', '227172001', '227173006', '227174000', '227175004', '227176003', '227177007', '227178002', '227179005', '227180008', '227181007', '227182000', '227183005', '227184004', '227185003', '227186002', '227187006', '227188001', '227189009', '227190000', '227191001', '227193003', '227194009', '227195005', '227196006', '227197002', '227198007', '227199004', '227200001', '227201002', '227202009', '227203004', '227204005', '227205006', '227206007', '227207003', '227208008', '227209000', '227210005', '227212002', '227213007', '227214001', '227215000', '227216004', '227217008', '227218003', '227219006', '227220000', '227221001', '227222008', '227223003', '227224009', '227225005', '227226006', '227227002', '227228007', '227229004', '227230009', '227231008', '227232001', '227233006', '227234000', '227235004', '227236003', '227237007', '227238002', '227239005', '227240007', '227241006', '227242004', '227243009', '227244003', '227245002', '227246001', '227247005', '227248000', '227249008', '227250008', '227251007', '227252000', '227253005', '227254004', '227255003', '227256002', '227257006', '227258001', '227259009', '227260004', '227261000', '227262007', '227263002', '227264008', '227265009', '227266005', '227267001', '227268006', '227269003', '227270002', '227271003', '227272005', '227273000', '227274006', '227275007', '227276008', '227277004', '227278009', '227279001', '227280003', '227281004', '227282006', '227283001', '227284007', '227285008', '227286009', '227287000', '227288005', '227289002', '227290006', '227291005', '227292003', '227294002', '227295001', '227296000', '227297009', '227298004', '227299007', '227300004', '227301000', '227302007', '227303002', '227304008', '227305009', '227306005', '227307001', '227308006', '227309003', '227310008', '227311007', '227312000', '227313005', '227314004', '227315003', '227316002', '227317006', '227318001', '227319009', '227320003', '227321004', '227322006', '227323001', '227324007', '227325008', '227326009', '227327000', '227328005', '227329002', '227330007', '227331006', '227332004', '227333009', '227334003', '227335002', '227336001', '227337005', '227338000', '227339008', '227340005', '227341009', '227342002', '227343007', '227344001', '227345000', '227346004', '227347008', '227348003', '227349006', '227350006', '227351005', '227352003', '227353008', '227354002', '227355001', '227356000', '227357009', '227358004', '227359007', '227360002', '227361003', '227362005', '227363000', '227364006', '227365007', '227366008', '227367004', '227368009', '227369001', '227370000', '227371001', '227372008', '227373003', '227374009', '227375005', '227376006', '227377002', '227378007', '227379004', '227380001', '227381002', '227382009', '227383004', '227384005', '227385006', '227386007', '227387003', '227388008', '227389000', '227390009', '227391008', '227392001', '227393006', '227395004', '227396003', '227397007', '227398002', '227399005', '227400003', '227401004', '227402006', '227403001', '227404007', '227405008', '227406009', '227407000', '227408005', '227409002', '227410007', '227411006', '227412004', '227413009', '227414003', '227415002', '227416001', '227417005', '227418000', '227419008', '227420002', '227421003', '227422005', '227423000', '227424006', '227425007', '227426008', '227427004', '227428009', '227429001', '227430006', '227431005', '227432003', '227433008', '227434002', '227435001', '227436000', '227437009', '227438004', '227439007', '227440009', '227441008', '227442001', '227443006', '227444000', '227445004', '227446003', '227447007', '227448002', '227449005', '227450005', '227451009', '227452002', '227453007', '227454001', '227455000', '227456004', '227457008', '227458003', '227459006', '227460001', '227461002', '227462009', '227463004', '227464005', '227465006', '227466007', '227467003', '227468008', '227469000', '227470004', '227471000', '227472007', '227473002', '227474008', '227475009', '227476005', '227477001', '227478006', '227479003', '227480000', '227481001', '227482008', '227483003', '227484009', '227485005', '227486006', '227487002', '227488007', '227489004', '227490008', '227491007', '227492000', '227493005', '227495003', '227496002', '227497006', '227498001', '227499009', '227500000', '227501001', '227502008', '227503003', '227504009', '227505005', '227506006', '227507002', '227508007', '227509004', '227510009', '227511008', '227512001', '227513006', '227514000', '227515004', '227516003', '227517007', '227518002', '227519005', '227520004', '227521000', '227522007', '227523002', '227524008', '227525009', '227526005', '227527001', '227528006', '227529003', '227530008', '227531007', '227532000', '227533005', '227534004', '227535003', '227536002', '227537006', '227538001', '227539009', '227540006', '227541005', '227542003', '227543008', '227544002', '227545001', '227546000', '227547009', '227548004', '227549007', '227550007', '227551006', '227552004', '227553009', '227554003', '227556001', '227557005', '227559008', '227560003', '227563001', '227564007', '227565008', '227566009', '227567000', '227568005', '227569002', '227570001', '227571002', '227572009', '227573004', '227574005', '227575006', '227576007', '227577003', '227578008', '227579000', '227580002', '227581003', '227582005', '227583000', '227584006', '227585007', '227586008', '227587004', '227589001', '227590005', '227591009', '227592002', '227594001', '227595000', '227597008', '227598003', '227599006', '227600009', '227601008', '227602001', '227603006', '227604000', '227605004', '227606003', '227607007', '227608002', '227610000', '227611001', '227612008', '227613003', '227620005', '227621009', '227622002', '227623007', '227624001', '227625000', '227626004', '227627008', '227628003', '227629006', '227630001', '227631002', '227632009', '227633004', '227634005', '227635006', '227636007', '227637003', '227638008', '227639000', '227640003', '227641004', '227642006', '227643001', '227644007', '227645008', '227646009', '227648005', '227649002', '227650002', '227651003', '227652005', '227653000', '227654006', '227655007', '227656008', '227657004', '227658009', '227659001', '227660006', '227661005', '227662003', '227663008', '227664002', '227665001', '227666000', '227667009', '227668004', '227669007', '227670008', '227671007', '227672000', '227673005', '227674004', '227675003', '227676002', '227677006', '227678001', '227679009', '227680007', '227681006', '227682004', '227683009', '227684003', '227685002', '227686001', '227687005', '227688000', '227689008', '227690004', '227691000', '227692007', '227693002', '227694008', '227696005', '227698006', '227699003', '227700002', '227701003', '227702005', '227703000', '227704006', '227705007', '227706008', '227707004', '227708009', '227709001', '227710006', '227711005', '227712003', '227713008', '227715001', '227716000', '227717009', '227718004', '227719007', '227720001', '227721002', '227722009', '227723004', '227724005', '227725006', '227726007', '227727003', '227728008', '227729000', '227730005', '227731009', '227732002', '227733007', '227734001', '227735000', '227736004', '227737008', '227738003', '227739006', '227740008', '227741007', '227742000', '227743005', '227744004', '227745003', '227746002', '227747006', '227748001', '227749009', '227750009', '227751008', '227752001', '227753006', '227754000', '227755004', '227756003', '227757007', '227758002', '227759005', '227760000', '227761001', '227762008', '227763003', '227764009', '227765005', '227766006', '227767002', '227768007', '227769004', '227770003', '227771004', '227772006', '227773001', '227774007', '227775008', '227776009', '227777000', '227778005', '227779002', '227780004', '227781000', '227782007', '227783002', '227784008', '227785009', '227786005', '227787001', '227788006', '227789003', '227790007', '227791006', '227792004', '227793009', '227794003', '227795002', '227796001', '227797005', '227799008', '227800007', '227801006', '227802004', '227803009', '227804003', '227805002', '227806001', '227807005', '227808000', '227809008', '227810003', '227811004', '227812006', '227813001', '227814007', '227815008', '227816009', '227817000', '227818005', '227819002', '227821007', '227822000', '227823005', '227824004', '227825003', '227826002', '227827006', '227828001', '227829009', '227830004', '227831000', '227832007', '227833002', '227834008', '227835009', '227836005', '227837001', '227838006', '227839003', '227841002', '227842009', '227843004', '227844005', '227845006', '227846007', '227847003', '227848008', '227849000', '227850000', '227851001', '227852008', '227853003', '227854009', '227855005', '227856006', '227857002', '227858007', '227859004', '227860009', '227861008', '227862001', '227863006', '227864000', '227865004', '227866003', '227867007', '227868002', '227869005', '227870006', '227871005', '227872003', '227873008', '227874002', '227875001', '227876000', '227877009', '227878004', '227879007', '227880005', '227881009', '227882002', '227883007', '227884001', '227885000', '227886004', '227887008', '227888003', '227889006', '227890002', '227891003', '227892005', '227893000', '227894006', '227895007', '227896008', '227897004', '227898009', '227899001', '227901005', '227902003', '227903008', '227904002', '227905001', '227906000', '227907009', '227908004', '227909007', '227910002', '227911003', '227912005', '227914006', '227915007', '227916008', '227917004', '227918009', '227919001', '227920007', '227921006', '227922004', '227923009', '227924003', '227925002', '227926001', '227927005', '227928000', '227929008', '227930003', '227931004', '227932006', '227933001', '227934007', '227935008', '227936009', '227937000', '227938005', '227939002', '227940000', '227941001', '227942008', '227943003', '227944009', '227945005', '227946006', '227947002', '227948007', '227949004', '227950004', '227951000', '227952007', '227953002', '227954008', '227955009', '227956005', '227957001', '227958006', '227959003', '227960008', '227961007', '227962000', '227963005', '227964004', '227965003', '227966002', '227967006', '227968001', '227969009', '227970005', '227971009', '227972002', '227973007', '227974001', '227975000', '227976004', '227977008', '227978003', '227979006', '227980009', '227981008', '229848001', '229849009', '229850009', '229851008', '229852001', '229853006', '229854000', '229855004', '229857007', '229858002', '229859005', '229860000', '229861001', '229862008', '229863003', '229864009', '229865005', '229866006', '229867002', '229868007', '229869004', '229870003', '229871004', '229872006', '229873001', '229874007', '229875008', '229876009', '229877000', '229878005', '229879002', '229880004', '229883002', '229884008', '229885009', '229887001', '229888006', '229889003', '229890007', '229891006', '229892004', '229893009', '229894003', '229895002', '229896001', '229897005', '229898000', '229899008', '229900003', '229901004', '229902006', '229903001', '229904007', '229905008', '229906009', '229907000', '229908005', '229909002', '229910007', '229921003', '229922005', '229923000', '229924006', '229925007', '229926008', '229928009', '229929001', '229930006', '229932003', '229933008', '229934002', '229936000', '229937009', '229938004', '229939007', '229940009', '229941008', '229942001', '229943006', '229944000', '229946003', '229947007', '229948002', '229949005', '229950005', '229951009', '229952002', '229953007', '229954001', '229955000', '230024006', '230025007', '230026008', '230027004', '230028009', '230029001', '230030006', '230031005', '230032003', '230033008', '230034002', '230035001', '230036000', '230037009', '230038004', '230039007', '230041008', '230045004', '230046003', '230047007', '230048002', '230049005', '230050005', '230052002', '230053007', '230054001', '230055000', '255621006', '255685004', '256249000', '256306003', '256307007', '256308002', '256309005', '256310000', '256311001', '256313003', '256314009', '256315005', '256316006', '256317002', '256318007', '256319004', '256320005', '256322002', '256323007', '256325000', '256326004', '256327008', '256329006', '256330001', '256331002', '256349002', '256350002', '256351003', '256352005', '256353000', '256354006', '256355007', '256442007', '256443002', '256444008', '260167008', '260168003', '260170007', '260171006', '260172004', '260176001', '260177005', '260179008', '260180006', '260184002', '260186000', '260188004', '260189007', '260190003', '260201000', '260204008', '260205009', '261242008', '261277008', '261315009', '264294006', '264295007', '264322002', '264330001', '264331002', '264332009', '264334005', '264335006', '264337003', '276338007', '278393006', '278839003', '278840001', '279651008', '280990009', '284068003', '284458003', '284459006', '284460001', '284461002', '284462009', '284463004', '286550009', '289966000', '303300008', '303301007', '314113006', '386127005', '391737006', '391858005', '395734009', '401620006', '406758004', '406773003', '406774009', '411973001', '412028008', '412055004', '412056003', '412060000', '412061001', '412062008', '412063003', '412064009', '412065005', '412066006', '412068007', '412071004', '412113006', '412139009', '412202001', '412357001', '412533000', '412552006', '412601002', '413480003', '414074006', '414261009', '414290003', '414291004', '414542006', '414983003', '415041004', '415562007', '415768008', '415769000', '415842005', '416198000', '417889008', '418504009', '419420009', '420053004', '420318001', '420823005', '421491002', '421619005', '421884008', '422721009', '422932000', '426701005', '709449000', '709450000', '710035004', '710036003', '710037007', '710038002', '710039005', '710040007', '710041006', '710042004', '710043009', '710044003', '710048000', '710050008', '710171001', '710172008', '710173003', '710175005', '710176006', '710178007', '710179004', '710180001', '710181002', '710182009', '710183004', '710184005', '710185006', '710220009', '710224000', '710226003', '710276001', '711611001', '712685000', '712780002', '713310002', '713311003', '713336009', '713394005', '713589009', '713648000', '669361000168106']}, 'type'=>'CodeableConcept', 'path'=>'NutritionRequest.excludeFoodModifier', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/food-type'}},
26
26
  'oralDiet' => {'type'=>'NutritionRequest::OralDiet', 'path'=>'NutritionRequest.oralDiet', 'min'=>0, 'max'=>1},
@@ -193,11 +193,11 @@ module FHIR
193
193
  attr_accessor :modifierExtension # 0-* [ Extension ]
194
194
  attr_accessor :identifier # 0-* [ Identifier ]
195
195
  attr_accessor :status # 0-1 code
196
- attr_accessor :patient # 1-1 Reference()
197
- attr_accessor :encounter # 0-1 Reference()
196
+ attr_accessor :patient # 1-1 Reference(Patient)
197
+ attr_accessor :encounter # 0-1 Reference(Encounter)
198
198
  attr_accessor :dateTime # 1-1 dateTime
199
- attr_accessor :orderer # 0-1 Reference()
200
- attr_accessor :allergyIntolerance # 0-* [ Reference() ]
199
+ attr_accessor :orderer # 0-1 Reference(Practitioner)
200
+ attr_accessor :allergyIntolerance # 0-* [ Reference(AllergyIntolerance) ]
201
201
  attr_accessor :foodPreferenceModifier # 0-* [ CodeableConcept ]
202
202
  attr_accessor :excludeFoodModifier # 0-* [ CodeableConcept ]
203
203
  attr_accessor :oralDiet # 0-1 NutritionRequest::OralDiet