fhir_dstu2_models 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +1 -1
  3. data/.github/workflows/ruby.yml +2 -1
  4. data/.rubocop.yml +7 -1
  5. data/.rubocop_todo.yml +56 -161
  6. data/.ruby-version +1 -0
  7. data/.simplecov +1 -5
  8. data/.tool-versions +1 -0
  9. data/Gemfile.lock +37 -35
  10. data/Guardfile +1 -1
  11. data/fhir_dstu2_models.gemspec +2 -1
  12. data/lib/fhir_dstu2_models/bootstrap/definitions.rb +18 -4
  13. data/lib/fhir_dstu2_models/bootstrap/field.rb +2 -2
  14. data/lib/fhir_dstu2_models/bootstrap/generator.rb +6 -4
  15. data/lib/fhir_dstu2_models/bootstrap/hashable.rb +6 -5
  16. data/lib/fhir_dstu2_models/bootstrap/json.rb +2 -2
  17. data/lib/fhir_dstu2_models/bootstrap/model.rb +45 -32
  18. data/lib/fhir_dstu2_models/bootstrap/preprocess.rb +19 -11
  19. data/lib/fhir_dstu2_models/bootstrap/xml.rb +9 -7
  20. data/lib/fhir_dstu2_models/deprecate.rb +1 -0
  21. data/lib/fhir_dstu2_models/fhir/metadata.rb +19 -21
  22. data/lib/fhir_dstu2_models/fhir/resources/Account.rb +20 -20
  23. data/lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb +34 -34
  24. data/lib/fhir_dstu2_models/fhir/resources/Appointment.rb +28 -28
  25. data/lib/fhir_dstu2_models/fhir/resources/AppointmentResponse.rb +17 -17
  26. data/lib/fhir_dstu2_models/fhir/resources/AuditEvent.rb +66 -66
  27. data/lib/fhir_dstu2_models/fhir/resources/Basic.rb +14 -14
  28. data/lib/fhir_dstu2_models/fhir/resources/Binary.rb +7 -7
  29. data/lib/fhir_dstu2_models/fhir/resources/BodySite.rb +15 -15
  30. data/lib/fhir_dstu2_models/fhir/resources/Bundle.rb +45 -45
  31. data/lib/fhir_dstu2_models/fhir/resources/CarePlan.rb +63 -63
  32. data/lib/fhir_dstu2_models/fhir/resources/Claim.rb +118 -118
  33. data/lib/fhir_dstu2_models/fhir/resources/ClaimResponse.rb +122 -124
  34. data/lib/fhir_dstu2_models/fhir/resources/ClinicalImpression.rb +42 -42
  35. data/lib/fhir_dstu2_models/fhir/resources/Communication.rb +28 -28
  36. data/lib/fhir_dstu2_models/fhir/resources/CommunicationRequest.rb +30 -30
  37. data/lib/fhir_dstu2_models/fhir/resources/Composition.rb +46 -46
  38. data/lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb +53 -53
  39. data/lib/fhir_dstu2_models/fhir/resources/Condition.rb +44 -44
  40. data/lib/fhir_dstu2_models/fhir/resources/Conformance.rb +138 -138
  41. data/lib/fhir_dstu2_models/fhir/resources/Contract.rb +98 -98
  42. data/lib/fhir_dstu2_models/fhir/resources/Coverage.rb +23 -23
  43. data/lib/fhir_dstu2_models/fhir/resources/DataElement.rb +35 -35
  44. data/lib/fhir_dstu2_models/fhir/resources/DetectedIssue.rb +25 -25
  45. data/lib/fhir_dstu2_models/fhir/resources/Device.rb +25 -25
  46. data/lib/fhir_dstu2_models/fhir/resources/DeviceComponent.rb +25 -25
  47. data/lib/fhir_dstu2_models/fhir/resources/DeviceMetric.rb +25 -25
  48. data/lib/fhir_dstu2_models/fhir/resources/DeviceUseRequest.rb +25 -25
  49. data/lib/fhir_dstu2_models/fhir/resources/DeviceUseStatement.rb +21 -21
  50. data/lib/fhir_dstu2_models/fhir/resources/DiagnosticOrder.rb +36 -36
  51. data/lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb +32 -32
  52. data/lib/fhir_dstu2_models/fhir/resources/DocumentManifest.rb +31 -31
  53. data/lib/fhir_dstu2_models/fhir/resources/DocumentReference.rb +51 -51
  54. data/lib/fhir_dstu2_models/fhir/resources/DomainResource.rb +12 -12
  55. data/lib/fhir_dstu2_models/fhir/resources/EligibilityRequest.rb +16 -16
  56. data/lib/fhir_dstu2_models/fhir/resources/EligibilityResponse.rb +19 -19
  57. data/lib/fhir_dstu2_models/fhir/resources/Encounter.rb +59 -59
  58. data/lib/fhir_dstu2_models/fhir/resources/EnrollmentRequest.rb +19 -19
  59. data/lib/fhir_dstu2_models/fhir/resources/EnrollmentResponse.rb +19 -19
  60. data/lib/fhir_dstu2_models/fhir/resources/EpisodeOfCare.rb +31 -31
  61. data/lib/fhir_dstu2_models/fhir/resources/ExplanationOfBenefit.rb +19 -19
  62. data/lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb +39 -39
  63. data/lib/fhir_dstu2_models/fhir/resources/Flag.rb +17 -17
  64. data/lib/fhir_dstu2_models/fhir/resources/Goal.rb +30 -30
  65. data/lib/fhir_dstu2_models/fhir/resources/Group.rb +33 -33
  66. data/lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb +48 -48
  67. data/lib/fhir_dstu2_models/fhir/resources/ImagingObjectSelection.rb +41 -41
  68. data/lib/fhir_dstu2_models/fhir/resources/ImagingStudy.rb +48 -48
  69. data/lib/fhir_dstu2_models/fhir/resources/Immunization.rb +52 -52
  70. data/lib/fhir_dstu2_models/fhir/resources/ImmunizationRecommendation.rb +35 -35
  71. data/lib/fhir_dstu2_models/fhir/resources/ImplementationGuide.rb +67 -67
  72. data/lib/fhir_dstu2_models/fhir/resources/List.rb +29 -29
  73. data/lib/fhir_dstu2_models/fhir/resources/Location.rb +27 -27
  74. data/lib/fhir_dstu2_models/fhir/resources/Media.rb +21 -21
  75. data/lib/fhir_dstu2_models/fhir/resources/Medication.rb +40 -40
  76. data/lib/fhir_dstu2_models/fhir/resources/MedicationAdministration.rb +36 -36
  77. data/lib/fhir_dstu2_models/fhir/resources/MedicationDispense.rb +49 -49
  78. data/lib/fhir_dstu2_models/fhir/resources/MedicationOrder.rb +57 -57
  79. data/lib/fhir_dstu2_models/fhir/resources/MedicationStatement.rb +41 -41
  80. data/lib/fhir_dstu2_models/fhir/resources/MessageHeader.rb +40 -40
  81. data/lib/fhir_dstu2_models/fhir/resources/NamingSystem.rb +34 -34
  82. data/lib/fhir_dstu2_models/fhir/resources/NutritionOrder.rb +67 -67
  83. data/lib/fhir_dstu2_models/fhir/resources/Observation.rb +68 -68
  84. data/lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb +51 -51
  85. data/lib/fhir_dstu2_models/fhir/resources/OperationOutcome.rb +21 -21
  86. data/lib/fhir_dstu2_models/fhir/resources/Order.rb +23 -23
  87. data/lib/fhir_dstu2_models/fhir/resources/OrderResponse.rb +16 -16
  88. data/lib/fhir_dstu2_models/fhir/resources/Organization.rb +24 -24
  89. data/lib/fhir_dstu2_models/fhir/resources/Parameters.rb +48 -48
  90. data/lib/fhir_dstu2_models/fhir/resources/Patient.rb +54 -54
  91. data/lib/fhir_dstu2_models/fhir/resources/PaymentNotice.rb +19 -19
  92. data/lib/fhir_dstu2_models/fhir/resources/PaymentReconciliation.rb +39 -39
  93. data/lib/fhir_dstu2_models/fhir/resources/Person.rb +24 -24
  94. data/lib/fhir_dstu2_models/fhir/resources/Practitioner.rb +36 -36
  95. data/lib/fhir_dstu2_models/fhir/resources/Procedure.rb +42 -42
  96. data/lib/fhir_dstu2_models/fhir/resources/ProcedureRequest.rb +27 -27
  97. data/lib/fhir_dstu2_models/fhir/resources/ProcessRequest.rb +29 -29
  98. data/lib/fhir_dstu2_models/fhir/resources/ProcessResponse.rb +27 -27
  99. data/lib/fhir_dstu2_models/fhir/resources/Provenance.rb +39 -39
  100. data/lib/fhir_dstu2_models/fhir/resources/Questionnaire.rb +40 -40
  101. data/lib/fhir_dstu2_models/fhir/resources/QuestionnaireResponse.rb +50 -50
  102. data/lib/fhir_dstu2_models/fhir/resources/ReferralRequest.rb +25 -25
  103. data/lib/fhir_dstu2_models/fhir/resources/RelatedPerson.rb +19 -19
  104. data/lib/fhir_dstu2_models/fhir/resources/Resource.rb +5 -5
  105. data/lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb +30 -30
  106. data/lib/fhir_dstu2_models/fhir/resources/Schedule.rb +14 -14
  107. data/lib/fhir_dstu2_models/fhir/resources/SearchParameter.rb +29 -29
  108. data/lib/fhir_dstu2_models/fhir/resources/Slot.rb +17 -17
  109. data/lib/fhir_dstu2_models/fhir/resources/Specimen.rb +45 -45
  110. data/lib/fhir_dstu2_models/fhir/resources/StructureDefinition.rb +54 -54
  111. data/lib/fhir_dstu2_models/fhir/resources/Subscription.rb +24 -24
  112. data/lib/fhir_dstu2_models/fhir/resources/Substance.rb +26 -26
  113. data/lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb +20 -20
  114. data/lib/fhir_dstu2_models/fhir/resources/SupplyRequest.rb +25 -25
  115. data/lib/fhir_dstu2_models/fhir/resources/TestScript.rb +140 -140
  116. data/lib/fhir_dstu2_models/fhir/resources/ValueSet.rb +108 -108
  117. data/lib/fhir_dstu2_models/fhir/resources/VisionPrescription.rb +35 -35
  118. data/lib/fhir_dstu2_models/fhir/types/Address.rb +16 -16
  119. data/lib/fhir_dstu2_models/fhir/types/Annotation.rb +10 -10
  120. data/lib/fhir_dstu2_models/fhir/types/Attachment.rb +14 -14
  121. data/lib/fhir_dstu2_models/fhir/types/BackboneElement.rb +7 -7
  122. data/lib/fhir_dstu2_models/fhir/types/CodeableConcept.rb +8 -8
  123. data/lib/fhir_dstu2_models/fhir/types/Coding.rb +11 -11
  124. data/lib/fhir_dstu2_models/fhir/types/ContactPoint.rb +11 -11
  125. data/lib/fhir_dstu2_models/fhir/types/Element.rb +3 -3
  126. data/lib/fhir_dstu2_models/fhir/types/ElementDefinition.rb +263 -263
  127. data/lib/fhir_dstu2_models/fhir/types/Extension.rb +40 -40
  128. data/lib/fhir_dstu2_models/fhir/types/HumanName.rb +13 -13
  129. data/lib/fhir_dstu2_models/fhir/types/Identifier.rb +12 -12
  130. data/lib/fhir_dstu2_models/fhir/types/Meta.rb +11 -11
  131. data/lib/fhir_dstu2_models/fhir/types/Narrative.rb +8 -8
  132. data/lib/fhir_dstu2_models/fhir/types/Period.rb +8 -8
  133. data/lib/fhir_dstu2_models/fhir/types/Quantity.rb +11 -11
  134. data/lib/fhir_dstu2_models/fhir/types/Range.rb +8 -8
  135. data/lib/fhir_dstu2_models/fhir/types/Ratio.rb +8 -8
  136. data/lib/fhir_dstu2_models/fhir/types/Reference.rb +5 -5
  137. data/lib/fhir_dstu2_models/fhir/types/SampledData.rb +13 -13
  138. data/lib/fhir_dstu2_models/fhir/types/Signature.rb +12 -12
  139. data/lib/fhir_dstu2_models/fhir/types/Timing.rb +24 -24
  140. data/lib/fhir_dstu2_models/fhir.rb +7 -6
  141. data/lib/fhir_dstu2_models/fhir_ext/element_definition.rb +3 -0
  142. data/lib/fhir_dstu2_models/fhir_ext/structure_definition.rb +19 -14
  143. data/lib/fhir_dstu2_models/fhir_ext/structure_definition_compare.rb +10 -0
  144. data/lib/fhir_dstu2_models/fhir_ext/structure_definition_finding.rb +2 -2
  145. data/lib/fhir_dstu2_models/fluentpath/evaluate.rb +18 -11
  146. data/lib/fhir_dstu2_models/fluentpath/expression.rb +3 -5
  147. data/lib/fhir_dstu2_models/fluentpath/parse.rb +7 -4
  148. data/lib/fhir_dstu2_models/version.rb +1 -1
  149. metadata +11 -9
@@ -7,40 +7,40 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['identifier']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'ClaimResponse.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'ClaimResponse.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'ClaimResponse.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'ClaimResponse.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'text' => {'type'=>'Narrative', 'path'=>'ClaimResponse.text', 'min'=>0, 'max'=>1},
15
- 'contained' => {'type'=>'Resource', 'path'=>'ClaimResponse.contained', 'min'=>0, 'max'=>Float::INFINITY},
16
- 'extension' => {'type'=>'Extension', 'path'=>'ClaimResponse.extension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'ClaimResponse.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'identifier' => {'type'=>'Identifier', 'path'=>'ClaimResponse.identifier', 'min'=>0, 'max'=>Float::INFINITY},
19
- 'request' => {'type'=>'Reference', 'path'=>'ClaimResponse.request', 'min'=>0, 'max'=>1},
20
- 'ruleset' => {'valid_codes'=>{'http://hl7.org/fhir/ruleset'=>['x12-4010', 'x12-5010', 'x12-7010', 'cdanet-v2', 'cdanet-v4', 'cpha-3']}, 'type'=>'Coding', 'path'=>'ClaimResponse.ruleset', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/ruleset'}},
21
- 'originalRuleset' => {'valid_codes'=>{'http://hl7.org/fhir/ruleset'=>['x12-4010', 'x12-5010', 'x12-7010', 'cdanet-v2', 'cdanet-v4', 'cpha-3']}, 'type'=>'Coding', 'path'=>'ClaimResponse.originalRuleset', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/ruleset'}},
22
- 'created' => {'type'=>'dateTime', 'path'=>'ClaimResponse.created', 'min'=>0, 'max'=>1},
23
- 'organization' => {'type'=>'Reference', 'path'=>'ClaimResponse.organization', 'min'=>0, 'max'=>1},
24
- 'requestProvider' => {'type'=>'Reference', 'path'=>'ClaimResponse.requestProvider', 'min'=>0, 'max'=>1},
25
- 'requestOrganization' => {'type'=>'Reference', 'path'=>'ClaimResponse.requestOrganization', 'min'=>0, 'max'=>1},
26
- 'outcome' => {'valid_codes'=>{'http://hl7.org/fhir/remittance-outcome'=>['complete', 'error']}, 'type'=>'code', 'path'=>'ClaimResponse.outcome', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/remittance-outcome'}},
27
- 'disposition' => {'type'=>'string', 'path'=>'ClaimResponse.disposition', 'min'=>0, 'max'=>1},
28
- 'payeeType' => {'valid_codes'=>{'http://hl7.org/fhir/payeetype'=>['subscriber', 'provider', 'other']}, 'type'=>'Coding', 'path'=>'ClaimResponse.payeeType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/payeetype'}},
29
- 'item' => {'type'=>'ClaimResponse::Item', 'path'=>'ClaimResponse.item', 'min'=>0, 'max'=>Float::INFINITY},
30
- 'addItem' => {'type'=>'ClaimResponse::AddItem', 'path'=>'ClaimResponse.addItem', 'min'=>0, 'max'=>Float::INFINITY},
31
- 'error' => {'type'=>'ClaimResponse::Error', 'path'=>'ClaimResponse.error', 'min'=>0, 'max'=>Float::INFINITY},
32
- 'totalCost' => {'type'=>'Quantity', 'path'=>'ClaimResponse.totalCost', 'min'=>0, 'max'=>1},
33
- 'unallocDeductable' => {'type'=>'Quantity', 'path'=>'ClaimResponse.unallocDeductable', 'min'=>0, 'max'=>1},
34
- 'totalBenefit' => {'type'=>'Quantity', 'path'=>'ClaimResponse.totalBenefit', 'min'=>0, 'max'=>1},
35
- 'paymentAdjustment' => {'type'=>'Quantity', 'path'=>'ClaimResponse.paymentAdjustment', 'min'=>0, 'max'=>1},
36
- 'paymentAdjustmentReason' => {'valid_codes'=>{'http://hl7.org/fhir/adjustment-reason'=>['A001', 'A002']}, 'type'=>'Coding', 'path'=>'ClaimResponse.paymentAdjustmentReason', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/adjustment-reason'}},
37
- 'paymentDate' => {'type'=>'date', 'path'=>'ClaimResponse.paymentDate', 'min'=>0, 'max'=>1},
38
- 'paymentAmount' => {'type'=>'Quantity', 'path'=>'ClaimResponse.paymentAmount', 'min'=>0, 'max'=>1},
39
- 'paymentRef' => {'type'=>'Identifier', 'path'=>'ClaimResponse.paymentRef', 'min'=>0, 'max'=>1},
40
- 'reserved' => {'valid_codes'=>{'http://hl7.org/fhir/fundsreserve'=>['patient', 'provider', 'none']}, 'type'=>'Coding', 'path'=>'ClaimResponse.reserved', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/fundsreserve'}},
41
- 'form' => {'valid_codes'=>{'http://hl7.org/fhir/forms-codes'=>['1', '2']}, 'type'=>'Coding', 'path'=>'ClaimResponse.form', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/forms'}},
42
- 'note' => {'type'=>'ClaimResponse::Note', 'path'=>'ClaimResponse.note', 'min'=>0, 'max'=>Float::INFINITY},
43
- 'coverage' => {'type'=>'ClaimResponse::Coverage', 'path'=>'ClaimResponse.coverage', 'min'=>0, 'max'=>Float::INFINITY}
10
+ 'id' => { 'type' => 'id', 'path' => 'ClaimResponse.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'ClaimResponse.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'ClaimResponse.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'ClaimResponse.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'text' => { 'type' => 'Narrative', 'path' => 'ClaimResponse.text', 'min' => 0, 'max' => 1 },
15
+ 'contained' => { 'type' => 'Resource', 'path' => 'ClaimResponse.contained', 'min' => 0, 'max' => Float::INFINITY },
16
+ 'extension' => { 'type' => 'Extension', 'path' => 'ClaimResponse.extension', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'ClaimResponse.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'ClaimResponse.identifier', 'min' => 0, 'max' => Float::INFINITY },
19
+ 'request' => { 'type' => 'Reference', 'path' => 'ClaimResponse.request', 'min' => 0, 'max' => 1 },
20
+ 'ruleset' => { 'valid_codes' => { 'http://hl7.org/fhir/ruleset' => ['x12-4010', 'x12-5010', 'x12-7010', 'cdanet-v2', 'cdanet-v4', 'cpha-3'] }, 'type' => 'Coding', 'path' => 'ClaimResponse.ruleset', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/ruleset' } },
21
+ 'originalRuleset' => { 'valid_codes' => { 'http://hl7.org/fhir/ruleset' => ['x12-4010', 'x12-5010', 'x12-7010', 'cdanet-v2', 'cdanet-v4', 'cpha-3'] }, 'type' => 'Coding', 'path' => 'ClaimResponse.originalRuleset', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/ruleset' } },
22
+ 'created' => { 'type' => 'dateTime', 'path' => 'ClaimResponse.created', 'min' => 0, 'max' => 1 },
23
+ 'organization' => { 'type' => 'Reference', 'path' => 'ClaimResponse.organization', 'min' => 0, 'max' => 1 },
24
+ 'requestProvider' => { 'type' => 'Reference', 'path' => 'ClaimResponse.requestProvider', 'min' => 0, 'max' => 1 },
25
+ 'requestOrganization' => { 'type' => 'Reference', 'path' => 'ClaimResponse.requestOrganization', 'min' => 0, 'max' => 1 },
26
+ 'outcome' => { 'valid_codes' => { 'http://hl7.org/fhir/remittance-outcome' => ['complete', 'error'] }, 'type' => 'code', 'path' => 'ClaimResponse.outcome', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/remittance-outcome' } },
27
+ 'disposition' => { 'type' => 'string', 'path' => 'ClaimResponse.disposition', 'min' => 0, 'max' => 1 },
28
+ 'payeeType' => { 'valid_codes' => { 'http://hl7.org/fhir/payeetype' => ['subscriber', 'provider', 'other'] }, 'type' => 'Coding', 'path' => 'ClaimResponse.payeeType', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/payeetype' } },
29
+ 'item' => { 'type' => 'ClaimResponse::Item', 'path' => 'ClaimResponse.item', 'min' => 0, 'max' => Float::INFINITY },
30
+ 'addItem' => { 'type' => 'ClaimResponse::AddItem', 'path' => 'ClaimResponse.addItem', 'min' => 0, 'max' => Float::INFINITY },
31
+ 'error' => { 'type' => 'ClaimResponse::Error', 'path' => 'ClaimResponse.error', 'min' => 0, 'max' => Float::INFINITY },
32
+ 'totalCost' => { 'type' => 'Quantity', 'path' => 'ClaimResponse.totalCost', 'min' => 0, 'max' => 1 },
33
+ 'unallocDeductable' => { 'type' => 'Quantity', 'path' => 'ClaimResponse.unallocDeductable', 'min' => 0, 'max' => 1 },
34
+ 'totalBenefit' => { 'type' => 'Quantity', 'path' => 'ClaimResponse.totalBenefit', 'min' => 0, 'max' => 1 },
35
+ 'paymentAdjustment' => { 'type' => 'Quantity', 'path' => 'ClaimResponse.paymentAdjustment', 'min' => 0, 'max' => 1 },
36
+ 'paymentAdjustmentReason' => { 'valid_codes' => { 'http://hl7.org/fhir/adjustment-reason' => ['A001', 'A002'] }, 'type' => 'Coding', 'path' => 'ClaimResponse.paymentAdjustmentReason', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'extensible', 'uri' => 'http://hl7.org/fhir/ValueSet/adjustment-reason' } },
37
+ 'paymentDate' => { 'type' => 'date', 'path' => 'ClaimResponse.paymentDate', 'min' => 0, 'max' => 1 },
38
+ 'paymentAmount' => { 'type' => 'Quantity', 'path' => 'ClaimResponse.paymentAmount', 'min' => 0, 'max' => 1 },
39
+ 'paymentRef' => { 'type' => 'Identifier', 'path' => 'ClaimResponse.paymentRef', 'min' => 0, 'max' => 1 },
40
+ 'reserved' => { 'valid_codes' => { 'http://hl7.org/fhir/fundsreserve' => ['patient', 'provider', 'none'] }, 'type' => 'Coding', 'path' => 'ClaimResponse.reserved', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/fundsreserve' } },
41
+ 'form' => { 'valid_codes' => { 'http://hl7.org/fhir/forms-codes' => ['1', '2'] }, 'type' => 'Coding', 'path' => 'ClaimResponse.form', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/forms' } },
42
+ 'note' => { 'type' => 'ClaimResponse::Note', 'path' => 'ClaimResponse.note', 'min' => 0, 'max' => Float::INFINITY },
43
+ 'coverage' => { 'type' => 'ClaimResponse::Coverage', 'path' => 'ClaimResponse.coverage', 'min' => 0, 'max' => Float::INFINITY }
44
44
  }
45
45
 
46
46
  class Item < FHIR::DSTU2::Model
@@ -49,13 +49,13 @@ module FHIR
49
49
  include FHIR::DSTU2::Xml
50
50
 
51
51
  METADATA = {
52
- 'id' => {'type'=>'id', 'path'=>'Item.id', 'min'=>0, 'max'=>1},
53
- 'extension' => {'type'=>'Extension', 'path'=>'Item.extension', 'min'=>0, 'max'=>Float::INFINITY},
54
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Item.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
55
- 'sequenceLinkId' => {'type'=>'positiveInt', 'path'=>'Item.sequenceLinkId', 'min'=>1, 'max'=>1},
56
- 'noteNumber' => {'type'=>'positiveInt', 'path'=>'Item.noteNumber', 'min'=>0, 'max'=>Float::INFINITY},
57
- 'adjudication' => {'type'=>'ClaimResponse::Item::Adjudication', 'path'=>'Item.adjudication', 'min'=>0, 'max'=>Float::INFINITY},
58
- 'detail' => {'type'=>'ClaimResponse::Item::Detail', 'path'=>'Item.detail', 'min'=>0, 'max'=>Float::INFINITY}
52
+ 'id' => { 'type' => 'id', 'path' => 'Item.id', 'min' => 0, 'max' => 1 },
53
+ 'extension' => { 'type' => 'Extension', 'path' => 'Item.extension', 'min' => 0, 'max' => Float::INFINITY },
54
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Item.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
55
+ 'sequenceLinkId' => { 'type' => 'positiveInt', 'path' => 'Item.sequenceLinkId', 'min' => 1, 'max' => 1 },
56
+ 'noteNumber' => { 'type' => 'positiveInt', 'path' => 'Item.noteNumber', 'min' => 0, 'max' => Float::INFINITY },
57
+ 'adjudication' => { 'type' => 'ClaimResponse::Item::Adjudication', 'path' => 'Item.adjudication', 'min' => 0, 'max' => Float::INFINITY },
58
+ 'detail' => { 'type' => 'ClaimResponse::Item::Detail', 'path' => 'Item.detail', 'min' => 0, 'max' => Float::INFINITY }
59
59
  }
60
60
 
61
61
  class Adjudication < FHIR::DSTU2::Model
@@ -64,12 +64,12 @@ module FHIR
64
64
  include FHIR::DSTU2::Xml
65
65
 
66
66
  METADATA = {
67
- 'id' => {'type'=>'id', 'path'=>'Adjudication.id', 'min'=>0, 'max'=>1},
68
- 'extension' => {'type'=>'Extension', 'path'=>'Adjudication.extension', 'min'=>0, 'max'=>Float::INFINITY},
69
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Adjudication.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
70
- 'code' => {'valid_codes'=>{'http://hl7.org/fhir/adjudication'=>['total', 'copay', 'eligible', 'deductible', 'eligpercent', 'tax', 'benefit']}, 'type'=>'Coding', 'path'=>'Adjudication.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/adjudication'}},
71
- 'amount' => {'type'=>'Quantity', 'path'=>'Adjudication.amount', 'min'=>0, 'max'=>1},
72
- 'value' => {'type'=>'decimal', 'path'=>'Adjudication.value', 'min'=>0, 'max'=>1}
67
+ 'id' => { 'type' => 'id', 'path' => 'Adjudication.id', 'min' => 0, 'max' => 1 },
68
+ 'extension' => { 'type' => 'Extension', 'path' => 'Adjudication.extension', 'min' => 0, 'max' => Float::INFINITY },
69
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Adjudication.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
70
+ 'code' => { 'valid_codes' => { 'http://hl7.org/fhir/adjudication' => ['total', 'copay', 'eligible', 'deductible', 'eligpercent', 'tax', 'benefit'] }, 'type' => 'Coding', 'path' => 'Adjudication.code', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'extensible', 'uri' => 'http://hl7.org/fhir/ValueSet/adjudication' } },
71
+ 'amount' => { 'type' => 'Quantity', 'path' => 'Adjudication.amount', 'min' => 0, 'max' => 1 },
72
+ 'value' => { 'type' => 'decimal', 'path' => 'Adjudication.value', 'min' => 0, 'max' => 1 }
73
73
  }
74
74
 
75
75
  attr_accessor :id # 0-1 id
@@ -86,12 +86,12 @@ module FHIR
86
86
  include FHIR::DSTU2::Xml
87
87
 
88
88
  METADATA = {
89
- 'id' => {'type'=>'id', 'path'=>'Detail.id', 'min'=>0, 'max'=>1},
90
- 'extension' => {'type'=>'Extension', 'path'=>'Detail.extension', 'min'=>0, 'max'=>Float::INFINITY},
91
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Detail.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
92
- 'sequenceLinkId' => {'type'=>'positiveInt', 'path'=>'Detail.sequenceLinkId', 'min'=>1, 'max'=>1},
93
- 'adjudication' => {'type'=>'ClaimResponse::Item::Detail::Adjudication', 'path'=>'Detail.adjudication', 'min'=>0, 'max'=>Float::INFINITY},
94
- 'subDetail' => {'type'=>'ClaimResponse::Item::Detail::SubDetail', 'path'=>'Detail.subDetail', 'min'=>0, 'max'=>Float::INFINITY}
89
+ 'id' => { 'type' => 'id', 'path' => 'Detail.id', 'min' => 0, 'max' => 1 },
90
+ 'extension' => { 'type' => 'Extension', 'path' => 'Detail.extension', 'min' => 0, 'max' => Float::INFINITY },
91
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Detail.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
92
+ 'sequenceLinkId' => { 'type' => 'positiveInt', 'path' => 'Detail.sequenceLinkId', 'min' => 1, 'max' => 1 },
93
+ 'adjudication' => { 'type' => 'ClaimResponse::Item::Detail::Adjudication', 'path' => 'Detail.adjudication', 'min' => 0, 'max' => Float::INFINITY },
94
+ 'subDetail' => { 'type' => 'ClaimResponse::Item::Detail::SubDetail', 'path' => 'Detail.subDetail', 'min' => 0, 'max' => Float::INFINITY }
95
95
  }
96
96
 
97
97
  class Adjudication < FHIR::DSTU2::Model
@@ -100,12 +100,12 @@ module FHIR
100
100
  include FHIR::DSTU2::Xml
101
101
 
102
102
  METADATA = {
103
- 'id' => {'type'=>'id', 'path'=>'Adjudication.id', 'min'=>0, 'max'=>1},
104
- 'extension' => {'type'=>'Extension', 'path'=>'Adjudication.extension', 'min'=>0, 'max'=>Float::INFINITY},
105
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Adjudication.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
106
- 'code' => {'valid_codes'=>{'http://hl7.org/fhir/adjudication'=>['total', 'copay', 'eligible', 'deductible', 'eligpercent', 'tax', 'benefit']}, 'type'=>'Coding', 'path'=>'Adjudication.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/adjudication'}},
107
- 'amount' => {'type'=>'Quantity', 'path'=>'Adjudication.amount', 'min'=>0, 'max'=>1},
108
- 'value' => {'type'=>'decimal', 'path'=>'Adjudication.value', 'min'=>0, 'max'=>1}
103
+ 'id' => { 'type' => 'id', 'path' => 'Adjudication.id', 'min' => 0, 'max' => 1 },
104
+ 'extension' => { 'type' => 'Extension', 'path' => 'Adjudication.extension', 'min' => 0, 'max' => Float::INFINITY },
105
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Adjudication.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
106
+ 'code' => { 'valid_codes' => { 'http://hl7.org/fhir/adjudication' => ['total', 'copay', 'eligible', 'deductible', 'eligpercent', 'tax', 'benefit'] }, 'type' => 'Coding', 'path' => 'Adjudication.code', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'extensible', 'uri' => 'http://hl7.org/fhir/ValueSet/adjudication' } },
107
+ 'amount' => { 'type' => 'Quantity', 'path' => 'Adjudication.amount', 'min' => 0, 'max' => 1 },
108
+ 'value' => { 'type' => 'decimal', 'path' => 'Adjudication.value', 'min' => 0, 'max' => 1 }
109
109
  }
110
110
 
111
111
  attr_accessor :id # 0-1 id
@@ -122,11 +122,11 @@ module FHIR
122
122
  include FHIR::DSTU2::Xml
123
123
 
124
124
  METADATA = {
125
- 'id' => {'type'=>'id', 'path'=>'SubDetail.id', 'min'=>0, 'max'=>1},
126
- 'extension' => {'type'=>'Extension', 'path'=>'SubDetail.extension', 'min'=>0, 'max'=>Float::INFINITY},
127
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'SubDetail.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
128
- 'sequenceLinkId' => {'type'=>'positiveInt', 'path'=>'SubDetail.sequenceLinkId', 'min'=>1, 'max'=>1},
129
- 'adjudication' => {'type'=>'ClaimResponse::Item::Detail::SubDetail::Adjudication', 'path'=>'SubDetail.adjudication', 'min'=>0, 'max'=>Float::INFINITY}
125
+ 'id' => { 'type' => 'id', 'path' => 'SubDetail.id', 'min' => 0, 'max' => 1 },
126
+ 'extension' => { 'type' => 'Extension', 'path' => 'SubDetail.extension', 'min' => 0, 'max' => Float::INFINITY },
127
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'SubDetail.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
128
+ 'sequenceLinkId' => { 'type' => 'positiveInt', 'path' => 'SubDetail.sequenceLinkId', 'min' => 1, 'max' => 1 },
129
+ 'adjudication' => { 'type' => 'ClaimResponse::Item::Detail::SubDetail::Adjudication', 'path' => 'SubDetail.adjudication', 'min' => 0, 'max' => Float::INFINITY }
130
130
  }
131
131
 
132
132
  class Adjudication < FHIR::DSTU2::Model
@@ -135,12 +135,12 @@ module FHIR
135
135
  include FHIR::DSTU2::Xml
136
136
 
137
137
  METADATA = {
138
- 'id' => {'type'=>'id', 'path'=>'Adjudication.id', 'min'=>0, 'max'=>1},
139
- 'extension' => {'type'=>'Extension', 'path'=>'Adjudication.extension', 'min'=>0, 'max'=>Float::INFINITY},
140
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Adjudication.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
141
- 'code' => {'valid_codes'=>{'http://hl7.org/fhir/adjudication'=>['total', 'copay', 'eligible', 'deductible', 'eligpercent', 'tax', 'benefit']}, 'type'=>'Coding', 'path'=>'Adjudication.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/adjudication'}},
142
- 'amount' => {'type'=>'Quantity', 'path'=>'Adjudication.amount', 'min'=>0, 'max'=>1},
143
- 'value' => {'type'=>'decimal', 'path'=>'Adjudication.value', 'min'=>0, 'max'=>1}
138
+ 'id' => { 'type' => 'id', 'path' => 'Adjudication.id', 'min' => 0, 'max' => 1 },
139
+ 'extension' => { 'type' => 'Extension', 'path' => 'Adjudication.extension', 'min' => 0, 'max' => Float::INFINITY },
140
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Adjudication.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
141
+ 'code' => { 'valid_codes' => { 'http://hl7.org/fhir/adjudication' => ['total', 'copay', 'eligible', 'deductible', 'eligpercent', 'tax', 'benefit'] }, 'type' => 'Coding', 'path' => 'Adjudication.code', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'extensible', 'uri' => 'http://hl7.org/fhir/ValueSet/adjudication' } },
142
+ 'amount' => { 'type' => 'Quantity', 'path' => 'Adjudication.amount', 'min' => 0, 'max' => 1 },
143
+ 'value' => { 'type' => 'decimal', 'path' => 'Adjudication.value', 'min' => 0, 'max' => 1 }
144
144
  }
145
145
 
146
146
  attr_accessor :id # 0-1 id
@@ -162,8 +162,6 @@ module FHIR
162
162
  include FHIR::DSTU2::Hashable
163
163
  include FHIR::DSTU2::Json
164
164
  include FHIR::DSTU2::Xml
165
-
166
-
167
165
  end
168
166
 
169
167
  attr_accessor :id # 0-1 id
@@ -189,15 +187,15 @@ module FHIR
189
187
  include FHIR::DSTU2::Xml
190
188
 
191
189
  METADATA = {
192
- 'id' => {'type'=>'id', 'path'=>'AddItem.id', 'min'=>0, 'max'=>1},
193
- 'extension' => {'type'=>'Extension', 'path'=>'AddItem.extension', 'min'=>0, 'max'=>Float::INFINITY},
194
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'AddItem.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
195
- 'sequenceLinkId' => {'type'=>'positiveInt', 'path'=>'AddItem.sequenceLinkId', 'min'=>0, 'max'=>Float::INFINITY},
196
- 'service' => {'valid_codes'=>{'http://hl7.org/fhir/ex-USCLS'=>['1101', '1102', '1103', '1201', '1205', '2101', '2102', '2141', '2601', '11101', '11102', '11103', '11104', '21211', '21212', '27211', '99111', '99333', '99555']}, 'type'=>'Coding', 'path'=>'AddItem.service', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/service-uscls'}},
197
- 'fee' => {'type'=>'Quantity', 'path'=>'AddItem.fee', 'min'=>0, 'max'=>1},
198
- 'noteNumberLinkId' => {'type'=>'positiveInt', 'path'=>'AddItem.noteNumberLinkId', 'min'=>0, 'max'=>Float::INFINITY},
199
- 'adjudication' => {'type'=>'ClaimResponse::AddItem::Adjudication', 'path'=>'AddItem.adjudication', 'min'=>0, 'max'=>Float::INFINITY},
200
- 'detail' => {'type'=>'ClaimResponse::AddItem::Detail', 'path'=>'AddItem.detail', 'min'=>0, 'max'=>Float::INFINITY}
190
+ 'id' => { 'type' => 'id', 'path' => 'AddItem.id', 'min' => 0, 'max' => 1 },
191
+ 'extension' => { 'type' => 'Extension', 'path' => 'AddItem.extension', 'min' => 0, 'max' => Float::INFINITY },
192
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'AddItem.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
193
+ 'sequenceLinkId' => { 'type' => 'positiveInt', 'path' => 'AddItem.sequenceLinkId', 'min' => 0, 'max' => Float::INFINITY },
194
+ 'service' => { 'valid_codes' => { 'http://hl7.org/fhir/ex-USCLS' => ['1101', '1102', '1103', '1201', '1205', '2101', '2102', '2141', '2601', '11101', '11102', '11103', '11104', '21211', '21212', '27211', '99111', '99333', '99555'] }, 'type' => 'Coding', 'path' => 'AddItem.service', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/service-uscls' } },
195
+ 'fee' => { 'type' => 'Quantity', 'path' => 'AddItem.fee', 'min' => 0, 'max' => 1 },
196
+ 'noteNumberLinkId' => { 'type' => 'positiveInt', 'path' => 'AddItem.noteNumberLinkId', 'min' => 0, 'max' => Float::INFINITY },
197
+ 'adjudication' => { 'type' => 'ClaimResponse::AddItem::Adjudication', 'path' => 'AddItem.adjudication', 'min' => 0, 'max' => Float::INFINITY },
198
+ 'detail' => { 'type' => 'ClaimResponse::AddItem::Detail', 'path' => 'AddItem.detail', 'min' => 0, 'max' => Float::INFINITY }
201
199
  }
202
200
 
203
201
  class Adjudication < FHIR::DSTU2::Model
@@ -206,12 +204,12 @@ module FHIR
206
204
  include FHIR::DSTU2::Xml
207
205
 
208
206
  METADATA = {
209
- 'id' => {'type'=>'id', 'path'=>'Adjudication.id', 'min'=>0, 'max'=>1},
210
- 'extension' => {'type'=>'Extension', 'path'=>'Adjudication.extension', 'min'=>0, 'max'=>Float::INFINITY},
211
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Adjudication.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
212
- 'code' => {'valid_codes'=>{'http://hl7.org/fhir/adjudication'=>['total', 'copay', 'eligible', 'deductible', 'eligpercent', 'tax', 'benefit']}, 'type'=>'Coding', 'path'=>'Adjudication.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/adjudication'}},
213
- 'amount' => {'type'=>'Quantity', 'path'=>'Adjudication.amount', 'min'=>0, 'max'=>1},
214
- 'value' => {'type'=>'decimal', 'path'=>'Adjudication.value', 'min'=>0, 'max'=>1}
207
+ 'id' => { 'type' => 'id', 'path' => 'Adjudication.id', 'min' => 0, 'max' => 1 },
208
+ 'extension' => { 'type' => 'Extension', 'path' => 'Adjudication.extension', 'min' => 0, 'max' => Float::INFINITY },
209
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Adjudication.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
210
+ 'code' => { 'valid_codes' => { 'http://hl7.org/fhir/adjudication' => ['total', 'copay', 'eligible', 'deductible', 'eligpercent', 'tax', 'benefit'] }, 'type' => 'Coding', 'path' => 'Adjudication.code', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'extensible', 'uri' => 'http://hl7.org/fhir/ValueSet/adjudication' } },
211
+ 'amount' => { 'type' => 'Quantity', 'path' => 'Adjudication.amount', 'min' => 0, 'max' => 1 },
212
+ 'value' => { 'type' => 'decimal', 'path' => 'Adjudication.value', 'min' => 0, 'max' => 1 }
215
213
  }
216
214
 
217
215
  attr_accessor :id # 0-1 id
@@ -228,12 +226,12 @@ module FHIR
228
226
  include FHIR::DSTU2::Xml
229
227
 
230
228
  METADATA = {
231
- 'id' => {'type'=>'id', 'path'=>'Detail.id', 'min'=>0, 'max'=>1},
232
- 'extension' => {'type'=>'Extension', 'path'=>'Detail.extension', 'min'=>0, 'max'=>Float::INFINITY},
233
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Detail.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
234
- 'service' => {'valid_codes'=>{'http://hl7.org/fhir/ex-USCLS'=>['1101', '1102', '1103', '1201', '1205', '2101', '2102', '2141', '2601', '11101', '11102', '11103', '11104', '21211', '21212', '27211', '99111', '99333', '99555']}, 'type'=>'Coding', 'path'=>'Detail.service', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/service-uscls'}},
235
- 'fee' => {'type'=>'Quantity', 'path'=>'Detail.fee', 'min'=>0, 'max'=>1},
236
- 'adjudication' => {'type'=>'ClaimResponse::AddItem::Detail::Adjudication', 'path'=>'Detail.adjudication', 'min'=>0, 'max'=>Float::INFINITY}
229
+ 'id' => { 'type' => 'id', 'path' => 'Detail.id', 'min' => 0, 'max' => 1 },
230
+ 'extension' => { 'type' => 'Extension', 'path' => 'Detail.extension', 'min' => 0, 'max' => Float::INFINITY },
231
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Detail.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
232
+ 'service' => { 'valid_codes' => { 'http://hl7.org/fhir/ex-USCLS' => ['1101', '1102', '1103', '1201', '1205', '2101', '2102', '2141', '2601', '11101', '11102', '11103', '11104', '21211', '21212', '27211', '99111', '99333', '99555'] }, 'type' => 'Coding', 'path' => 'Detail.service', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/service-uscls' } },
233
+ 'fee' => { 'type' => 'Quantity', 'path' => 'Detail.fee', 'min' => 0, 'max' => 1 },
234
+ 'adjudication' => { 'type' => 'ClaimResponse::AddItem::Detail::Adjudication', 'path' => 'Detail.adjudication', 'min' => 0, 'max' => Float::INFINITY }
237
235
  }
238
236
 
239
237
  class Adjudication < FHIR::DSTU2::Model
@@ -242,12 +240,12 @@ module FHIR
242
240
  include FHIR::DSTU2::Xml
243
241
 
244
242
  METADATA = {
245
- 'id' => {'type'=>'id', 'path'=>'Adjudication.id', 'min'=>0, 'max'=>1},
246
- 'extension' => {'type'=>'Extension', 'path'=>'Adjudication.extension', 'min'=>0, 'max'=>Float::INFINITY},
247
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Adjudication.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
248
- 'code' => {'valid_codes'=>{'http://hl7.org/fhir/adjudication'=>['total', 'copay', 'eligible', 'deductible', 'eligpercent', 'tax', 'benefit']}, 'type'=>'Coding', 'path'=>'Adjudication.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/adjudication'}},
249
- 'amount' => {'type'=>'Quantity', 'path'=>'Adjudication.amount', 'min'=>0, 'max'=>1},
250
- 'value' => {'type'=>'decimal', 'path'=>'Adjudication.value', 'min'=>0, 'max'=>1}
243
+ 'id' => { 'type' => 'id', 'path' => 'Adjudication.id', 'min' => 0, 'max' => 1 },
244
+ 'extension' => { 'type' => 'Extension', 'path' => 'Adjudication.extension', 'min' => 0, 'max' => Float::INFINITY },
245
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Adjudication.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
246
+ 'code' => { 'valid_codes' => { 'http://hl7.org/fhir/adjudication' => ['total', 'copay', 'eligible', 'deductible', 'eligpercent', 'tax', 'benefit'] }, 'type' => 'Coding', 'path' => 'Adjudication.code', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'extensible', 'uri' => 'http://hl7.org/fhir/ValueSet/adjudication' } },
247
+ 'amount' => { 'type' => 'Quantity', 'path' => 'Adjudication.amount', 'min' => 0, 'max' => 1 },
248
+ 'value' => { 'type' => 'decimal', 'path' => 'Adjudication.value', 'min' => 0, 'max' => 1 }
251
249
  }
252
250
 
253
251
  attr_accessor :id # 0-1 id
@@ -283,13 +281,13 @@ module FHIR
283
281
  include FHIR::DSTU2::Xml
284
282
 
285
283
  METADATA = {
286
- 'id' => {'type'=>'id', 'path'=>'Error.id', 'min'=>0, 'max'=>1},
287
- 'extension' => {'type'=>'Extension', 'path'=>'Error.extension', 'min'=>0, 'max'=>Float::INFINITY},
288
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Error.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
289
- 'sequenceLinkId' => {'type'=>'positiveInt', 'path'=>'Error.sequenceLinkId', 'min'=>0, 'max'=>1},
290
- 'detailSequenceLinkId' => {'type'=>'positiveInt', 'path'=>'Error.detailSequenceLinkId', 'min'=>0, 'max'=>1},
291
- 'subdetailSequenceLinkId' => {'type'=>'positiveInt', 'path'=>'Error.subdetailSequenceLinkId', 'min'=>0, 'max'=>1},
292
- 'code' => {'valid_codes'=>{'http://hl7.org/fhir/adjudication-error'=>['A001', 'A002']}, 'type'=>'Coding', 'path'=>'Error.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/adjudication-error'}}
284
+ 'id' => { 'type' => 'id', 'path' => 'Error.id', 'min' => 0, 'max' => 1 },
285
+ 'extension' => { 'type' => 'Extension', 'path' => 'Error.extension', 'min' => 0, 'max' => Float::INFINITY },
286
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Error.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
287
+ 'sequenceLinkId' => { 'type' => 'positiveInt', 'path' => 'Error.sequenceLinkId', 'min' => 0, 'max' => 1 },
288
+ 'detailSequenceLinkId' => { 'type' => 'positiveInt', 'path' => 'Error.detailSequenceLinkId', 'min' => 0, 'max' => 1 },
289
+ 'subdetailSequenceLinkId' => { 'type' => 'positiveInt', 'path' => 'Error.subdetailSequenceLinkId', 'min' => 0, 'max' => 1 },
290
+ 'code' => { 'valid_codes' => { 'http://hl7.org/fhir/adjudication-error' => ['A001', 'A002'] }, 'type' => 'Coding', 'path' => 'Error.code', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/adjudication-error' } }
293
291
  }
294
292
 
295
293
  attr_accessor :id # 0-1 id
@@ -307,12 +305,12 @@ module FHIR
307
305
  include FHIR::DSTU2::Xml
308
306
 
309
307
  METADATA = {
310
- 'id' => {'type'=>'id', 'path'=>'Note.id', 'min'=>0, 'max'=>1},
311
- 'extension' => {'type'=>'Extension', 'path'=>'Note.extension', 'min'=>0, 'max'=>Float::INFINITY},
312
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Note.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
313
- 'number' => {'type'=>'positiveInt', 'path'=>'Note.number', 'min'=>0, 'max'=>1},
314
- 'type' => {'valid_codes'=>{'http://hl7.org/fhir/note-type'=>['display', 'print', 'printoper']}, 'type'=>'Coding', 'path'=>'Note.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/note-type'}},
315
- 'text' => {'type'=>'string', 'path'=>'Note.text', 'min'=>0, 'max'=>1}
308
+ 'id' => { 'type' => 'id', 'path' => 'Note.id', 'min' => 0, 'max' => 1 },
309
+ 'extension' => { 'type' => 'Extension', 'path' => 'Note.extension', 'min' => 0, 'max' => Float::INFINITY },
310
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Note.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
311
+ 'number' => { 'type' => 'positiveInt', 'path' => 'Note.number', 'min' => 0, 'max' => 1 },
312
+ 'type' => { 'valid_codes' => { 'http://hl7.org/fhir/note-type' => ['display', 'print', 'printoper'] }, 'type' => 'Coding', 'path' => 'Note.type', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/note-type' } },
313
+ 'text' => { 'type' => 'string', 'path' => 'Note.text', 'min' => 0, 'max' => 1 }
316
314
  }
317
315
 
318
316
  attr_accessor :id # 0-1 id
@@ -329,17 +327,17 @@ module FHIR
329
327
  include FHIR::DSTU2::Xml
330
328
 
331
329
  METADATA = {
332
- 'id' => {'type'=>'id', 'path'=>'Coverage.id', 'min'=>0, 'max'=>1},
333
- 'extension' => {'type'=>'Extension', 'path'=>'Coverage.extension', 'min'=>0, 'max'=>Float::INFINITY},
334
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Coverage.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
335
- 'sequence' => {'type'=>'positiveInt', 'path'=>'Coverage.sequence', 'min'=>1, 'max'=>1},
336
- 'focal' => {'type'=>'boolean', 'path'=>'Coverage.focal', 'min'=>1, 'max'=>1},
337
- 'coverage' => {'type'=>'Reference', 'path'=>'Coverage.coverage', 'min'=>1, 'max'=>1},
338
- 'businessArrangement' => {'type'=>'string', 'path'=>'Coverage.businessArrangement', 'min'=>0, 'max'=>1},
339
- 'relationship' => {'valid_codes'=>{'http://hl7.org/fhir/relationship'=>['1', '2', '3', '4', '5']}, 'type'=>'Coding', 'path'=>'Coverage.relationship', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/relationship'}},
340
- 'preAuthRef' => {'type'=>'string', 'path'=>'Coverage.preAuthRef', 'min'=>0, 'max'=>Float::INFINITY},
341
- 'claimResponse' => {'type'=>'Reference', 'path'=>'Coverage.claimResponse', 'min'=>0, 'max'=>1},
342
- 'originalRuleset' => {'valid_codes'=>{'http://hl7.org/fhir/ruleset'=>['x12-4010', 'x12-5010', 'x12-7010', 'cdanet-v2', 'cdanet-v4', 'cpha-3']}, 'type'=>'Coding', 'path'=>'Coverage.originalRuleset', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/ruleset'}}
330
+ 'id' => { 'type' => 'id', 'path' => 'Coverage.id', 'min' => 0, 'max' => 1 },
331
+ 'extension' => { 'type' => 'Extension', 'path' => 'Coverage.extension', 'min' => 0, 'max' => Float::INFINITY },
332
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Coverage.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
333
+ 'sequence' => { 'type' => 'positiveInt', 'path' => 'Coverage.sequence', 'min' => 1, 'max' => 1 },
334
+ 'focal' => { 'type' => 'boolean', 'path' => 'Coverage.focal', 'min' => 1, 'max' => 1 },
335
+ 'coverage' => { 'type' => 'Reference', 'path' => 'Coverage.coverage', 'min' => 1, 'max' => 1 },
336
+ 'businessArrangement' => { 'type' => 'string', 'path' => 'Coverage.businessArrangement', 'min' => 0, 'max' => 1 },
337
+ 'relationship' => { 'valid_codes' => { 'http://hl7.org/fhir/relationship' => ['1', '2', '3', '4', '5'] }, 'type' => 'Coding', 'path' => 'Coverage.relationship', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/relationship' } },
338
+ 'preAuthRef' => { 'type' => 'string', 'path' => 'Coverage.preAuthRef', 'min' => 0, 'max' => Float::INFINITY },
339
+ 'claimResponse' => { 'type' => 'Reference', 'path' => 'Coverage.claimResponse', 'min' => 0, 'max' => 1 },
340
+ 'originalRuleset' => { 'valid_codes' => { 'http://hl7.org/fhir/ruleset' => ['x12-4010', 'x12-5010', 'x12-7010', 'cdanet-v2', 'cdanet-v4', 'cpha-3'] }, 'type' => 'Coding', 'path' => 'Coverage.originalRuleset', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/ruleset' } }
343
341
  }
344
342
 
345
343
  attr_accessor :id # 0-1 id
@@ -395,4 +393,4 @@ module FHIR
395
393
  end
396
394
  end
397
395
  end
398
- end
396
+ end