Class: FHIR::Encounter::Hospitalization

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

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', '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_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], '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', '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_profiles'=>['http://hl7.org/fhir/StructureDefinition/Condition'], 'type'=>'Reference', 'path'=>'Hospitalization.admittingDiagnosis', 'min'=>0, 'max'=>Float::INFINITY},
  'reAdmission' => {'valid_codes'=>{'http://hl7.org/fhir/v2/0092'=>['R']}, 'type'=>'CodeableConcept', 'path'=>'Hospitalization.reAdmission', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/v2-0092'}},
  'dietPreference' => {'valid_codes'=>{'http://hl7.org/fhir/diet'=>['vegetarian', 'dairy-free', 'nut-free', 'gluten-free', 'vegan', 'halal', 'kosher', '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'=>['UNK']}, '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', '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_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], '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', 'snf', 'oth', 'home', 'other-hcf', 'hosp', 'long', 'aadvice', 'exp', 'psy', 'rehab', 'snf', 'oth']}, 'type'=>'CodeableConcept', 'path'=>'Hospitalization.dischargeDisposition', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/encounter-discharge-disposition'}},
  'dischargeDiagnosis' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Condition'], 'type'=>'Reference', 'path'=>'Hospitalization.dischargeDiagnosis', 'min'=>0, 'max'=>Float::INFINITY}
}

Instance Attribute Summary collapse

Method Summary

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

#admitSourceObject

0-1 CodeableConcept



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

def admitSource
  @admitSource
end

#admittingDiagnosisObject

0-* [ Reference(Condition) ]



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

def admittingDiagnosis
  @admittingDiagnosis
end

#destinationObject

0-1 Reference(Location)



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

def destination
  @destination
end

#dietPreferenceObject

0-* [ CodeableConcept ]



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

def dietPreference
  @dietPreference
end

#dischargeDiagnosisObject

0-* [ Reference(Condition) ]



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

def dischargeDiagnosis
  @dischargeDiagnosis
end

#dischargeDispositionObject

0-1 CodeableConcept



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

def dischargeDisposition
  @dischargeDisposition
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 string



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

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#originObject

0-1 Reference(Location)



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

def origin
  @origin
end

#preAdmissionIdentifierObject

0-1 Identifier



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

def preAdmissionIdentifier
  @preAdmissionIdentifier
end

#reAdmissionObject

0-1 CodeableConcept



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

def reAdmission
  @reAdmission
end

#specialArrangementObject

0-* [ CodeableConcept ]



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

def specialArrangement
  @specialArrangement
end

#specialCourtesyObject

0-* [ CodeableConcept ]



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

def specialCourtesy
  @specialCourtesy
end