Class: FHIR::DSTU2::Encounter::Hospitalization

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

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'id', 'path'=>'Hospitalization.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Hospitalization.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Hospitalization.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'preAdmissionIdentifier' => {'type'=>'Identifier', 'path'=>'Hospitalization.preAdmissionIdentifier', 'min'=>0, 'max'=>1},
  'origin' => {'type'=>'Reference', 'path'=>'Hospitalization.origin', 'min'=>0, 'max'=>1},
  'admitSource' => {'valid_codes'=>{'http://hl7.org/fhir/admit-source'=>['hosp-trans', 'emd', 'outp', 'born', 'gp', 'mp', 'nursing', 'psych', 'rehab', 'other']}, 'type'=>'CodeableConcept', 'path'=>'Hospitalization.admitSource', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/encounter-admit-source'}},
  'admittingDiagnosis' => {'type'=>'Reference', 'path'=>'Hospitalization.admittingDiagnosis', 'min'=>0, 'max'=>Float::INFINITY},
  'reAdmission' => {'type'=>'CodeableConcept', 'path'=>'Hospitalization.reAdmission', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
  'dietPreference' => {'valid_codes'=>{'http://hl7.org/fhir/diet'=>['vegetarian', 'dairy-free', 'nut-free', 'gluten-free', 'vegan', 'halal', 'kosher']}, 'type'=>'CodeableConcept', 'path'=>'Hospitalization.dietPreference', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/encounter-diet'}},
  'specialCourtesy' => {'valid_codes'=>{'http://hl7.org/fhir/v3/EncounterSpecialCourtesy'=>['EXT', 'NRM', 'PRF', 'STF', 'VIP'], 'http://hl7.org/fhir/v3/NullFlavor'=>['NI', 'INV', 'DER', 'OTH', 'NINF', 'PINF', 'UNC', 'MSK', 'NA', 'UNK', 'ASKU', 'NAV', 'NASK', 'QS', 'TRC', 'NP']}, 'type'=>'CodeableConcept', 'path'=>'Hospitalization.specialCourtesy', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/encounter-special-courtesy'}},
  'specialArrangement' => {'valid_codes'=>{'http://hl7.org/fhir/encounter-special-arrangements'=>['wheel', 'stret', 'int', 'att', 'dog']}, 'type'=>'CodeableConcept', 'path'=>'Hospitalization.specialArrangement', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/encounter-special-arrangements'}},
  'destination' => {'type'=>'Reference', 'path'=>'Hospitalization.destination', 'min'=>0, 'max'=>1},
  'dischargeDisposition' => {'valid_codes'=>{'http://hl7.org/fhir/discharge-disposition'=>['home', 'other-hcf', 'hosp', 'long', 'aadvice', 'exp', 'psy', 'rehab', 'oth']}, 'type'=>'CodeableConcept', 'path'=>'Hospitalization.dischargeDisposition', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/encounter-discharge-disposition'}},
  'dischargeDiagnosis' => {'type'=>'Reference', 'path'=>'Hospitalization.dischargeDiagnosis', 'min'=>0, 'max'=>Float::INFINITY}
}

Instance Attribute Summary collapse

Method Summary

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

#admitSourceObject

0-1 CodeableConcept



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

def admitSource
  @admitSource
end

#admittingDiagnosisObject

0-* [ Reference() ]



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

def admittingDiagnosis
  @admittingDiagnosis
end

#destinationObject

0-1 Reference()



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

def destination
  @destination
end

#dietPreferenceObject

0-* [ CodeableConcept ]



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

def dietPreference
  @dietPreference
end

#dischargeDiagnosisObject

0-* [ Reference() ]



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

def dischargeDiagnosis
  @dischargeDiagnosis
end

#dischargeDispositionObject

0-1 CodeableConcept



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

def dischargeDisposition
  @dischargeDisposition
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 id



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

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#originObject

0-1 Reference()



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

def origin
  @origin
end

#preAdmissionIdentifierObject

0-1 Identifier



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

def preAdmissionIdentifier
  @preAdmissionIdentifier
end

#reAdmissionObject

0-1 CodeableConcept



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

def reAdmission
  @reAdmission
end

#specialArrangementObject

0-* [ CodeableConcept ]



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

def specialArrangement
  @specialArrangement
end

#specialCourtesyObject

0-* [ CodeableConcept ]



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

def specialCourtesy
  @specialCourtesy
end