Class: FHIR::MedicationOrder::DosageInstruction

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'asNeeded' => ['boolean', 'CodeableConcept'],
  'site' => ['CodeableConcept', 'Reference'],
  'dose' => ['Range', 'Quantity'],
  'rate' => ['Ratio', 'Range', 'Quantity']
}
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'DosageInstruction.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'DosageInstruction.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'DosageInstruction.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'text' => {'type'=>'string', 'path'=>'DosageInstruction.text', 'min'=>0, 'max'=>1},
  'additionalInstructions' => {'valid_codes'=>{'http://snomed.info/sct'=>['311501008', '311504000', '417929005', '417980006', '417995008', '418071006', '418194009', '418281004', '418443006', '418521000', '418577003', '418637003', '418639000', '418693002', '418849000', '418850000', '418914006', '418954008', '418991002', '419111009', '419115000', '419303009', '419437002', '419439004', '419444006', '419473009', '419529008', '419822006', '419974005', '420003005', '420082003', '420110001', '420162004', '420652005', '421484000', '421769005', '421984009', '422327006', '428579001']}, 'type'=>'CodeableConcept', 'path'=>'DosageInstruction.additionalInstructions', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/additional-instructions-codes'}},
  'timing' => {'type'=>'Timing', 'path'=>'DosageInstruction.timing', 'min'=>0, 'max'=>1},
  'asNeededBoolean' => {'type'=>'boolean', 'path'=>'DosageInstruction.asNeeded[x]', 'min'=>0, 'max'=>1},
  'asNeededCodeableConcept' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'DosageInstruction.asNeeded[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/medication-as-needed-reason'}},
  'siteCodeableConcept' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'DosageInstruction.site[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/approach-site-codes'}},
  'siteReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/BodySite'], 'type'=>'Reference', 'path'=>'DosageInstruction.site[x]', 'min'=>0, 'max'=>1},
  'route' => {'valid_codes'=>{'http://snomed.info/sct'=>['6064005', '10547007', '12130007', '16857009', '26643006', '34206005', '37161004', '37737002', '37839007', '38239002', '45890007', '46713006', '47625008', '54471007', '54485002', '58100008', '60213007', '62226000', '72607000', '78421000', '90028008', '127490009', '127491008', '127492001', '372449004', '372450004', '372451000', '372452007', '372453002', '372454008', '372457001', '372458006', '372459003', '372460008', '372461007', '372463005', '372464004', '372465003', '372466002', '372467006', '372468001', '372469009', '372470005', '372471009', '372473007', '372474001', '372475000', '372476004', '404815008', '404818005', '404819002', '404820008', '416174007', '417070009', '417255000', '417950001', '417985001', '417989007', '418091004', '418114005', '418133000', '418136008', '418162004', '418204005', '418287000', '418321004', '418331006', '418401004', '418418000', '418441008', '418511008', '418586008', '418608002', '418664002', '418722009', '418730005', '418743005', '418813001', '418821007', '418851001', '418877009', '418887008', '418892005', '418947002', '418987007', '419021003', '419165009', '419231003', '419243002', '419320008', '419396008', '419601003', '419631009', '419684008', '419762003', '419778001', '419810008', '419874009', '419894000', '419954003', '419993007', '420047004', '420163009', '420168000', '420185003', '420201002', '420204005', '420218003', '420254004', '420287000', '420719007', '428191002', '429817007', '445752009', '445754005', '445755006', '445756007', '445767008', '445768003', '445769006', '445771006', '445913005', '445941009', '446105004', '446407004', '446435000', '446442000', '446540005', '447026006', '447052000', '447080003', '447081004', '447121004', '447122006', '447227007', '447229005', '447694001', '447964005', '448077001', '448491004', '448492006', '448598008', '697971008', '711360002', '711378007', '714743009', '1611000175109', '171831000036109', '171931000036104', '171941000036109', '171971000036102', '172091000036108', '723241000168104', '723251000168102', '723261000168100', '723271000168106', '723281000168109', '723291000168107', '723301000168108', '723311000168106', '723321000168104', '723331000168101', '723341000168105', '723351000168107', '723361000168109', '723371000168103', '723381000168100', '723391000168102']}, 'type'=>'CodeableConcept', 'path'=>'DosageInstruction.route', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/route-codes'}},
  'method' => {'local_name'=>'local_method', 'valid_codes'=>{'http://snomed.info/sct'=>['417924000', '418283001', '419385000', '419582001', '419652001', '419747000', '420045007', '420246001', '420247005', '420295001', '420341009', '420360002', '420484009', '420503003', '420561004', '420604000', '420606003', '420620005', '420652005', '420771004', '420806001', '420883007', '420942008', '420974001', '421035004', '421066005', '421067001', '421134003', '421139008', '421206002', '421257003', '421286000', '421298005', '421399004', '421463005', '421484000', '421521009', '421538008', '421548005', '421612001', '421682005', '421718005', '421723005', '421769005', '421803000', '421805007', '421829000', '421832002', '421939007', '421984009', '421994004', '422033008', '422106007', '422114001', '422145002', '422152000', '422219000', '422327006']}, 'type'=>'CodeableConcept', 'path'=>'DosageInstruction.method', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/administration-method-codes'}},
  'doseRange' => {'type'=>'Range', 'path'=>'DosageInstruction.dose[x]', 'min'=>0, 'max'=>1},
  'doseQuantity' => {'type'=>'Quantity', 'path'=>'DosageInstruction.dose[x]', 'min'=>0, 'max'=>1},
  'maxDosePerPeriod' => {'type'=>'Ratio', 'path'=>'DosageInstruction.maxDosePerPeriod', 'min'=>0, 'max'=>1},
  'maxDosePerAdministration' => {'type'=>'Quantity', 'path'=>'DosageInstruction.maxDosePerAdministration', 'min'=>0, 'max'=>1},
  'maxDosePerLifetime' => {'type'=>'Quantity', 'path'=>'DosageInstruction.maxDosePerLifetime', 'min'=>0, 'max'=>1},
  'rateRatio' => {'type'=>'Ratio', 'path'=>'DosageInstruction.rate[x]', 'min'=>0, 'max'=>1},
  'rateRange' => {'type'=>'Range', 'path'=>'DosageInstruction.rate[x]', 'min'=>0, 'max'=>1},
  'rateQuantity' => {'type'=>'Quantity', 'path'=>'DosageInstruction.rate[x]', 'min'=>0, 'max'=>1}
}

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 FHIR::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

#additionalInstructionsObject

0-* [ CodeableConcept ]



77
78
79
# File 'lib/fhir/resources/MedicationOrder.rb', line 77

def additionalInstructions
  @additionalInstructions
end

#asNeededBooleanObject

0-1 boolean



79
80
81
# File 'lib/fhir/resources/MedicationOrder.rb', line 79

def asNeededBoolean
  @asNeededBoolean
end

#asNeededCodeableConceptObject

0-1 CodeableConcept



80
81
82
# File 'lib/fhir/resources/MedicationOrder.rb', line 80

def asNeededCodeableConcept
  @asNeededCodeableConcept
end

#doseQuantityObject

0-1 Quantity



86
87
88
# File 'lib/fhir/resources/MedicationOrder.rb', line 86

def doseQuantity
  @doseQuantity
end

#doseRangeObject

0-1 Range



85
86
87
# File 'lib/fhir/resources/MedicationOrder.rb', line 85

def doseRange
  @doseRange
end

#extensionObject

0-* [ Extension ]



74
75
76
# File 'lib/fhir/resources/MedicationOrder.rb', line 74

def extension
  @extension
end

#idObject

0-1 string



73
74
75
# File 'lib/fhir/resources/MedicationOrder.rb', line 73

def id
  @id
end

#local_methodObject

0-1 CodeableConcept



84
85
86
# File 'lib/fhir/resources/MedicationOrder.rb', line 84

def local_method
  @local_method
end

#maxDosePerAdministrationObject

0-1 Quantity



88
89
90
# File 'lib/fhir/resources/MedicationOrder.rb', line 88

def maxDosePerAdministration
  @maxDosePerAdministration
end

#maxDosePerLifetimeObject

0-1 Quantity



89
90
91
# File 'lib/fhir/resources/MedicationOrder.rb', line 89

def maxDosePerLifetime
  @maxDosePerLifetime
end

#maxDosePerPeriodObject

0-1 Ratio



87
88
89
# File 'lib/fhir/resources/MedicationOrder.rb', line 87

def maxDosePerPeriod
  @maxDosePerPeriod
end

#modifierExtensionObject

0-* [ Extension ]



75
76
77
# File 'lib/fhir/resources/MedicationOrder.rb', line 75

def modifierExtension
  @modifierExtension
end

#rateQuantityObject

0-1 Quantity



92
93
94
# File 'lib/fhir/resources/MedicationOrder.rb', line 92

def rateQuantity
  @rateQuantity
end

#rateRangeObject

0-1 Range



91
92
93
# File 'lib/fhir/resources/MedicationOrder.rb', line 91

def rateRange
  @rateRange
end

#rateRatioObject

0-1 Ratio



90
91
92
# File 'lib/fhir/resources/MedicationOrder.rb', line 90

def rateRatio
  @rateRatio
end

#routeObject

0-1 CodeableConcept



83
84
85
# File 'lib/fhir/resources/MedicationOrder.rb', line 83

def route
  @route
end

#siteCodeableConceptObject

0-1 CodeableConcept



81
82
83
# File 'lib/fhir/resources/MedicationOrder.rb', line 81

def siteCodeableConcept
  @siteCodeableConcept
end

#siteReferenceObject

0-1 Reference(BodySite)



82
83
84
# File 'lib/fhir/resources/MedicationOrder.rb', line 82

def siteReference
  @siteReference
end

#textObject

0-1 string



76
77
78
# File 'lib/fhir/resources/MedicationOrder.rb', line 76

def text
  @text
end

#timingObject

0-1 Timing



78
79
80
# File 'lib/fhir/resources/MedicationOrder.rb', line 78

def timing
  @timing
end