Class: FHIR::MedicationOrder::Substitution
- Inherits:
-
FHIR::Model
- Object
- FHIR::Model
- FHIR::MedicationOrder::Substitution
- Defined in:
- lib/fhir_models/fhir/resources/MedicationOrder.rb
Constant Summary collapse
- METADATA =
{ 'id' => {'type'=>'string', 'path'=>'Substitution.id', 'min'=>0, 'max'=>1}, 'extension' => {'type'=>'Extension', 'path'=>'Substitution.extension', 'min'=>0, 'max'=>Float::INFINITY}, 'modifierExtension' => {'type'=>'Extension', 'path'=>'Substitution.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY}, 'allowed' => {'type'=>'boolean', 'path'=>'Substitution.allowed', 'min'=>1, 'max'=>1}, 'reason' => {'valid_codes'=>{'http://hl7.org/fhir/v3/ActReason'=>['CT', 'FP', 'OS', 'RR']}, 'type'=>'CodeableConcept', 'path'=>'Substitution.reason', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-SubstanceAdminSubstitutionReason'}} }
Instance Attribute Summary collapse
-
#allowed ⇒ Object
1-1 boolean.
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 string.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#reason ⇒ Object
0-1 CodeableConcept.
Method Summary
Methods included from Xml
from_xml, is_valid?, #to_xml, validate
Methods included from Json
Methods included from Hashable
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
#allowed ⇒ Object
1-1 boolean
135 136 137 |
# File 'lib/fhir_models/fhir/resources/MedicationOrder.rb', line 135 def allowed @allowed end |
#extension ⇒ Object
0-* [ Extension ]
133 134 135 |
# File 'lib/fhir_models/fhir/resources/MedicationOrder.rb', line 133 def extension @extension end |
#id ⇒ Object
0-1 string
132 133 134 |
# File 'lib/fhir_models/fhir/resources/MedicationOrder.rb', line 132 def id @id end |
#modifierExtension ⇒ Object
0-* [ Extension ]
134 135 136 |
# File 'lib/fhir_models/fhir/resources/MedicationOrder.rb', line 134 def modifierExtension @modifierExtension end |
#reason ⇒ Object
0-1 CodeableConcept
136 137 138 |
# File 'lib/fhir_models/fhir/resources/MedicationOrder.rb', line 136 def reason @reason end |