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
- MULTIPLE_TYPES =
{ 'allowed' => ['boolean', 'CodeableConcept'] }
- 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}, 'allowedBoolean' => {'type'=>'boolean', 'path'=>'Substitution.allowed[x]', 'min'=>1, 'max'=>1}, 'allowedCodeableConcept' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/v3-substanceAdminSubstitution'=>['E', 'EC', 'BC', 'G', 'TE', 'TB', 'TG', 'F', 'N']}, 'type'=>'CodeableConcept', 'path'=>'Substitution.allowed[x]', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode'}}, 'reason' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/v3-ActReason'=>['CT', 'FP', 'OS', 'RR']}, 'type'=>'CodeableConcept', 'path'=>'Substitution.reason', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason'}} }
Instance Attribute Summary collapse
-
#allowedBoolean ⇒ Object
1-1 boolean.
-
#allowedCodeableConcept ⇒ Object
1-1 CodeableConcept.
-
#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
#allowedBoolean ⇒ Object
1-1 boolean
127 128 129 |
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 127 def allowedBoolean @allowedBoolean end |
#allowedCodeableConcept ⇒ Object
1-1 CodeableConcept
128 129 130 |
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 128 def allowedCodeableConcept @allowedCodeableConcept end |
#extension ⇒ Object
0-* [ Extension ]
125 126 127 |
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 125 def extension @extension end |
#id ⇒ Object
0-1 string
124 125 126 |
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 124 def id @id end |
#modifierExtension ⇒ Object
0-* [ Extension ]
126 127 128 |
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 126 def modifierExtension @modifierExtension end |
#reason ⇒ Object
0-1 CodeableConcept
129 130 131 |
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 129 def reason @reason end |