Class: FHIR::STU3::MessageHeader
- Defined in:
- lib/fhir_stu3_models/fhir/resources/MessageHeader.rb
Defined Under Namespace
Classes: Destination, Response, Source
Constant Summary collapse
- SEARCH_PARAMS =
['author', 'code', 'destination', 'destination-uri', 'enterer', 'event', 'focus', 'receiver', 'response-id', 'responsible', 'sender', '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' => {'valid_codes'=>{'urn:ietf:bcp:47'=>['ar', 'bn', 'cs', 'da', 'de', 'de-AT', 'de-CH', 'de-DE', 'el', 'en', 'en-AU', 'en-CA', 'en-GB', 'en-IN', 'en-NZ', 'en-SG', 'en-US', 'es', 'es-AR', 'es-ES', 'es-UY', 'fi', 'fr', 'fr-BE', 'fr-CH', 'fr-FR', 'fy', 'fy-NL', 'hi', 'hr', 'it', 'it-CH', 'it-IT', 'ja', 'ko', 'nl', 'nl-BE', 'nl-NL', 'no', 'no-NO', 'pa', 'pt', 'pt-BR', 'ru', 'ru-RU', 'sr', 'sr-SP', 'sv', 'sv-SE', 'te', 'zh', 'zh-CN', 'zh-HK', 'zh-SG', 'zh-TW']}, '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}, 'event' => {'valid_codes'=>{'http://hl7.org/fhir/message-events'=>['CodeSystem-expand', 'MedicationAdministration-Complete', 'MedicationAdministration-Nullification', 'MedicationAdministration-Recording', 'MedicationAdministration-Update', 'admin-notify', 'communication-request', 'diagnosticreport-provide', 'observation-provide', 'patient-link', 'patient-unlink', 'valueset-expand']}, 'type'=>'Coding', 'path'=>'MessageHeader.event', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/message-events'}}, 'destination' => {'type'=>'MessageHeader::Destination', 'path'=>'MessageHeader.destination', 'min'=>0, 'max'=>Float::INFINITY}, 'receiver' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'MessageHeader.receiver', 'min'=>0, 'max'=>1}, 'sender' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'MessageHeader.sender', 'min'=>0, 'max'=>1}, 'timestamp' => {'type'=>'instant', 'path'=>'MessageHeader.timestamp', 'min'=>1, 'max'=>1}, '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}, 'source' => {'type'=>'MessageHeader::Source', 'path'=>'MessageHeader.source', 'min'=>1, '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']}, 'type'=>'CodeableConcept', 'path'=>'MessageHeader.reason', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/message-reason-encounter'}}, 'response' => {'type'=>'MessageHeader::Response', 'path'=>'MessageHeader.response', 'min'=>0, 'max'=>1}, 'focus' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'MessageHeader.focus', 'min'=>0, 'max'=>Float::INFINITY} }
Instance Attribute Summary collapse
-
#author ⇒ Object
0-1 Reference(Practitioner).
-
#contained ⇒ Object
0-* [ Resource ].
-
#destination ⇒ Object
0-* [ MessageHeader::Destination ].
-
#enterer ⇒ Object
0-1 Reference(Practitioner).
-
#event ⇒ Object
1-1 Coding.
-
#extension ⇒ Object
0-* [ Extension ].
-
#focus ⇒ Object
0-* [ Reference(Resource) ].
-
#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).
-
#sender ⇒ 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, #to_xml, valid?, validate
Methods included from Deprecate
Methods included from Json
Methods included from Hashable
Methods inherited from Model
#==, #attribute_mismatch, #compare_attribute, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #validate, #validate_profile
Constructor Details
This class inherits a constructor from FHIR::STU3::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class FHIR::STU3::Model
Instance Attribute Details
#author ⇒ Object
0-1 Reference(Practitioner)
116 117 118 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 116 def @author end |
#contained ⇒ Object
0-* [ Resource ]
107 108 109 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 107 def contained @contained end |
#destination ⇒ Object
0-* [ MessageHeader::Destination ]
111 112 113 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 111 def destination @destination end |
#enterer ⇒ Object
0-1 Reference(Practitioner)
115 116 117 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 115 def enterer @enterer end |
#event ⇒ Object
1-1 Coding
110 111 112 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 110 def event @event end |
#extension ⇒ Object
0-* [ Extension ]
108 109 110 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 108 def extension @extension end |
#focus ⇒ Object
0-* [ Reference(Resource) ]
121 122 123 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 121 def focus @focus end |
#id ⇒ Object
0-1 id
102 103 104 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 102 def id @id end |
#implicitRules ⇒ Object
0-1 uri
104 105 106 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 104 def implicitRules @implicitRules end |
#language ⇒ Object
0-1 code
105 106 107 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 105 def language @language end |
#meta ⇒ Object
0-1 Meta
103 104 105 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 103 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
109 110 111 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 109 def modifierExtension @modifierExtension end |
#reason ⇒ Object
0-1 CodeableConcept
119 120 121 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 119 def reason @reason end |
#receiver ⇒ Object
0-1 Reference(Practitioner|Organization)
112 113 114 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 112 def receiver @receiver end |
#response ⇒ Object
0-1 MessageHeader::Response
120 121 122 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 120 def response @response end |
#responsible ⇒ Object
0-1 Reference(Practitioner|Organization)
118 119 120 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 118 def responsible @responsible end |
#sender ⇒ Object
0-1 Reference(Practitioner|Organization)
113 114 115 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 113 def sender @sender end |
#source ⇒ Object
1-1 MessageHeader::Source
117 118 119 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 117 def source @source end |
#text ⇒ Object
0-1 Narrative
106 107 108 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 106 def text @text end |
#timestamp ⇒ Object
1-1 instant
114 115 116 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 114 def @timestamp end |
Instance Method Details
#resourceType ⇒ Object
123 124 125 |
# File 'lib/fhir_stu3_models/fhir/resources/MessageHeader.rb', line 123 def resourceType 'MessageHeader' end |