fhir_models 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +0 -1
  4. data/Gemfile.lock +1 -1
  5. data/Rakefile +0 -1
  6. data/fhir_models.gemspec +1 -1
  7. data/lib/fhir/metadata.rb +25 -0
  8. data/lib/fhir/resources/Account.rb +54 -0
  9. data/lib/fhir/resources/AllergyIntolerance.rb +92 -0
  10. data/lib/fhir/resources/Appointment.rb +88 -0
  11. data/lib/fhir/resources/AppointmentResponse.rb +48 -0
  12. data/lib/fhir/resources/AuditEvent.rb +188 -0
  13. data/lib/fhir/resources/Basic.rb +42 -0
  14. data/lib/fhir/resources/Binary.rb +28 -0
  15. data/lib/fhir/resources/BodySite.rb +44 -0
  16. data/lib/fhir/resources/Bundle.rb +154 -0
  17. data/lib/fhir/resources/CarePlan.rb +184 -0
  18. data/lib/fhir/resources/CareTeam.rb +70 -0
  19. data/lib/fhir/resources/Claim.rb +490 -0
  20. data/lib/fhir/resources/ClaimResponse.rb +421 -0
  21. data/lib/fhir/resources/ClinicalImpression.rb +131 -0
  22. data/lib/fhir/resources/CodeSystem.rb +225 -0
  23. data/lib/fhir/resources/Communication.rb +83 -0
  24. data/lib/fhir/resources/CommunicationRequest.rb +90 -0
  25. data/lib/fhir/resources/CompartmentDefinition.rb +98 -0
  26. data/lib/fhir/resources/Composition.rb +136 -0
  27. data/lib/fhir/resources/ConceptMap.rb +168 -0
  28. data/lib/fhir/resources/Condition.rb +126 -0
  29. data/lib/fhir/resources/Conformance.rb +442 -0
  30. data/lib/fhir/resources/Contract.rb +320 -0
  31. data/lib/fhir/resources/Coverage.rb +77 -0
  32. data/lib/fhir/resources/DataElement.rb +104 -0
  33. data/lib/fhir/resources/DecisionSupportRule.rb +42 -0
  34. data/lib/fhir/resources/DecisionSupportServiceModule.rb +40 -0
  35. data/lib/fhir/resources/DetectedIssue.rb +74 -0
  36. data/lib/fhir/resources/Device.rb +64 -0
  37. data/lib/fhir/resources/DeviceComponent.rb +74 -0
  38. data/lib/fhir/resources/DeviceMetric.rb +74 -0
  39. data/lib/fhir/resources/DeviceUseRequest.rb +68 -0
  40. data/lib/fhir/resources/DeviceUseStatement.rb +60 -0
  41. data/lib/fhir/resources/DiagnosticOrder.rb +106 -0
  42. data/lib/fhir/resources/DiagnosticReport.rb +91 -0
  43. data/lib/fhir/resources/DocumentManifest.rb +99 -0
  44. data/lib/fhir/resources/DocumentReference.rb +156 -0
  45. data/lib/fhir/resources/DomainResource.rb +32 -0
  46. data/lib/fhir/resources/EligibilityRequest.rb +90 -0
  47. data/lib/fhir/resources/EligibilityResponse.rb +152 -0
  48. data/lib/fhir/resources/Encounter.rb +172 -0
  49. data/lib/fhir/resources/EnrollmentRequest.rb +52 -0
  50. data/lib/fhir/resources/EnrollmentResponse.rb +52 -0
  51. data/lib/fhir/resources/EpisodeOfCare.rb +74 -0
  52. data/lib/fhir/resources/ExpansionProfile.rb +284 -0
  53. data/lib/fhir/resources/ExplanationOfBenefit.rb +764 -0
  54. data/lib/fhir/resources/FamilyMemberHistory.rb +110 -0
  55. data/lib/fhir/resources/Flag.rb +48 -0
  56. data/lib/fhir/resources/Goal.rb +91 -0
  57. data/lib/fhir/resources/Group.rb +105 -0
  58. data/lib/fhir/resources/GuidanceResponse.rb +139 -0
  59. data/lib/fhir/resources/HealthcareService.rb +122 -0
  60. data/lib/fhir/resources/ImagingExcerpt.rb +210 -0
  61. data/lib/fhir/resources/ImagingObjectSelection.rb +136 -0
  62. data/lib/fhir/resources/ImagingStudy.rb +130 -0
  63. data/lib/fhir/resources/Immunization.rb +148 -0
  64. data/lib/fhir/resources/ImmunizationRecommendation.rb +114 -0
  65. data/lib/fhir/resources/ImplementationGuide.rb +211 -0
  66. data/lib/fhir/resources/Library.rb +145 -0
  67. data/lib/fhir/resources/Linkage.rb +56 -0
  68. data/lib/fhir/resources/List.rb +82 -0
  69. data/lib/fhir/resources/Location.rb +78 -0
  70. data/lib/fhir/resources/Measure.rb +160 -0
  71. data/lib/fhir/resources/MeasureReport.rb +204 -0
  72. data/lib/fhir/resources/Media.rb +56 -0
  73. data/lib/fhir/resources/Medication.rb +154 -0
  74. data/lib/fhir/resources/MedicationAdministration.rb +104 -0
  75. data/lib/fhir/resources/MedicationDispense.rb +141 -0
  76. data/lib/fhir/resources/MedicationOrder.rb +172 -0
  77. data/lib/fhir/resources/MedicationStatement.rb +117 -0
  78. data/lib/fhir/resources/MessageHeader.rb +124 -0
  79. data/lib/fhir/resources/ModuleDefinition.rb +249 -0
  80. data/lib/fhir/resources/NamingSystem.rb +102 -0
  81. data/lib/fhir/resources/NutritionOrder.rb +211 -0
  82. data/lib/fhir/resources/Observation.rb +187 -0
  83. data/lib/fhir/resources/OperationDefinition.rb +153 -0
  84. data/lib/fhir/resources/OperationOutcome.rb +62 -0
  85. data/lib/fhir/resources/Order.rb +73 -0
  86. data/lib/fhir/resources/OrderResponse.rb +46 -0
  87. data/lib/fhir/resources/OrderSet.rb +38 -0
  88. data/lib/fhir/resources/Organization.rb +72 -0
  89. data/lib/fhir/resources/Parameters.rb +117 -0
  90. data/lib/fhir/resources/Patient.rb +166 -0
  91. data/lib/fhir/resources/PaymentNotice.rb +71 -0
  92. data/lib/fhir/resources/PaymentReconciliation.rb +140 -0
  93. data/lib/fhir/resources/Person.rb +72 -0
  94. data/lib/fhir/resources/Practitioner.rb +110 -0
  95. data/lib/fhir/resources/PractitionerRole.rb +102 -0
  96. data/lib/fhir/resources/Procedure.rb +122 -0
  97. data/lib/fhir/resources/ProcedureRequest.rb +73 -0
  98. data/lib/fhir/resources/ProcessRequest.rb +99 -0
  99. data/lib/fhir/resources/ProcessResponse.rb +92 -0
  100. data/lib/fhir/resources/Protocol.rb +242 -0
  101. data/lib/fhir/resources/Provenance.rb +122 -0
  102. data/lib/fhir/resources/Questionnaire.rb +205 -0
  103. data/lib/fhir/resources/QuestionnaireResponse.rb +123 -0
  104. data/lib/fhir/resources/ReferralRequest.rb +68 -0
  105. data/lib/fhir/resources/RelatedPerson.rb +52 -0
  106. data/lib/fhir/resources/Resource.rb +24 -0
  107. data/lib/fhir/resources/RiskAssessment.rb +88 -0
  108. data/lib/fhir/resources/Schedule.rb +46 -0
  109. data/lib/fhir/resources/SearchParameter.rb +86 -0
  110. data/lib/fhir/resources/Sequence.rb +238 -0
  111. data/lib/fhir/resources/Slot.rb +54 -0
  112. data/lib/fhir/resources/Specimen.rb +140 -0
  113. data/lib/fhir/resources/StructureDefinition.rb +164 -0
  114. data/lib/fhir/resources/StructureMap.rb +297 -0
  115. data/lib/fhir/resources/Subscription.rb +72 -0
  116. data/lib/fhir/resources/Substance.rb +86 -0
  117. data/lib/fhir/resources/SupplyDelivery.rb +54 -0
  118. data/lib/fhir/resources/SupplyRequest.rb +77 -0
  119. data/lib/fhir/resources/Task.rb +240 -0
  120. data/lib/fhir/resources/TestScript.rb +692 -0
  121. data/lib/fhir/resources/ValueSet.rb +289 -0
  122. data/lib/fhir/resources/VisionPrescription.rb +97 -0
  123. data/lib/fhir/types/ActionDefinition.rb +109 -0
  124. data/lib/fhir/types/Address.rb +36 -0
  125. data/lib/fhir/types/Annotation.rb +27 -0
  126. data/lib/fhir/types/Attachment.rb +32 -0
  127. data/lib/fhir/types/BackboneElement.rb +18 -0
  128. data/lib/fhir/types/CodeableConcept.rb +20 -0
  129. data/lib/fhir/types/Coding.rb +26 -0
  130. data/lib/fhir/types/ContactPoint.rb +26 -0
  131. data/lib/fhir/types/DataRequirement.rb +78 -0
  132. data/lib/fhir/types/Element.rb +16 -0
  133. data/lib/fhir/types/ElementDefinition.rb +605 -0
  134. data/lib/fhir/types/Extension.rb +87 -0
  135. data/lib/fhir/types/HumanName.rb +30 -0
  136. data/lib/fhir/types/Identifier.rb +28 -0
  137. data/lib/fhir/types/Meta.rb +26 -0
  138. data/lib/fhir/types/ModuleMetadata.rb +152 -0
  139. data/lib/fhir/types/Narrative.rb +20 -0
  140. data/lib/fhir/types/ParameterDefinition.rb +30 -0
  141. data/lib/fhir/types/Period.rb +20 -0
  142. data/lib/fhir/types/Quantity.rb +26 -0
  143. data/lib/fhir/types/Range.rb +20 -0
  144. data/lib/fhir/types/Ratio.rb +20 -0
  145. data/lib/fhir/types/Reference.rb +20 -0
  146. data/lib/fhir/types/SampledData.rb +30 -0
  147. data/lib/fhir/types/Signature.rb +31 -0
  148. data/lib/fhir/types/Timing.rb +69 -0
  149. data/lib/fhir/types/TriggerDefinition.rb +33 -0
  150. data/lib/fhir_models.rb +2 -2
  151. data/lib/tasks/tasks.rake +29 -0
  152. metadata +145 -2
@@ -0,0 +1,692 @@
1
+ module FHIR
2
+ class TestScript < FHIR::Model
3
+ include FHIR::Hashable
4
+ include FHIR::Json
5
+ include FHIR::Xml
6
+
7
+ SEARCH_PARAMS = ["description", "identifier", "name", "testscript-capability", "testscript-setup-capability", "testscript-test-capability", "url"]
8
+ METADATA = {
9
+ 'id' => {'type'=>'id', 'path'=>'TestScript.id', 'min'=>0, 'max'=>1},
10
+ 'meta' => {'type'=>'Meta', 'path'=>'TestScript.meta', 'min'=>0, 'max'=>1},
11
+ 'implicitRules' => {'type'=>'uri', 'path'=>'TestScript.implicitRules', 'min'=>0, 'max'=>1},
12
+ 'language' => {'type'=>'code', 'path'=>'TestScript.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
13
+ 'text' => {'type'=>'Narrative', 'path'=>'TestScript.text', 'min'=>0, 'max'=>1},
14
+ 'contained' => {'type'=>'Resource', 'path'=>'TestScript.contained', 'min'=>0, 'max'=>Float::INFINITY},
15
+ 'extension' => {'type'=>'Extension', 'path'=>'TestScript.extension', 'min'=>0, 'max'=>Float::INFINITY},
16
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'TestScript.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
17
+ 'url' => {'type'=>'uri', 'path'=>'TestScript.url', 'min'=>1, 'max'=>1},
18
+ 'version' => {'type'=>'string', 'path'=>'TestScript.version', 'min'=>0, 'max'=>1},
19
+ 'name' => {'type'=>'string', 'path'=>'TestScript.name', 'min'=>1, 'max'=>1},
20
+ 'status' => {'valid_codes'=>{'http://hl7.org/fhir/conformance-resource-status'=>['draft', 'active', 'retired']}, 'type'=>'code', 'path'=>'TestScript.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/conformance-resource-status'}},
21
+ 'identifier' => {'type'=>'Identifier', 'path'=>'TestScript.identifier', 'min'=>0, 'max'=>1},
22
+ 'experimental' => {'type'=>'boolean', 'path'=>'TestScript.experimental', 'min'=>0, 'max'=>1},
23
+ 'publisher' => {'type'=>'string', 'path'=>'TestScript.publisher', 'min'=>0, 'max'=>1},
24
+ 'contact' => {'type'=>'TestScript::Contact', 'path'=>'TestScript.contact', 'min'=>0, 'max'=>Float::INFINITY},
25
+ 'date' => {'type'=>'dateTime', 'path'=>'TestScript.date', 'min'=>0, 'max'=>1},
26
+ 'description' => {'type'=>'string', 'path'=>'TestScript.description', 'min'=>0, 'max'=>1},
27
+ 'useContext' => {'type'=>'CodeableConcept', 'path'=>'TestScript.useContext', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/use-context'}},
28
+ 'requirements' => {'type'=>'string', 'path'=>'TestScript.requirements', 'min'=>0, 'max'=>1},
29
+ 'copyright' => {'type'=>'string', 'path'=>'TestScript.copyright', 'min'=>0, 'max'=>1},
30
+ 'origin' => {'type'=>'TestScript::Origin', 'path'=>'TestScript.origin', 'min'=>0, 'max'=>Float::INFINITY},
31
+ 'destination' => {'type'=>'TestScript::Destination', 'path'=>'TestScript.destination', 'min'=>0, 'max'=>Float::INFINITY},
32
+ 'metadata' => {'type'=>'TestScript::Metadata', 'path'=>'TestScript.metadata', 'min'=>0, 'max'=>1},
33
+ 'fixture' => {'type'=>'TestScript::Fixture', 'path'=>'TestScript.fixture', 'min'=>0, 'max'=>Float::INFINITY},
34
+ 'profile' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'TestScript.profile', 'min'=>0, 'max'=>Float::INFINITY},
35
+ 'variable' => {'type'=>'TestScript::Variable', 'path'=>'TestScript.variable', 'min'=>0, 'max'=>Float::INFINITY},
36
+ 'rule' => {'type'=>'TestScript::Rule', 'path'=>'TestScript.rule', 'min'=>0, 'max'=>Float::INFINITY},
37
+ 'ruleset' => {'type'=>'TestScript::Ruleset', 'path'=>'TestScript.ruleset', 'min'=>0, 'max'=>Float::INFINITY},
38
+ 'setup' => {'type'=>'TestScript::Setup', 'path'=>'TestScript.setup', 'min'=>0, 'max'=>1},
39
+ 'test' => {'type'=>'TestScript::Test', 'path'=>'TestScript.test', 'min'=>0, 'max'=>Float::INFINITY},
40
+ 'teardown' => {'type'=>'TestScript::Teardown', 'path'=>'TestScript.teardown', 'min'=>0, 'max'=>1}
41
+ }
42
+
43
+ class Contact < FHIR::Model
44
+ include FHIR::Hashable
45
+ include FHIR::Json
46
+ include FHIR::Xml
47
+
48
+ METADATA = {
49
+ 'id' => {'type'=>'id', 'path'=>'Contact.id', 'min'=>0, 'max'=>1},
50
+ 'extension' => {'type'=>'Extension', 'path'=>'Contact.extension', 'min'=>0, 'max'=>Float::INFINITY},
51
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Contact.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
52
+ 'name' => {'type'=>'string', 'path'=>'Contact.name', 'min'=>0, 'max'=>1},
53
+ 'telecom' => {'type'=>'ContactPoint', 'path'=>'Contact.telecom', 'min'=>0, 'max'=>Float::INFINITY}
54
+ }
55
+
56
+ attr_accessor :id # 0-1 id
57
+ attr_accessor :extension # 0-* [ Extension ]
58
+ attr_accessor :modifierExtension # 0-* [ Extension ]
59
+ attr_accessor :name # 0-1 string
60
+ attr_accessor :telecom # 0-* [ ContactPoint ]
61
+ end
62
+
63
+ class Origin < FHIR::Model
64
+ include FHIR::Hashable
65
+ include FHIR::Json
66
+ include FHIR::Xml
67
+
68
+ METADATA = {
69
+ 'id' => {'type'=>'id', 'path'=>'Origin.id', 'min'=>0, 'max'=>1},
70
+ 'extension' => {'type'=>'Extension', 'path'=>'Origin.extension', 'min'=>0, 'max'=>Float::INFINITY},
71
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Origin.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
72
+ 'index' => {'type'=>'integer', 'path'=>'Origin.index', 'min'=>1, 'max'=>1},
73
+ 'profile' => {'valid_codes'=>{'http://hl7.org/fhir/testscript-profile-origin-types'=>['FHIR-Client', 'FHIR-SDC-FormFiller']}, 'type'=>'Coding', 'path'=>'Origin.profile', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/testscript-profile-origin-types'}}
74
+ }
75
+
76
+ attr_accessor :id # 0-1 id
77
+ attr_accessor :extension # 0-* [ Extension ]
78
+ attr_accessor :modifierExtension # 0-* [ Extension ]
79
+ attr_accessor :index # 1-1 integer
80
+ attr_accessor :profile # 1-1 Coding
81
+ end
82
+
83
+ class Destination < FHIR::Model
84
+ include FHIR::Hashable
85
+ include FHIR::Json
86
+ include FHIR::Xml
87
+
88
+ METADATA = {
89
+ 'id' => {'type'=>'id', 'path'=>'Destination.id', 'min'=>0, 'max'=>1},
90
+ 'extension' => {'type'=>'Extension', 'path'=>'Destination.extension', 'min'=>0, 'max'=>Float::INFINITY},
91
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Destination.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
92
+ 'index' => {'type'=>'integer', 'path'=>'Destination.index', 'min'=>1, 'max'=>1},
93
+ 'profile' => {'valid_codes'=>{'http://hl7.org/fhir/testscript-profile-destination-types'=>['FHIR-Server', 'FHIR-SDC-FormManager', 'FHIR-SDC-FormProcessor', 'FHIR-SDC-FormReceiver']}, 'type'=>'Coding', 'path'=>'Destination.profile', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/testscript-profile-destination-types'}}
94
+ }
95
+
96
+ attr_accessor :id # 0-1 id
97
+ attr_accessor :extension # 0-* [ Extension ]
98
+ attr_accessor :modifierExtension # 0-* [ Extension ]
99
+ attr_accessor :index # 1-1 integer
100
+ attr_accessor :profile # 1-1 Coding
101
+ end
102
+
103
+ class Metadata < FHIR::Model
104
+ include FHIR::Hashable
105
+ include FHIR::Json
106
+ include FHIR::Xml
107
+
108
+ METADATA = {
109
+ 'id' => {'type'=>'id', 'path'=>'Metadata.id', 'min'=>0, 'max'=>1},
110
+ 'extension' => {'type'=>'Extension', 'path'=>'Metadata.extension', 'min'=>0, 'max'=>Float::INFINITY},
111
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Metadata.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
112
+ 'link' => {'type'=>'TestScript::Metadata::Link', 'path'=>'Metadata.link', 'min'=>0, 'max'=>Float::INFINITY},
113
+ 'capability' => {'type'=>'TestScript::Metadata::Capability', 'path'=>'Metadata.capability', 'min'=>1, 'max'=>Float::INFINITY}
114
+ }
115
+
116
+ class Link < FHIR::Model
117
+ include FHIR::Hashable
118
+ include FHIR::Json
119
+ include FHIR::Xml
120
+
121
+ METADATA = {
122
+ 'id' => {'type'=>'id', 'path'=>'Link.id', 'min'=>0, 'max'=>1},
123
+ 'extension' => {'type'=>'Extension', 'path'=>'Link.extension', 'min'=>0, 'max'=>Float::INFINITY},
124
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Link.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
125
+ 'url' => {'type'=>'uri', 'path'=>'Link.url', 'min'=>1, 'max'=>1},
126
+ 'description' => {'type'=>'string', 'path'=>'Link.description', 'min'=>0, 'max'=>1}
127
+ }
128
+
129
+ attr_accessor :id # 0-1 id
130
+ attr_accessor :extension # 0-* [ Extension ]
131
+ attr_accessor :modifierExtension # 0-* [ Extension ]
132
+ attr_accessor :url # 1-1 uri
133
+ attr_accessor :description # 0-1 string
134
+ end
135
+
136
+ class Capability < FHIR::Model
137
+ include FHIR::Hashable
138
+ include FHIR::Json
139
+ include FHIR::Xml
140
+
141
+ METADATA = {
142
+ 'id' => {'type'=>'id', 'path'=>'Capability.id', 'min'=>0, 'max'=>1},
143
+ 'extension' => {'type'=>'Extension', 'path'=>'Capability.extension', 'min'=>0, 'max'=>Float::INFINITY},
144
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Capability.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
145
+ 'required' => {'type'=>'boolean', 'path'=>'Capability.required', 'min'=>0, 'max'=>1},
146
+ 'validated' => {'type'=>'boolean', 'path'=>'Capability.validated', 'min'=>0, 'max'=>1},
147
+ 'description' => {'type'=>'string', 'path'=>'Capability.description', 'min'=>0, 'max'=>1},
148
+ 'origin' => {'type'=>'integer', 'path'=>'Capability.origin', 'min'=>0, 'max'=>Float::INFINITY},
149
+ 'destination' => {'type'=>'integer', 'path'=>'Capability.destination', 'min'=>0, 'max'=>1},
150
+ 'link' => {'type'=>'uri', 'path'=>'Capability.link', 'min'=>0, 'max'=>Float::INFINITY},
151
+ 'conformance' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Conformance'], 'type'=>'Reference', 'path'=>'Capability.conformance', 'min'=>1, 'max'=>1}
152
+ }
153
+
154
+ attr_accessor :id # 0-1 id
155
+ attr_accessor :extension # 0-* [ Extension ]
156
+ attr_accessor :modifierExtension # 0-* [ Extension ]
157
+ attr_accessor :required # 0-1 boolean
158
+ attr_accessor :validated # 0-1 boolean
159
+ attr_accessor :description # 0-1 string
160
+ attr_accessor :origin # 0-* [ integer ]
161
+ attr_accessor :destination # 0-1 integer
162
+ attr_accessor :link # 0-* [ uri ]
163
+ attr_accessor :conformance # 1-1 Reference(Conformance)
164
+ end
165
+
166
+ attr_accessor :id # 0-1 id
167
+ attr_accessor :extension # 0-* [ Extension ]
168
+ attr_accessor :modifierExtension # 0-* [ Extension ]
169
+ attr_accessor :link # 0-* [ TestScript::Metadata::Link ]
170
+ attr_accessor :capability # 1-* [ TestScript::Metadata::Capability ]
171
+ end
172
+
173
+ class Fixture < FHIR::Model
174
+ include FHIR::Hashable
175
+ include FHIR::Json
176
+ include FHIR::Xml
177
+
178
+ METADATA = {
179
+ 'id' => {'type'=>'id', 'path'=>'Fixture.id', 'min'=>0, 'max'=>1},
180
+ 'extension' => {'type'=>'Extension', 'path'=>'Fixture.extension', 'min'=>0, 'max'=>Float::INFINITY},
181
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Fixture.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
182
+ 'autocreate' => {'type'=>'boolean', 'path'=>'Fixture.autocreate', 'min'=>0, 'max'=>1},
183
+ 'autodelete' => {'type'=>'boolean', 'path'=>'Fixture.autodelete', 'min'=>0, 'max'=>1},
184
+ 'resource' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Fixture.resource', 'min'=>0, 'max'=>1}
185
+ }
186
+
187
+ attr_accessor :id # 0-1 id
188
+ attr_accessor :extension # 0-* [ Extension ]
189
+ attr_accessor :modifierExtension # 0-* [ Extension ]
190
+ attr_accessor :autocreate # 0-1 boolean
191
+ attr_accessor :autodelete # 0-1 boolean
192
+ attr_accessor :resource # 0-1 Reference(Resource)
193
+ end
194
+
195
+ class Variable < FHIR::Model
196
+ include FHIR::Hashable
197
+ include FHIR::Json
198
+ include FHIR::Xml
199
+
200
+ METADATA = {
201
+ 'id' => {'type'=>'id', 'path'=>'Variable.id', 'min'=>0, 'max'=>1},
202
+ 'extension' => {'type'=>'Extension', 'path'=>'Variable.extension', 'min'=>0, 'max'=>Float::INFINITY},
203
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Variable.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
204
+ 'name' => {'type'=>'string', 'path'=>'Variable.name', 'min'=>1, 'max'=>1},
205
+ 'defaultValue' => {'type'=>'string', 'path'=>'Variable.defaultValue', 'min'=>0, 'max'=>1},
206
+ 'headerField' => {'type'=>'string', 'path'=>'Variable.headerField', 'min'=>0, 'max'=>1},
207
+ 'path' => {'type'=>'string', 'path'=>'Variable.path', 'min'=>0, 'max'=>1},
208
+ 'sourceId' => {'type'=>'id', 'path'=>'Variable.sourceId', 'min'=>0, 'max'=>1}
209
+ }
210
+
211
+ attr_accessor :id # 0-1 id
212
+ attr_accessor :extension # 0-* [ Extension ]
213
+ attr_accessor :modifierExtension # 0-* [ Extension ]
214
+ attr_accessor :name # 1-1 string
215
+ attr_accessor :defaultValue # 0-1 string
216
+ attr_accessor :headerField # 0-1 string
217
+ attr_accessor :path # 0-1 string
218
+ attr_accessor :sourceId # 0-1 id
219
+ end
220
+
221
+ class Rule < FHIR::Model
222
+ include FHIR::Hashable
223
+ include FHIR::Json
224
+ include FHIR::Xml
225
+
226
+ METADATA = {
227
+ 'id' => {'type'=>'id', 'path'=>'Rule.id', 'min'=>0, 'max'=>1},
228
+ 'extension' => {'type'=>'Extension', 'path'=>'Rule.extension', 'min'=>0, 'max'=>Float::INFINITY},
229
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Rule.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
230
+ 'resource' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Rule.resource', 'min'=>1, 'max'=>1},
231
+ 'param' => {'type'=>'TestScript::Rule::Param', 'path'=>'Rule.param', 'min'=>0, 'max'=>Float::INFINITY}
232
+ }
233
+
234
+ class Param < FHIR::Model
235
+ include FHIR::Hashable
236
+ include FHIR::Json
237
+ include FHIR::Xml
238
+
239
+ METADATA = {
240
+ 'id' => {'type'=>'id', 'path'=>'Param.id', 'min'=>0, 'max'=>1},
241
+ 'extension' => {'type'=>'Extension', 'path'=>'Param.extension', 'min'=>0, 'max'=>Float::INFINITY},
242
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Param.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
243
+ 'name' => {'type'=>'string', 'path'=>'Param.name', 'min'=>1, 'max'=>1},
244
+ 'value' => {'type'=>'string', 'path'=>'Param.value', 'min'=>0, 'max'=>1}
245
+ }
246
+
247
+ attr_accessor :id # 0-1 id
248
+ attr_accessor :extension # 0-* [ Extension ]
249
+ attr_accessor :modifierExtension # 0-* [ Extension ]
250
+ attr_accessor :name # 1-1 string
251
+ attr_accessor :value # 0-1 string
252
+ end
253
+
254
+ attr_accessor :id # 0-1 id
255
+ attr_accessor :extension # 0-* [ Extension ]
256
+ attr_accessor :modifierExtension # 0-* [ Extension ]
257
+ attr_accessor :resource # 1-1 Reference(Resource)
258
+ attr_accessor :param # 0-* [ TestScript::Rule::Param ]
259
+ end
260
+
261
+ class Ruleset < FHIR::Model
262
+ include FHIR::Hashable
263
+ include FHIR::Json
264
+ include FHIR::Xml
265
+
266
+ METADATA = {
267
+ 'id' => {'type'=>'id', 'path'=>'Ruleset.id', 'min'=>0, 'max'=>1},
268
+ 'extension' => {'type'=>'Extension', 'path'=>'Ruleset.extension', 'min'=>0, 'max'=>Float::INFINITY},
269
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Ruleset.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
270
+ 'resource' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Ruleset.resource', 'min'=>1, 'max'=>1},
271
+ 'rule' => {'type'=>'TestScript::Ruleset::Rule', 'path'=>'Ruleset.rule', 'min'=>1, 'max'=>Float::INFINITY}
272
+ }
273
+
274
+ class Rule < FHIR::Model
275
+ include FHIR::Hashable
276
+ include FHIR::Json
277
+ include FHIR::Xml
278
+
279
+ METADATA = {
280
+ 'id' => {'type'=>'id', 'path'=>'Rule.id', 'min'=>0, 'max'=>1},
281
+ 'extension' => {'type'=>'Extension', 'path'=>'Rule.extension', 'min'=>0, 'max'=>Float::INFINITY},
282
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Rule.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
283
+ 'param' => {'type'=>'TestScript::Ruleset::Rule::Param', 'path'=>'Rule.param', 'min'=>0, 'max'=>Float::INFINITY}
284
+ }
285
+
286
+ class Param < FHIR::Model
287
+ include FHIR::Hashable
288
+ include FHIR::Json
289
+ include FHIR::Xml
290
+
291
+ METADATA = {
292
+ 'id' => {'type'=>'id', 'path'=>'Param.id', 'min'=>0, 'max'=>1},
293
+ 'extension' => {'type'=>'Extension', 'path'=>'Param.extension', 'min'=>0, 'max'=>Float::INFINITY},
294
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Param.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
295
+ 'name' => {'type'=>'string', 'path'=>'Param.name', 'min'=>1, 'max'=>1},
296
+ 'value' => {'type'=>'string', 'path'=>'Param.value', 'min'=>0, 'max'=>1}
297
+ }
298
+
299
+ attr_accessor :id # 0-1 id
300
+ attr_accessor :extension # 0-* [ Extension ]
301
+ attr_accessor :modifierExtension # 0-* [ Extension ]
302
+ attr_accessor :name # 1-1 string
303
+ attr_accessor :value # 0-1 string
304
+ end
305
+
306
+ attr_accessor :id # 0-1 id
307
+ attr_accessor :extension # 0-* [ Extension ]
308
+ attr_accessor :modifierExtension # 0-* [ Extension ]
309
+ attr_accessor :param # 0-* [ TestScript::Ruleset::Rule::Param ]
310
+ end
311
+
312
+ attr_accessor :id # 0-1 id
313
+ attr_accessor :extension # 0-* [ Extension ]
314
+ attr_accessor :modifierExtension # 0-* [ Extension ]
315
+ attr_accessor :resource # 1-1 Reference(Resource)
316
+ attr_accessor :rule # 1-* [ TestScript::Ruleset::Rule ]
317
+ end
318
+
319
+ class Setup < FHIR::Model
320
+ include FHIR::Hashable
321
+ include FHIR::Json
322
+ include FHIR::Xml
323
+
324
+ METADATA = {
325
+ 'id' => {'type'=>'id', 'path'=>'Setup.id', 'min'=>0, 'max'=>1},
326
+ 'extension' => {'type'=>'Extension', 'path'=>'Setup.extension', 'min'=>0, 'max'=>Float::INFINITY},
327
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Setup.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
328
+ 'metadata' => {'type'=>'TestScript::Metadata', 'path'=>'Setup.metadata', 'min'=>0, 'max'=>1},
329
+ 'action' => {'type'=>'TestScript::Setup::Action', 'path'=>'Setup.action', 'min'=>1, 'max'=>Float::INFINITY}
330
+ }
331
+
332
+ class Action < FHIR::Model
333
+ include FHIR::Hashable
334
+ include FHIR::Json
335
+ include FHIR::Xml
336
+
337
+ METADATA = {
338
+ 'id' => {'type'=>'id', 'path'=>'Action.id', 'min'=>0, 'max'=>1},
339
+ 'extension' => {'type'=>'Extension', 'path'=>'Action.extension', 'min'=>0, 'max'=>Float::INFINITY},
340
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Action.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
341
+ 'operation' => {'type'=>'TestScript::Setup::Action::Operation', 'path'=>'Action.operation', 'min'=>0, 'max'=>1},
342
+ 'assert' => {'type'=>'TestScript::Setup::Action::Assert', 'path'=>'Action.assert', 'min'=>0, 'max'=>1}
343
+ }
344
+
345
+ class Operation < FHIR::Model
346
+ include FHIR::Hashable
347
+ include FHIR::Json
348
+ include FHIR::Xml
349
+
350
+ METADATA = {
351
+ 'id' => {'type'=>'id', 'path'=>'Operation.id', 'min'=>0, 'max'=>1},
352
+ 'extension' => {'type'=>'Extension', 'path'=>'Operation.extension', 'min'=>0, 'max'=>Float::INFINITY},
353
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Operation.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
354
+ 'type' => {'valid_codes'=>{'http://hl7.org/fhir/testscript-operation-codes'=>['read', 'vread', 'update', 'delete', 'history', 'create', 'search', 'batch', 'transaction', 'conformance', 'cancel', 'cds-hook', 'closure', 'document', 'evaluate', 'evaluate-measure', 'everything', 'expand', 'fail', 'find', 'finish', 'lookup', 'match', 'meta', 'meta-add', 'meta-delete', 'place', 'populate', 'process-message', 'questionnaire', 'release', 'reserve', 'resume', 'set-input', 'set-output', 'start', 'stop', 'suspend', 'translate', 'validate', 'validate-code']}, 'type'=>'Coding', 'path'=>'Operation.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/testscript-operation-codes'}},
355
+ 'resource' => {'valid_codes'=>{'http://hl7.org/fhir/data-types'=>['ActionDefinition', 'Address', 'Age', 'Annotation', 'Attachment', 'BackboneElement', 'CodeableConcept', 'Coding', 'ContactPoint', 'Count', 'DataRequirement', 'Distance', 'Duration', 'Element', 'ElementDefinition', 'Extension', 'HumanName', 'Identifier', 'Meta', 'ModuleMetadata', 'Money', 'Narrative', 'ParameterDefinition', 'Period', 'Quantity', 'Range', 'Ratio', 'Reference', 'SampledData', 'Signature', 'SimpleQuantity', 'Timing', 'TriggerDefinition', 'base64Binary', 'boolean', 'code', 'date', 'dateTime', 'decimal', 'id', 'instant', 'integer', 'markdown', 'oid', 'positiveInt', 'string', 'time', 'unsignedInt', 'uri', 'uuid', 'xhtml'], 'http://hl7.org/fhir/resource-types'=>['Account', 'AllergyIntolerance', 'Appointment', 'AppointmentResponse', 'AuditEvent', 'Basic', 'Binary', 'BodySite', 'Bundle', 'CarePlan', 'CareTeam', 'Claim', 'ClaimResponse', 'ClinicalImpression', 'CodeSystem', 'Communication', 'CommunicationRequest', 'CompartmentDefinition', 'Composition', 'ConceptMap', 'Condition', 'Conformance', 'Contract', 'Coverage', 'DataElement', 'DecisionSupportRule', 'DecisionSupportServiceModule', 'DetectedIssue', 'Device', 'DeviceComponent', 'DeviceMetric', 'DeviceUseRequest', 'DeviceUseStatement', 'DiagnosticOrder', 'DiagnosticReport', 'DocumentManifest', 'DocumentReference', 'DomainResource', 'EligibilityRequest', 'EligibilityResponse', 'Encounter', 'EnrollmentRequest', 'EnrollmentResponse', 'EpisodeOfCare', 'ExpansionProfile', 'ExplanationOfBenefit', 'FamilyMemberHistory', 'Flag', 'Goal', 'Group', 'GuidanceResponse', 'HealthcareService', 'ImagingExcerpt', 'ImagingObjectSelection', 'ImagingStudy', 'Immunization', 'ImmunizationRecommendation', 'ImplementationGuide', 'Library', 'Linkage', 'List', 'Location', 'Measure', 'MeasureReport', 'Media', 'Medication', 'MedicationAdministration', 'MedicationDispense', 'MedicationOrder', 'MedicationStatement', 'MessageHeader', 'ModuleDefinition', 'NamingSystem', 'NutritionOrder', 'Observation', 'OperationDefinition', 'OperationOutcome', 'Order', 'OrderResponse', 'OrderSet', 'Organization', 'Parameters', 'Patient', 'PaymentNotice', 'PaymentReconciliation', 'Person', 'Practitioner', 'PractitionerRole', 'Procedure', 'ProcedureRequest', 'ProcessRequest', 'ProcessResponse', 'Protocol', 'Provenance', 'Questionnaire', 'QuestionnaireResponse', 'ReferralRequest', 'RelatedPerson', 'Resource', 'RiskAssessment', 'Schedule', 'SearchParameter', 'Sequence', 'Slot', 'Specimen', 'StructureDefinition', 'StructureMap', 'Subscription', 'Substance', 'SupplyDelivery', 'SupplyRequest', 'Task', 'TestScript', 'ValueSet', 'VisionPrescription']}, 'type'=>'code', 'path'=>'Operation.resource', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/defined-types'}},
356
+ 'label' => {'type'=>'string', 'path'=>'Operation.label', 'min'=>0, 'max'=>1},
357
+ 'description' => {'type'=>'string', 'path'=>'Operation.description', 'min'=>0, 'max'=>1},
358
+ 'accept' => {'valid_codes'=>{'http://hl7.org/fhir/content-type'=>['xml', 'json']}, 'type'=>'code', 'path'=>'Operation.accept', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/content-type'}},
359
+ 'contentType' => {'valid_codes'=>{'http://hl7.org/fhir/content-type'=>['xml', 'json']}, 'type'=>'code', 'path'=>'Operation.contentType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/content-type'}},
360
+ 'destination' => {'type'=>'integer', 'path'=>'Operation.destination', 'min'=>0, 'max'=>1},
361
+ 'encodeRequestUrl' => {'type'=>'boolean', 'path'=>'Operation.encodeRequestUrl', 'min'=>0, 'max'=>1},
362
+ 'origin' => {'type'=>'integer', 'path'=>'Operation.origin', 'min'=>0, 'max'=>1},
363
+ 'params' => {'type'=>'string', 'path'=>'Operation.params', 'min'=>0, 'max'=>1},
364
+ 'requestHeader' => {'type'=>'TestScript::Setup::Action::Operation::Requestheader', 'path'=>'Operation.requestHeader', 'min'=>0, 'max'=>Float::INFINITY},
365
+ 'responseId' => {'type'=>'id', 'path'=>'Operation.responseId', 'min'=>0, 'max'=>1},
366
+ 'sourceId' => {'type'=>'id', 'path'=>'Operation.sourceId', 'min'=>0, 'max'=>1},
367
+ 'targetId' => {'type'=>'id', 'path'=>'Operation.targetId', 'min'=>0, 'max'=>1},
368
+ 'url' => {'type'=>'string', 'path'=>'Operation.url', 'min'=>0, 'max'=>1}
369
+ }
370
+
371
+ class Requestheader < FHIR::Model
372
+ include FHIR::Hashable
373
+ include FHIR::Json
374
+ include FHIR::Xml
375
+
376
+ METADATA = {
377
+ 'id' => {'type'=>'id', 'path'=>'Requestheader.id', 'min'=>0, 'max'=>1},
378
+ 'extension' => {'type'=>'Extension', 'path'=>'Requestheader.extension', 'min'=>0, 'max'=>Float::INFINITY},
379
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Requestheader.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
380
+ 'field' => {'type'=>'string', 'path'=>'Requestheader.field', 'min'=>1, 'max'=>1},
381
+ 'value' => {'type'=>'string', 'path'=>'Requestheader.value', 'min'=>1, 'max'=>1}
382
+ }
383
+
384
+ attr_accessor :id # 0-1 id
385
+ attr_accessor :extension # 0-* [ Extension ]
386
+ attr_accessor :modifierExtension # 0-* [ Extension ]
387
+ attr_accessor :field # 1-1 string
388
+ attr_accessor :value # 1-1 string
389
+ end
390
+
391
+ attr_accessor :id # 0-1 id
392
+ attr_accessor :extension # 0-* [ Extension ]
393
+ attr_accessor :modifierExtension # 0-* [ Extension ]
394
+ attr_accessor :type # 0-1 Coding
395
+ attr_accessor :resource # 0-1 code
396
+ attr_accessor :label # 0-1 string
397
+ attr_accessor :description # 0-1 string
398
+ attr_accessor :accept # 0-1 code
399
+ attr_accessor :contentType # 0-1 code
400
+ attr_accessor :destination # 0-1 integer
401
+ attr_accessor :encodeRequestUrl # 0-1 boolean
402
+ attr_accessor :origin # 0-1 integer
403
+ attr_accessor :params # 0-1 string
404
+ attr_accessor :requestHeader # 0-* [ TestScript::Setup::Action::Operation::Requestheader ]
405
+ attr_accessor :responseId # 0-1 id
406
+ attr_accessor :sourceId # 0-1 id
407
+ attr_accessor :targetId # 0-1 id
408
+ attr_accessor :url # 0-1 string
409
+ end
410
+
411
+ class Assert < FHIR::Model
412
+ include FHIR::Hashable
413
+ include FHIR::Json
414
+ include FHIR::Xml
415
+
416
+ METADATA = {
417
+ 'id' => {'type'=>'id', 'path'=>'Assert.id', 'min'=>0, 'max'=>1},
418
+ 'extension' => {'type'=>'Extension', 'path'=>'Assert.extension', 'min'=>0, 'max'=>Float::INFINITY},
419
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Assert.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
420
+ 'label' => {'type'=>'string', 'path'=>'Assert.label', 'min'=>0, 'max'=>1},
421
+ 'description' => {'type'=>'string', 'path'=>'Assert.description', 'min'=>0, 'max'=>1},
422
+ 'direction' => {'valid_codes'=>{'http://hl7.org/fhir/assert-direction-codes'=>['response', 'request']}, 'type'=>'code', 'path'=>'Assert.direction', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/assert-direction-codes'}},
423
+ 'compareToSourceId' => {'type'=>'string', 'path'=>'Assert.compareToSourceId', 'min'=>0, 'max'=>1},
424
+ 'compareToSourcePath' => {'type'=>'string', 'path'=>'Assert.compareToSourcePath', 'min'=>0, 'max'=>1},
425
+ 'contentType' => {'valid_codes'=>{'http://hl7.org/fhir/content-type'=>['xml', 'json']}, 'type'=>'code', 'path'=>'Assert.contentType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/content-type'}},
426
+ 'headerField' => {'type'=>'string', 'path'=>'Assert.headerField', 'min'=>0, 'max'=>1},
427
+ 'minimumId' => {'type'=>'string', 'path'=>'Assert.minimumId', 'min'=>0, 'max'=>1},
428
+ 'navigationLinks' => {'type'=>'boolean', 'path'=>'Assert.navigationLinks', 'min'=>0, 'max'=>1},
429
+ 'operator' => {'valid_codes'=>{'http://hl7.org/fhir/assert-operator-codes'=>['equals', 'notEquals', 'in', 'notIn', 'greaterThan', 'lessThan', 'empty', 'notEmpty', 'contains', 'notContains']}, 'type'=>'code', 'path'=>'Assert.operator', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/assert-operator-codes'}},
430
+ 'path' => {'type'=>'string', 'path'=>'Assert.path', 'min'=>0, 'max'=>1},
431
+ 'resource' => {'valid_codes'=>{'http://hl7.org/fhir/data-types'=>['ActionDefinition', 'Address', 'Age', 'Annotation', 'Attachment', 'BackboneElement', 'CodeableConcept', 'Coding', 'ContactPoint', 'Count', 'DataRequirement', 'Distance', 'Duration', 'Element', 'ElementDefinition', 'Extension', 'HumanName', 'Identifier', 'Meta', 'ModuleMetadata', 'Money', 'Narrative', 'ParameterDefinition', 'Period', 'Quantity', 'Range', 'Ratio', 'Reference', 'SampledData', 'Signature', 'SimpleQuantity', 'Timing', 'TriggerDefinition', 'base64Binary', 'boolean', 'code', 'date', 'dateTime', 'decimal', 'id', 'instant', 'integer', 'markdown', 'oid', 'positiveInt', 'string', 'time', 'unsignedInt', 'uri', 'uuid', 'xhtml'], 'http://hl7.org/fhir/resource-types'=>['Account', 'AllergyIntolerance', 'Appointment', 'AppointmentResponse', 'AuditEvent', 'Basic', 'Binary', 'BodySite', 'Bundle', 'CarePlan', 'CareTeam', 'Claim', 'ClaimResponse', 'ClinicalImpression', 'CodeSystem', 'Communication', 'CommunicationRequest', 'CompartmentDefinition', 'Composition', 'ConceptMap', 'Condition', 'Conformance', 'Contract', 'Coverage', 'DataElement', 'DecisionSupportRule', 'DecisionSupportServiceModule', 'DetectedIssue', 'Device', 'DeviceComponent', 'DeviceMetric', 'DeviceUseRequest', 'DeviceUseStatement', 'DiagnosticOrder', 'DiagnosticReport', 'DocumentManifest', 'DocumentReference', 'DomainResource', 'EligibilityRequest', 'EligibilityResponse', 'Encounter', 'EnrollmentRequest', 'EnrollmentResponse', 'EpisodeOfCare', 'ExpansionProfile', 'ExplanationOfBenefit', 'FamilyMemberHistory', 'Flag', 'Goal', 'Group', 'GuidanceResponse', 'HealthcareService', 'ImagingExcerpt', 'ImagingObjectSelection', 'ImagingStudy', 'Immunization', 'ImmunizationRecommendation', 'ImplementationGuide', 'Library', 'Linkage', 'List', 'Location', 'Measure', 'MeasureReport', 'Media', 'Medication', 'MedicationAdministration', 'MedicationDispense', 'MedicationOrder', 'MedicationStatement', 'MessageHeader', 'ModuleDefinition', 'NamingSystem', 'NutritionOrder', 'Observation', 'OperationDefinition', 'OperationOutcome', 'Order', 'OrderResponse', 'OrderSet', 'Organization', 'Parameters', 'Patient', 'PaymentNotice', 'PaymentReconciliation', 'Person', 'Practitioner', 'PractitionerRole', 'Procedure', 'ProcedureRequest', 'ProcessRequest', 'ProcessResponse', 'Protocol', 'Provenance', 'Questionnaire', 'QuestionnaireResponse', 'ReferralRequest', 'RelatedPerson', 'Resource', 'RiskAssessment', 'Schedule', 'SearchParameter', 'Sequence', 'Slot', 'Specimen', 'StructureDefinition', 'StructureMap', 'Subscription', 'Substance', 'SupplyDelivery', 'SupplyRequest', 'Task', 'TestScript', 'ValueSet', 'VisionPrescription']}, 'type'=>'code', 'path'=>'Assert.resource', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/defined-types'}},
432
+ 'response' => {'valid_codes'=>{'http://hl7.org/fhir/assert-response-code-types'=>['okay', 'created', 'noContent', 'notModified', 'bad', 'forbidden', 'notFound', 'methodNotAllowed', 'conflict', 'gone', 'preconditionFailed', 'unprocessable']}, 'type'=>'code', 'path'=>'Assert.response', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/assert-response-code-types'}},
433
+ 'responseCode' => {'type'=>'string', 'path'=>'Assert.responseCode', 'min'=>0, 'max'=>1},
434
+ 'rule' => {'type'=>'TestScript::Setup::Action::Assert::Rule', 'path'=>'Assert.rule', 'min'=>0, 'max'=>1},
435
+ 'ruleset' => {'type'=>'TestScript::Setup::Action::Assert::Ruleset', 'path'=>'Assert.ruleset', 'min'=>0, 'max'=>1},
436
+ 'sourceId' => {'type'=>'id', 'path'=>'Assert.sourceId', 'min'=>0, 'max'=>1},
437
+ 'validateProfileId' => {'type'=>'id', 'path'=>'Assert.validateProfileId', 'min'=>0, 'max'=>1},
438
+ 'value' => {'type'=>'string', 'path'=>'Assert.value', 'min'=>0, 'max'=>1},
439
+ 'warningOnly' => {'type'=>'boolean', 'path'=>'Assert.warningOnly', 'min'=>0, 'max'=>1}
440
+ }
441
+
442
+ class Rule < FHIR::Model
443
+ include FHIR::Hashable
444
+ include FHIR::Json
445
+ include FHIR::Xml
446
+
447
+ METADATA = {
448
+ 'id' => {'type'=>'id', 'path'=>'Rule.id', 'min'=>0, 'max'=>1},
449
+ 'extension' => {'type'=>'Extension', 'path'=>'Rule.extension', 'min'=>0, 'max'=>Float::INFINITY},
450
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Rule.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
451
+ 'param' => {'type'=>'TestScript::Setup::Action::Assert::Rule::Param', 'path'=>'Rule.param', 'min'=>0, 'max'=>Float::INFINITY}
452
+ }
453
+
454
+ class Param < FHIR::Model
455
+ include FHIR::Hashable
456
+ include FHIR::Json
457
+ include FHIR::Xml
458
+
459
+ METADATA = {
460
+ 'id' => {'type'=>'id', 'path'=>'Param.id', 'min'=>0, 'max'=>1},
461
+ 'extension' => {'type'=>'Extension', 'path'=>'Param.extension', 'min'=>0, 'max'=>Float::INFINITY},
462
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Param.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
463
+ 'name' => {'type'=>'string', 'path'=>'Param.name', 'min'=>1, 'max'=>1},
464
+ 'value' => {'type'=>'string', 'path'=>'Param.value', 'min'=>1, 'max'=>1}
465
+ }
466
+
467
+ attr_accessor :id # 0-1 id
468
+ attr_accessor :extension # 0-* [ Extension ]
469
+ attr_accessor :modifierExtension # 0-* [ Extension ]
470
+ attr_accessor :name # 1-1 string
471
+ attr_accessor :value # 1-1 string
472
+ end
473
+
474
+ attr_accessor :id # 0-1 id
475
+ attr_accessor :extension # 0-* [ Extension ]
476
+ attr_accessor :modifierExtension # 0-* [ Extension ]
477
+ attr_accessor :param # 0-* [ TestScript::Setup::Action::Assert::Rule::Param ]
478
+ end
479
+
480
+ class Ruleset < FHIR::Model
481
+ include FHIR::Hashable
482
+ include FHIR::Json
483
+ include FHIR::Xml
484
+
485
+ METADATA = {
486
+ 'id' => {'type'=>'id', 'path'=>'Ruleset.id', 'min'=>0, 'max'=>1},
487
+ 'extension' => {'type'=>'Extension', 'path'=>'Ruleset.extension', 'min'=>0, 'max'=>Float::INFINITY},
488
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Ruleset.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
489
+ 'rule' => {'type'=>'TestScript::Setup::Action::Assert::Ruleset::Rule', 'path'=>'Ruleset.rule', 'min'=>1, 'max'=>Float::INFINITY}
490
+ }
491
+
492
+ class Rule < FHIR::Model
493
+ include FHIR::Hashable
494
+ include FHIR::Json
495
+ include FHIR::Xml
496
+
497
+ METADATA = {
498
+ 'id' => {'type'=>'id', 'path'=>'Rule.id', 'min'=>0, 'max'=>1},
499
+ 'extension' => {'type'=>'Extension', 'path'=>'Rule.extension', 'min'=>0, 'max'=>Float::INFINITY},
500
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Rule.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
501
+ 'param' => {'type'=>'TestScript::Setup::Action::Assert::Ruleset::Rule::Param', 'path'=>'Rule.param', 'min'=>0, 'max'=>Float::INFINITY}
502
+ }
503
+
504
+ class Param < FHIR::Model
505
+ include FHIR::Hashable
506
+ include FHIR::Json
507
+ include FHIR::Xml
508
+
509
+ METADATA = {
510
+ 'id' => {'type'=>'id', 'path'=>'Param.id', 'min'=>0, 'max'=>1},
511
+ 'extension' => {'type'=>'Extension', 'path'=>'Param.extension', 'min'=>0, 'max'=>Float::INFINITY},
512
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Param.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
513
+ 'name' => {'type'=>'string', 'path'=>'Param.name', 'min'=>1, 'max'=>1},
514
+ 'value' => {'type'=>'string', 'path'=>'Param.value', 'min'=>1, 'max'=>1}
515
+ }
516
+
517
+ attr_accessor :id # 0-1 id
518
+ attr_accessor :extension # 0-* [ Extension ]
519
+ attr_accessor :modifierExtension # 0-* [ Extension ]
520
+ attr_accessor :name # 1-1 string
521
+ attr_accessor :value # 1-1 string
522
+ end
523
+
524
+ attr_accessor :id # 0-1 id
525
+ attr_accessor :extension # 0-* [ Extension ]
526
+ attr_accessor :modifierExtension # 0-* [ Extension ]
527
+ attr_accessor :param # 0-* [ TestScript::Setup::Action::Assert::Ruleset::Rule::Param ]
528
+ end
529
+
530
+ attr_accessor :id # 0-1 id
531
+ attr_accessor :extension # 0-* [ Extension ]
532
+ attr_accessor :modifierExtension # 0-* [ Extension ]
533
+ attr_accessor :rule # 1-* [ TestScript::Setup::Action::Assert::Ruleset::Rule ]
534
+ end
535
+
536
+ attr_accessor :id # 0-1 id
537
+ attr_accessor :extension # 0-* [ Extension ]
538
+ attr_accessor :modifierExtension # 0-* [ Extension ]
539
+ attr_accessor :label # 0-1 string
540
+ attr_accessor :description # 0-1 string
541
+ attr_accessor :direction # 0-1 code
542
+ attr_accessor :compareToSourceId # 0-1 string
543
+ attr_accessor :compareToSourcePath # 0-1 string
544
+ attr_accessor :contentType # 0-1 code
545
+ attr_accessor :headerField # 0-1 string
546
+ attr_accessor :minimumId # 0-1 string
547
+ attr_accessor :navigationLinks # 0-1 boolean
548
+ attr_accessor :operator # 0-1 code
549
+ attr_accessor :path # 0-1 string
550
+ attr_accessor :resource # 0-1 code
551
+ attr_accessor :response # 0-1 code
552
+ attr_accessor :responseCode # 0-1 string
553
+ attr_accessor :rule # 0-1 TestScript::Setup::Action::Assert::Rule
554
+ attr_accessor :ruleset # 0-1 TestScript::Setup::Action::Assert::Ruleset
555
+ attr_accessor :sourceId # 0-1 id
556
+ attr_accessor :validateProfileId # 0-1 id
557
+ attr_accessor :value # 0-1 string
558
+ attr_accessor :warningOnly # 0-1 boolean
559
+ end
560
+
561
+ attr_accessor :id # 0-1 id
562
+ attr_accessor :extension # 0-* [ Extension ]
563
+ attr_accessor :modifierExtension # 0-* [ Extension ]
564
+ attr_accessor :operation # 0-1 TestScript::Setup::Action::Operation
565
+ attr_accessor :assert # 0-1 TestScript::Setup::Action::Assert
566
+ end
567
+
568
+ attr_accessor :id # 0-1 id
569
+ attr_accessor :extension # 0-* [ Extension ]
570
+ attr_accessor :modifierExtension # 0-* [ Extension ]
571
+ attr_accessor :metadata # 0-1 TestScript::Metadata
572
+ attr_accessor :action # 1-* [ TestScript::Setup::Action ]
573
+ end
574
+
575
+ class Test < FHIR::Model
576
+ include FHIR::Hashable
577
+ include FHIR::Json
578
+ include FHIR::Xml
579
+
580
+ METADATA = {
581
+ 'id' => {'type'=>'id', 'path'=>'Test.id', 'min'=>0, 'max'=>1},
582
+ 'extension' => {'type'=>'Extension', 'path'=>'Test.extension', 'min'=>0, 'max'=>Float::INFINITY},
583
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Test.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
584
+ 'name' => {'type'=>'string', 'path'=>'Test.name', 'min'=>0, 'max'=>1},
585
+ 'description' => {'type'=>'string', 'path'=>'Test.description', 'min'=>0, 'max'=>1},
586
+ 'metadata' => {'type'=>'TestScript::Metadata', 'path'=>'Test.metadata', 'min'=>0, 'max'=>1},
587
+ 'action' => {'type'=>'TestScript::Test::Action', 'path'=>'Test.action', 'min'=>1, 'max'=>Float::INFINITY}
588
+ }
589
+
590
+ class Action < FHIR::Model
591
+ include FHIR::Hashable
592
+ include FHIR::Json
593
+ include FHIR::Xml
594
+
595
+ METADATA = {
596
+ 'id' => {'type'=>'id', 'path'=>'Action.id', 'min'=>0, 'max'=>1},
597
+ 'extension' => {'type'=>'Extension', 'path'=>'Action.extension', 'min'=>0, 'max'=>Float::INFINITY},
598
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Action.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
599
+ 'operation' => {'type'=>'TestScript::Setup::Action::Operation', 'path'=>'Action.operation', 'min'=>0, 'max'=>1},
600
+ 'assert' => {'type'=>'TestScript::Setup::Action::Assert', 'path'=>'Action.assert', 'min'=>0, 'max'=>1}
601
+ }
602
+
603
+ attr_accessor :id # 0-1 id
604
+ attr_accessor :extension # 0-* [ Extension ]
605
+ attr_accessor :modifierExtension # 0-* [ Extension ]
606
+ attr_accessor :operation # 0-1 TestScript::Setup::Action::Operation
607
+ attr_accessor :assert # 0-1 TestScript::Setup::Action::Assert
608
+ end
609
+
610
+ attr_accessor :id # 0-1 id
611
+ attr_accessor :extension # 0-* [ Extension ]
612
+ attr_accessor :modifierExtension # 0-* [ Extension ]
613
+ attr_accessor :name # 0-1 string
614
+ attr_accessor :description # 0-1 string
615
+ attr_accessor :metadata # 0-1 TestScript::Metadata
616
+ attr_accessor :action # 1-* [ TestScript::Test::Action ]
617
+ end
618
+
619
+ class Teardown < FHIR::Model
620
+ include FHIR::Hashable
621
+ include FHIR::Json
622
+ include FHIR::Xml
623
+
624
+ METADATA = {
625
+ 'id' => {'type'=>'id', 'path'=>'Teardown.id', 'min'=>0, 'max'=>1},
626
+ 'extension' => {'type'=>'Extension', 'path'=>'Teardown.extension', 'min'=>0, 'max'=>Float::INFINITY},
627
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Teardown.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
628
+ 'action' => {'type'=>'TestScript::Teardown::Action', 'path'=>'Teardown.action', 'min'=>1, 'max'=>Float::INFINITY}
629
+ }
630
+
631
+ class Action < FHIR::Model
632
+ include FHIR::Hashable
633
+ include FHIR::Json
634
+ include FHIR::Xml
635
+
636
+ METADATA = {
637
+ 'id' => {'type'=>'id', 'path'=>'Action.id', 'min'=>0, 'max'=>1},
638
+ 'extension' => {'type'=>'Extension', 'path'=>'Action.extension', 'min'=>0, 'max'=>Float::INFINITY},
639
+ 'modifierExtension' => {'type'=>'Extension', 'path'=>'Action.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
640
+ 'operation' => {'type'=>'TestScript::Setup::Action::Operation', 'path'=>'Action.operation', 'min'=>0, 'max'=>1}
641
+ }
642
+
643
+ attr_accessor :id # 0-1 id
644
+ attr_accessor :extension # 0-* [ Extension ]
645
+ attr_accessor :modifierExtension # 0-* [ Extension ]
646
+ attr_accessor :operation # 0-1 TestScript::Setup::Action::Operation
647
+ end
648
+
649
+ attr_accessor :id # 0-1 id
650
+ attr_accessor :extension # 0-* [ Extension ]
651
+ attr_accessor :modifierExtension # 0-* [ Extension ]
652
+ attr_accessor :action # 1-* [ TestScript::Teardown::Action ]
653
+ end
654
+
655
+ attr_accessor :id # 0-1 id
656
+ attr_accessor :meta # 0-1 Meta
657
+ attr_accessor :implicitRules # 0-1 uri
658
+ attr_accessor :language # 0-1 code
659
+ attr_accessor :text # 0-1 Narrative
660
+ attr_accessor :contained # 0-* [ Resource ]
661
+ attr_accessor :extension # 0-* [ Extension ]
662
+ attr_accessor :modifierExtension # 0-* [ Extension ]
663
+ attr_accessor :url # 1-1 uri
664
+ attr_accessor :version # 0-1 string
665
+ attr_accessor :name # 1-1 string
666
+ attr_accessor :status # 1-1 code
667
+ attr_accessor :identifier # 0-1 Identifier
668
+ attr_accessor :experimental # 0-1 boolean
669
+ attr_accessor :publisher # 0-1 string
670
+ attr_accessor :contact # 0-* [ TestScript::Contact ]
671
+ attr_accessor :date # 0-1 dateTime
672
+ attr_accessor :description # 0-1 string
673
+ attr_accessor :useContext # 0-* [ CodeableConcept ]
674
+ attr_accessor :requirements # 0-1 string
675
+ attr_accessor :copyright # 0-1 string
676
+ attr_accessor :origin # 0-* [ TestScript::Origin ]
677
+ attr_accessor :destination # 0-* [ TestScript::Destination ]
678
+ attr_accessor :metadata # 0-1 TestScript::Metadata
679
+ attr_accessor :fixture # 0-* [ TestScript::Fixture ]
680
+ attr_accessor :profile # 0-* [ Reference(Resource) ]
681
+ attr_accessor :variable # 0-* [ TestScript::Variable ]
682
+ attr_accessor :rule # 0-* [ TestScript::Rule ]
683
+ attr_accessor :ruleset # 0-* [ TestScript::Ruleset ]
684
+ attr_accessor :setup # 0-1 TestScript::Setup
685
+ attr_accessor :test # 0-* [ TestScript::Test ]
686
+ attr_accessor :teardown # 0-1 TestScript::Teardown
687
+
688
+ def resourceType
689
+ 'TestScript'
690
+ end
691
+ end
692
+ end