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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +0 -1
- data/Gemfile.lock +1 -1
- data/Rakefile +0 -1
- data/fhir_models.gemspec +1 -1
- data/lib/fhir/metadata.rb +25 -0
- data/lib/fhir/resources/Account.rb +54 -0
- data/lib/fhir/resources/AllergyIntolerance.rb +92 -0
- data/lib/fhir/resources/Appointment.rb +88 -0
- data/lib/fhir/resources/AppointmentResponse.rb +48 -0
- data/lib/fhir/resources/AuditEvent.rb +188 -0
- data/lib/fhir/resources/Basic.rb +42 -0
- data/lib/fhir/resources/Binary.rb +28 -0
- data/lib/fhir/resources/BodySite.rb +44 -0
- data/lib/fhir/resources/Bundle.rb +154 -0
- data/lib/fhir/resources/CarePlan.rb +184 -0
- data/lib/fhir/resources/CareTeam.rb +70 -0
- data/lib/fhir/resources/Claim.rb +490 -0
- data/lib/fhir/resources/ClaimResponse.rb +421 -0
- data/lib/fhir/resources/ClinicalImpression.rb +131 -0
- data/lib/fhir/resources/CodeSystem.rb +225 -0
- data/lib/fhir/resources/Communication.rb +83 -0
- data/lib/fhir/resources/CommunicationRequest.rb +90 -0
- data/lib/fhir/resources/CompartmentDefinition.rb +98 -0
- data/lib/fhir/resources/Composition.rb +136 -0
- data/lib/fhir/resources/ConceptMap.rb +168 -0
- data/lib/fhir/resources/Condition.rb +126 -0
- data/lib/fhir/resources/Conformance.rb +442 -0
- data/lib/fhir/resources/Contract.rb +320 -0
- data/lib/fhir/resources/Coverage.rb +77 -0
- data/lib/fhir/resources/DataElement.rb +104 -0
- data/lib/fhir/resources/DecisionSupportRule.rb +42 -0
- data/lib/fhir/resources/DecisionSupportServiceModule.rb +40 -0
- data/lib/fhir/resources/DetectedIssue.rb +74 -0
- data/lib/fhir/resources/Device.rb +64 -0
- data/lib/fhir/resources/DeviceComponent.rb +74 -0
- data/lib/fhir/resources/DeviceMetric.rb +74 -0
- data/lib/fhir/resources/DeviceUseRequest.rb +68 -0
- data/lib/fhir/resources/DeviceUseStatement.rb +60 -0
- data/lib/fhir/resources/DiagnosticOrder.rb +106 -0
- data/lib/fhir/resources/DiagnosticReport.rb +91 -0
- data/lib/fhir/resources/DocumentManifest.rb +99 -0
- data/lib/fhir/resources/DocumentReference.rb +156 -0
- data/lib/fhir/resources/DomainResource.rb +32 -0
- data/lib/fhir/resources/EligibilityRequest.rb +90 -0
- data/lib/fhir/resources/EligibilityResponse.rb +152 -0
- data/lib/fhir/resources/Encounter.rb +172 -0
- data/lib/fhir/resources/EnrollmentRequest.rb +52 -0
- data/lib/fhir/resources/EnrollmentResponse.rb +52 -0
- data/lib/fhir/resources/EpisodeOfCare.rb +74 -0
- data/lib/fhir/resources/ExpansionProfile.rb +284 -0
- data/lib/fhir/resources/ExplanationOfBenefit.rb +764 -0
- data/lib/fhir/resources/FamilyMemberHistory.rb +110 -0
- data/lib/fhir/resources/Flag.rb +48 -0
- data/lib/fhir/resources/Goal.rb +91 -0
- data/lib/fhir/resources/Group.rb +105 -0
- data/lib/fhir/resources/GuidanceResponse.rb +139 -0
- data/lib/fhir/resources/HealthcareService.rb +122 -0
- data/lib/fhir/resources/ImagingExcerpt.rb +210 -0
- data/lib/fhir/resources/ImagingObjectSelection.rb +136 -0
- data/lib/fhir/resources/ImagingStudy.rb +130 -0
- data/lib/fhir/resources/Immunization.rb +148 -0
- data/lib/fhir/resources/ImmunizationRecommendation.rb +114 -0
- data/lib/fhir/resources/ImplementationGuide.rb +211 -0
- data/lib/fhir/resources/Library.rb +145 -0
- data/lib/fhir/resources/Linkage.rb +56 -0
- data/lib/fhir/resources/List.rb +82 -0
- data/lib/fhir/resources/Location.rb +78 -0
- data/lib/fhir/resources/Measure.rb +160 -0
- data/lib/fhir/resources/MeasureReport.rb +204 -0
- data/lib/fhir/resources/Media.rb +56 -0
- data/lib/fhir/resources/Medication.rb +154 -0
- data/lib/fhir/resources/MedicationAdministration.rb +104 -0
- data/lib/fhir/resources/MedicationDispense.rb +141 -0
- data/lib/fhir/resources/MedicationOrder.rb +172 -0
- data/lib/fhir/resources/MedicationStatement.rb +117 -0
- data/lib/fhir/resources/MessageHeader.rb +124 -0
- data/lib/fhir/resources/ModuleDefinition.rb +249 -0
- data/lib/fhir/resources/NamingSystem.rb +102 -0
- data/lib/fhir/resources/NutritionOrder.rb +211 -0
- data/lib/fhir/resources/Observation.rb +187 -0
- data/lib/fhir/resources/OperationDefinition.rb +153 -0
- data/lib/fhir/resources/OperationOutcome.rb +62 -0
- data/lib/fhir/resources/Order.rb +73 -0
- data/lib/fhir/resources/OrderResponse.rb +46 -0
- data/lib/fhir/resources/OrderSet.rb +38 -0
- data/lib/fhir/resources/Organization.rb +72 -0
- data/lib/fhir/resources/Parameters.rb +117 -0
- data/lib/fhir/resources/Patient.rb +166 -0
- data/lib/fhir/resources/PaymentNotice.rb +71 -0
- data/lib/fhir/resources/PaymentReconciliation.rb +140 -0
- data/lib/fhir/resources/Person.rb +72 -0
- data/lib/fhir/resources/Practitioner.rb +110 -0
- data/lib/fhir/resources/PractitionerRole.rb +102 -0
- data/lib/fhir/resources/Procedure.rb +122 -0
- data/lib/fhir/resources/ProcedureRequest.rb +73 -0
- data/lib/fhir/resources/ProcessRequest.rb +99 -0
- data/lib/fhir/resources/ProcessResponse.rb +92 -0
- data/lib/fhir/resources/Protocol.rb +242 -0
- data/lib/fhir/resources/Provenance.rb +122 -0
- data/lib/fhir/resources/Questionnaire.rb +205 -0
- data/lib/fhir/resources/QuestionnaireResponse.rb +123 -0
- data/lib/fhir/resources/ReferralRequest.rb +68 -0
- data/lib/fhir/resources/RelatedPerson.rb +52 -0
- data/lib/fhir/resources/Resource.rb +24 -0
- data/lib/fhir/resources/RiskAssessment.rb +88 -0
- data/lib/fhir/resources/Schedule.rb +46 -0
- data/lib/fhir/resources/SearchParameter.rb +86 -0
- data/lib/fhir/resources/Sequence.rb +238 -0
- data/lib/fhir/resources/Slot.rb +54 -0
- data/lib/fhir/resources/Specimen.rb +140 -0
- data/lib/fhir/resources/StructureDefinition.rb +164 -0
- data/lib/fhir/resources/StructureMap.rb +297 -0
- data/lib/fhir/resources/Subscription.rb +72 -0
- data/lib/fhir/resources/Substance.rb +86 -0
- data/lib/fhir/resources/SupplyDelivery.rb +54 -0
- data/lib/fhir/resources/SupplyRequest.rb +77 -0
- data/lib/fhir/resources/Task.rb +240 -0
- data/lib/fhir/resources/TestScript.rb +692 -0
- data/lib/fhir/resources/ValueSet.rb +289 -0
- data/lib/fhir/resources/VisionPrescription.rb +97 -0
- data/lib/fhir/types/ActionDefinition.rb +109 -0
- data/lib/fhir/types/Address.rb +36 -0
- data/lib/fhir/types/Annotation.rb +27 -0
- data/lib/fhir/types/Attachment.rb +32 -0
- data/lib/fhir/types/BackboneElement.rb +18 -0
- data/lib/fhir/types/CodeableConcept.rb +20 -0
- data/lib/fhir/types/Coding.rb +26 -0
- data/lib/fhir/types/ContactPoint.rb +26 -0
- data/lib/fhir/types/DataRequirement.rb +78 -0
- data/lib/fhir/types/Element.rb +16 -0
- data/lib/fhir/types/ElementDefinition.rb +605 -0
- data/lib/fhir/types/Extension.rb +87 -0
- data/lib/fhir/types/HumanName.rb +30 -0
- data/lib/fhir/types/Identifier.rb +28 -0
- data/lib/fhir/types/Meta.rb +26 -0
- data/lib/fhir/types/ModuleMetadata.rb +152 -0
- data/lib/fhir/types/Narrative.rb +20 -0
- data/lib/fhir/types/ParameterDefinition.rb +30 -0
- data/lib/fhir/types/Period.rb +20 -0
- data/lib/fhir/types/Quantity.rb +26 -0
- data/lib/fhir/types/Range.rb +20 -0
- data/lib/fhir/types/Ratio.rb +20 -0
- data/lib/fhir/types/Reference.rb +20 -0
- data/lib/fhir/types/SampledData.rb +30 -0
- data/lib/fhir/types/Signature.rb +31 -0
- data/lib/fhir/types/Timing.rb +69 -0
- data/lib/fhir/types/TriggerDefinition.rb +33 -0
- data/lib/fhir_models.rb +2 -2
- data/lib/tasks/tasks.rake +29 -0
- metadata +145 -2
@@ -0,0 +1,210 @@
|
|
1
|
+
module FHIR
|
2
|
+
class ImagingExcerpt < FHIR::Model
|
3
|
+
include FHIR::Hashable
|
4
|
+
include FHIR::Json
|
5
|
+
include FHIR::Xml
|
6
|
+
|
7
|
+
SEARCH_PARAMS = ["author", "authoring-time", "identifier", "patient", "selected-study", "title"]
|
8
|
+
METADATA = {
|
9
|
+
'id' => {'type'=>'id', 'path'=>'ImagingExcerpt.id', 'min'=>0, 'max'=>1},
|
10
|
+
'meta' => {'type'=>'Meta', 'path'=>'ImagingExcerpt.meta', 'min'=>0, 'max'=>1},
|
11
|
+
'implicitRules' => {'type'=>'uri', 'path'=>'ImagingExcerpt.implicitRules', 'min'=>0, 'max'=>1},
|
12
|
+
'language' => {'type'=>'code', 'path'=>'ImagingExcerpt.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
|
13
|
+
'text' => {'type'=>'Narrative', 'path'=>'ImagingExcerpt.text', 'min'=>0, 'max'=>1},
|
14
|
+
'contained' => {'type'=>'Resource', 'path'=>'ImagingExcerpt.contained', 'min'=>0, 'max'=>Float::INFINITY},
|
15
|
+
'extension' => {'type'=>'Extension', 'path'=>'ImagingExcerpt.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
16
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'ImagingExcerpt.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
17
|
+
'uid' => {'type'=>'oid', 'path'=>'ImagingExcerpt.uid', 'min'=>1, 'max'=>1},
|
18
|
+
'patient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'ImagingExcerpt.patient', 'min'=>1, 'max'=>1},
|
19
|
+
'authoringTime' => {'type'=>'dateTime', 'path'=>'ImagingExcerpt.authoringTime', 'min'=>0, 'max'=>1},
|
20
|
+
'author' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'ImagingExcerpt.author', 'min'=>0, 'max'=>1},
|
21
|
+
'title' => {'valid_codes'=>{'http://nema.org/dicom/dicm'=>['113000', '113001', '113002', '113003', '113004', '113005', '113006', '113007', '113008', '113009', '113010', '113013', '113018', '113020', '113021', '113030', '113031', '113032', '113033', '113034', '113035', '113036', '113037', '113038', '113039']}, 'type'=>'CodeableConcept', 'path'=>'ImagingExcerpt.title', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/kos-title'}},
|
22
|
+
'description' => {'type'=>'string', 'path'=>'ImagingExcerpt.description', 'min'=>0, 'max'=>1},
|
23
|
+
'study' => {'type'=>'ImagingExcerpt::Study', 'path'=>'ImagingExcerpt.study', 'min'=>1, 'max'=>Float::INFINITY}
|
24
|
+
}
|
25
|
+
|
26
|
+
class Study < FHIR::Model
|
27
|
+
include FHIR::Hashable
|
28
|
+
include FHIR::Json
|
29
|
+
include FHIR::Xml
|
30
|
+
|
31
|
+
METADATA = {
|
32
|
+
'id' => {'type'=>'id', 'path'=>'Study.id', 'min'=>0, 'max'=>1},
|
33
|
+
'extension' => {'type'=>'Extension', 'path'=>'Study.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
34
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Study.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
35
|
+
'uid' => {'type'=>'oid', 'path'=>'Study.uid', 'min'=>1, 'max'=>1},
|
36
|
+
'imagingStudy' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/ImagingStudy'], 'type'=>'Reference', 'path'=>'Study.imagingStudy', 'min'=>0, 'max'=>1},
|
37
|
+
'dicom' => {'type'=>'ImagingExcerpt::Study::Dicom', 'path'=>'Study.dicom', 'min'=>0, 'max'=>Float::INFINITY},
|
38
|
+
'viewable' => {'type'=>'ImagingExcerpt::Study::Viewable', 'path'=>'Study.viewable', 'min'=>0, 'max'=>Float::INFINITY},
|
39
|
+
'series' => {'type'=>'ImagingExcerpt::Study::Series', 'path'=>'Study.series', 'min'=>1, 'max'=>Float::INFINITY}
|
40
|
+
}
|
41
|
+
|
42
|
+
class Dicom < FHIR::Model
|
43
|
+
include FHIR::Hashable
|
44
|
+
include FHIR::Json
|
45
|
+
include FHIR::Xml
|
46
|
+
|
47
|
+
METADATA = {
|
48
|
+
'id' => {'type'=>'id', 'path'=>'Dicom.id', 'min'=>0, 'max'=>1},
|
49
|
+
'extension' => {'type'=>'Extension', 'path'=>'Dicom.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
50
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Dicom.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
51
|
+
'type' => {'valid_codes'=>{'http://hl7.org/fhir/dWebType'=>['WADO-RS', 'WADO-URI', 'IID', 'WADO-WS']}, 'type'=>'code', 'path'=>'Dicom.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/dWebType'}},
|
52
|
+
'url' => {'type'=>'uri', 'path'=>'Dicom.url', 'min'=>1, 'max'=>1}
|
53
|
+
}
|
54
|
+
|
55
|
+
attr_accessor :id # 0-1 id
|
56
|
+
attr_accessor :extension # 0-* [ Extension ]
|
57
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
58
|
+
attr_accessor :type # 1-1 code
|
59
|
+
attr_accessor :url # 1-1 uri
|
60
|
+
end
|
61
|
+
|
62
|
+
class Viewable < FHIR::Model
|
63
|
+
include FHIR::Hashable
|
64
|
+
include FHIR::Json
|
65
|
+
include FHIR::Xml
|
66
|
+
|
67
|
+
METADATA = {
|
68
|
+
'id' => {'type'=>'id', 'path'=>'Viewable.id', 'min'=>0, 'max'=>1},
|
69
|
+
'extension' => {'type'=>'Extension', 'path'=>'Viewable.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
70
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Viewable.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
71
|
+
'contentType' => {'type'=>'code', 'path'=>'Viewable.contentType', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://www.rfc-editor.org/bcp/bcp13.txt'}},
|
72
|
+
'height' => {'type'=>'positiveInt', 'path'=>'Viewable.height', 'min'=>0, 'max'=>1},
|
73
|
+
'width' => {'type'=>'positiveInt', 'path'=>'Viewable.width', 'min'=>0, 'max'=>1},
|
74
|
+
'frames' => {'type'=>'positiveInt', 'path'=>'Viewable.frames', 'min'=>0, 'max'=>1},
|
75
|
+
'duration' => {'type'=>'unsignedInt', 'path'=>'Viewable.duration', 'min'=>0, 'max'=>1},
|
76
|
+
'size' => {'type'=>'unsignedInt', 'path'=>'Viewable.size', 'min'=>0, 'max'=>1},
|
77
|
+
'title' => {'type'=>'string', 'path'=>'Viewable.title', 'min'=>0, 'max'=>1},
|
78
|
+
'url' => {'type'=>'uri', 'path'=>'Viewable.url', 'min'=>1, 'max'=>1}
|
79
|
+
}
|
80
|
+
|
81
|
+
attr_accessor :id # 0-1 id
|
82
|
+
attr_accessor :extension # 0-* [ Extension ]
|
83
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
84
|
+
attr_accessor :contentType # 1-1 code
|
85
|
+
attr_accessor :height # 0-1 positiveInt
|
86
|
+
attr_accessor :width # 0-1 positiveInt
|
87
|
+
attr_accessor :frames # 0-1 positiveInt
|
88
|
+
attr_accessor :duration # 0-1 unsignedInt
|
89
|
+
attr_accessor :size # 0-1 unsignedInt
|
90
|
+
attr_accessor :title # 0-1 string
|
91
|
+
attr_accessor :url # 1-1 uri
|
92
|
+
end
|
93
|
+
|
94
|
+
class Series < FHIR::Model
|
95
|
+
include FHIR::Hashable
|
96
|
+
include FHIR::Json
|
97
|
+
include FHIR::Xml
|
98
|
+
|
99
|
+
METADATA = {
|
100
|
+
'id' => {'type'=>'id', 'path'=>'Series.id', 'min'=>0, 'max'=>1},
|
101
|
+
'extension' => {'type'=>'Extension', 'path'=>'Series.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
102
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Series.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
103
|
+
'uid' => {'type'=>'oid', 'path'=>'Series.uid', 'min'=>1, 'max'=>1},
|
104
|
+
'dicom' => {'type'=>'ImagingExcerpt::Study::Series::Dicom', 'path'=>'Series.dicom', 'min'=>0, 'max'=>Float::INFINITY},
|
105
|
+
'instance' => {'type'=>'ImagingExcerpt::Study::Series::Instance', 'path'=>'Series.instance', 'min'=>1, 'max'=>Float::INFINITY}
|
106
|
+
}
|
107
|
+
|
108
|
+
class Dicom < FHIR::Model
|
109
|
+
include FHIR::Hashable
|
110
|
+
include FHIR::Json
|
111
|
+
include FHIR::Xml
|
112
|
+
|
113
|
+
METADATA = {
|
114
|
+
'id' => {'type'=>'id', 'path'=>'Dicom.id', 'min'=>0, 'max'=>1},
|
115
|
+
'extension' => {'type'=>'Extension', 'path'=>'Dicom.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
116
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Dicom.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
117
|
+
'type' => {'valid_codes'=>{'http://hl7.org/fhir/dWebType'=>['WADO-RS', 'WADO-URI', 'IID', 'WADO-WS']}, 'type'=>'code', 'path'=>'Dicom.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/dWebType'}},
|
118
|
+
'url' => {'type'=>'uri', 'path'=>'Dicom.url', 'min'=>1, 'max'=>1}
|
119
|
+
}
|
120
|
+
|
121
|
+
attr_accessor :id # 0-1 id
|
122
|
+
attr_accessor :extension # 0-* [ Extension ]
|
123
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
124
|
+
attr_accessor :type # 1-1 code
|
125
|
+
attr_accessor :url # 1-1 uri
|
126
|
+
end
|
127
|
+
|
128
|
+
class Instance < FHIR::Model
|
129
|
+
include FHIR::Hashable
|
130
|
+
include FHIR::Json
|
131
|
+
include FHIR::Xml
|
132
|
+
|
133
|
+
METADATA = {
|
134
|
+
'id' => {'type'=>'id', 'path'=>'Instance.id', 'min'=>0, 'max'=>1},
|
135
|
+
'extension' => {'type'=>'Extension', 'path'=>'Instance.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
136
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Instance.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
137
|
+
'sopClass' => {'type'=>'oid', 'path'=>'Instance.sopClass', 'min'=>1, 'max'=>1},
|
138
|
+
'uid' => {'type'=>'oid', 'path'=>'Instance.uid', 'min'=>1, 'max'=>1},
|
139
|
+
'dicom' => {'type'=>'ImagingExcerpt::Study::Series::Instance::Dicom', 'path'=>'Instance.dicom', 'min'=>0, 'max'=>Float::INFINITY},
|
140
|
+
'frameNumbers' => {'type'=>'unsignedInt', 'path'=>'Instance.frameNumbers', 'min'=>0, 'max'=>Float::INFINITY}
|
141
|
+
}
|
142
|
+
|
143
|
+
class Dicom < FHIR::Model
|
144
|
+
include FHIR::Hashable
|
145
|
+
include FHIR::Json
|
146
|
+
include FHIR::Xml
|
147
|
+
|
148
|
+
METADATA = {
|
149
|
+
'id' => {'type'=>'id', 'path'=>'Dicom.id', 'min'=>0, 'max'=>1},
|
150
|
+
'extension' => {'type'=>'Extension', 'path'=>'Dicom.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
151
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Dicom.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
152
|
+
'type' => {'valid_codes'=>{'http://hl7.org/fhir/dWebType'=>['WADO-RS', 'WADO-URI', 'IID', 'WADO-WS']}, 'type'=>'code', 'path'=>'Dicom.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/dWebType'}},
|
153
|
+
'url' => {'type'=>'uri', 'path'=>'Dicom.url', 'min'=>1, 'max'=>1}
|
154
|
+
}
|
155
|
+
|
156
|
+
attr_accessor :id # 0-1 id
|
157
|
+
attr_accessor :extension # 0-* [ Extension ]
|
158
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
159
|
+
attr_accessor :type # 1-1 code
|
160
|
+
attr_accessor :url # 1-1 uri
|
161
|
+
end
|
162
|
+
|
163
|
+
attr_accessor :id # 0-1 id
|
164
|
+
attr_accessor :extension # 0-* [ Extension ]
|
165
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
166
|
+
attr_accessor :sopClass # 1-1 oid
|
167
|
+
attr_accessor :uid # 1-1 oid
|
168
|
+
attr_accessor :dicom # 0-* [ ImagingExcerpt::Study::Series::Instance::Dicom ]
|
169
|
+
attr_accessor :frameNumbers # 0-* [ unsignedInt ]
|
170
|
+
end
|
171
|
+
|
172
|
+
attr_accessor :id # 0-1 id
|
173
|
+
attr_accessor :extension # 0-* [ Extension ]
|
174
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
175
|
+
attr_accessor :uid # 1-1 oid
|
176
|
+
attr_accessor :dicom # 0-* [ ImagingExcerpt::Study::Series::Dicom ]
|
177
|
+
attr_accessor :instance # 1-* [ ImagingExcerpt::Study::Series::Instance ]
|
178
|
+
end
|
179
|
+
|
180
|
+
attr_accessor :id # 0-1 id
|
181
|
+
attr_accessor :extension # 0-* [ Extension ]
|
182
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
183
|
+
attr_accessor :uid # 1-1 oid
|
184
|
+
attr_accessor :imagingStudy # 0-1 Reference(ImagingStudy)
|
185
|
+
attr_accessor :dicom # 0-* [ ImagingExcerpt::Study::Dicom ]
|
186
|
+
attr_accessor :viewable # 0-* [ ImagingExcerpt::Study::Viewable ]
|
187
|
+
attr_accessor :series # 1-* [ ImagingExcerpt::Study::Series ]
|
188
|
+
end
|
189
|
+
|
190
|
+
attr_accessor :id # 0-1 id
|
191
|
+
attr_accessor :meta # 0-1 Meta
|
192
|
+
attr_accessor :implicitRules # 0-1 uri
|
193
|
+
attr_accessor :language # 0-1 code
|
194
|
+
attr_accessor :text # 0-1 Narrative
|
195
|
+
attr_accessor :contained # 0-* [ Resource ]
|
196
|
+
attr_accessor :extension # 0-* [ Extension ]
|
197
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
198
|
+
attr_accessor :uid # 1-1 oid
|
199
|
+
attr_accessor :patient # 1-1 Reference(Patient)
|
200
|
+
attr_accessor :authoringTime # 0-1 dateTime
|
201
|
+
attr_accessor :author # 0-1 Reference(Practitioner|Device|Organization|Patient|RelatedPerson)
|
202
|
+
attr_accessor :title # 1-1 CodeableConcept
|
203
|
+
attr_accessor :description # 0-1 string
|
204
|
+
attr_accessor :study # 1-* [ ImagingExcerpt::Study ]
|
205
|
+
|
206
|
+
def resourceType
|
207
|
+
'ImagingExcerpt'
|
208
|
+
end
|
209
|
+
end
|
210
|
+
end
|
@@ -0,0 +1,136 @@
|
|
1
|
+
module FHIR
|
2
|
+
class ImagingObjectSelection < FHIR::Model
|
3
|
+
include FHIR::Hashable
|
4
|
+
include FHIR::Json
|
5
|
+
include FHIR::Xml
|
6
|
+
|
7
|
+
SEARCH_PARAMS = ["author", "authoring-time", "identifier", "patient", "selected-study", "title"]
|
8
|
+
METADATA = {
|
9
|
+
'id' => {'type'=>'id', 'path'=>'ImagingObjectSelection.id', 'min'=>0, 'max'=>1},
|
10
|
+
'meta' => {'type'=>'Meta', 'path'=>'ImagingObjectSelection.meta', 'min'=>0, 'max'=>1},
|
11
|
+
'implicitRules' => {'type'=>'uri', 'path'=>'ImagingObjectSelection.implicitRules', 'min'=>0, 'max'=>1},
|
12
|
+
'language' => {'type'=>'code', 'path'=>'ImagingObjectSelection.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
|
13
|
+
'text' => {'type'=>'Narrative', 'path'=>'ImagingObjectSelection.text', 'min'=>0, 'max'=>1},
|
14
|
+
'contained' => {'type'=>'Resource', 'path'=>'ImagingObjectSelection.contained', 'min'=>0, 'max'=>Float::INFINITY},
|
15
|
+
'extension' => {'type'=>'Extension', 'path'=>'ImagingObjectSelection.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
16
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'ImagingObjectSelection.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
17
|
+
'uid' => {'type'=>'oid', 'path'=>'ImagingObjectSelection.uid', 'min'=>1, 'max'=>1},
|
18
|
+
'patient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'ImagingObjectSelection.patient', 'min'=>1, 'max'=>1},
|
19
|
+
'authoringTime' => {'type'=>'dateTime', 'path'=>'ImagingObjectSelection.authoringTime', 'min'=>0, 'max'=>1},
|
20
|
+
'author' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'ImagingObjectSelection.author', 'min'=>0, 'max'=>1},
|
21
|
+
'title' => {'valid_codes'=>{'http://nema.org/dicom/dicm'=>['113000', '113001', '113002', '113003', '113004', '113005', '113006', '113007', '113008', '113009', '113010', '113013', '113018', '113020', '113021', '113030', '113031', '113032', '113033', '113034', '113035', '113036', '113037', '113038', '113039']}, 'type'=>'CodeableConcept', 'path'=>'ImagingObjectSelection.title', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/kos-title'}},
|
22
|
+
'description' => {'type'=>'string', 'path'=>'ImagingObjectSelection.description', 'min'=>0, 'max'=>1},
|
23
|
+
'study' => {'type'=>'ImagingObjectSelection::Study', 'path'=>'ImagingObjectSelection.study', 'min'=>1, 'max'=>Float::INFINITY}
|
24
|
+
}
|
25
|
+
|
26
|
+
class Study < FHIR::Model
|
27
|
+
include FHIR::Hashable
|
28
|
+
include FHIR::Json
|
29
|
+
include FHIR::Xml
|
30
|
+
|
31
|
+
METADATA = {
|
32
|
+
'id' => {'type'=>'id', 'path'=>'Study.id', 'min'=>0, 'max'=>1},
|
33
|
+
'extension' => {'type'=>'Extension', 'path'=>'Study.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
34
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Study.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
35
|
+
'uid' => {'type'=>'oid', 'path'=>'Study.uid', 'min'=>1, 'max'=>1},
|
36
|
+
'url' => {'type'=>'uri', 'path'=>'Study.url', 'min'=>0, 'max'=>1},
|
37
|
+
'imagingStudy' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/ImagingStudy'], 'type'=>'Reference', 'path'=>'Study.imagingStudy', 'min'=>0, 'max'=>1},
|
38
|
+
'series' => {'type'=>'ImagingObjectSelection::Study::Series', 'path'=>'Study.series', 'min'=>1, 'max'=>Float::INFINITY}
|
39
|
+
}
|
40
|
+
|
41
|
+
class Series < FHIR::Model
|
42
|
+
include FHIR::Hashable
|
43
|
+
include FHIR::Json
|
44
|
+
include FHIR::Xml
|
45
|
+
|
46
|
+
METADATA = {
|
47
|
+
'id' => {'type'=>'id', 'path'=>'Series.id', 'min'=>0, 'max'=>1},
|
48
|
+
'extension' => {'type'=>'Extension', 'path'=>'Series.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
49
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Series.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
50
|
+
'uid' => {'type'=>'oid', 'path'=>'Series.uid', 'min'=>1, 'max'=>1},
|
51
|
+
'url' => {'type'=>'uri', 'path'=>'Series.url', 'min'=>0, 'max'=>1},
|
52
|
+
'instance' => {'type'=>'ImagingObjectSelection::Study::Series::Instance', 'path'=>'Series.instance', 'min'=>1, 'max'=>Float::INFINITY}
|
53
|
+
}
|
54
|
+
|
55
|
+
class Instance < FHIR::Model
|
56
|
+
include FHIR::Hashable
|
57
|
+
include FHIR::Json
|
58
|
+
include FHIR::Xml
|
59
|
+
|
60
|
+
METADATA = {
|
61
|
+
'id' => {'type'=>'id', 'path'=>'Instance.id', 'min'=>0, 'max'=>1},
|
62
|
+
'extension' => {'type'=>'Extension', 'path'=>'Instance.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
63
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Instance.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
64
|
+
'sopClass' => {'type'=>'oid', 'path'=>'Instance.sopClass', 'min'=>1, 'max'=>1},
|
65
|
+
'uid' => {'type'=>'oid', 'path'=>'Instance.uid', 'min'=>1, 'max'=>1},
|
66
|
+
'url' => {'type'=>'uri', 'path'=>'Instance.url', 'min'=>1, 'max'=>1},
|
67
|
+
'frame' => {'type'=>'ImagingObjectSelection::Study::Series::Instance::Frame', 'path'=>'Instance.frame', 'min'=>0, 'max'=>Float::INFINITY}
|
68
|
+
}
|
69
|
+
|
70
|
+
class Frame < FHIR::Model
|
71
|
+
include FHIR::Hashable
|
72
|
+
include FHIR::Json
|
73
|
+
include FHIR::Xml
|
74
|
+
|
75
|
+
METADATA = {
|
76
|
+
'id' => {'type'=>'id', 'path'=>'Frame.id', 'min'=>0, 'max'=>1},
|
77
|
+
'extension' => {'type'=>'Extension', 'path'=>'Frame.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
78
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Frame.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
79
|
+
'number' => {'type'=>'unsignedInt', 'path'=>'Frame.number', 'min'=>1, 'max'=>Float::INFINITY},
|
80
|
+
'url' => {'type'=>'uri', 'path'=>'Frame.url', 'min'=>1, 'max'=>1}
|
81
|
+
}
|
82
|
+
|
83
|
+
attr_accessor :id # 0-1 id
|
84
|
+
attr_accessor :extension # 0-* [ Extension ]
|
85
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
86
|
+
attr_accessor :number # 1-* [ unsignedInt ]
|
87
|
+
attr_accessor :url # 1-1 uri
|
88
|
+
end
|
89
|
+
|
90
|
+
attr_accessor :id # 0-1 id
|
91
|
+
attr_accessor :extension # 0-* [ Extension ]
|
92
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
93
|
+
attr_accessor :sopClass # 1-1 oid
|
94
|
+
attr_accessor :uid # 1-1 oid
|
95
|
+
attr_accessor :url # 1-1 uri
|
96
|
+
attr_accessor :frame # 0-* [ ImagingObjectSelection::Study::Series::Instance::Frame ]
|
97
|
+
end
|
98
|
+
|
99
|
+
attr_accessor :id # 0-1 id
|
100
|
+
attr_accessor :extension # 0-* [ Extension ]
|
101
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
102
|
+
attr_accessor :uid # 1-1 oid
|
103
|
+
attr_accessor :url # 0-1 uri
|
104
|
+
attr_accessor :instance # 1-* [ ImagingObjectSelection::Study::Series::Instance ]
|
105
|
+
end
|
106
|
+
|
107
|
+
attr_accessor :id # 0-1 id
|
108
|
+
attr_accessor :extension # 0-* [ Extension ]
|
109
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
110
|
+
attr_accessor :uid # 1-1 oid
|
111
|
+
attr_accessor :url # 0-1 uri
|
112
|
+
attr_accessor :imagingStudy # 0-1 Reference(ImagingStudy)
|
113
|
+
attr_accessor :series # 1-* [ ImagingObjectSelection::Study::Series ]
|
114
|
+
end
|
115
|
+
|
116
|
+
attr_accessor :id # 0-1 id
|
117
|
+
attr_accessor :meta # 0-1 Meta
|
118
|
+
attr_accessor :implicitRules # 0-1 uri
|
119
|
+
attr_accessor :language # 0-1 code
|
120
|
+
attr_accessor :text # 0-1 Narrative
|
121
|
+
attr_accessor :contained # 0-* [ Resource ]
|
122
|
+
attr_accessor :extension # 0-* [ Extension ]
|
123
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
124
|
+
attr_accessor :uid # 1-1 oid
|
125
|
+
attr_accessor :patient # 1-1 Reference(Patient)
|
126
|
+
attr_accessor :authoringTime # 0-1 dateTime
|
127
|
+
attr_accessor :author # 0-1 Reference(Practitioner|Device|Organization|Patient|RelatedPerson)
|
128
|
+
attr_accessor :title # 1-1 CodeableConcept
|
129
|
+
attr_accessor :description # 0-1 string
|
130
|
+
attr_accessor :study # 1-* [ ImagingObjectSelection::Study ]
|
131
|
+
|
132
|
+
def resourceType
|
133
|
+
'ImagingObjectSelection'
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|