Class: FHIR::Dosage::DoseAndRate
- Defined in:
- lib/fhir_models/fhir/types/Dosage.rb
Constant Summary collapse
- MULTIPLE_TYPES =
{ 'dose' => ['Range', 'Quantity'], 'rate' => ['Ratio', 'Range', 'Quantity'] }
- METADATA =
{ 'id' => {'type'=>'string', 'path'=>'DoseAndRate.id', 'min'=>0, 'max'=>1}, 'extension' => {'type'=>'Extension', 'path'=>'DoseAndRate.extension', 'min'=>0, 'max'=>Float::INFINITY}, 'type' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/dose-rate-type'=>['calculated', 'ordered']}, 'type'=>'CodeableConcept', 'path'=>'DoseAndRate.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/dose-rate-type'}}, 'doseRange' => {'type'=>'Range', 'path'=>'DoseAndRate.dose[x]', 'min'=>0, 'max'=>1}, 'doseQuantity' => {'type'=>'Quantity', 'path'=>'DoseAndRate.dose[x]', 'min'=>0, 'max'=>1}, 'rateRatio' => {'type'=>'Ratio', 'path'=>'DoseAndRate.rate[x]', 'min'=>0, 'max'=>1}, 'rateRange' => {'type'=>'Range', 'path'=>'DoseAndRate.rate[x]', 'min'=>0, 'max'=>1}, 'rateQuantity' => {'type'=>'Quantity', 'path'=>'DoseAndRate.rate[x]', 'min'=>0, 'max'=>1} }
Instance Attribute Summary collapse
-
#doseQuantity ⇒ Object
0-1 Quantity.
-
#doseRange ⇒ Object
0-1 Range.
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 string.
-
#rateQuantity ⇒ Object
0-1 Quantity.
-
#rateRange ⇒ Object
0-1 Range.
-
#rateRatio ⇒ Object
0-1 Ratio.
-
#type ⇒ Object
0-1 CodeableConcept.
Method Summary
Methods included from Xml
from_xml, #to_xml, valid?, validate
Methods included from FHIR::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::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class FHIR::Model
Instance Attribute Details
#doseQuantity ⇒ Object
0-1 Quantity
55 56 57 |
# File 'lib/fhir_models/fhir/types/Dosage.rb', line 55 def doseQuantity @doseQuantity end |
#doseRange ⇒ Object
0-1 Range
54 55 56 |
# File 'lib/fhir_models/fhir/types/Dosage.rb', line 54 def doseRange @doseRange end |
#extension ⇒ Object
0-* [ Extension ]
52 53 54 |
# File 'lib/fhir_models/fhir/types/Dosage.rb', line 52 def extension @extension end |
#id ⇒ Object
0-1 string
51 52 53 |
# File 'lib/fhir_models/fhir/types/Dosage.rb', line 51 def id @id end |
#rateQuantity ⇒ Object
0-1 Quantity
58 59 60 |
# File 'lib/fhir_models/fhir/types/Dosage.rb', line 58 def rateQuantity @rateQuantity end |
#rateRange ⇒ Object
0-1 Range
57 58 59 |
# File 'lib/fhir_models/fhir/types/Dosage.rb', line 57 def rateRange @rateRange end |
#rateRatio ⇒ Object
0-1 Ratio
56 57 58 |
# File 'lib/fhir_models/fhir/types/Dosage.rb', line 56 def rateRatio @rateRatio end |
#type ⇒ Object
0-1 CodeableConcept
53 54 55 |
# File 'lib/fhir_models/fhir/types/Dosage.rb', line 53 def type @type end |