Class: FHIR::MedicationOrder::Substitution

Inherits:
FHIR::Model
  • Object
show all
Includes:
Hashable, Json, Xml
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

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

#allowedObject

1-1 boolean



135
136
137
# File 'lib/fhir_models/fhir/resources/MedicationOrder.rb', line 135

def allowed
  @allowed
end

#extensionObject

0-* [ Extension ]



133
134
135
# File 'lib/fhir_models/fhir/resources/MedicationOrder.rb', line 133

def extension
  @extension
end

#idObject

0-1 string



132
133
134
# File 'lib/fhir_models/fhir/resources/MedicationOrder.rb', line 132

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



134
135
136
# File 'lib/fhir_models/fhir/resources/MedicationOrder.rb', line 134

def modifierExtension
  @modifierExtension
end

#reasonObject

0-1 CodeableConcept



136
137
138
# File 'lib/fhir_models/fhir/resources/MedicationOrder.rb', line 136

def reason
  @reason
end