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,24 +7,24 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['parent', 'source', 'type']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'DeviceComponent.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'DeviceComponent.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'DeviceComponent.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'DeviceComponent.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'text' => {'type'=>'Narrative', 'path'=>'DeviceComponent.text', 'min'=>0, 'max'=>1},
15
- 'contained' => {'type'=>'Resource', 'path'=>'DeviceComponent.contained', 'min'=>0, 'max'=>Float::INFINITY},
16
- 'extension' => {'type'=>'Extension', 'path'=>'DeviceComponent.extension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'DeviceComponent.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'type' => {'type'=>'CodeableConcept', 'path'=>'DeviceComponent.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'https://rtmms.nist.gov/rtmms/index.htm#!hrosetta'}},
19
- 'identifier' => {'type'=>'Identifier', 'path'=>'DeviceComponent.identifier', 'min'=>1, 'max'=>1},
20
- 'lastSystemChange' => {'type'=>'instant', 'path'=>'DeviceComponent.lastSystemChange', 'min'=>1, 'max'=>1},
21
- 'source' => {'type'=>'Reference', 'path'=>'DeviceComponent.source', 'min'=>0, 'max'=>1},
22
- 'parent' => {'type'=>'Reference', 'path'=>'DeviceComponent.parent', 'min'=>0, 'max'=>1},
23
- 'operationalStatus' => {'type'=>'CodeableConcept', 'path'=>'DeviceComponent.operationalStatus', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
24
- 'parameterGroup' => {'type'=>'CodeableConcept', 'path'=>'DeviceComponent.parameterGroup', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
25
- 'measurementPrinciple' => {'valid_codes'=>{'http://hl7.org/fhir/measurement-principle'=>['other', 'chemical', 'electrical', 'impedance', 'nuclear', 'optical', 'thermal', 'biological', 'mechanical', 'acoustical', 'manual']}, 'type'=>'code', 'path'=>'DeviceComponent.measurementPrinciple', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/measurement-principle'}},
26
- 'productionSpecification' => {'type'=>'DeviceComponent::ProductionSpecification', 'path'=>'DeviceComponent.productionSpecification', 'min'=>0, 'max'=>Float::INFINITY},
27
- 'languageCode' => {'type'=>'CodeableConcept', 'path'=>'DeviceComponent.languageCode', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}}
10
+ 'id' => { 'type' => 'id', 'path' => 'DeviceComponent.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'DeviceComponent.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'DeviceComponent.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'DeviceComponent.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'text' => { 'type' => 'Narrative', 'path' => 'DeviceComponent.text', 'min' => 0, 'max' => 1 },
15
+ 'contained' => { 'type' => 'Resource', 'path' => 'DeviceComponent.contained', 'min' => 0, 'max' => Float::INFINITY },
16
+ 'extension' => { 'type' => 'Extension', 'path' => 'DeviceComponent.extension', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'DeviceComponent.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'type' => { 'type' => 'CodeableConcept', 'path' => 'DeviceComponent.type', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'preferred', 'uri' => 'https://rtmms.nist.gov/rtmms/index.htm#!hrosetta' } },
19
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'DeviceComponent.identifier', 'min' => 1, 'max' => 1 },
20
+ 'lastSystemChange' => { 'type' => 'instant', 'path' => 'DeviceComponent.lastSystemChange', 'min' => 1, 'max' => 1 },
21
+ 'source' => { 'type' => 'Reference', 'path' => 'DeviceComponent.source', 'min' => 0, 'max' => 1 },
22
+ 'parent' => { 'type' => 'Reference', 'path' => 'DeviceComponent.parent', 'min' => 0, 'max' => 1 },
23
+ 'operationalStatus' => { 'type' => 'CodeableConcept', 'path' => 'DeviceComponent.operationalStatus', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => nil } },
24
+ 'parameterGroup' => { 'type' => 'CodeableConcept', 'path' => 'DeviceComponent.parameterGroup', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => nil } },
25
+ 'measurementPrinciple' => { 'valid_codes' => { 'http://hl7.org/fhir/measurement-principle' => ['other', 'chemical', 'electrical', 'impedance', 'nuclear', 'optical', 'thermal', 'biological', 'mechanical', 'acoustical', 'manual'] }, 'type' => 'code', 'path' => 'DeviceComponent.measurementPrinciple', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/measurement-principle' } },
26
+ 'productionSpecification' => { 'type' => 'DeviceComponent::ProductionSpecification', 'path' => 'DeviceComponent.productionSpecification', 'min' => 0, 'max' => Float::INFINITY },
27
+ 'languageCode' => { 'type' => 'CodeableConcept', 'path' => 'DeviceComponent.languageCode', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } }
28
28
  }
29
29
 
30
30
  class ProductionSpecification < FHIR::DSTU2::Model
@@ -33,12 +33,12 @@ module FHIR
33
33
  include FHIR::DSTU2::Xml
34
34
 
35
35
  METADATA = {
36
- 'id' => {'type'=>'id', 'path'=>'ProductionSpecification.id', 'min'=>0, 'max'=>1},
37
- 'extension' => {'type'=>'Extension', 'path'=>'ProductionSpecification.extension', 'min'=>0, 'max'=>Float::INFINITY},
38
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'ProductionSpecification.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
39
- 'specType' => {'type'=>'CodeableConcept', 'path'=>'ProductionSpecification.specType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
40
- 'componentId' => {'type'=>'Identifier', 'path'=>'ProductionSpecification.componentId', 'min'=>0, 'max'=>1},
41
- 'productionSpec' => {'type'=>'string', 'path'=>'ProductionSpecification.productionSpec', 'min'=>0, 'max'=>1}
36
+ 'id' => { 'type' => 'id', 'path' => 'ProductionSpecification.id', 'min' => 0, 'max' => 1 },
37
+ 'extension' => { 'type' => 'Extension', 'path' => 'ProductionSpecification.extension', 'min' => 0, 'max' => Float::INFINITY },
38
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'ProductionSpecification.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
39
+ 'specType' => { 'type' => 'CodeableConcept', 'path' => 'ProductionSpecification.specType', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => nil } },
40
+ 'componentId' => { 'type' => 'Identifier', 'path' => 'ProductionSpecification.componentId', 'min' => 0, 'max' => 1 },
41
+ 'productionSpec' => { 'type' => 'string', 'path' => 'ProductionSpecification.productionSpec', 'min' => 0, 'max' => 1 }
42
42
  }
43
43
 
44
44
  attr_accessor :id # 0-1 id
@@ -73,4 +73,4 @@ module FHIR
73
73
  end
74
74
  end
75
75
  end
76
- end
76
+ end
@@ -7,24 +7,24 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['category', 'identifier', 'parent', 'source', 'type']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'DeviceMetric.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'DeviceMetric.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'DeviceMetric.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'DeviceMetric.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'text' => {'type'=>'Narrative', 'path'=>'DeviceMetric.text', 'min'=>0, 'max'=>1},
15
- 'contained' => {'type'=>'Resource', 'path'=>'DeviceMetric.contained', 'min'=>0, 'max'=>Float::INFINITY},
16
- 'extension' => {'type'=>'Extension', 'path'=>'DeviceMetric.extension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'DeviceMetric.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'type' => {'type'=>'CodeableConcept', 'path'=>'DeviceMetric.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'https://rtmms.nist.gov/rtmms/index.htm#!hrosetta'}},
19
- 'identifier' => {'type'=>'Identifier', 'path'=>'DeviceMetric.identifier', 'min'=>1, 'max'=>1},
20
- 'unit' => {'type'=>'CodeableConcept', 'path'=>'DeviceMetric.unit', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'https://rtmms.nist.gov/rtmms/index.htm#!units'}},
21
- 'source' => {'type'=>'Reference', 'path'=>'DeviceMetric.source', 'min'=>0, 'max'=>1},
22
- 'parent' => {'type'=>'Reference', 'path'=>'DeviceMetric.parent', 'min'=>0, 'max'=>1},
23
- 'operationalStatus' => {'valid_codes'=>{'http://hl7.org/fhir/metric-operational-status'=>['on', 'off', 'standby']}, 'type'=>'code', 'path'=>'DeviceMetric.operationalStatus', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/metric-operational-status'}},
24
- 'color' => {'valid_codes'=>{'http://hl7.org/fhir/metric-color'=>['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white']}, 'type'=>'code', 'path'=>'DeviceMetric.color', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/metric-color'}},
25
- 'category' => {'valid_codes'=>{'http://hl7.org/fhir/metric-category'=>['measurement', 'setting', 'calculation', 'unspecified']}, 'type'=>'code', 'path'=>'DeviceMetric.category', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/metric-category'}},
26
- 'measurementPeriod' => {'type'=>'Timing', 'path'=>'DeviceMetric.measurementPeriod', 'min'=>0, 'max'=>1},
27
- 'calibration' => {'type'=>'DeviceMetric::Calibration', 'path'=>'DeviceMetric.calibration', 'min'=>0, 'max'=>Float::INFINITY}
10
+ 'id' => { 'type' => 'id', 'path' => 'DeviceMetric.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'DeviceMetric.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'DeviceMetric.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'DeviceMetric.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'text' => { 'type' => 'Narrative', 'path' => 'DeviceMetric.text', 'min' => 0, 'max' => 1 },
15
+ 'contained' => { 'type' => 'Resource', 'path' => 'DeviceMetric.contained', 'min' => 0, 'max' => Float::INFINITY },
16
+ 'extension' => { 'type' => 'Extension', 'path' => 'DeviceMetric.extension', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'DeviceMetric.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'type' => { 'type' => 'CodeableConcept', 'path' => 'DeviceMetric.type', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'preferred', 'uri' => 'https://rtmms.nist.gov/rtmms/index.htm#!hrosetta' } },
19
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'DeviceMetric.identifier', 'min' => 1, 'max' => 1 },
20
+ 'unit' => { 'type' => 'CodeableConcept', 'path' => 'DeviceMetric.unit', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'preferred', 'uri' => 'https://rtmms.nist.gov/rtmms/index.htm#!units' } },
21
+ 'source' => { 'type' => 'Reference', 'path' => 'DeviceMetric.source', 'min' => 0, 'max' => 1 },
22
+ 'parent' => { 'type' => 'Reference', 'path' => 'DeviceMetric.parent', 'min' => 0, 'max' => 1 },
23
+ 'operationalStatus' => { 'valid_codes' => { 'http://hl7.org/fhir/metric-operational-status' => ['on', 'off', 'standby'] }, 'type' => 'code', 'path' => 'DeviceMetric.operationalStatus', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/metric-operational-status' } },
24
+ 'color' => { 'valid_codes' => { 'http://hl7.org/fhir/metric-color' => ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white'] }, 'type' => 'code', 'path' => 'DeviceMetric.color', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/metric-color' } },
25
+ 'category' => { 'valid_codes' => { 'http://hl7.org/fhir/metric-category' => ['measurement', 'setting', 'calculation', 'unspecified'] }, 'type' => 'code', 'path' => 'DeviceMetric.category', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/metric-category' } },
26
+ 'measurementPeriod' => { 'type' => 'Timing', 'path' => 'DeviceMetric.measurementPeriod', 'min' => 0, 'max' => 1 },
27
+ 'calibration' => { 'type' => 'DeviceMetric::Calibration', 'path' => 'DeviceMetric.calibration', 'min' => 0, 'max' => Float::INFINITY }
28
28
  }
29
29
 
30
30
  class Calibration < FHIR::DSTU2::Model
@@ -33,12 +33,12 @@ module FHIR
33
33
  include FHIR::DSTU2::Xml
34
34
 
35
35
  METADATA = {
36
- 'id' => {'type'=>'id', 'path'=>'Calibration.id', 'min'=>0, 'max'=>1},
37
- 'extension' => {'type'=>'Extension', 'path'=>'Calibration.extension', 'min'=>0, 'max'=>Float::INFINITY},
38
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Calibration.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
39
- 'type' => {'valid_codes'=>{'http://hl7.org/fhir/metric-calibration-type'=>['unspecified', 'offset', 'gain', 'two-point']}, 'type'=>'code', 'path'=>'Calibration.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/metric-calibration-type'}},
40
- 'state' => {'valid_codes'=>{'http://hl7.org/fhir/metric-calibration-state'=>['not-calibrated', 'calibration-required', 'calibrated', 'unspecified']}, 'type'=>'code', 'path'=>'Calibration.state', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/metric-calibration-state'}},
41
- 'time' => {'type'=>'instant', 'path'=>'Calibration.time', 'min'=>0, 'max'=>1}
36
+ 'id' => { 'type' => 'id', 'path' => 'Calibration.id', 'min' => 0, 'max' => 1 },
37
+ 'extension' => { 'type' => 'Extension', 'path' => 'Calibration.extension', 'min' => 0, 'max' => Float::INFINITY },
38
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Calibration.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
39
+ 'type' => { 'valid_codes' => { 'http://hl7.org/fhir/metric-calibration-type' => ['unspecified', 'offset', 'gain', 'two-point'] }, 'type' => 'code', 'path' => 'Calibration.type', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/metric-calibration-type' } },
40
+ 'state' => { 'valid_codes' => { 'http://hl7.org/fhir/metric-calibration-state' => ['not-calibrated', 'calibration-required', 'calibrated', 'unspecified'] }, 'type' => 'code', 'path' => 'Calibration.state', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/metric-calibration-state' } },
41
+ 'time' => { 'type' => 'instant', 'path' => 'Calibration.time', 'min' => 0, 'max' => 1 }
42
42
  }
43
43
 
44
44
  attr_accessor :id # 0-1 id
@@ -73,4 +73,4 @@ module FHIR
73
73
  end
74
74
  end
75
75
  end
76
- end
76
+ end
@@ -11,30 +11,30 @@ module FHIR
11
11
  }
12
12
  SEARCH_PARAMS = ['device', 'patient', 'subject']
13
13
  METADATA = {
14
- 'id' => {'type'=>'id', 'path'=>'DeviceUseRequest.id', 'min'=>0, 'max'=>1},
15
- 'meta' => {'type'=>'Meta', 'path'=>'DeviceUseRequest.meta', 'min'=>0, 'max'=>1},
16
- 'implicitRules' => {'type'=>'uri', 'path'=>'DeviceUseRequest.implicitRules', 'min'=>0, 'max'=>1},
17
- 'language' => {'type'=>'code', 'path'=>'DeviceUseRequest.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
18
- 'text' => {'type'=>'Narrative', 'path'=>'DeviceUseRequest.text', 'min'=>0, 'max'=>1},
19
- 'contained' => {'type'=>'Resource', 'path'=>'DeviceUseRequest.contained', 'min'=>0, 'max'=>Float::INFINITY},
20
- 'extension' => {'type'=>'Extension', 'path'=>'DeviceUseRequest.extension', 'min'=>0, 'max'=>Float::INFINITY},
21
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'DeviceUseRequest.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
22
- 'bodySiteCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'DeviceUseRequest.bodySite[x]', 'min'=>0, 'max'=>1},
23
- 'bodySiteReference' => {'type'=>'Reference', 'path'=>'DeviceUseRequest.bodySite[x]', 'min'=>0, 'max'=>1},
24
- 'status' => {'valid_codes'=>{'http://hl7.org/fhir/device-use-request-status'=>['proposed', 'planned', 'requested', 'received', 'accepted', 'in-progress', 'completed', 'suspended', 'rejected', 'aborted']}, 'type'=>'code', 'path'=>'DeviceUseRequest.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/device-use-request-status'}},
25
- 'device' => {'type'=>'Reference', 'path'=>'DeviceUseRequest.device', 'min'=>1, 'max'=>1},
26
- 'encounter' => {'type'=>'Reference', 'path'=>'DeviceUseRequest.encounter', 'min'=>0, 'max'=>1},
27
- 'identifier' => {'type'=>'Identifier', 'path'=>'DeviceUseRequest.identifier', 'min'=>0, 'max'=>Float::INFINITY},
28
- 'indication' => {'type'=>'CodeableConcept', 'path'=>'DeviceUseRequest.indication', 'min'=>0, 'max'=>Float::INFINITY},
29
- 'notes' => {'type'=>'string', 'path'=>'DeviceUseRequest.notes', 'min'=>0, 'max'=>Float::INFINITY},
30
- 'prnReason' => {'type'=>'CodeableConcept', 'path'=>'DeviceUseRequest.prnReason', 'min'=>0, 'max'=>Float::INFINITY},
31
- 'orderedOn' => {'type'=>'dateTime', 'path'=>'DeviceUseRequest.orderedOn', 'min'=>0, 'max'=>1},
32
- 'recordedOn' => {'type'=>'dateTime', 'path'=>'DeviceUseRequest.recordedOn', 'min'=>0, 'max'=>1},
33
- 'subject' => {'type'=>'Reference', 'path'=>'DeviceUseRequest.subject', 'min'=>1, 'max'=>1},
34
- 'timingTiming' => {'type'=>'Timing', 'path'=>'DeviceUseRequest.timing[x]', 'min'=>0, 'max'=>1},
35
- 'timingPeriod' => {'type'=>'Period', 'path'=>'DeviceUseRequest.timing[x]', 'min'=>0, 'max'=>1},
36
- 'timingDateTime' => {'type'=>'dateTime', 'path'=>'DeviceUseRequest.timing[x]', 'min'=>0, 'max'=>1},
37
- 'priority' => {'valid_codes'=>{'http://hl7.org/fhir/device-use-request-priority'=>['routine', 'urgent', 'stat', 'asap']}, 'type'=>'code', 'path'=>'DeviceUseRequest.priority', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/device-use-request-priority'}}
14
+ 'id' => { 'type' => 'id', 'path' => 'DeviceUseRequest.id', 'min' => 0, 'max' => 1 },
15
+ 'meta' => { 'type' => 'Meta', 'path' => 'DeviceUseRequest.meta', 'min' => 0, 'max' => 1 },
16
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'DeviceUseRequest.implicitRules', 'min' => 0, 'max' => 1 },
17
+ 'language' => { 'type' => 'code', 'path' => 'DeviceUseRequest.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
18
+ 'text' => { 'type' => 'Narrative', 'path' => 'DeviceUseRequest.text', 'min' => 0, 'max' => 1 },
19
+ 'contained' => { 'type' => 'Resource', 'path' => 'DeviceUseRequest.contained', 'min' => 0, 'max' => Float::INFINITY },
20
+ 'extension' => { 'type' => 'Extension', 'path' => 'DeviceUseRequest.extension', 'min' => 0, 'max' => Float::INFINITY },
21
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'DeviceUseRequest.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
22
+ 'bodySiteCodeableConcept' => { 'type' => 'CodeableConcept', 'path' => 'DeviceUseRequest.bodySite[x]', 'min' => 0, 'max' => 1 },
23
+ 'bodySiteReference' => { 'type' => 'Reference', 'path' => 'DeviceUseRequest.bodySite[x]', 'min' => 0, 'max' => 1 },
24
+ 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/device-use-request-status' => ['proposed', 'planned', 'requested', 'received', 'accepted', 'in-progress', 'completed', 'suspended', 'rejected', 'aborted'] }, 'type' => 'code', 'path' => 'DeviceUseRequest.status', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/device-use-request-status' } },
25
+ 'device' => { 'type' => 'Reference', 'path' => 'DeviceUseRequest.device', 'min' => 1, 'max' => 1 },
26
+ 'encounter' => { 'type' => 'Reference', 'path' => 'DeviceUseRequest.encounter', 'min' => 0, 'max' => 1 },
27
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'DeviceUseRequest.identifier', 'min' => 0, 'max' => Float::INFINITY },
28
+ 'indication' => { 'type' => 'CodeableConcept', 'path' => 'DeviceUseRequest.indication', 'min' => 0, 'max' => Float::INFINITY },
29
+ 'notes' => { 'type' => 'string', 'path' => 'DeviceUseRequest.notes', 'min' => 0, 'max' => Float::INFINITY },
30
+ 'prnReason' => { 'type' => 'CodeableConcept', 'path' => 'DeviceUseRequest.prnReason', 'min' => 0, 'max' => Float::INFINITY },
31
+ 'orderedOn' => { 'type' => 'dateTime', 'path' => 'DeviceUseRequest.orderedOn', 'min' => 0, 'max' => 1 },
32
+ 'recordedOn' => { 'type' => 'dateTime', 'path' => 'DeviceUseRequest.recordedOn', 'min' => 0, 'max' => 1 },
33
+ 'subject' => { 'type' => 'Reference', 'path' => 'DeviceUseRequest.subject', 'min' => 1, 'max' => 1 },
34
+ 'timingTiming' => { 'type' => 'Timing', 'path' => 'DeviceUseRequest.timing[x]', 'min' => 0, 'max' => 1 },
35
+ 'timingPeriod' => { 'type' => 'Period', 'path' => 'DeviceUseRequest.timing[x]', 'min' => 0, 'max' => 1 },
36
+ 'timingDateTime' => { 'type' => 'dateTime', 'path' => 'DeviceUseRequest.timing[x]', 'min' => 0, 'max' => 1 },
37
+ 'priority' => { 'valid_codes' => { 'http://hl7.org/fhir/device-use-request-priority' => ['routine', 'urgent', 'stat', 'asap'] }, 'type' => 'code', 'path' => 'DeviceUseRequest.priority', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/device-use-request-priority' } }
38
38
  }
39
39
 
40
40
  attr_accessor :id # 0-1 id
@@ -67,4 +67,4 @@ module FHIR
67
67
  end
68
68
  end
69
69
  end
70
- end
70
+ end
@@ -11,26 +11,26 @@ module FHIR
11
11
  }
12
12
  SEARCH_PARAMS = ['device', 'patient', 'subject']
13
13
  METADATA = {
14
- 'id' => {'type'=>'id', 'path'=>'DeviceUseStatement.id', 'min'=>0, 'max'=>1},
15
- 'meta' => {'type'=>'Meta', 'path'=>'DeviceUseStatement.meta', 'min'=>0, 'max'=>1},
16
- 'implicitRules' => {'type'=>'uri', 'path'=>'DeviceUseStatement.implicitRules', 'min'=>0, 'max'=>1},
17
- 'language' => {'type'=>'code', 'path'=>'DeviceUseStatement.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
18
- 'text' => {'type'=>'Narrative', 'path'=>'DeviceUseStatement.text', 'min'=>0, 'max'=>1},
19
- 'contained' => {'type'=>'Resource', 'path'=>'DeviceUseStatement.contained', 'min'=>0, 'max'=>Float::INFINITY},
20
- 'extension' => {'type'=>'Extension', 'path'=>'DeviceUseStatement.extension', 'min'=>0, 'max'=>Float::INFINITY},
21
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'DeviceUseStatement.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
22
- 'bodySiteCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'DeviceUseStatement.bodySite[x]', 'min'=>0, 'max'=>1},
23
- 'bodySiteReference' => {'type'=>'Reference', 'path'=>'DeviceUseStatement.bodySite[x]', 'min'=>0, 'max'=>1},
24
- 'whenUsed' => {'type'=>'Period', 'path'=>'DeviceUseStatement.whenUsed', 'min'=>0, 'max'=>1},
25
- 'device' => {'type'=>'Reference', 'path'=>'DeviceUseStatement.device', 'min'=>1, 'max'=>1},
26
- 'identifier' => {'type'=>'Identifier', 'path'=>'DeviceUseStatement.identifier', 'min'=>0, 'max'=>Float::INFINITY},
27
- 'indication' => {'type'=>'CodeableConcept', 'path'=>'DeviceUseStatement.indication', 'min'=>0, 'max'=>Float::INFINITY},
28
- 'notes' => {'type'=>'string', 'path'=>'DeviceUseStatement.notes', 'min'=>0, 'max'=>Float::INFINITY},
29
- 'recordedOn' => {'type'=>'dateTime', 'path'=>'DeviceUseStatement.recordedOn', 'min'=>0, 'max'=>1},
30
- 'subject' => {'type'=>'Reference', 'path'=>'DeviceUseStatement.subject', 'min'=>1, 'max'=>1},
31
- 'timingTiming' => {'type'=>'Timing', 'path'=>'DeviceUseStatement.timing[x]', 'min'=>0, 'max'=>1},
32
- 'timingPeriod' => {'type'=>'Period', 'path'=>'DeviceUseStatement.timing[x]', 'min'=>0, 'max'=>1},
33
- 'timingDateTime' => {'type'=>'dateTime', 'path'=>'DeviceUseStatement.timing[x]', 'min'=>0, 'max'=>1}
14
+ 'id' => { 'type' => 'id', 'path' => 'DeviceUseStatement.id', 'min' => 0, 'max' => 1 },
15
+ 'meta' => { 'type' => 'Meta', 'path' => 'DeviceUseStatement.meta', 'min' => 0, 'max' => 1 },
16
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'DeviceUseStatement.implicitRules', 'min' => 0, 'max' => 1 },
17
+ 'language' => { 'type' => 'code', 'path' => 'DeviceUseStatement.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
18
+ 'text' => { 'type' => 'Narrative', 'path' => 'DeviceUseStatement.text', 'min' => 0, 'max' => 1 },
19
+ 'contained' => { 'type' => 'Resource', 'path' => 'DeviceUseStatement.contained', 'min' => 0, 'max' => Float::INFINITY },
20
+ 'extension' => { 'type' => 'Extension', 'path' => 'DeviceUseStatement.extension', 'min' => 0, 'max' => Float::INFINITY },
21
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'DeviceUseStatement.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
22
+ 'bodySiteCodeableConcept' => { 'type' => 'CodeableConcept', 'path' => 'DeviceUseStatement.bodySite[x]', 'min' => 0, 'max' => 1 },
23
+ 'bodySiteReference' => { 'type' => 'Reference', 'path' => 'DeviceUseStatement.bodySite[x]', 'min' => 0, 'max' => 1 },
24
+ 'whenUsed' => { 'type' => 'Period', 'path' => 'DeviceUseStatement.whenUsed', 'min' => 0, 'max' => 1 },
25
+ 'device' => { 'type' => 'Reference', 'path' => 'DeviceUseStatement.device', 'min' => 1, 'max' => 1 },
26
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'DeviceUseStatement.identifier', 'min' => 0, 'max' => Float::INFINITY },
27
+ 'indication' => { 'type' => 'CodeableConcept', 'path' => 'DeviceUseStatement.indication', 'min' => 0, 'max' => Float::INFINITY },
28
+ 'notes' => { 'type' => 'string', 'path' => 'DeviceUseStatement.notes', 'min' => 0, 'max' => Float::INFINITY },
29
+ 'recordedOn' => { 'type' => 'dateTime', 'path' => 'DeviceUseStatement.recordedOn', 'min' => 0, 'max' => 1 },
30
+ 'subject' => { 'type' => 'Reference', 'path' => 'DeviceUseStatement.subject', 'min' => 1, 'max' => 1 },
31
+ 'timingTiming' => { 'type' => 'Timing', 'path' => 'DeviceUseStatement.timing[x]', 'min' => 0, 'max' => 1 },
32
+ 'timingPeriod' => { 'type' => 'Period', 'path' => 'DeviceUseStatement.timing[x]', 'min' => 0, 'max' => 1 },
33
+ 'timingDateTime' => { 'type' => 'dateTime', 'path' => 'DeviceUseStatement.timing[x]', 'min' => 0, 'max' => 1 }
34
34
  }
35
35
 
36
36
  attr_accessor :id # 0-1 id
@@ -59,4 +59,4 @@ module FHIR
59
59
  end
60
60
  end
61
61
  end
62
- end
62
+ end
@@ -7,26 +7,26 @@ module FHIR
7
7
 
8
8
  SEARCH_PARAMS = ['actor', 'bodysite', 'code', 'encounter', 'event-date', 'event-status', 'identifier', 'item-date', 'item-past-status', 'item-status', 'orderer', 'patient', 'specimen', 'status', 'subject']
9
9
  METADATA = {
10
- 'id' => {'type'=>'id', 'path'=>'DiagnosticOrder.id', 'min'=>0, 'max'=>1},
11
- 'meta' => {'type'=>'Meta', 'path'=>'DiagnosticOrder.meta', 'min'=>0, 'max'=>1},
12
- 'implicitRules' => {'type'=>'uri', 'path'=>'DiagnosticOrder.implicitRules', 'min'=>0, 'max'=>1},
13
- 'language' => {'type'=>'code', 'path'=>'DiagnosticOrder.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
14
- 'text' => {'type'=>'Narrative', 'path'=>'DiagnosticOrder.text', 'min'=>0, 'max'=>1},
15
- 'contained' => {'type'=>'Resource', 'path'=>'DiagnosticOrder.contained', 'min'=>0, 'max'=>Float::INFINITY},
16
- 'extension' => {'type'=>'Extension', 'path'=>'DiagnosticOrder.extension', 'min'=>0, 'max'=>Float::INFINITY},
17
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'DiagnosticOrder.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
18
- 'subject' => {'type'=>'Reference', 'path'=>'DiagnosticOrder.subject', 'min'=>1, 'max'=>1},
19
- 'orderer' => {'type'=>'Reference', 'path'=>'DiagnosticOrder.orderer', 'min'=>0, 'max'=>1},
20
- 'identifier' => {'type'=>'Identifier', 'path'=>'DiagnosticOrder.identifier', 'min'=>0, 'max'=>Float::INFINITY},
21
- 'encounter' => {'type'=>'Reference', 'path'=>'DiagnosticOrder.encounter', 'min'=>0, 'max'=>1},
22
- 'reason' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'DiagnosticOrder.reason', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/condition-code'}},
23
- 'supportingInformation' => {'type'=>'Reference', 'path'=>'DiagnosticOrder.supportingInformation', 'min'=>0, 'max'=>Float::INFINITY},
24
- 'specimen' => {'type'=>'Reference', 'path'=>'DiagnosticOrder.specimen', 'min'=>0, 'max'=>Float::INFINITY},
25
- 'status' => {'valid_codes'=>{'http://hl7.org/fhir/diagnostic-order-status'=>['proposed', 'draft', 'planned', 'requested', 'received', 'accepted', 'in-progress', 'review', 'completed', 'cancelled', 'suspended', 'rejected', 'failed']}, 'type'=>'code', 'path'=>'DiagnosticOrder.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/diagnostic-order-status'}},
26
- 'priority' => {'valid_codes'=>{'http://hl7.org/fhir/diagnostic-order-priority'=>['routine', 'urgent', 'stat', 'asap']}, 'type'=>'code', 'path'=>'DiagnosticOrder.priority', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/diagnostic-order-priority'}},
27
- 'event' => {'type'=>'DiagnosticOrder::Event', 'path'=>'DiagnosticOrder.event', 'min'=>0, 'max'=>Float::INFINITY},
28
- 'item' => {'type'=>'DiagnosticOrder::Item', 'path'=>'DiagnosticOrder.item', 'min'=>0, 'max'=>Float::INFINITY},
29
- 'note' => {'type'=>'Annotation', 'path'=>'DiagnosticOrder.note', 'min'=>0, 'max'=>Float::INFINITY}
10
+ 'id' => { 'type' => 'id', 'path' => 'DiagnosticOrder.id', 'min' => 0, 'max' => 1 },
11
+ 'meta' => { 'type' => 'Meta', 'path' => 'DiagnosticOrder.meta', 'min' => 0, 'max' => 1 },
12
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'DiagnosticOrder.implicitRules', 'min' => 0, 'max' => 1 },
13
+ 'language' => { 'type' => 'code', 'path' => 'DiagnosticOrder.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
14
+ 'text' => { 'type' => 'Narrative', 'path' => 'DiagnosticOrder.text', 'min' => 0, 'max' => 1 },
15
+ 'contained' => { 'type' => 'Resource', 'path' => 'DiagnosticOrder.contained', 'min' => 0, 'max' => Float::INFINITY },
16
+ 'extension' => { 'type' => 'Extension', 'path' => 'DiagnosticOrder.extension', 'min' => 0, 'max' => Float::INFINITY },
17
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'DiagnosticOrder.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
18
+ 'subject' => { 'type' => 'Reference', 'path' => 'DiagnosticOrder.subject', 'min' => 1, 'max' => 1 },
19
+ 'orderer' => { 'type' => 'Reference', 'path' => 'DiagnosticOrder.orderer', 'min' => 0, 'max' => 1 },
20
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'DiagnosticOrder.identifier', 'min' => 0, 'max' => Float::INFINITY },
21
+ 'encounter' => { 'type' => 'Reference', 'path' => 'DiagnosticOrder.encounter', 'min' => 0, 'max' => 1 },
22
+ 'reason' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'DiagnosticOrder.reason', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/condition-code' } },
23
+ 'supportingInformation' => { 'type' => 'Reference', 'path' => 'DiagnosticOrder.supportingInformation', 'min' => 0, 'max' => Float::INFINITY },
24
+ 'specimen' => { 'type' => 'Reference', 'path' => 'DiagnosticOrder.specimen', 'min' => 0, 'max' => Float::INFINITY },
25
+ 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/diagnostic-order-status' => ['proposed', 'draft', 'planned', 'requested', 'received', 'accepted', 'in-progress', 'review', 'completed', 'cancelled', 'suspended', 'rejected', 'failed'] }, 'type' => 'code', 'path' => 'DiagnosticOrder.status', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/diagnostic-order-status' } },
26
+ 'priority' => { 'valid_codes' => { 'http://hl7.org/fhir/diagnostic-order-priority' => ['routine', 'urgent', 'stat', 'asap'] }, 'type' => 'code', 'path' => 'DiagnosticOrder.priority', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/diagnostic-order-priority' } },
27
+ 'event' => { 'type' => 'DiagnosticOrder::Event', 'path' => 'DiagnosticOrder.event', 'min' => 0, 'max' => Float::INFINITY },
28
+ 'item' => { 'type' => 'DiagnosticOrder::Item', 'path' => 'DiagnosticOrder.item', 'min' => 0, 'max' => Float::INFINITY },
29
+ 'note' => { 'type' => 'Annotation', 'path' => 'DiagnosticOrder.note', 'min' => 0, 'max' => Float::INFINITY }
30
30
  }
31
31
 
32
32
  class Event < FHIR::DSTU2::Model
@@ -35,13 +35,13 @@ module FHIR
35
35
  include FHIR::DSTU2::Xml
36
36
 
37
37
  METADATA = {
38
- 'id' => {'type'=>'id', 'path'=>'Event.id', 'min'=>0, 'max'=>1},
39
- 'extension' => {'type'=>'Extension', 'path'=>'Event.extension', 'min'=>0, 'max'=>Float::INFINITY},
40
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Event.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
41
- 'status' => {'valid_codes'=>{'http://hl7.org/fhir/diagnostic-order-status'=>['proposed', 'draft', 'planned', 'requested', 'received', 'accepted', 'in-progress', 'review', 'completed', 'cancelled', 'suspended', 'rejected', 'failed']}, 'type'=>'code', 'path'=>'Event.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/diagnostic-order-status'}},
42
- 'description' => {'valid_codes'=>{'http://snomed.info/sct'=>['440622005', '394838008', '26895000']}, 'type'=>'CodeableConcept', 'path'=>'Event.description', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/diagnostic-order-event'}},
43
- 'dateTime' => {'type'=>'dateTime', 'path'=>'Event.dateTime', 'min'=>1, 'max'=>1},
44
- 'actor' => {'type'=>'Reference', 'path'=>'Event.actor', 'min'=>0, 'max'=>1}
38
+ 'id' => { 'type' => 'id', 'path' => 'Event.id', 'min' => 0, 'max' => 1 },
39
+ 'extension' => { 'type' => 'Extension', 'path' => 'Event.extension', 'min' => 0, 'max' => Float::INFINITY },
40
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Event.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
41
+ 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/diagnostic-order-status' => ['proposed', 'draft', 'planned', 'requested', 'received', 'accepted', 'in-progress', 'review', 'completed', 'cancelled', 'suspended', 'rejected', 'failed'] }, 'type' => 'code', 'path' => 'Event.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/diagnostic-order-status' } },
42
+ 'description' => { 'valid_codes' => { 'http://snomed.info/sct' => ['440622005', '394838008', '26895000'] }, 'type' => 'CodeableConcept', 'path' => 'Event.description', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/diagnostic-order-event' } },
43
+ 'dateTime' => { 'type' => 'dateTime', 'path' => 'Event.dateTime', 'min' => 1, 'max' => 1 },
44
+ 'actor' => { 'type' => 'Reference', 'path' => 'Event.actor', 'min' => 0, 'max' => 1 }
45
45
  }
46
46
 
47
47
  attr_accessor :id # 0-1 id
@@ -59,14 +59,14 @@ module FHIR
59
59
  include FHIR::DSTU2::Xml
60
60
 
61
61
  METADATA = {
62
- 'id' => {'type'=>'id', 'path'=>'Item.id', 'min'=>0, 'max'=>1},
63
- 'extension' => {'type'=>'Extension', 'path'=>'Item.extension', 'min'=>0, 'max'=>Float::INFINITY},
64
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Item.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
65
- 'code' => {'valid_codes'=>{'http://loinc.org'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Item.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/diagnostic-requests'}},
66
- 'specimen' => {'type'=>'Reference', 'path'=>'Item.specimen', 'min'=>0, 'max'=>Float::INFINITY},
67
- 'bodySite' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Item.bodySite', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/body-site'}},
68
- 'status' => {'valid_codes'=>{'http://hl7.org/fhir/diagnostic-order-status'=>['proposed', 'draft', 'planned', 'requested', 'received', 'accepted', 'in-progress', 'review', 'completed', 'cancelled', 'suspended', 'rejected', 'failed']}, 'type'=>'code', 'path'=>'Item.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/diagnostic-order-status'}},
69
- 'event' => {'type'=>'DiagnosticOrder::Event', 'path'=>'Item.event', 'min'=>0, 'max'=>Float::INFINITY}
62
+ 'id' => { 'type' => 'id', 'path' => 'Item.id', 'min' => 0, 'max' => 1 },
63
+ 'extension' => { 'type' => 'Extension', 'path' => 'Item.extension', 'min' => 0, 'max' => Float::INFINITY },
64
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Item.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
65
+ 'code' => { 'valid_codes' => { 'http://loinc.org' => [] }, 'type' => 'CodeableConcept', 'path' => 'Item.code', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'preferred', 'uri' => 'http://hl7.org/fhir/ValueSet/diagnostic-requests' } },
66
+ 'specimen' => { 'type' => 'Reference', 'path' => 'Item.specimen', 'min' => 0, 'max' => Float::INFINITY },
67
+ 'bodySite' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Item.bodySite', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/body-site' } },
68
+ 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/diagnostic-order-status' => ['proposed', 'draft', 'planned', 'requested', 'received', 'accepted', 'in-progress', 'review', 'completed', 'cancelled', 'suspended', 'rejected', 'failed'] }, 'type' => 'code', 'path' => 'Item.status', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/diagnostic-order-status' } },
69
+ 'event' => { 'type' => 'DiagnosticOrder::Event', 'path' => 'Item.event', 'min' => 0, 'max' => Float::INFINITY }
70
70
  }
71
71
 
72
72
  attr_accessor :id # 0-1 id
@@ -105,4 +105,4 @@ module FHIR
105
105
  end
106
106
  end
107
107
  end
108
- end
108
+ end
@@ -10,32 +10,32 @@ module FHIR
10
10
  }
11
11
  SEARCH_PARAMS = ['category', 'code', 'date', 'diagnosis', 'encounter', 'identifier', 'image', 'issued', 'patient', 'performer', 'request', 'result', 'specimen', 'status', 'subject']
12
12
  METADATA = {
13
- 'id' => {'type'=>'id', 'path'=>'DiagnosticReport.id', 'min'=>0, 'max'=>1},
14
- 'meta' => {'type'=>'Meta', 'path'=>'DiagnosticReport.meta', 'min'=>0, 'max'=>1},
15
- 'implicitRules' => {'type'=>'uri', 'path'=>'DiagnosticReport.implicitRules', 'min'=>0, 'max'=>1},
16
- 'language' => {'type'=>'code', 'path'=>'DiagnosticReport.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
17
- 'text' => {'type'=>'Narrative', 'path'=>'DiagnosticReport.text', 'min'=>0, 'max'=>1},
18
- 'contained' => {'type'=>'Resource', 'path'=>'DiagnosticReport.contained', 'min'=>0, 'max'=>Float::INFINITY},
19
- 'extension' => {'type'=>'Extension', 'path'=>'DiagnosticReport.extension', 'min'=>0, 'max'=>Float::INFINITY},
20
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'DiagnosticReport.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
21
- 'identifier' => {'type'=>'Identifier', 'path'=>'DiagnosticReport.identifier', 'min'=>0, 'max'=>Float::INFINITY},
22
- 'status' => {'valid_codes'=>{'http://hl7.org/fhir/diagnostic-report-status'=>['registered', 'partial', 'final', 'corrected', 'appended', 'cancelled', 'entered-in-error']}, 'type'=>'code', 'path'=>'DiagnosticReport.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/diagnostic-report-status'}},
23
- 'category' => {'valid_codes'=>{'http://hl7.org/fhir/v2/0074'=>['AU', 'BG', 'BLB', 'CG', 'CH', 'CP', 'CT', 'CTH', 'CUS', 'EC', 'EN', 'GE', 'HM', 'ICU', 'IMG', 'IMM', 'LAB', 'MB', 'MCB', 'MYC', 'NMR', 'NMS', 'NRS', 'OSL', 'OT', 'OTH', 'OUS', 'PAR', 'PAT', 'PF', 'PHR', 'PHY', 'PT', 'RAD', 'RC', 'RT', 'RUS', 'RX', 'SP', 'SR', 'TX', 'URN', 'VR', 'VUS', 'XRC']}, 'type'=>'CodeableConcept', 'path'=>'DiagnosticReport.category', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/diagnostic-service-sections'}},
24
- 'code' => {'valid_codes'=>{'http://loinc.org'=>[]}, 'type'=>'CodeableConcept', 'path'=>'DiagnosticReport.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/report-codes'}},
25
- 'subject' => {'type'=>'Reference', 'path'=>'DiagnosticReport.subject', 'min'=>1, 'max'=>1},
26
- 'encounter' => {'type'=>'Reference', 'path'=>'DiagnosticReport.encounter', 'min'=>0, 'max'=>1},
27
- 'effectiveDateTime' => {'type'=>'dateTime', 'path'=>'DiagnosticReport.effective[x]', 'min'=>1, 'max'=>1},
28
- 'effectivePeriod' => {'type'=>'Period', 'path'=>'DiagnosticReport.effective[x]', 'min'=>1, 'max'=>1},
29
- 'issued' => {'type'=>'instant', 'path'=>'DiagnosticReport.issued', 'min'=>1, 'max'=>1},
30
- 'performer' => {'type'=>'Reference', 'path'=>'DiagnosticReport.performer', 'min'=>1, 'max'=>1},
31
- 'request' => {'type'=>'Reference', 'path'=>'DiagnosticReport.request', 'min'=>0, 'max'=>Float::INFINITY},
32
- 'specimen' => {'type'=>'Reference', 'path'=>'DiagnosticReport.specimen', 'min'=>0, 'max'=>Float::INFINITY},
33
- 'result' => {'type'=>'Reference', 'path'=>'DiagnosticReport.result', 'min'=>0, 'max'=>Float::INFINITY},
34
- 'imagingStudy' => {'type'=>'Reference', 'path'=>'DiagnosticReport.imagingStudy', 'min'=>0, 'max'=>Float::INFINITY},
35
- 'image' => {'type'=>'DiagnosticReport::Image', 'path'=>'DiagnosticReport.image', 'min'=>0, 'max'=>Float::INFINITY},
36
- 'conclusion' => {'type'=>'string', 'path'=>'DiagnosticReport.conclusion', 'min'=>0, 'max'=>1},
37
- 'codedDiagnosis' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'DiagnosticReport.codedDiagnosis', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/clinical-findings'}},
38
- 'presentedForm' => {'type'=>'Attachment', 'path'=>'DiagnosticReport.presentedForm', 'min'=>0, 'max'=>Float::INFINITY}
13
+ 'id' => { 'type' => 'id', 'path' => 'DiagnosticReport.id', 'min' => 0, 'max' => 1 },
14
+ 'meta' => { 'type' => 'Meta', 'path' => 'DiagnosticReport.meta', 'min' => 0, 'max' => 1 },
15
+ 'implicitRules' => { 'type' => 'uri', 'path' => 'DiagnosticReport.implicitRules', 'min' => 0, 'max' => 1 },
16
+ 'language' => { 'type' => 'code', 'path' => 'DiagnosticReport.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
17
+ 'text' => { 'type' => 'Narrative', 'path' => 'DiagnosticReport.text', 'min' => 0, 'max' => 1 },
18
+ 'contained' => { 'type' => 'Resource', 'path' => 'DiagnosticReport.contained', 'min' => 0, 'max' => Float::INFINITY },
19
+ 'extension' => { 'type' => 'Extension', 'path' => 'DiagnosticReport.extension', 'min' => 0, 'max' => Float::INFINITY },
20
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'DiagnosticReport.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
21
+ 'identifier' => { 'type' => 'Identifier', 'path' => 'DiagnosticReport.identifier', 'min' => 0, 'max' => Float::INFINITY },
22
+ 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/diagnostic-report-status' => ['registered', 'partial', 'final', 'corrected', 'appended', 'cancelled', 'entered-in-error'] }, 'type' => 'code', 'path' => 'DiagnosticReport.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/diagnostic-report-status' } },
23
+ 'category' => { 'valid_codes' => { 'http://hl7.org/fhir/v2/0074' => ['AU', 'BG', 'BLB', 'CG', 'CH', 'CP', 'CT', 'CTH', 'CUS', 'EC', 'EN', 'GE', 'HM', 'ICU', 'IMG', 'IMM', 'LAB', 'MB', 'MCB', 'MYC', 'NMR', 'NMS', 'NRS', 'OSL', 'OT', 'OTH', 'OUS', 'PAR', 'PAT', 'PF', 'PHR', 'PHY', 'PT', 'RAD', 'RC', 'RT', 'RUS', 'RX', 'SP', 'SR', 'TX', 'URN', 'VR', 'VUS', 'XRC'] }, 'type' => 'CodeableConcept', 'path' => 'DiagnosticReport.category', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/diagnostic-service-sections' } },
24
+ 'code' => { 'valid_codes' => { 'http://loinc.org' => [] }, 'type' => 'CodeableConcept', 'path' => 'DiagnosticReport.code', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'preferred', 'uri' => 'http://hl7.org/fhir/ValueSet/report-codes' } },
25
+ 'subject' => { 'type' => 'Reference', 'path' => 'DiagnosticReport.subject', 'min' => 1, 'max' => 1 },
26
+ 'encounter' => { 'type' => 'Reference', 'path' => 'DiagnosticReport.encounter', 'min' => 0, 'max' => 1 },
27
+ 'effectiveDateTime' => { 'type' => 'dateTime', 'path' => 'DiagnosticReport.effective[x]', 'min' => 1, 'max' => 1 },
28
+ 'effectivePeriod' => { 'type' => 'Period', 'path' => 'DiagnosticReport.effective[x]', 'min' => 1, 'max' => 1 },
29
+ 'issued' => { 'type' => 'instant', 'path' => 'DiagnosticReport.issued', 'min' => 1, 'max' => 1 },
30
+ 'performer' => { 'type' => 'Reference', 'path' => 'DiagnosticReport.performer', 'min' => 1, 'max' => 1 },
31
+ 'request' => { 'type' => 'Reference', 'path' => 'DiagnosticReport.request', 'min' => 0, 'max' => Float::INFINITY },
32
+ 'specimen' => { 'type' => 'Reference', 'path' => 'DiagnosticReport.specimen', 'min' => 0, 'max' => Float::INFINITY },
33
+ 'result' => { 'type' => 'Reference', 'path' => 'DiagnosticReport.result', 'min' => 0, 'max' => Float::INFINITY },
34
+ 'imagingStudy' => { 'type' => 'Reference', 'path' => 'DiagnosticReport.imagingStudy', 'min' => 0, 'max' => Float::INFINITY },
35
+ 'image' => { 'type' => 'DiagnosticReport::Image', 'path' => 'DiagnosticReport.image', 'min' => 0, 'max' => Float::INFINITY },
36
+ 'conclusion' => { 'type' => 'string', 'path' => 'DiagnosticReport.conclusion', 'min' => 0, 'max' => 1 },
37
+ 'codedDiagnosis' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'DiagnosticReport.codedDiagnosis', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/clinical-findings' } },
38
+ 'presentedForm' => { 'type' => 'Attachment', 'path' => 'DiagnosticReport.presentedForm', 'min' => 0, 'max' => Float::INFINITY }
39
39
  }
40
40
 
41
41
  class Image < FHIR::DSTU2::Model
@@ -44,11 +44,11 @@ module FHIR
44
44
  include FHIR::DSTU2::Xml
45
45
 
46
46
  METADATA = {
47
- 'id' => {'type'=>'id', 'path'=>'Image.id', 'min'=>0, 'max'=>1},
48
- 'extension' => {'type'=>'Extension', 'path'=>'Image.extension', 'min'=>0, 'max'=>Float::INFINITY},
49
- 'modifierExtension' => {'type'=>'Extension', 'path'=>'Image.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
50
- 'comment' => {'type'=>'string', 'path'=>'Image.comment', 'min'=>0, 'max'=>1},
51
- 'link' => {'type'=>'Reference', 'path'=>'Image.link', 'min'=>1, 'max'=>1}
47
+ 'id' => { 'type' => 'id', 'path' => 'Image.id', 'min' => 0, 'max' => 1 },
48
+ 'extension' => { 'type' => 'Extension', 'path' => 'Image.extension', 'min' => 0, 'max' => Float::INFINITY },
49
+ 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Image.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
50
+ 'comment' => { 'type' => 'string', 'path' => 'Image.comment', 'min' => 0, 'max' => 1 },
51
+ 'link' => { 'type' => 'Reference', 'path' => 'Image.link', 'min' => 1, 'max' => 1 }
52
52
  }
53
53
 
54
54
  attr_accessor :id # 0-1 id
@@ -90,4 +90,4 @@ module FHIR
90
90
  end
91
91
  end
92
92
  end
93
- end
93
+ end