Class: FHIR::DSTU2::Encounter

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_dstu2_models/fhir/resources/Encounter.rb

Defined Under Namespace

Classes: Hospitalization, Location, Participant, StatusHistory

Constant Summary collapse

SEARCH_PARAMS =
['appointment', 'condition', 'date', 'episodeofcare', 'identifier', 'incomingreferral', 'indication', 'length', 'location', 'location-period', 'part-of', 'participant', 'participant-type', 'patient', 'practitioner', 'procedure', 'reason', 'special-arrangement', 'status', 'type']
METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'Encounter.id', 'min' => 0, 'max' => 1 },
  'meta' => { 'type' => 'Meta', 'path' => 'Encounter.meta', 'min' => 0, 'max' => 1 },
  'implicitRules' => { 'type' => 'uri', 'path' => 'Encounter.implicitRules', 'min' => 0, 'max' => 1 },
  'language' => { 'type' => 'code', 'path' => 'Encounter.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
  'text' => { 'type' => 'Narrative', 'path' => 'Encounter.text', 'min' => 0, 'max' => 1 },
  'contained' => { 'type' => 'Resource', 'path' => 'Encounter.contained', 'min' => 0, 'max' => Float::INFINITY },
  'extension' => { 'type' => 'Extension', 'path' => 'Encounter.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'Encounter.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'identifier' => { 'type' => 'Identifier', 'path' => 'Encounter.identifier', 'min' => 0, 'max' => Float::INFINITY },
  'status' => { 'valid_codes' => { 'http://hl7.org/fhir/encounter-state' => ['planned', 'arrived', 'in-progress', 'onleave', 'finished', 'cancelled'] }, 'type' => 'code', 'path' => 'Encounter.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/encounter-state' } },
  'statusHistory' => { 'type' => 'Encounter::StatusHistory', 'path' => 'Encounter.statusHistory', 'min' => 0, 'max' => Float::INFINITY },
  'class' => { 'local_name' => 'local_class', 'valid_codes' => { 'http://hl7.org/fhir/encounter-class' => ['inpatient', 'outpatient', 'ambulatory', 'emergency', 'home', 'field', 'daytime', 'virtual', 'other'] }, 'type' => 'code', 'path' => 'Encounter.class', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/encounter-class' } },
  'type' => { 'valid_codes' => { 'http://hl7.org/fhir/encounter-type' => ['ADMS', 'BD/BM-clin', 'CCS60', 'OKI'] }, 'type' => 'CodeableConcept', 'path' => 'Encounter.type', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/encounter-type' } },
  'priority' => { 'valid_codes' => { 'http://hl7.org/fhir/encounter-priority' => ['imm', 'emg', 'urg', 's-urg', 'no-urg'] }, 'type' => 'CodeableConcept', 'path' => 'Encounter.priority', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/encounter-priority' } },
  'patient' => { 'type' => 'Reference', 'path' => 'Encounter.patient', 'min' => 0, 'max' => 1 },
  'episodeOfCare' => { 'type' => 'Reference', 'path' => 'Encounter.episodeOfCare', 'min' => 0, 'max' => Float::INFINITY },
  'incomingReferral' => { 'type' => 'Reference', 'path' => 'Encounter.incomingReferral', 'min' => 0, 'max' => Float::INFINITY },
  'participant' => { 'type' => 'Encounter::Participant', 'path' => 'Encounter.participant', 'min' => 0, 'max' => Float::INFINITY },
  'appointment' => { 'type' => 'Reference', 'path' => 'Encounter.appointment', 'min' => 0, 'max' => 1 },
  'period' => { 'type' => 'Period', 'path' => 'Encounter.period', 'min' => 0, 'max' => 1 },
  'length' => { 'type' => 'Quantity', 'path' => 'Encounter.length', 'min' => 0, 'max' => 1 },
  'reason' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Encounter.reason', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/encounter-reason' } },
  'indication' => { 'type' => 'Reference', 'path' => 'Encounter.indication', 'min' => 0, 'max' => Float::INFINITY },
  'hospitalization' => { 'type' => 'Encounter::Hospitalization', 'path' => 'Encounter.hospitalization', 'min' => 0, 'max' => 1 },
  'location' => { 'type' => 'Encounter::Location', 'path' => 'Encounter.location', 'min' => 0, 'max' => Float::INFINITY },
  'serviceProvider' => { 'type' => 'Reference', 'path' => 'Encounter.serviceProvider', 'min' => 0, 'max' => 1 },
  'partOf' => { 'type' => 'Reference', 'path' => 'Encounter.partOf', 'min' => 0, 'max' => 1 }
}

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?, #respond_to_missing?, #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

#appointmentObject

0-1 Reference()



159
160
161
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 159

def appointment
  @appointment
end

#containedObject

0-* [ Resource ]



146
147
148
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 146

def contained
  @contained
end

#episodeOfCareObject

0-* [ Reference() ]



156
157
158
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 156

def episodeOfCare
  @episodeOfCare
end

#extensionObject

0-* [ Extension ]



147
148
149
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 147

def extension
  @extension
end

#hospitalizationObject

0-1 Encounter::Hospitalization



164
165
166
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 164

def hospitalization
  @hospitalization
end

#idObject

0-1 id



141
142
143
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 141

def id
  @id
end

#identifierObject

0-* [ Identifier ]



149
150
151
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 149

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



143
144
145
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 143

def implicitRules
  @implicitRules
end

#incomingReferralObject

0-* [ Reference() ]



157
158
159
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 157

def incomingReferral
  @incomingReferral
end

#indicationObject

0-* [ Reference() ]



163
164
165
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 163

def indication
  @indication
end

#languageObject

0-1 code



144
145
146
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 144

def language
  @language
end

#lengthObject

0-1 Quantity



161
162
163
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 161

def length
  @length
end

#local_classObject

0-1 code



152
153
154
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 152

def local_class
  @local_class
end

#locationObject

0-* [ Encounter::Location ]



165
166
167
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 165

def location
  @location
end

#metaObject

0-1 Meta



142
143
144
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 142

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



148
149
150
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 148

def modifierExtension
  @modifierExtension
end

#participantObject

0-* [ Encounter::Participant ]



158
159
160
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 158

def participant
  @participant
end

#partOfObject

0-1 Reference()



167
168
169
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 167

def partOf
  @partOf
end

#patientObject

0-1 Reference()



155
156
157
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 155

def patient
  @patient
end

#periodObject

0-1 Period



160
161
162
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 160

def period
  @period
end

#priorityObject

0-1 CodeableConcept



154
155
156
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 154

def priority
  @priority
end

#reasonObject

0-* [ CodeableConcept ]



162
163
164
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 162

def reason
  @reason
end

#serviceProviderObject

0-1 Reference()



166
167
168
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 166

def serviceProvider
  @serviceProvider
end

#statusObject

1-1 code



150
151
152
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 150

def status
  @status
end

#statusHistoryObject

0-* [ Encounter::StatusHistory ]



151
152
153
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 151

def statusHistory
  @statusHistory
end

#textObject

0-1 Narrative



145
146
147
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 145

def text
  @text
end

#typeObject

0-* [ CodeableConcept ]



153
154
155
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 153

def type
  @type
end

Instance Method Details

#resourceTypeObject



169
170
171
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 169

def resourceType
  'Encounter'
end