Class: FHIR::Specimen::Container

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'additive' => ['CodeableConcept', 'Reference']
}
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Container.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Container.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Container.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'Container.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'description' => {'type'=>'string', 'path'=>'Container.description', 'min'=>0, 'max'=>1},
  'type' => {'valid_codes'=>{'http://snomed.info/sct'=>['434746001', '434822004', '713791004']}, 'type'=>'CodeableConcept', 'path'=>'Container.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/specimen-container-type'}},
  'capacity' => {'type'=>'Quantity', 'path'=>'Container.capacity', 'min'=>0, 'max'=>1},
  'specimenQuantity' => {'type'=>'Quantity', 'path'=>'Container.specimenQuantity', 'min'=>0, 'max'=>1},
  'additiveCodeableConcept' => {'valid_codes'=>{'http://hl7.org/fhir/v2/0371'=>['ACDA', 'ACDB', 'ACET', 'AMIES', 'BACTM', 'BF10', 'BOR', 'BOUIN', 'BSKM', 'C32', 'C38', 'CARS', 'CARY', 'CHLTM', 'CTAD', 'EDTK', 'EDTK15', 'EDTK75', 'EDTN', 'ENT', 'ENT+', 'F10', 'FDP', 'FL10', 'FL100', 'HCL6', 'HEPA', 'HEPL', 'HEPN', 'HNO3', 'JKM', 'KARN', 'KOX', 'LIA', 'M4', 'M4RT', 'M5', 'MICHTM', 'MMDTM', 'NAF', 'NAPS', 'NONE', 'PAGE', 'PHENOL', 'PVA', 'RLM', 'SILICA', 'SPS', 'SST', 'STUTM', 'THROM', 'THYMOL', 'THYO', 'TOLU', 'URETM', 'VIRTM', 'WEST']}, 'type'=>'CodeableConcept', 'path'=>'Container.additive[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/v2-0371'}},
  'additiveReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Substance'], 'type'=>'Reference', 'path'=>'Container.additive[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

#additiveCodeableConceptObject

0-1 CodeableConcept



120
121
122
# File 'lib/fhir/resources/Specimen.rb', line 120

def additiveCodeableConcept
  @additiveCodeableConcept
end

#additiveReferenceObject

0-1 Reference(Substance)



121
122
123
# File 'lib/fhir/resources/Specimen.rb', line 121

def additiveReference
  @additiveReference
end

#capacityObject

0-1 Quantity



118
119
120
# File 'lib/fhir/resources/Specimen.rb', line 118

def capacity
  @capacity
end

#descriptionObject

0-1 string



116
117
118
# File 'lib/fhir/resources/Specimen.rb', line 116

def description
  @description
end

#extensionObject

0-* [ Extension ]



113
114
115
# File 'lib/fhir/resources/Specimen.rb', line 113

def extension
  @extension
end

#idObject

0-1 string



112
113
114
# File 'lib/fhir/resources/Specimen.rb', line 112

def id
  @id
end

#identifierObject

0-* [ Identifier ]



115
116
117
# File 'lib/fhir/resources/Specimen.rb', line 115

def identifier
  @identifier
end

#modifierExtensionObject

0-* [ Extension ]



114
115
116
# File 'lib/fhir/resources/Specimen.rb', line 114

def modifierExtension
  @modifierExtension
end

#specimenQuantityObject

0-1 Quantity



119
120
121
# File 'lib/fhir/resources/Specimen.rb', line 119

def specimenQuantity
  @specimenQuantity
end

#typeObject

0-1 CodeableConcept



117
118
119
# File 'lib/fhir/resources/Specimen.rb', line 117

def type
  @type
end