Class: FHIR::DSTU2::Encounter
- 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
-
#appointment ⇒ Object
0-1 Reference().
-
#contained ⇒ Object
0-* [ Resource ].
-
#episodeOfCare ⇒ Object
0-* [ Reference() ].
-
#extension ⇒ Object
0-* [ Extension ].
-
#hospitalization ⇒ Object
0-1 Encounter::Hospitalization.
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-* [ Identifier ].
-
#implicitRules ⇒ Object
0-1 uri.
-
#incomingReferral ⇒ Object
0-* [ Reference() ].
-
#indication ⇒ Object
0-* [ Reference() ].
-
#language ⇒ Object
0-1 code.
-
#length ⇒ Object
0-1 Quantity.
-
#local_class ⇒ Object
0-1 code.
-
#location ⇒ Object
0-* [ Encounter::Location ].
-
#meta ⇒ Object
0-1 Meta.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#participant ⇒ Object
0-* [ Encounter::Participant ].
-
#partOf ⇒ Object
0-1 Reference().
-
#patient ⇒ Object
0-1 Reference().
-
#period ⇒ Object
0-1 Period.
-
#priority ⇒ Object
0-1 CodeableConcept.
-
#reason ⇒ Object
0-* [ CodeableConcept ].
-
#serviceProvider ⇒ Object
0-1 Reference().
-
#status ⇒ Object
1-1 code.
-
#statusHistory ⇒ Object
0-* [ Encounter::StatusHistory ].
-
#text ⇒ Object
0-1 Narrative.
-
#type ⇒ Object
0-* [ CodeableConcept ].
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, #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
#appointment ⇒ Object
0-1 Reference()
159 160 161 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 159 def appointment @appointment end |
#contained ⇒ Object
0-* [ Resource ]
146 147 148 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 146 def contained @contained end |
#episodeOfCare ⇒ Object
0-* [ Reference() ]
156 157 158 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 156 def episodeOfCare @episodeOfCare end |
#extension ⇒ Object
0-* [ Extension ]
147 148 149 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 147 def extension @extension end |
#hospitalization ⇒ Object
0-1 Encounter::Hospitalization
164 165 166 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 164 def hospitalization @hospitalization end |
#id ⇒ Object
0-1 id
141 142 143 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 141 def id @id end |
#identifier ⇒ Object
0-* [ Identifier ]
149 150 151 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 149 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
143 144 145 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 143 def implicitRules @implicitRules end |
#incomingReferral ⇒ Object
0-* [ Reference() ]
157 158 159 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 157 def incomingReferral @incomingReferral end |
#indication ⇒ Object
0-* [ Reference() ]
163 164 165 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 163 def indication @indication end |
#language ⇒ Object
0-1 code
144 145 146 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 144 def language @language end |
#length ⇒ Object
0-1 Quantity
161 162 163 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 161 def length @length end |
#local_class ⇒ Object
0-1 code
152 153 154 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 152 def local_class @local_class end |
#location ⇒ Object
0-* [ Encounter::Location ]
165 166 167 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 165 def location @location end |
#meta ⇒ Object
0-1 Meta
142 143 144 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 142 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
148 149 150 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 148 def modifierExtension @modifierExtension end |
#participant ⇒ Object
0-* [ Encounter::Participant ]
158 159 160 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 158 def participant @participant end |
#partOf ⇒ Object
0-1 Reference()
167 168 169 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 167 def partOf @partOf end |
#patient ⇒ Object
0-1 Reference()
155 156 157 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 155 def patient @patient end |
#period ⇒ Object
0-1 Period
160 161 162 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 160 def period @period end |
#priority ⇒ Object
0-1 CodeableConcept
154 155 156 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 154 def priority @priority end |
#reason ⇒ Object
0-* [ CodeableConcept ]
162 163 164 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 162 def reason @reason end |
#serviceProvider ⇒ Object
0-1 Reference()
166 167 168 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 166 def serviceProvider @serviceProvider end |
#status ⇒ Object
1-1 code
150 151 152 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 150 def status @status end |
#statusHistory ⇒ Object
0-* [ Encounter::StatusHistory ]
151 152 153 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 151 def statusHistory @statusHistory end |
#text ⇒ Object
0-1 Narrative
145 146 147 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 145 def text @text end |
#type ⇒ Object
0-* [ CodeableConcept ]
153 154 155 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 153 def type @type end |
Instance Method Details
#resourceType ⇒ Object
169 170 171 |
# File 'lib/fhir_dstu2_models/fhir/resources/Encounter.rb', line 169 def resourceType 'Encounter' end |