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

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

#allowedObject

1-1 boolean



109
110
111
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 109

def allowed
  @allowed
end

#extensionObject

0-* [ Extension ]



107
108
109
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 107

def extension
  @extension
end

#idObject

0-1 string



106
107
108
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 106

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



108
109
110
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 108

def modifierExtension
  @modifierExtension
end

#reasonObject

0-1 CodeableConcept



110
111
112
# File 'lib/fhir_models/fhir/resources/MedicationRequest.rb', line 110

def reason
  @reason
end