Class: FHIR::DSTU2::Specimen::Collection

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'collected' => ['dateTime', 'Period']
}
METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'Collection.id', 'min' => 0, 'max' => 1 },
  'extension' => { 'type' => 'Extension', 'path' => 'Collection.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'Collection.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'collector' => { 'type' => 'Reference', 'path' => 'Collection.collector', 'min' => 0, 'max' => 1 },
  'comment' => { 'type' => 'string', 'path' => 'Collection.comment', 'min' => 0, 'max' => Float::INFINITY },
  'collectedDateTime' => { 'type' => 'dateTime', 'path' => 'Collection.collected[x]', 'min' => 0, 'max' => 1 },
  'collectedPeriod' => { 'type' => 'Period', 'path' => 'Collection.collected[x]', 'min' => 0, 'max' => 1 },
  'quantity' => { 'type' => 'Quantity', 'path' => 'Collection.quantity', 'min' => 0, 'max' => 1 },
  'method' => { 'local_name' => 'local_method', 'valid_codes' => { 'http://snomed.info/sct' => ['119295008', '413651001', '360020006', '430823004', '16404004', '67889009', '29240004', '45710003', '7800008', '258431006', '20255002', '386147002', '278450005'], 'http://hl7.org/fhir/v2/0488' => ['ANP', 'BAP', 'BCAE', 'BCAN', 'BCPD', 'BIO', 'CAP', 'CATH', 'CVP', 'EPLA', 'ESWA', 'FNA', 'KOFFP', 'LNA', 'LNV', 'MARTL', 'ML11', 'MLP', 'NYP', 'PACE', 'PIN', 'PNA', 'PRIME', 'PUMP', 'QC5', 'SCLP', 'SCRAPS', 'SHA', 'SWA', 'SWD', 'TMAN', 'TMCH', 'TMM4', 'TMMY', 'TMOT', 'TMP', 'TMPV', 'TMSC', 'TMUP', 'TMVI', 'VENIP', 'WOOD'] }, 'type' => 'CodeableConcept', 'path' => 'Collection.method', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/specimen-collection-method' } },
  'bodySite' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Collection.bodySite', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/body-site' } }
}

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 Model

#==, #attribute_mismatch, #compare_attribute, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #respond_to_missing?, #to_reference, #valid?, #validate, #validate_profile

Constructor Details

This class inherits a constructor from FHIR::DSTU2::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::DSTU2::Model

Instance Attribute Details

#bodySiteObject

0-1 CodeableConcept



60
61
62
# File 'lib/fhir_dstu2_models/fhir/resources/Specimen.rb', line 60

def bodySite
  @bodySite
end

#collectedDateTimeObject

0-1 dateTime



56
57
58
# File 'lib/fhir_dstu2_models/fhir/resources/Specimen.rb', line 56

def collectedDateTime
  @collectedDateTime
end

#collectedPeriodObject

0-1 Period



57
58
59
# File 'lib/fhir_dstu2_models/fhir/resources/Specimen.rb', line 57

def collectedPeriod
  @collectedPeriod
end

#collectorObject

0-1 Reference()



54
55
56
# File 'lib/fhir_dstu2_models/fhir/resources/Specimen.rb', line 54

def collector
  @collector
end

#commentObject

0-* [ string ]



55
56
57
# File 'lib/fhir_dstu2_models/fhir/resources/Specimen.rb', line 55

def comment
  @comment
end

#extensionObject

0-* [ Extension ]



52
53
54
# File 'lib/fhir_dstu2_models/fhir/resources/Specimen.rb', line 52

def extension
  @extension
end

#idObject

0-1 id



51
52
53
# File 'lib/fhir_dstu2_models/fhir/resources/Specimen.rb', line 51

def id
  @id
end

#local_methodObject

0-1 CodeableConcept



59
60
61
# File 'lib/fhir_dstu2_models/fhir/resources/Specimen.rb', line 59

def local_method
  @local_method
end

#modifierExtensionObject

0-* [ Extension ]



53
54
55
# File 'lib/fhir_dstu2_models/fhir/resources/Specimen.rb', line 53

def modifierExtension
  @modifierExtension
end

#quantityObject

0-1 Quantity



58
59
60
# File 'lib/fhir_dstu2_models/fhir/resources/Specimen.rb', line 58

def quantity
  @quantity
end