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,204 @@
|
|
1
|
+
module FHIR
|
2
|
+
class MeasureReport < FHIR::Model
|
3
|
+
include FHIR::Hashable
|
4
|
+
include FHIR::Json
|
5
|
+
include FHIR::Xml
|
6
|
+
|
7
|
+
SEARCH_PARAMS = ["patient"]
|
8
|
+
METADATA = {
|
9
|
+
'id' => {'type'=>'id', 'path'=>'MeasureReport.id', 'min'=>0, 'max'=>1},
|
10
|
+
'meta' => {'type'=>'Meta', 'path'=>'MeasureReport.meta', 'min'=>0, 'max'=>1},
|
11
|
+
'implicitRules' => {'type'=>'uri', 'path'=>'MeasureReport.implicitRules', 'min'=>0, 'max'=>1},
|
12
|
+
'language' => {'type'=>'code', 'path'=>'MeasureReport.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
|
13
|
+
'text' => {'type'=>'Narrative', 'path'=>'MeasureReport.text', 'min'=>0, 'max'=>1},
|
14
|
+
'contained' => {'type'=>'Resource', 'path'=>'MeasureReport.contained', 'min'=>0, 'max'=>Float::INFINITY},
|
15
|
+
'extension' => {'type'=>'Extension', 'path'=>'MeasureReport.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
16
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'MeasureReport.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
17
|
+
'measure' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Measure'], 'type'=>'Reference', 'path'=>'MeasureReport.measure', 'min'=>1, 'max'=>1},
|
18
|
+
'type' => {'valid_codes'=>{'http://hl7.org/fhir/measure-report-type'=>['individual', 'patient-list', 'summary']}, 'type'=>'code', 'path'=>'MeasureReport.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/measure-report-type'}},
|
19
|
+
'patient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'MeasureReport.patient', 'min'=>0, 'max'=>1},
|
20
|
+
'period' => {'type'=>'Period', 'path'=>'MeasureReport.period', 'min'=>1, 'max'=>1},
|
21
|
+
'status' => {'valid_codes'=>{'http://hl7.org/fhir/measure-report-status'=>['complete', 'pending', 'error']}, 'type'=>'code', 'path'=>'MeasureReport.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/measure-report-status'}},
|
22
|
+
'date' => {'type'=>'dateTime', 'path'=>'MeasureReport.date', 'min'=>0, 'max'=>1},
|
23
|
+
'reportingOrganization' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'MeasureReport.reportingOrganization', 'min'=>0, 'max'=>1},
|
24
|
+
'group' => {'type'=>'MeasureReport::Group', 'path'=>'MeasureReport.group', 'min'=>0, 'max'=>Float::INFINITY},
|
25
|
+
'evaluatedResources' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Bundle'], 'type'=>'Reference', 'path'=>'MeasureReport.evaluatedResources', 'min'=>0, 'max'=>1}
|
26
|
+
}
|
27
|
+
|
28
|
+
class Group < FHIR::Model
|
29
|
+
include FHIR::Hashable
|
30
|
+
include FHIR::Json
|
31
|
+
include FHIR::Xml
|
32
|
+
|
33
|
+
METADATA = {
|
34
|
+
'id' => {'type'=>'id', 'path'=>'Group.id', 'min'=>0, 'max'=>1},
|
35
|
+
'extension' => {'type'=>'Extension', 'path'=>'Group.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
36
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Group.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
37
|
+
'identifier' => {'type'=>'Identifier', 'path'=>'Group.identifier', 'min'=>1, 'max'=>1},
|
38
|
+
'population' => {'type'=>'MeasureReport::Group::Population', 'path'=>'Group.population', 'min'=>0, 'max'=>Float::INFINITY},
|
39
|
+
'measureScore' => {'type'=>'decimal', 'path'=>'Group.measureScore', 'min'=>0, 'max'=>1},
|
40
|
+
'stratifier' => {'type'=>'MeasureReport::Group::Stratifier', 'path'=>'Group.stratifier', 'min'=>0, 'max'=>Float::INFINITY},
|
41
|
+
'supplementalData' => {'type'=>'MeasureReport::Group::Supplementaldata', 'path'=>'Group.supplementalData', 'min'=>0, 'max'=>Float::INFINITY}
|
42
|
+
}
|
43
|
+
|
44
|
+
class Population < FHIR::Model
|
45
|
+
include FHIR::Hashable
|
46
|
+
include FHIR::Json
|
47
|
+
include FHIR::Xml
|
48
|
+
|
49
|
+
METADATA = {
|
50
|
+
'id' => {'type'=>'id', 'path'=>'Population.id', 'min'=>0, 'max'=>1},
|
51
|
+
'extension' => {'type'=>'Extension', 'path'=>'Population.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
52
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Population.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
53
|
+
'type' => {'valid_codes'=>{'http://hl7.org/fhir/measure-population'=>['initial-population', 'numerator', 'numerator-exclusion', 'denominator', 'denominator-exclusion', 'denominator-exception', 'measure-population', 'measure-population-exclusion', 'measure-score']}, 'type'=>'code', 'path'=>'Population.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/measure-population'}},
|
54
|
+
'count' => {'type'=>'integer', 'path'=>'Population.count', 'min'=>0, 'max'=>1},
|
55
|
+
'patients' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/List'], 'type'=>'Reference', 'path'=>'Population.patients', 'min'=>0, 'max'=>1}
|
56
|
+
}
|
57
|
+
|
58
|
+
attr_accessor :id # 0-1 id
|
59
|
+
attr_accessor :extension # 0-* [ Extension ]
|
60
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
61
|
+
attr_accessor :type # 1-1 code
|
62
|
+
attr_accessor :count # 0-1 integer
|
63
|
+
attr_accessor :patients # 0-1 Reference(List)
|
64
|
+
end
|
65
|
+
|
66
|
+
class Stratifier < FHIR::Model
|
67
|
+
include FHIR::Hashable
|
68
|
+
include FHIR::Json
|
69
|
+
include FHIR::Xml
|
70
|
+
|
71
|
+
METADATA = {
|
72
|
+
'id' => {'type'=>'id', 'path'=>'Stratifier.id', 'min'=>0, 'max'=>1},
|
73
|
+
'extension' => {'type'=>'Extension', 'path'=>'Stratifier.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
74
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Stratifier.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
75
|
+
'identifier' => {'type'=>'Identifier', 'path'=>'Stratifier.identifier', 'min'=>1, 'max'=>1},
|
76
|
+
'group' => {'type'=>'MeasureReport::Group::Stratifier::Group', 'path'=>'Stratifier.group', 'min'=>0, 'max'=>Float::INFINITY}
|
77
|
+
}
|
78
|
+
|
79
|
+
class Group < FHIR::Model
|
80
|
+
include FHIR::Hashable
|
81
|
+
include FHIR::Json
|
82
|
+
include FHIR::Xml
|
83
|
+
|
84
|
+
METADATA = {
|
85
|
+
'id' => {'type'=>'id', 'path'=>'Group.id', 'min'=>0, 'max'=>1},
|
86
|
+
'extension' => {'type'=>'Extension', 'path'=>'Group.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
87
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Group.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
88
|
+
'value' => {'type'=>'string', 'path'=>'Group.value', 'min'=>1, 'max'=>1},
|
89
|
+
'population' => {'type'=>'MeasureReport::Group::Stratifier::Group::Population', 'path'=>'Group.population', 'min'=>0, 'max'=>Float::INFINITY},
|
90
|
+
'measureScore' => {'type'=>'decimal', 'path'=>'Group.measureScore', 'min'=>0, 'max'=>1}
|
91
|
+
}
|
92
|
+
|
93
|
+
class Population < FHIR::Model
|
94
|
+
include FHIR::Hashable
|
95
|
+
include FHIR::Json
|
96
|
+
include FHIR::Xml
|
97
|
+
|
98
|
+
METADATA = {
|
99
|
+
'id' => {'type'=>'id', 'path'=>'Population.id', 'min'=>0, 'max'=>1},
|
100
|
+
'extension' => {'type'=>'Extension', 'path'=>'Population.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
101
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Population.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
102
|
+
'type' => {'valid_codes'=>{'http://hl7.org/fhir/measure-population'=>['initial-population', 'numerator', 'numerator-exclusion', 'denominator', 'denominator-exclusion', 'denominator-exception', 'measure-population', 'measure-population-exclusion', 'measure-score']}, 'type'=>'code', 'path'=>'Population.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/measure-population'}},
|
103
|
+
'count' => {'type'=>'integer', 'path'=>'Population.count', 'min'=>0, 'max'=>1},
|
104
|
+
'patients' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/List'], 'type'=>'Reference', 'path'=>'Population.patients', 'min'=>0, 'max'=>1}
|
105
|
+
}
|
106
|
+
|
107
|
+
attr_accessor :id # 0-1 id
|
108
|
+
attr_accessor :extension # 0-* [ Extension ]
|
109
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
110
|
+
attr_accessor :type # 1-1 code
|
111
|
+
attr_accessor :count # 0-1 integer
|
112
|
+
attr_accessor :patients # 0-1 Reference(List)
|
113
|
+
end
|
114
|
+
|
115
|
+
attr_accessor :id # 0-1 id
|
116
|
+
attr_accessor :extension # 0-* [ Extension ]
|
117
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
118
|
+
attr_accessor :value # 1-1 string
|
119
|
+
attr_accessor :population # 0-* [ MeasureReport::Group::Stratifier::Group::Population ]
|
120
|
+
attr_accessor :measureScore # 0-1 decimal
|
121
|
+
end
|
122
|
+
|
123
|
+
attr_accessor :id # 0-1 id
|
124
|
+
attr_accessor :extension # 0-* [ Extension ]
|
125
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
126
|
+
attr_accessor :identifier # 1-1 Identifier
|
127
|
+
attr_accessor :group # 0-* [ MeasureReport::Group::Stratifier::Group ]
|
128
|
+
end
|
129
|
+
|
130
|
+
class Supplementaldata < FHIR::Model
|
131
|
+
include FHIR::Hashable
|
132
|
+
include FHIR::Json
|
133
|
+
include FHIR::Xml
|
134
|
+
|
135
|
+
METADATA = {
|
136
|
+
'id' => {'type'=>'id', 'path'=>'Supplementaldata.id', 'min'=>0, 'max'=>1},
|
137
|
+
'extension' => {'type'=>'Extension', 'path'=>'Supplementaldata.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
138
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Supplementaldata.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
139
|
+
'identifier' => {'type'=>'Identifier', 'path'=>'Supplementaldata.identifier', 'min'=>1, 'max'=>1},
|
140
|
+
'group' => {'type'=>'MeasureReport::Group::Supplementaldata::Group', 'path'=>'Supplementaldata.group', 'min'=>0, 'max'=>Float::INFINITY}
|
141
|
+
}
|
142
|
+
|
143
|
+
class Group < FHIR::Model
|
144
|
+
include FHIR::Hashable
|
145
|
+
include FHIR::Json
|
146
|
+
include FHIR::Xml
|
147
|
+
|
148
|
+
METADATA = {
|
149
|
+
'id' => {'type'=>'id', 'path'=>'Group.id', 'min'=>0, 'max'=>1},
|
150
|
+
'extension' => {'type'=>'Extension', 'path'=>'Group.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
151
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Group.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
152
|
+
'value' => {'type'=>'string', 'path'=>'Group.value', 'min'=>1, 'max'=>1},
|
153
|
+
'count' => {'type'=>'integer', 'path'=>'Group.count', 'min'=>0, 'max'=>1},
|
154
|
+
'patients' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/List'], 'type'=>'Reference', 'path'=>'Group.patients', 'min'=>0, 'max'=>1}
|
155
|
+
}
|
156
|
+
|
157
|
+
attr_accessor :id # 0-1 id
|
158
|
+
attr_accessor :extension # 0-* [ Extension ]
|
159
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
160
|
+
attr_accessor :value # 1-1 string
|
161
|
+
attr_accessor :count # 0-1 integer
|
162
|
+
attr_accessor :patients # 0-1 Reference(List)
|
163
|
+
end
|
164
|
+
|
165
|
+
attr_accessor :id # 0-1 id
|
166
|
+
attr_accessor :extension # 0-* [ Extension ]
|
167
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
168
|
+
attr_accessor :identifier # 1-1 Identifier
|
169
|
+
attr_accessor :group # 0-* [ MeasureReport::Group::Supplementaldata::Group ]
|
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 :identifier # 1-1 Identifier
|
176
|
+
attr_accessor :population # 0-* [ MeasureReport::Group::Population ]
|
177
|
+
attr_accessor :measureScore # 0-1 decimal
|
178
|
+
attr_accessor :stratifier # 0-* [ MeasureReport::Group::Stratifier ]
|
179
|
+
attr_accessor :supplementalData # 0-* [ MeasureReport::Group::Supplementaldata ]
|
180
|
+
end
|
181
|
+
|
182
|
+
attr_accessor :id # 0-1 id
|
183
|
+
attr_accessor :meta # 0-1 Meta
|
184
|
+
attr_accessor :implicitRules # 0-1 uri
|
185
|
+
attr_accessor :language # 0-1 code
|
186
|
+
attr_accessor :text # 0-1 Narrative
|
187
|
+
attr_accessor :contained # 0-* [ Resource ]
|
188
|
+
attr_accessor :extension # 0-* [ Extension ]
|
189
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
190
|
+
attr_accessor :measure # 1-1 Reference(Measure)
|
191
|
+
attr_accessor :type # 1-1 code
|
192
|
+
attr_accessor :patient # 0-1 Reference(Patient)
|
193
|
+
attr_accessor :period # 1-1 Period
|
194
|
+
attr_accessor :status # 1-1 code
|
195
|
+
attr_accessor :date # 0-1 dateTime
|
196
|
+
attr_accessor :reportingOrganization # 0-1 Reference(Organization)
|
197
|
+
attr_accessor :group # 0-* [ MeasureReport::Group ]
|
198
|
+
attr_accessor :evaluatedResources # 0-1 Reference(Bundle)
|
199
|
+
|
200
|
+
def resourceType
|
201
|
+
'MeasureReport'
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
module FHIR
|
2
|
+
class Media < FHIR::Model
|
3
|
+
include FHIR::Hashable
|
4
|
+
include FHIR::Json
|
5
|
+
include FHIR::Xml
|
6
|
+
|
7
|
+
SEARCH_PARAMS = ["created", "identifier", "operator", "patient", "subject", "subtype", "type", "view"]
|
8
|
+
METADATA = {
|
9
|
+
'id' => {'type'=>'id', 'path'=>'Media.id', 'min'=>0, 'max'=>1},
|
10
|
+
'meta' => {'type'=>'Meta', 'path'=>'Media.meta', 'min'=>0, 'max'=>1},
|
11
|
+
'implicitRules' => {'type'=>'uri', 'path'=>'Media.implicitRules', 'min'=>0, 'max'=>1},
|
12
|
+
'language' => {'type'=>'code', 'path'=>'Media.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
|
13
|
+
'text' => {'type'=>'Narrative', 'path'=>'Media.text', 'min'=>0, 'max'=>1},
|
14
|
+
'contained' => {'type'=>'Resource', 'path'=>'Media.contained', 'min'=>0, 'max'=>Float::INFINITY},
|
15
|
+
'extension' => {'type'=>'Extension', 'path'=>'Media.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
16
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Media.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
17
|
+
'identifier' => {'type'=>'Identifier', 'path'=>'Media.identifier', 'min'=>0, 'max'=>Float::INFINITY},
|
18
|
+
'type' => {'valid_codes'=>{'http://hl7.org/fhir/digital-media-type'=>['photo', 'video', 'audio']}, 'type'=>'code', 'path'=>'Media.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/digital-media-type'}},
|
19
|
+
'subtype' => {'type'=>'CodeableConcept', 'path'=>'Media.subtype', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/digital-media-subtype'}},
|
20
|
+
'view' => {'valid_codes'=>{'http://snomed.info/sct'=>['260421001', '260422008', '260424009', '260425005', '260426006', '260427002', '260428007', '260430009', '260431008', '260432001', '260434000', '260435004', '260436003', '260437007', '260438002', '260439005', '260440007', '260441006', '260442004', '260443009', '260444003', '260445002', '260446001', '260447005', '260450008', '260451007', '260452000', '260453005', '260454004', '260455003', '260458001', '260459009', '260460004', '260461000', '260463002', '260464008', '260465009', '260466005', '260467001', '260468006', '260469003', '260470002', '260471003', '260472005', '260473000', '260475007', '260476008', '260477004', '260478009', '260479001', '260481004', '260482006', '260483001', '260484007', '260485008', '260486009', '260487000', '260489002', '260490006', '260491005', '260492003', '260493008', '260494002', '260496000', '260497009', '260499007', '260500003', '260501004', '260502006', '260503001', '260504007', '260506009', '272455005', '272456006', '272457002', '272458007', '272459004', '272460009', '272461008', '272462001', '272464000', '272465004', '272466003', '272467007', '272468002', '272469005', '272470006', '272472003', '272473008', '272474002', '272475001', '272476000', '272478004', '272479007', '272480005', '272481009', '272482002', '272483007', '272484001', '278255003', '278267001', '278318001', '398996004', '399000008', '399001007', '399002000', '399003005', '399004004', '399005003', '399006002', '399011000', '399012007', '399013002', '399022001', '399024000', '399025004', '399026003', '399028002', '399033003', '399037002', '399038007', '399059000', '399061009', '399065000', '399067008', '399071006', '399073009', '399074003', '399075002', '399080006', '399082003', '399083008', '399089007', '399098005', '399099002', '399101009', '399103007', '399108003', '399110001', '399113004', '399118008', '399125001', '399127009', '399129007', '399130002', '399132005', '399135007', '399136008', '399138009', '399142007', '399146005', '399148006', '399152006', '399156009', '399157000', '399159002', '399160007', '399161006', '399162004', '399163009', '399168000', '399169008', '399171008', '399173006', '399179005', '399181007', '399182000', '399184004', '399188001', '399192008', '399196006', '399198007', '399199004', '399201002', '399206007', '399212002', '399215000', '399218003', '399225005', '399227002', '399234000', '399236003', '399237007', '399241006', '399242004', '399243009', '399245002', '399246001', '399247005', '399251007', '399255003', '399260004', '399263002', '399265009', '399268006', '399270002', '399272005', '399273000', '399277004', '399278009', '399280003', '399281004', '399284007', '399285008', '399288005', '399290006', '399292003', '399296000', '399297009', '399300004', '399303002', '399308006', '399311007', '399312000', '399313005', '399316002', '399318001', '399320003', '399321004', '399325008', '399327000', '399330007', '399332004', '399335002', '399341009', '399342002', '399344001', '399348003', '399349006', '399351005', '399352003', '399355001', '399356000', '399358004', '399360002', '399361003', '399362005', '399365007', '399368009', '399370000', '399372008', '408723005', '408724004', '408725003', '408726002', '422534007', '422568001', '422670003', '422795009', '422861003', '422954003', '422996004', '423091003', '423720000', '424086005', '424655003', '424811006', '424962005', '425030002', '425035007', '425042007', '425157002', '425188003', '441505008', '441555000', '441672003', '441753009', '442361004', '442441009', '442580003', '442581004', '442593008', '442594002', '442640004', '442653001', '442667005']}, 'type'=>'CodeableConcept', 'path'=>'Media.view', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/media-view'}},
|
21
|
+
'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Specimen'], 'type'=>'Reference', 'path'=>'Media.subject', 'min'=>0, 'max'=>1},
|
22
|
+
'operator' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'Media.operator', 'min'=>0, 'max'=>1},
|
23
|
+
'deviceName' => {'type'=>'string', 'path'=>'Media.deviceName', 'min'=>0, 'max'=>1},
|
24
|
+
'height' => {'type'=>'positiveInt', 'path'=>'Media.height', 'min'=>0, 'max'=>1},
|
25
|
+
'width' => {'type'=>'positiveInt', 'path'=>'Media.width', 'min'=>0, 'max'=>1},
|
26
|
+
'frames' => {'type'=>'positiveInt', 'path'=>'Media.frames', 'min'=>0, 'max'=>1},
|
27
|
+
'duration' => {'type'=>'unsignedInt', 'path'=>'Media.duration', 'min'=>0, 'max'=>1},
|
28
|
+
'content' => {'type'=>'Attachment', 'path'=>'Media.content', 'min'=>1, 'max'=>1}
|
29
|
+
}
|
30
|
+
|
31
|
+
attr_accessor :id # 0-1 id
|
32
|
+
attr_accessor :meta # 0-1 Meta
|
33
|
+
attr_accessor :implicitRules # 0-1 uri
|
34
|
+
attr_accessor :language # 0-1 code
|
35
|
+
attr_accessor :text # 0-1 Narrative
|
36
|
+
attr_accessor :contained # 0-* [ Resource ]
|
37
|
+
attr_accessor :extension # 0-* [ Extension ]
|
38
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
39
|
+
attr_accessor :identifier # 0-* [ Identifier ]
|
40
|
+
attr_accessor :type # 1-1 code
|
41
|
+
attr_accessor :subtype # 0-1 CodeableConcept
|
42
|
+
attr_accessor :view # 0-1 CodeableConcept
|
43
|
+
attr_accessor :subject # 0-1 Reference(Patient|Practitioner|Group|Device|Specimen)
|
44
|
+
attr_accessor :operator # 0-1 Reference(Practitioner)
|
45
|
+
attr_accessor :deviceName # 0-1 string
|
46
|
+
attr_accessor :height # 0-1 positiveInt
|
47
|
+
attr_accessor :width # 0-1 positiveInt
|
48
|
+
attr_accessor :frames # 0-1 positiveInt
|
49
|
+
attr_accessor :duration # 0-1 unsignedInt
|
50
|
+
attr_accessor :content # 1-1 Attachment
|
51
|
+
|
52
|
+
def resourceType
|
53
|
+
'Media'
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|