Class: FHIR::MessageHeader

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
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

Instance Method Summary collapse

Methods included from Xml

from_xml, is_valid?, #to_xml, validate

Methods included from Json

from_json, #to_json

Methods included from Hashable

#from_hash, #to_hash

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

#authorObject

0-1 Reference(Practitioner)



114
115
116
# File 'lib/fhir/resources/MessageHeader.rb', line 114

def author
  @author
end

#containedObject

0-* [ Resource ]



105
106
107
# File 'lib/fhir/resources/MessageHeader.rb', line 105

def contained
  @contained
end

#dataObject

0-* [ Reference(Resource) ]



118
119
120
# File 'lib/fhir/resources/MessageHeader.rb', line 118

def data
  @data
end

#destinationObject

0-* [ MessageHeader::Destination ]



112
113
114
# File 'lib/fhir/resources/MessageHeader.rb', line 112

def destination
  @destination
end

#entererObject

0-1 Reference(Practitioner)



113
114
115
# File 'lib/fhir/resources/MessageHeader.rb', line 113

def enterer
  @enterer
end

#eventObject

1-1 Coding



109
110
111
# File 'lib/fhir/resources/MessageHeader.rb', line 109

def event
  @event
end

#extensionObject

0-* [ Extension ]



106
107
108
# File 'lib/fhir/resources/MessageHeader.rb', line 106

def extension
  @extension
end

#idObject

0-1 id



100
101
102
# File 'lib/fhir/resources/MessageHeader.rb', line 100

def id
  @id
end

#implicitRulesObject

0-1 uri



102
103
104
# File 'lib/fhir/resources/MessageHeader.rb', line 102

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



103
104
105
# File 'lib/fhir/resources/MessageHeader.rb', line 103

def language
  @language
end

#metaObject

0-1 Meta



101
102
103
# File 'lib/fhir/resources/MessageHeader.rb', line 101

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



107
108
109
# File 'lib/fhir/resources/MessageHeader.rb', line 107

def modifierExtension
  @modifierExtension
end

#reasonObject

0-1 CodeableConcept



117
118
119
# File 'lib/fhir/resources/MessageHeader.rb', line 117

def reason
  @reason
end

#receiverObject

0-1 Reference(Practitioner|Organization)



115
116
117
# File 'lib/fhir/resources/MessageHeader.rb', line 115

def receiver
  @receiver
end

#responseObject

0-1 MessageHeader::Response



110
111
112
# File 'lib/fhir/resources/MessageHeader.rb', line 110

def response
  @response
end

#responsibleObject

0-1 Reference(Practitioner|Organization)



116
117
118
# File 'lib/fhir/resources/MessageHeader.rb', line 116

def responsible
  @responsible
end

#sourceObject

1-1 MessageHeader::Source



111
112
113
# File 'lib/fhir/resources/MessageHeader.rb', line 111

def source
  @source
end

#textObject

0-1 Narrative



104
105
106
# File 'lib/fhir/resources/MessageHeader.rb', line 104

def text
  @text
end

#timestampObject

1-1 instant



108
109
110
# File 'lib/fhir/resources/MessageHeader.rb', line 108

def timestamp
  @timestamp
end

Instance Method Details

#resourceTypeObject



120
121
122
# File 'lib/fhir/resources/MessageHeader.rb', line 120

def resourceType
  'MessageHeader'
end