Class: FHIR::Specimen::Treatment

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir/resources/Specimen.rb

Constant Summary collapse

MULTIPLE_TYPES =
{
  'time' => ['dateTime', 'Period']
}
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Treatment.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Treatment.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Treatment.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'description' => {'type'=>'string', 'path'=>'Treatment.description', 'min'=>0, 'max'=>1},
  'procedure' => {'valid_codes'=>{'http://hl7.org/fhir/v2/0373'=>['ACID', 'ALK', 'DEFB', 'FILT', 'LDLP', 'NEUT', 'RECA', 'UFIL']}, 'type'=>'CodeableConcept', 'path'=>'Treatment.procedure', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/specimen-treatment-procedure'}},
  'additive' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Substance'], 'type'=>'Reference', 'path'=>'Treatment.additive', 'min'=>0, 'max'=>Float::INFINITY},
  'timeDateTime' => {'type'=>'dateTime', 'path'=>'Treatment.time[x]', 'min'=>0, 'max'=>1},
  'timePeriod' => {'type'=>'Period', 'path'=>'Treatment.time[x]', 'min'=>0, 'max'=>1}
}

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

#additiveObject

0-* [ Reference(Substance) ]



86
87
88
# File 'lib/fhir/resources/Specimen.rb', line 86

def additive
  @additive
end

#descriptionObject

0-1 string



84
85
86
# File 'lib/fhir/resources/Specimen.rb', line 84

def description
  @description
end

#extensionObject

0-* [ Extension ]



82
83
84
# File 'lib/fhir/resources/Specimen.rb', line 82

def extension
  @extension
end

#idObject

0-1 string



81
82
83
# File 'lib/fhir/resources/Specimen.rb', line 81

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



83
84
85
# File 'lib/fhir/resources/Specimen.rb', line 83

def modifierExtension
  @modifierExtension
end

#procedureObject

0-1 CodeableConcept



85
86
87
# File 'lib/fhir/resources/Specimen.rb', line 85

def procedure
  @procedure
end

#timeDateTimeObject

0-1 dateTime



87
88
89
# File 'lib/fhir/resources/Specimen.rb', line 87

def timeDateTime
  @timeDateTime
end

#timePeriodObject

0-1 Period



88
89
90
# File 'lib/fhir/resources/Specimen.rb', line 88

def timePeriod
  @timePeriod
end