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,164 @@
|
|
1
|
+
module FHIR
|
2
|
+
class StructureDefinition < FHIR::Model
|
3
|
+
include FHIR::Hashable
|
4
|
+
include FHIR::Json
|
5
|
+
include FHIR::Xml
|
6
|
+
|
7
|
+
SEARCH_PARAMS = ["abstract", "base", "base-path", "code", "context", "context-type", "date", "derivation", "description", "display", "experimental", "ext-context", "identifier", "kind", "name", "path", "publisher", "status", "type", "url", "valueset", "version"]
|
8
|
+
METADATA = {
|
9
|
+
'id' => {'type'=>'id', 'path'=>'StructureDefinition.id', 'min'=>0, 'max'=>1},
|
10
|
+
'meta' => {'type'=>'Meta', 'path'=>'StructureDefinition.meta', 'min'=>0, 'max'=>1},
|
11
|
+
'implicitRules' => {'type'=>'uri', 'path'=>'StructureDefinition.implicitRules', 'min'=>0, 'max'=>1},
|
12
|
+
'language' => {'type'=>'code', 'path'=>'StructureDefinition.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
|
13
|
+
'text' => {'type'=>'Narrative', 'path'=>'StructureDefinition.text', 'min'=>0, 'max'=>1},
|
14
|
+
'contained' => {'type'=>'Resource', 'path'=>'StructureDefinition.contained', 'min'=>0, 'max'=>Float::INFINITY},
|
15
|
+
'extension' => {'type'=>'Extension', 'path'=>'StructureDefinition.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
16
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'StructureDefinition.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
17
|
+
'url' => {'type'=>'uri', 'path'=>'StructureDefinition.url', 'min'=>1, 'max'=>1},
|
18
|
+
'identifier' => {'type'=>'Identifier', 'path'=>'StructureDefinition.identifier', 'min'=>0, 'max'=>Float::INFINITY},
|
19
|
+
'version' => {'type'=>'string', 'path'=>'StructureDefinition.version', 'min'=>0, 'max'=>1},
|
20
|
+
'name' => {'type'=>'string', 'path'=>'StructureDefinition.name', 'min'=>1, 'max'=>1},
|
21
|
+
'display' => {'type'=>'string', 'path'=>'StructureDefinition.display', 'min'=>0, 'max'=>1},
|
22
|
+
'status' => {'valid_codes'=>{'http://hl7.org/fhir/conformance-resource-status'=>['draft', 'active', 'retired']}, 'type'=>'code', 'path'=>'StructureDefinition.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/conformance-resource-status'}},
|
23
|
+
'experimental' => {'type'=>'boolean', 'path'=>'StructureDefinition.experimental', 'min'=>0, 'max'=>1},
|
24
|
+
'publisher' => {'type'=>'string', 'path'=>'StructureDefinition.publisher', 'min'=>0, 'max'=>1},
|
25
|
+
'contact' => {'type'=>'StructureDefinition::Contact', 'path'=>'StructureDefinition.contact', 'min'=>0, 'max'=>Float::INFINITY},
|
26
|
+
'date' => {'type'=>'dateTime', 'path'=>'StructureDefinition.date', 'min'=>0, 'max'=>1},
|
27
|
+
'description' => {'type'=>'string', 'path'=>'StructureDefinition.description', 'min'=>0, 'max'=>1},
|
28
|
+
'useContext' => {'type'=>'CodeableConcept', 'path'=>'StructureDefinition.useContext', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/use-context'}},
|
29
|
+
'requirements' => {'type'=>'string', 'path'=>'StructureDefinition.requirements', 'min'=>0, 'max'=>1},
|
30
|
+
'copyright' => {'type'=>'string', 'path'=>'StructureDefinition.copyright', 'min'=>0, 'max'=>1},
|
31
|
+
'code' => {'type'=>'Coding', 'path'=>'StructureDefinition.code', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/profile-code'}},
|
32
|
+
'fhirVersion' => {'type'=>'id', 'path'=>'StructureDefinition.fhirVersion', 'min'=>0, 'max'=>1},
|
33
|
+
'mapping' => {'type'=>'StructureDefinition::Mapping', 'path'=>'StructureDefinition.mapping', 'min'=>0, 'max'=>Float::INFINITY},
|
34
|
+
'kind' => {'valid_codes'=>{'http://hl7.org/fhir/structure-definition-kind'=>['datatype', 'resource', 'logical']}, 'type'=>'code', 'path'=>'StructureDefinition.kind', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/structure-definition-kind'}},
|
35
|
+
'abstract' => {'type'=>'boolean', 'path'=>'StructureDefinition.abstract', 'min'=>1, 'max'=>1},
|
36
|
+
'contextType' => {'valid_codes'=>{'http://hl7.org/fhir/extension-context'=>['resource', 'datatype', 'extension']}, 'type'=>'code', 'path'=>'StructureDefinition.contextType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/extension-context'}},
|
37
|
+
'context' => {'type'=>'string', 'path'=>'StructureDefinition.context', 'min'=>0, 'max'=>Float::INFINITY},
|
38
|
+
'baseType' => {'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'=>'StructureDefinition.baseType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/defined-types'}},
|
39
|
+
'baseDefinition' => {'type'=>'uri', 'path'=>'StructureDefinition.baseDefinition', 'min'=>0, 'max'=>1},
|
40
|
+
'derivation' => {'valid_codes'=>{'http://hl7.org/fhir/type-derivation-rule'=>['specialization', 'constraint']}, 'type'=>'code', 'path'=>'StructureDefinition.derivation', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/type-derivation-rule'}},
|
41
|
+
'snapshot' => {'type'=>'StructureDefinition::Snapshot', 'path'=>'StructureDefinition.snapshot', 'min'=>0, 'max'=>1},
|
42
|
+
'differential' => {'type'=>'StructureDefinition::Differential', 'path'=>'StructureDefinition.differential', 'min'=>0, 'max'=>1}
|
43
|
+
}
|
44
|
+
|
45
|
+
class Contact < FHIR::Model
|
46
|
+
include FHIR::Hashable
|
47
|
+
include FHIR::Json
|
48
|
+
include FHIR::Xml
|
49
|
+
|
50
|
+
METADATA = {
|
51
|
+
'id' => {'type'=>'id', 'path'=>'Contact.id', 'min'=>0, 'max'=>1},
|
52
|
+
'extension' => {'type'=>'Extension', 'path'=>'Contact.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
53
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Contact.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
54
|
+
'name' => {'type'=>'string', 'path'=>'Contact.name', 'min'=>0, 'max'=>1},
|
55
|
+
'telecom' => {'type'=>'ContactPoint', 'path'=>'Contact.telecom', 'min'=>0, 'max'=>Float::INFINITY}
|
56
|
+
}
|
57
|
+
|
58
|
+
attr_accessor :id # 0-1 id
|
59
|
+
attr_accessor :extension # 0-* [ Extension ]
|
60
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
61
|
+
attr_accessor :name # 0-1 string
|
62
|
+
attr_accessor :telecom # 0-* [ ContactPoint ]
|
63
|
+
end
|
64
|
+
|
65
|
+
class Mapping < FHIR::Model
|
66
|
+
include FHIR::Hashable
|
67
|
+
include FHIR::Json
|
68
|
+
include FHIR::Xml
|
69
|
+
|
70
|
+
METADATA = {
|
71
|
+
'id' => {'type'=>'id', 'path'=>'Mapping.id', 'min'=>0, 'max'=>1},
|
72
|
+
'extension' => {'type'=>'Extension', 'path'=>'Mapping.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
73
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Mapping.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
74
|
+
'identity' => {'type'=>'id', 'path'=>'Mapping.identity', 'min'=>1, 'max'=>1},
|
75
|
+
'uri' => {'type'=>'uri', 'path'=>'Mapping.uri', 'min'=>0, 'max'=>1},
|
76
|
+
'name' => {'type'=>'string', 'path'=>'Mapping.name', 'min'=>0, 'max'=>1},
|
77
|
+
'comments' => {'type'=>'string', 'path'=>'Mapping.comments', 'min'=>0, 'max'=>1}
|
78
|
+
}
|
79
|
+
|
80
|
+
attr_accessor :id # 0-1 id
|
81
|
+
attr_accessor :extension # 0-* [ Extension ]
|
82
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
83
|
+
attr_accessor :identity # 1-1 id
|
84
|
+
attr_accessor :uri # 0-1 uri
|
85
|
+
attr_accessor :name # 0-1 string
|
86
|
+
attr_accessor :comments # 0-1 string
|
87
|
+
end
|
88
|
+
|
89
|
+
class Snapshot < FHIR::Model
|
90
|
+
include FHIR::Hashable
|
91
|
+
include FHIR::Json
|
92
|
+
include FHIR::Xml
|
93
|
+
|
94
|
+
METADATA = {
|
95
|
+
'id' => {'type'=>'id', 'path'=>'Snapshot.id', 'min'=>0, 'max'=>1},
|
96
|
+
'extension' => {'type'=>'Extension', 'path'=>'Snapshot.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
97
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Snapshot.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
98
|
+
'element' => {'type'=>'ElementDefinition', 'path'=>'Snapshot.element', 'min'=>1, 'max'=>Float::INFINITY}
|
99
|
+
}
|
100
|
+
|
101
|
+
attr_accessor :id # 0-1 id
|
102
|
+
attr_accessor :extension # 0-* [ Extension ]
|
103
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
104
|
+
attr_accessor :element # 1-* [ ElementDefinition ]
|
105
|
+
end
|
106
|
+
|
107
|
+
class Differential < FHIR::Model
|
108
|
+
include FHIR::Hashable
|
109
|
+
include FHIR::Json
|
110
|
+
include FHIR::Xml
|
111
|
+
|
112
|
+
METADATA = {
|
113
|
+
'id' => {'type'=>'id', 'path'=>'Differential.id', 'min'=>0, 'max'=>1},
|
114
|
+
'extension' => {'type'=>'Extension', 'path'=>'Differential.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
115
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Differential.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
116
|
+
'element' => {'type'=>'ElementDefinition', 'path'=>'Differential.element', 'min'=>1, 'max'=>Float::INFINITY}
|
117
|
+
}
|
118
|
+
|
119
|
+
attr_accessor :id # 0-1 id
|
120
|
+
attr_accessor :extension # 0-* [ Extension ]
|
121
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
122
|
+
attr_accessor :element # 1-* [ ElementDefinition ]
|
123
|
+
end
|
124
|
+
|
125
|
+
attr_accessor :id # 0-1 id
|
126
|
+
attr_accessor :meta # 0-1 Meta
|
127
|
+
attr_accessor :implicitRules # 0-1 uri
|
128
|
+
attr_accessor :language # 0-1 code
|
129
|
+
attr_accessor :text # 0-1 Narrative
|
130
|
+
attr_accessor :contained # 0-* [ Resource ]
|
131
|
+
attr_accessor :extension # 0-* [ Extension ]
|
132
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
133
|
+
attr_accessor :url # 1-1 uri
|
134
|
+
attr_accessor :identifier # 0-* [ Identifier ]
|
135
|
+
attr_accessor :version # 0-1 string
|
136
|
+
attr_accessor :name # 1-1 string
|
137
|
+
attr_accessor :display # 0-1 string
|
138
|
+
attr_accessor :status # 1-1 code
|
139
|
+
attr_accessor :experimental # 0-1 boolean
|
140
|
+
attr_accessor :publisher # 0-1 string
|
141
|
+
attr_accessor :contact # 0-* [ StructureDefinition::Contact ]
|
142
|
+
attr_accessor :date # 0-1 dateTime
|
143
|
+
attr_accessor :description # 0-1 string
|
144
|
+
attr_accessor :useContext # 0-* [ CodeableConcept ]
|
145
|
+
attr_accessor :requirements # 0-1 string
|
146
|
+
attr_accessor :copyright # 0-1 string
|
147
|
+
attr_accessor :code # 0-* [ Coding ]
|
148
|
+
attr_accessor :fhirVersion # 0-1 id
|
149
|
+
attr_accessor :mapping # 0-* [ StructureDefinition::Mapping ]
|
150
|
+
attr_accessor :kind # 1-1 code
|
151
|
+
attr_accessor :abstract # 1-1 boolean
|
152
|
+
attr_accessor :contextType # 0-1 code
|
153
|
+
attr_accessor :context # 0-* [ string ]
|
154
|
+
attr_accessor :baseType # 0-1 code
|
155
|
+
attr_accessor :baseDefinition # 0-1 uri
|
156
|
+
attr_accessor :derivation # 0-1 code
|
157
|
+
attr_accessor :snapshot # 0-1 StructureDefinition::Snapshot
|
158
|
+
attr_accessor :differential # 0-1 StructureDefinition::Differential
|
159
|
+
|
160
|
+
def resourceType
|
161
|
+
'StructureDefinition'
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
@@ -0,0 +1,297 @@
|
|
1
|
+
module FHIR
|
2
|
+
class StructureMap < FHIR::Model
|
3
|
+
include FHIR::Hashable
|
4
|
+
include FHIR::Json
|
5
|
+
include FHIR::Xml
|
6
|
+
|
7
|
+
SEARCH_PARAMS = ["context", "date", "description", "experimental", "identifier", "name", "publisher", "status", "url", "version"]
|
8
|
+
METADATA = {
|
9
|
+
'id' => {'type'=>'id', 'path'=>'StructureMap.id', 'min'=>0, 'max'=>1},
|
10
|
+
'meta' => {'type'=>'Meta', 'path'=>'StructureMap.meta', 'min'=>0, 'max'=>1},
|
11
|
+
'implicitRules' => {'type'=>'uri', 'path'=>'StructureMap.implicitRules', 'min'=>0, 'max'=>1},
|
12
|
+
'language' => {'type'=>'code', 'path'=>'StructureMap.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
|
13
|
+
'text' => {'type'=>'Narrative', 'path'=>'StructureMap.text', 'min'=>0, 'max'=>1},
|
14
|
+
'contained' => {'type'=>'Resource', 'path'=>'StructureMap.contained', 'min'=>0, 'max'=>Float::INFINITY},
|
15
|
+
'extension' => {'type'=>'Extension', 'path'=>'StructureMap.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
16
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'StructureMap.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
17
|
+
'url' => {'type'=>'uri', 'path'=>'StructureMap.url', 'min'=>1, 'max'=>1},
|
18
|
+
'identifier' => {'type'=>'Identifier', 'path'=>'StructureMap.identifier', 'min'=>0, 'max'=>Float::INFINITY},
|
19
|
+
'version' => {'type'=>'string', 'path'=>'StructureMap.version', 'min'=>0, 'max'=>1},
|
20
|
+
'name' => {'type'=>'string', 'path'=>'StructureMap.name', 'min'=>1, 'max'=>1},
|
21
|
+
'status' => {'valid_codes'=>{'http://hl7.org/fhir/conformance-resource-status'=>['draft', 'active', 'retired']}, 'type'=>'code', 'path'=>'StructureMap.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/conformance-resource-status'}},
|
22
|
+
'experimental' => {'type'=>'boolean', 'path'=>'StructureMap.experimental', 'min'=>0, 'max'=>1},
|
23
|
+
'publisher' => {'type'=>'string', 'path'=>'StructureMap.publisher', 'min'=>0, 'max'=>1},
|
24
|
+
'contact' => {'type'=>'StructureMap::Contact', 'path'=>'StructureMap.contact', 'min'=>0, 'max'=>Float::INFINITY},
|
25
|
+
'date' => {'type'=>'dateTime', 'path'=>'StructureMap.date', 'min'=>0, 'max'=>1},
|
26
|
+
'description' => {'type'=>'string', 'path'=>'StructureMap.description', 'min'=>0, 'max'=>1},
|
27
|
+
'useContext' => {'type'=>'CodeableConcept', 'path'=>'StructureMap.useContext', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/use-context'}},
|
28
|
+
'requirements' => {'type'=>'string', 'path'=>'StructureMap.requirements', 'min'=>0, 'max'=>1},
|
29
|
+
'copyright' => {'type'=>'string', 'path'=>'StructureMap.copyright', 'min'=>0, 'max'=>1},
|
30
|
+
'structure' => {'type'=>'StructureMap::Structure', 'path'=>'StructureMap.structure', 'min'=>0, 'max'=>Float::INFINITY},
|
31
|
+
'import' => {'type'=>'uri', 'path'=>'StructureMap.import', 'min'=>0, 'max'=>Float::INFINITY},
|
32
|
+
'group' => {'type'=>'StructureMap::Group', 'path'=>'StructureMap.group', 'min'=>1, 'max'=>Float::INFINITY}
|
33
|
+
}
|
34
|
+
|
35
|
+
class Contact < FHIR::Model
|
36
|
+
include FHIR::Hashable
|
37
|
+
include FHIR::Json
|
38
|
+
include FHIR::Xml
|
39
|
+
|
40
|
+
METADATA = {
|
41
|
+
'id' => {'type'=>'id', 'path'=>'Contact.id', 'min'=>0, 'max'=>1},
|
42
|
+
'extension' => {'type'=>'Extension', 'path'=>'Contact.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
43
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Contact.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
44
|
+
'name' => {'type'=>'string', 'path'=>'Contact.name', 'min'=>0, 'max'=>1},
|
45
|
+
'telecom' => {'type'=>'ContactPoint', 'path'=>'Contact.telecom', 'min'=>0, 'max'=>Float::INFINITY}
|
46
|
+
}
|
47
|
+
|
48
|
+
attr_accessor :id # 0-1 id
|
49
|
+
attr_accessor :extension # 0-* [ Extension ]
|
50
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
51
|
+
attr_accessor :name # 0-1 string
|
52
|
+
attr_accessor :telecom # 0-* [ ContactPoint ]
|
53
|
+
end
|
54
|
+
|
55
|
+
class Structure < FHIR::Model
|
56
|
+
include FHIR::Hashable
|
57
|
+
include FHIR::Json
|
58
|
+
include FHIR::Xml
|
59
|
+
|
60
|
+
METADATA = {
|
61
|
+
'id' => {'type'=>'id', 'path'=>'Structure.id', 'min'=>0, 'max'=>1},
|
62
|
+
'extension' => {'type'=>'Extension', 'path'=>'Structure.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
63
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Structure.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
64
|
+
'url' => {'type'=>'uri', 'path'=>'Structure.url', 'min'=>1, 'max'=>1},
|
65
|
+
'mode' => {'valid_codes'=>{'http://hl7.org/fhir/map-model-mode'=>['source', 'queried', 'target', 'produced']}, 'type'=>'code', 'path'=>'Structure.mode', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/map-model-mode'}},
|
66
|
+
'documentation' => {'type'=>'string', 'path'=>'Structure.documentation', 'min'=>0, 'max'=>1}
|
67
|
+
}
|
68
|
+
|
69
|
+
attr_accessor :id # 0-1 id
|
70
|
+
attr_accessor :extension # 0-* [ Extension ]
|
71
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
72
|
+
attr_accessor :url # 1-1 uri
|
73
|
+
attr_accessor :mode # 1-1 code
|
74
|
+
attr_accessor :documentation # 0-1 string
|
75
|
+
end
|
76
|
+
|
77
|
+
class Group < FHIR::Model
|
78
|
+
include FHIR::Hashable
|
79
|
+
include FHIR::Json
|
80
|
+
include FHIR::Xml
|
81
|
+
|
82
|
+
METADATA = {
|
83
|
+
'id' => {'type'=>'id', 'path'=>'Group.id', 'min'=>0, 'max'=>1},
|
84
|
+
'extension' => {'type'=>'Extension', 'path'=>'Group.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
85
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Group.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
86
|
+
'name' => {'type'=>'id', 'path'=>'Group.name', 'min'=>1, 'max'=>1},
|
87
|
+
'extends' => {'type'=>'id', 'path'=>'Group.extends', 'min'=>0, 'max'=>1},
|
88
|
+
'documentation' => {'type'=>'string', 'path'=>'Group.documentation', 'min'=>0, 'max'=>1},
|
89
|
+
'input' => {'type'=>'StructureMap::Group::Input', 'path'=>'Group.input', 'min'=>1, 'max'=>Float::INFINITY},
|
90
|
+
'rule' => {'type'=>'StructureMap::Group::Rule', 'path'=>'Group.rule', 'min'=>1, 'max'=>Float::INFINITY}
|
91
|
+
}
|
92
|
+
|
93
|
+
class Input < FHIR::Model
|
94
|
+
include FHIR::Hashable
|
95
|
+
include FHIR::Json
|
96
|
+
include FHIR::Xml
|
97
|
+
|
98
|
+
METADATA = {
|
99
|
+
'id' => {'type'=>'id', 'path'=>'Input.id', 'min'=>0, 'max'=>1},
|
100
|
+
'extension' => {'type'=>'Extension', 'path'=>'Input.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
101
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Input.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
102
|
+
'name' => {'type'=>'id', 'path'=>'Input.name', 'min'=>1, 'max'=>1},
|
103
|
+
'type' => {'type'=>'string', 'path'=>'Input.type', 'min'=>0, 'max'=>1},
|
104
|
+
'mode' => {'valid_codes'=>{'http://hl7.org/fhir/map-input-mode'=>['source', 'target']}, 'type'=>'code', 'path'=>'Input.mode', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/map-input-mode'}},
|
105
|
+
'documentation' => {'type'=>'string', 'path'=>'Input.documentation', 'min'=>0, 'max'=>1}
|
106
|
+
}
|
107
|
+
|
108
|
+
attr_accessor :id # 0-1 id
|
109
|
+
attr_accessor :extension # 0-* [ Extension ]
|
110
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
111
|
+
attr_accessor :name # 1-1 id
|
112
|
+
attr_accessor :type # 0-1 string
|
113
|
+
attr_accessor :mode # 1-1 code
|
114
|
+
attr_accessor :documentation # 0-1 string
|
115
|
+
end
|
116
|
+
|
117
|
+
class Rule < FHIR::Model
|
118
|
+
include FHIR::Hashable
|
119
|
+
include FHIR::Json
|
120
|
+
include FHIR::Xml
|
121
|
+
|
122
|
+
METADATA = {
|
123
|
+
'id' => {'type'=>'id', 'path'=>'Rule.id', 'min'=>0, 'max'=>1},
|
124
|
+
'extension' => {'type'=>'Extension', 'path'=>'Rule.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
125
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Rule.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
126
|
+
'name' => {'type'=>'id', 'path'=>'Rule.name', 'min'=>1, 'max'=>1},
|
127
|
+
'source' => {'type'=>'StructureMap::Group::Rule::Source', 'path'=>'Rule.source', 'min'=>1, 'max'=>Float::INFINITY},
|
128
|
+
'target' => {'type'=>'StructureMap::Group::Rule::Target', 'path'=>'Rule.target', 'min'=>0, 'max'=>Float::INFINITY},
|
129
|
+
'rule' => {'type'=>'StructureMap::Group::Rule', 'path'=>'Rule.rule', 'min'=>0, 'max'=>Float::INFINITY},
|
130
|
+
'dependent' => {'type'=>'StructureMap::Group::Rule::Dependent', 'path'=>'Rule.dependent', 'min'=>0, 'max'=>Float::INFINITY},
|
131
|
+
'documentation' => {'type'=>'string', 'path'=>'Rule.documentation', 'min'=>0, 'max'=>1}
|
132
|
+
}
|
133
|
+
|
134
|
+
class Source < FHIR::Model
|
135
|
+
include FHIR::Hashable
|
136
|
+
include FHIR::Json
|
137
|
+
include FHIR::Xml
|
138
|
+
|
139
|
+
METADATA = {
|
140
|
+
'id' => {'type'=>'id', 'path'=>'Source.id', 'min'=>0, 'max'=>1},
|
141
|
+
'extension' => {'type'=>'Extension', 'path'=>'Source.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
142
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Source.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
143
|
+
'required' => {'type'=>'boolean', 'path'=>'Source.required', 'min'=>1, 'max'=>1},
|
144
|
+
'context' => {'type'=>'id', 'path'=>'Source.context', 'min'=>1, 'max'=>1},
|
145
|
+
'contextType' => {'valid_codes'=>{'http://hl7.org/fhir/map-context-type'=>['type', 'variable']}, 'type'=>'code', 'path'=>'Source.contextType', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/map-context-type'}},
|
146
|
+
'element' => {'type'=>'string', 'path'=>'Source.element', 'min'=>0, 'max'=>1},
|
147
|
+
'listMode' => {'valid_codes'=>{'http://hl7.org/fhir/map-list-mode'=>['first', 'share', 'last']}, 'type'=>'code', 'path'=>'Source.listMode', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/map-list-mode'}},
|
148
|
+
'variable' => {'type'=>'id', 'path'=>'Source.variable', 'min'=>0, 'max'=>1},
|
149
|
+
'condition' => {'type'=>'string', 'path'=>'Source.condition', 'min'=>0, 'max'=>1},
|
150
|
+
'check' => {'type'=>'string', 'path'=>'Source.check', 'min'=>0, 'max'=>1}
|
151
|
+
}
|
152
|
+
|
153
|
+
attr_accessor :id # 0-1 id
|
154
|
+
attr_accessor :extension # 0-* [ Extension ]
|
155
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
156
|
+
attr_accessor :required # 1-1 boolean
|
157
|
+
attr_accessor :context # 1-1 id
|
158
|
+
attr_accessor :contextType # 1-1 code
|
159
|
+
attr_accessor :element # 0-1 string
|
160
|
+
attr_accessor :listMode # 0-1 code
|
161
|
+
attr_accessor :variable # 0-1 id
|
162
|
+
attr_accessor :condition # 0-1 string
|
163
|
+
attr_accessor :check # 0-1 string
|
164
|
+
end
|
165
|
+
|
166
|
+
class Target < FHIR::Model
|
167
|
+
include FHIR::Hashable
|
168
|
+
include FHIR::Json
|
169
|
+
include FHIR::Xml
|
170
|
+
|
171
|
+
METADATA = {
|
172
|
+
'id' => {'type'=>'id', 'path'=>'Target.id', 'min'=>0, 'max'=>1},
|
173
|
+
'extension' => {'type'=>'Extension', 'path'=>'Target.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
174
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Target.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
175
|
+
'context' => {'type'=>'id', 'path'=>'Target.context', 'min'=>1, 'max'=>1},
|
176
|
+
'contextType' => {'valid_codes'=>{'http://hl7.org/fhir/map-context-type'=>['type', 'variable']}, 'type'=>'code', 'path'=>'Target.contextType', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/map-context-type'}},
|
177
|
+
'element' => {'type'=>'string', 'path'=>'Target.element', 'min'=>0, 'max'=>1},
|
178
|
+
'variable' => {'type'=>'id', 'path'=>'Target.variable', 'min'=>0, 'max'=>1},
|
179
|
+
'listMode' => {'valid_codes'=>{'http://hl7.org/fhir/map-list-mode'=>['first', 'share', 'last']}, 'type'=>'code', 'path'=>'Target.listMode', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/map-list-mode'}},
|
180
|
+
'listRuleId' => {'type'=>'id', 'path'=>'Target.listRuleId', 'min'=>0, 'max'=>1},
|
181
|
+
'transform' => {'valid_codes'=>{'http://hl7.org/fhir/map-transform'=>['create', 'copy', 'truncate', 'escape', 'cast', 'append', 'translate', 'reference']}, 'type'=>'code', 'path'=>'Target.transform', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/map-transform'}},
|
182
|
+
'parameter' => {'type'=>'StructureMap::Group::Rule::Target::Parameter', 'path'=>'Target.parameter', 'min'=>0, 'max'=>Float::INFINITY}
|
183
|
+
}
|
184
|
+
|
185
|
+
class Parameter < FHIR::Model
|
186
|
+
include FHIR::Hashable
|
187
|
+
include FHIR::Json
|
188
|
+
include FHIR::Xml
|
189
|
+
|
190
|
+
MULTIPLE_TYPES = {
|
191
|
+
'value' => ['id', 'string', 'boolean', 'integer', 'decimal']
|
192
|
+
}
|
193
|
+
METADATA = {
|
194
|
+
'id' => {'type'=>'id', 'path'=>'Parameter.id', 'min'=>0, 'max'=>1},
|
195
|
+
'extension' => {'type'=>'Extension', 'path'=>'Parameter.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
196
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Parameter.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
197
|
+
'valueId' => {'type'=>'id', 'path'=>'Parameter.value[x]', 'min'=>1, 'max'=>1},
|
198
|
+
'valueString' => {'type'=>'string', 'path'=>'Parameter.value[x]', 'min'=>1, 'max'=>1},
|
199
|
+
'valueBoolean' => {'type'=>'boolean', 'path'=>'Parameter.value[x]', 'min'=>1, 'max'=>1},
|
200
|
+
'valueInteger' => {'type'=>'integer', 'path'=>'Parameter.value[x]', 'min'=>1, 'max'=>1},
|
201
|
+
'valueDecimal' => {'type'=>'decimal', 'path'=>'Parameter.value[x]', 'min'=>1, 'max'=>1}
|
202
|
+
}
|
203
|
+
|
204
|
+
attr_accessor :id # 0-1 id
|
205
|
+
attr_accessor :extension # 0-* [ Extension ]
|
206
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
207
|
+
attr_accessor :valueId # 1-1 id
|
208
|
+
attr_accessor :valueString # 1-1 string
|
209
|
+
attr_accessor :valueBoolean # 1-1 boolean
|
210
|
+
attr_accessor :valueInteger # 1-1 integer
|
211
|
+
attr_accessor :valueDecimal # 1-1 decimal
|
212
|
+
end
|
213
|
+
|
214
|
+
attr_accessor :id # 0-1 id
|
215
|
+
attr_accessor :extension # 0-* [ Extension ]
|
216
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
217
|
+
attr_accessor :context # 1-1 id
|
218
|
+
attr_accessor :contextType # 1-1 code
|
219
|
+
attr_accessor :element # 0-1 string
|
220
|
+
attr_accessor :variable # 0-1 id
|
221
|
+
attr_accessor :listMode # 0-* [ code ]
|
222
|
+
attr_accessor :listRuleId # 0-1 id
|
223
|
+
attr_accessor :transform # 0-1 code
|
224
|
+
attr_accessor :parameter # 0-* [ StructureMap::Group::Rule::Target::Parameter ]
|
225
|
+
end
|
226
|
+
|
227
|
+
class Dependent < FHIR::Model
|
228
|
+
include FHIR::Hashable
|
229
|
+
include FHIR::Json
|
230
|
+
include FHIR::Xml
|
231
|
+
|
232
|
+
METADATA = {
|
233
|
+
'id' => {'type'=>'id', 'path'=>'Dependent.id', 'min'=>0, 'max'=>1},
|
234
|
+
'extension' => {'type'=>'Extension', 'path'=>'Dependent.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
235
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Dependent.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
236
|
+
'name' => {'type'=>'id', 'path'=>'Dependent.name', 'min'=>1, 'max'=>1},
|
237
|
+
'variable' => {'type'=>'string', 'path'=>'Dependent.variable', 'min'=>1, 'max'=>Float::INFINITY}
|
238
|
+
}
|
239
|
+
|
240
|
+
attr_accessor :id # 0-1 id
|
241
|
+
attr_accessor :extension # 0-* [ Extension ]
|
242
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
243
|
+
attr_accessor :name # 1-1 id
|
244
|
+
attr_accessor :variable # 1-* [ string ]
|
245
|
+
end
|
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 id
|
251
|
+
attr_accessor :source # 1-* [ StructureMap::Group::Rule::Source ]
|
252
|
+
attr_accessor :target # 0-* [ StructureMap::Group::Rule::Target ]
|
253
|
+
attr_accessor :rule # 0-* [ StructureMap::Group::Rule ]
|
254
|
+
attr_accessor :dependent # 0-* [ StructureMap::Group::Rule::Dependent ]
|
255
|
+
attr_accessor :documentation # 0-1 string
|
256
|
+
end
|
257
|
+
|
258
|
+
attr_accessor :id # 0-1 id
|
259
|
+
attr_accessor :extension # 0-* [ Extension ]
|
260
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
261
|
+
attr_accessor :name # 1-1 id
|
262
|
+
attr_accessor :extends # 0-1 id
|
263
|
+
attr_accessor :documentation # 0-1 string
|
264
|
+
attr_accessor :input # 1-* [ StructureMap::Group::Input ]
|
265
|
+
attr_accessor :rule # 1-* [ StructureMap::Group::Rule ]
|
266
|
+
end
|
267
|
+
|
268
|
+
attr_accessor :id # 0-1 id
|
269
|
+
attr_accessor :meta # 0-1 Meta
|
270
|
+
attr_accessor :implicitRules # 0-1 uri
|
271
|
+
attr_accessor :language # 0-1 code
|
272
|
+
attr_accessor :text # 0-1 Narrative
|
273
|
+
attr_accessor :contained # 0-* [ Resource ]
|
274
|
+
attr_accessor :extension # 0-* [ Extension ]
|
275
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
276
|
+
attr_accessor :url # 1-1 uri
|
277
|
+
attr_accessor :identifier # 0-* [ Identifier ]
|
278
|
+
attr_accessor :version # 0-1 string
|
279
|
+
attr_accessor :name # 1-1 string
|
280
|
+
attr_accessor :status # 1-1 code
|
281
|
+
attr_accessor :experimental # 0-1 boolean
|
282
|
+
attr_accessor :publisher # 0-1 string
|
283
|
+
attr_accessor :contact # 0-* [ StructureMap::Contact ]
|
284
|
+
attr_accessor :date # 0-1 dateTime
|
285
|
+
attr_accessor :description # 0-1 string
|
286
|
+
attr_accessor :useContext # 0-* [ CodeableConcept ]
|
287
|
+
attr_accessor :requirements # 0-1 string
|
288
|
+
attr_accessor :copyright # 0-1 string
|
289
|
+
attr_accessor :structure # 0-* [ StructureMap::Structure ]
|
290
|
+
attr_accessor :import # 0-* [ uri ]
|
291
|
+
attr_accessor :group # 1-* [ StructureMap::Group ]
|
292
|
+
|
293
|
+
def resourceType
|
294
|
+
'StructureMap'
|
295
|
+
end
|
296
|
+
end
|
297
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
module FHIR
|
2
|
+
class Subscription < FHIR::Model
|
3
|
+
include FHIR::Hashable
|
4
|
+
include FHIR::Json
|
5
|
+
include FHIR::Xml
|
6
|
+
|
7
|
+
SEARCH_PARAMS = ["contact", "criteria", "payload", "status", "tag", "type", "url"]
|
8
|
+
METADATA = {
|
9
|
+
'id' => {'type'=>'id', 'path'=>'Subscription.id', 'min'=>0, 'max'=>1},
|
10
|
+
'meta' => {'type'=>'Meta', 'path'=>'Subscription.meta', 'min'=>0, 'max'=>1},
|
11
|
+
'implicitRules' => {'type'=>'uri', 'path'=>'Subscription.implicitRules', 'min'=>0, 'max'=>1},
|
12
|
+
'language' => {'type'=>'code', 'path'=>'Subscription.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
|
13
|
+
'text' => {'type'=>'Narrative', 'path'=>'Subscription.text', 'min'=>0, 'max'=>1},
|
14
|
+
'contained' => {'type'=>'Resource', 'path'=>'Subscription.contained', 'min'=>0, 'max'=>Float::INFINITY},
|
15
|
+
'extension' => {'type'=>'Extension', 'path'=>'Subscription.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
16
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Subscription.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
17
|
+
'criteria' => {'type'=>'string', 'path'=>'Subscription.criteria', 'min'=>1, 'max'=>1},
|
18
|
+
'contact' => {'type'=>'ContactPoint', 'path'=>'Subscription.contact', 'min'=>0, 'max'=>Float::INFINITY},
|
19
|
+
'reason' => {'type'=>'string', 'path'=>'Subscription.reason', 'min'=>1, 'max'=>1},
|
20
|
+
'status' => {'valid_codes'=>{'http://hl7.org/fhir/subscription-status'=>['requested', 'active', 'error', 'off']}, 'type'=>'code', 'path'=>'Subscription.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/subscription-status'}},
|
21
|
+
'error' => {'type'=>'string', 'path'=>'Subscription.error', 'min'=>0, 'max'=>1},
|
22
|
+
'channel' => {'type'=>'Subscription::Channel', 'path'=>'Subscription.channel', 'min'=>1, 'max'=>1},
|
23
|
+
'end' => {'type'=>'instant', 'path'=>'Subscription.end', 'min'=>0, 'max'=>1},
|
24
|
+
'tag' => {'valid_codes'=>{'http://hl7.org/fhir/subscription-tag'=>['queued', 'delivered']}, 'type'=>'Coding', 'path'=>'Subscription.tag', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/subscription-tag'}}
|
25
|
+
}
|
26
|
+
|
27
|
+
class Channel < FHIR::Model
|
28
|
+
include FHIR::Hashable
|
29
|
+
include FHIR::Json
|
30
|
+
include FHIR::Xml
|
31
|
+
|
32
|
+
METADATA = {
|
33
|
+
'id' => {'type'=>'id', 'path'=>'Channel.id', 'min'=>0, 'max'=>1},
|
34
|
+
'extension' => {'type'=>'Extension', 'path'=>'Channel.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
35
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Channel.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
36
|
+
'type' => {'valid_codes'=>{'http://hl7.org/fhir/subscription-channel-type'=>['rest-hook', 'websocket', 'email', 'sms', 'message']}, 'type'=>'code', 'path'=>'Channel.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/subscription-channel-type'}},
|
37
|
+
'endpoint' => {'type'=>'uri', 'path'=>'Channel.endpoint', 'min'=>0, 'max'=>1},
|
38
|
+
'payload' => {'type'=>'string', 'path'=>'Channel.payload', 'min'=>1, 'max'=>1},
|
39
|
+
'header' => {'type'=>'string', 'path'=>'Channel.header', 'min'=>0, 'max'=>1}
|
40
|
+
}
|
41
|
+
|
42
|
+
attr_accessor :id # 0-1 id
|
43
|
+
attr_accessor :extension # 0-* [ Extension ]
|
44
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
45
|
+
attr_accessor :type # 1-1 code
|
46
|
+
attr_accessor :endpoint # 0-1 uri
|
47
|
+
attr_accessor :payload # 1-1 string
|
48
|
+
attr_accessor :header # 0-1 string
|
49
|
+
end
|
50
|
+
|
51
|
+
attr_accessor :id # 0-1 id
|
52
|
+
attr_accessor :meta # 0-1 Meta
|
53
|
+
attr_accessor :implicitRules # 0-1 uri
|
54
|
+
attr_accessor :language # 0-1 code
|
55
|
+
attr_accessor :text # 0-1 Narrative
|
56
|
+
attr_accessor :contained # 0-* [ Resource ]
|
57
|
+
attr_accessor :extension # 0-* [ Extension ]
|
58
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
59
|
+
attr_accessor :criteria # 1-1 string
|
60
|
+
attr_accessor :contact # 0-* [ ContactPoint ]
|
61
|
+
attr_accessor :reason # 1-1 string
|
62
|
+
attr_accessor :status # 1-1 code
|
63
|
+
attr_accessor :error # 0-1 string
|
64
|
+
attr_accessor :channel # 1-1 Subscription::Channel
|
65
|
+
attr_accessor :end # 0-1 instant
|
66
|
+
attr_accessor :tag # 0-* [ Coding ]
|
67
|
+
|
68
|
+
def resourceType
|
69
|
+
'Subscription'
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|