Class: FHIR::MedicationKnowledge::AdministrationGuidelines

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

Defined Under Namespace

Classes: Dosage, PatientCharacteristics

Constant Summary collapse

MULTIPLE_TYPES =
{
  'indication' => ['CodeableConcept', 'Reference']
}
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'AdministrationGuidelines.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'AdministrationGuidelines.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'AdministrationGuidelines.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'dosage' => {'type'=>'MedicationKnowledge::AdministrationGuidelines::Dosage', 'path'=>'AdministrationGuidelines.dosage', 'min'=>0, 'max'=>Float::INFINITY},
  'indicationCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'AdministrationGuidelines.indication[x]', 'min'=>0, 'max'=>1},
  'indicationReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/ObservationDefinition'], 'type'=>'Reference', 'path'=>'AdministrationGuidelines.indication[x]', 'min'=>0, 'max'=>1},
  'patientCharacteristics' => {'type'=>'MedicationKnowledge::AdministrationGuidelines::PatientCharacteristics', 'path'=>'AdministrationGuidelines.patientCharacteristics', '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 FHIR::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::Model

Dynamic Method Handling

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

Instance Attribute Details

#dosageObject

0-* [ MedicationKnowledge::AdministrationGuidelines::Dosage ]



216
217
218
# File 'lib/fhir_models/fhir/resources/MedicationKnowledge.rb', line 216

def dosage
  @dosage
end

#extensionObject

0-* [ Extension ]



214
215
216
# File 'lib/fhir_models/fhir/resources/MedicationKnowledge.rb', line 214

def extension
  @extension
end

#idObject

0-1 string



213
214
215
# File 'lib/fhir_models/fhir/resources/MedicationKnowledge.rb', line 213

def id
  @id
end

#indicationCodeableConceptObject

0-1 CodeableConcept



217
218
219
# File 'lib/fhir_models/fhir/resources/MedicationKnowledge.rb', line 217

def indicationCodeableConcept
  @indicationCodeableConcept
end

#indicationReferenceObject

0-1 Reference(ObservationDefinition)



218
219
220
# File 'lib/fhir_models/fhir/resources/MedicationKnowledge.rb', line 218

def indicationReference
  @indicationReference
end

#modifierExtensionObject

0-* [ Extension ]



215
216
217
# File 'lib/fhir_models/fhir/resources/MedicationKnowledge.rb', line 215

def modifierExtension
  @modifierExtension
end

#patientCharacteristicsObject

0-* [ MedicationKnowledge::AdministrationGuidelines::PatientCharacteristics ]



219
220
221
# File 'lib/fhir_models/fhir/resources/MedicationKnowledge.rb', line 219

def patientCharacteristics
  @patientCharacteristics
end