Class: FHIR::MedicationRequest::Substitution

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

Method Summary

Methods included from Xml

from_xml, #to_xml, valid?, validate

Methods included from Deprecate

#deprecate

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?, #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

#allowedBooleanObject

1-1 boolean



127
128
129
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 127

def allowedBoolean
  @allowedBoolean
end

#allowedCodeableConceptObject

1-1 CodeableConcept



128
129
130
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 128

def allowedCodeableConcept
  @allowedCodeableConcept
end

#extensionObject

0-* [ Extension ]



125
126
127
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 125

def extension
  @extension
end

#idObject

0-1 string



124
125
126
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 124

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



126
127
128
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 126

def modifierExtension
  @modifierExtension
end

#reasonObject

0-1 CodeableConcept



129
130
131
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 129

def reason
  @reason
end