Class: FHIR::MessageHeader
- Defined in:
- lib/fhir/resources/MessageHeader.rb
Defined Under Namespace
Classes: Destination, Response, Source
Constant Summary collapse
- SEARCH_PARAMS =
["author", "code", "data", "destination", "destination-uri", "enterer", "event", "receiver", "response-id", "responsible", "source", "source-uri", "target", "timestamp"]
- METADATA =
{ 'id' => {'type'=>'id', 'path'=>'MessageHeader.id', 'min'=>0, 'max'=>1}, 'meta' => {'type'=>'Meta', 'path'=>'MessageHeader.meta', 'min'=>0, 'max'=>1}, 'implicitRules' => {'type'=>'uri', 'path'=>'MessageHeader.implicitRules', 'min'=>0, 'max'=>1}, 'language' => {'type'=>'code', 'path'=>'MessageHeader.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}}, 'text' => {'type'=>'Narrative', 'path'=>'MessageHeader.text', 'min'=>0, 'max'=>1}, 'contained' => {'type'=>'Resource', 'path'=>'MessageHeader.contained', 'min'=>0, 'max'=>Float::INFINITY}, 'extension' => {'type'=>'Extension', 'path'=>'MessageHeader.extension', 'min'=>0, 'max'=>Float::INFINITY}, 'modifierExtension' => {'type'=>'Extension', 'path'=>'MessageHeader.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY}, 'timestamp' => {'type'=>'instant', 'path'=>'MessageHeader.timestamp', 'min'=>1, 'max'=>1}, 'event' => {'valid_codes'=>{'http://hl7.org/fhir/message-events'=>['CodeSystem-expand', 'MedicationAdministration-Complete', 'MedicationAdministration-Nullification', 'MedicationAdministration-Recording', 'MedicationAdministration-Update', 'admin-notify', 'diagnosticreport-provide', 'observation-provide', 'patient-link', 'patient-unlink', 'valueset-expand', 'CodeSystem-expand', 'MedicationAdministration-Complete', 'MedicationAdministration-Nullification', 'MedicationAdministration-Recording', 'MedicationAdministration-Update', 'admin-notify', 'diagnosticreport-provide', 'observation-provide', 'patient-link', 'patient-unlink', 'valueset-expand']}, 'type'=>'Coding', 'path'=>'MessageHeader.event', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/message-events'}}, 'response' => {'type'=>'MessageHeader::Response', 'path'=>'MessageHeader.response', 'min'=>0, 'max'=>1}, 'source' => {'type'=>'MessageHeader::Source', 'path'=>'MessageHeader.source', 'min'=>1, 'max'=>1}, 'destination' => {'type'=>'MessageHeader::Destination', 'path'=>'MessageHeader.destination', 'min'=>0, 'max'=>Float::INFINITY}, 'enterer' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'MessageHeader.enterer', 'min'=>0, 'max'=>1}, 'author' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'MessageHeader.author', 'min'=>0, 'max'=>1}, 'receiver' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'MessageHeader.receiver', 'min'=>0, 'max'=>1}, 'responsible' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'MessageHeader.responsible', 'min'=>0, 'max'=>1}, 'reason' => {'valid_codes'=>{'http://hl7.org/fhir/message-reasons-encounter'=>['admit', 'discharge', 'absent', 'return', 'moved', 'edit', 'admit', 'discharge', 'absent', 'return', 'moved', 'edit']}, 'type'=>'CodeableConcept', 'path'=>'MessageHeader.reason', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/message-reason-encounter'}}, 'data' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'MessageHeader.data', 'min'=>0, 'max'=>Float::INFINITY} }
Instance Attribute Summary collapse
-
#author ⇒ Object
0-1 Reference(Practitioner).
-
#contained ⇒ Object
0-* [ Resource ].
-
#data ⇒ Object
0-* [ Reference(Resource) ].
-
#destination ⇒ Object
0-* [ MessageHeader::Destination ].
-
#enterer ⇒ Object
0-1 Reference(Practitioner).
-
#event ⇒ Object
1-1 Coding.
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 id.
-
#implicitRules ⇒ Object
0-1 uri.
-
#language ⇒ Object
0-1 code.
-
#meta ⇒ Object
0-1 Meta.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#reason ⇒ Object
0-1 CodeableConcept.
-
#receiver ⇒ Object
0-1 Reference(Practitioner|Organization).
-
#response ⇒ Object
0-1 MessageHeader::Response.
-
#responsible ⇒ Object
0-1 Reference(Practitioner|Organization).
-
#source ⇒ Object
1-1 MessageHeader::Source.
-
#text ⇒ Object
0-1 Narrative.
-
#timestamp ⇒ Object
1-1 instant.
Instance Method Summary collapse
Methods included from Xml
from_xml, is_valid?, #to_xml, validate
Methods included from Json
Methods included from Hashable
Methods inherited from Model
#attribute_mismatch, #compare_attribute, #equals?, #initialize, #is_valid?, #method_missing, #mismatch, #to_reference, #validate, #validate_profile
Constructor Details
This class inherits a constructor from FHIR::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class FHIR::Model
Instance Attribute Details
#author ⇒ Object
0-1 Reference(Practitioner)
114 115 116 |
# File 'lib/fhir/resources/MessageHeader.rb', line 114 def @author end |
#contained ⇒ Object
0-* [ Resource ]
105 106 107 |
# File 'lib/fhir/resources/MessageHeader.rb', line 105 def contained @contained end |
#data ⇒ Object
0-* [ Reference(Resource) ]
118 119 120 |
# File 'lib/fhir/resources/MessageHeader.rb', line 118 def data @data end |
#destination ⇒ Object
0-* [ MessageHeader::Destination ]
112 113 114 |
# File 'lib/fhir/resources/MessageHeader.rb', line 112 def destination @destination end |
#enterer ⇒ Object
0-1 Reference(Practitioner)
113 114 115 |
# File 'lib/fhir/resources/MessageHeader.rb', line 113 def enterer @enterer end |
#event ⇒ Object
1-1 Coding
109 110 111 |
# File 'lib/fhir/resources/MessageHeader.rb', line 109 def event @event end |
#extension ⇒ Object
0-* [ Extension ]
106 107 108 |
# File 'lib/fhir/resources/MessageHeader.rb', line 106 def extension @extension end |
#id ⇒ Object
0-1 id
100 101 102 |
# File 'lib/fhir/resources/MessageHeader.rb', line 100 def id @id end |
#implicitRules ⇒ Object
0-1 uri
102 103 104 |
# File 'lib/fhir/resources/MessageHeader.rb', line 102 def implicitRules @implicitRules end |
#language ⇒ Object
0-1 code
103 104 105 |
# File 'lib/fhir/resources/MessageHeader.rb', line 103 def language @language end |
#meta ⇒ Object
0-1 Meta
101 102 103 |
# File 'lib/fhir/resources/MessageHeader.rb', line 101 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
107 108 109 |
# File 'lib/fhir/resources/MessageHeader.rb', line 107 def modifierExtension @modifierExtension end |
#reason ⇒ Object
0-1 CodeableConcept
117 118 119 |
# File 'lib/fhir/resources/MessageHeader.rb', line 117 def reason @reason end |
#receiver ⇒ Object
0-1 Reference(Practitioner|Organization)
115 116 117 |
# File 'lib/fhir/resources/MessageHeader.rb', line 115 def receiver @receiver end |
#response ⇒ Object
0-1 MessageHeader::Response
110 111 112 |
# File 'lib/fhir/resources/MessageHeader.rb', line 110 def response @response end |
#responsible ⇒ Object
0-1 Reference(Practitioner|Organization)
116 117 118 |
# File 'lib/fhir/resources/MessageHeader.rb', line 116 def responsible @responsible end |
#source ⇒ Object
1-1 MessageHeader::Source
111 112 113 |
# File 'lib/fhir/resources/MessageHeader.rb', line 111 def source @source end |
#text ⇒ Object
0-1 Narrative
104 105 106 |
# File 'lib/fhir/resources/MessageHeader.rb', line 104 def text @text end |
#timestamp ⇒ Object
1-1 instant
108 109 110 |
# File 'lib/fhir/resources/MessageHeader.rb', line 108 def @timestamp end |
Instance Method Details
#resourceType ⇒ Object
120 121 122 |
# File 'lib/fhir/resources/MessageHeader.rb', line 120 def resourceType 'MessageHeader' end |