Class: FHIR::MedicationRequest::Substitution
- Inherits:
-
FHIR::Model
- Object
- FHIR::Model
- FHIR::MedicationRequest::Substitution
- Defined in:
- lib/fhir_models/fhir/resources/MedicationRequest.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, #to_xml, valid?, validate
Methods included from Deprecate
Methods included from Json
Methods included from Hashable
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
#allowed ⇒ Object
1-1 boolean
109 110 111 |
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 109 def allowed @allowed end |
#extension ⇒ Object
0-* [ Extension ]
107 108 109 |
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 107 def extension @extension end |
#id ⇒ Object
0-1 string
106 107 108 |
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 106 def id @id end |
#modifierExtension ⇒ Object
0-* [ Extension ]
108 109 110 |
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 108 def modifierExtension @modifierExtension end |
#reason ⇒ Object
0-1 CodeableConcept
110 111 112 |
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 110 def reason @reason end |