Class: FHIR::DSTU2::MessageHeader

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_dstu2_models/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'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
  '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'=>['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'=>'Reference', 'path'=>'MessageHeader.enterer', 'min'=>0, 'max'=>1},
  'author' => {'type'=>'Reference', 'path'=>'MessageHeader.author', 'min'=>0, 'max'=>1},
  'receiver' => {'type'=>'Reference', 'path'=>'MessageHeader.receiver', 'min'=>0, 'max'=>1},
  'responsible' => {'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'}},
  'data' => {'type'=>'Reference', 'path'=>'MessageHeader.data', 'min'=>0, 'max'=>Float::INFINITY}
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Xml

from_xml, #to_xml, valid?, validate

Methods included from Deprecate

#deprecate

Methods included from Json

from_json, #to_json

Methods included from Hashable

#from_hash, #to_hash

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::DSTU2::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::DSTU2::Model

Instance Attribute Details

#authorObject

0-1 Reference()



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

def author
  @author
end

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

#dataObject

0-* [ Reference() ]



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

def data
  @data
end

#destinationObject

0-* [ MessageHeader::Destination ]



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

def destination
  @destination
end

#entererObject

0-1 Reference()



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

def enterer
  @enterer
end

#eventObject

1-1 Coding



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

def event
  @event
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 id



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

def id
  @id
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



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

def language
  @language
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#reasonObject

0-1 CodeableConcept



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

def reason
  @reason
end

#receiverObject

0-1 Reference()



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

def receiver
  @receiver
end

#responseObject

0-1 MessageHeader::Response



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

def response
  @response
end

#responsibleObject

0-1 Reference()



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

def responsible
  @responsible
end

#sourceObject

1-1 MessageHeader::Source



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

def source
  @source
end

#textObject

0-1 Narrative



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

def text
  @text
end

#timestampObject

1-1 instant



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

def timestamp
  @timestamp
end

Instance Method Details

#resourceTypeObject



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

def resourceType
  'MessageHeader'
end