Class: FHIR::Specimen::Collection

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'collected' => ['dateTime', 'Period']
}
METADATA =
{
  'id' => {'type'=>'string', '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_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'Collection.collector', 'min'=>0, 'max'=>1},
  '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, 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

#bodySiteObject

0-1 CodeableConcept



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

def bodySite
  @bodySite
end

#collectedDateTimeObject

0-1 dateTime



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

def collectedDateTime
  @collectedDateTime
end

#collectedPeriodObject

0-1 Period



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

def collectedPeriod
  @collectedPeriod
end

#collectorObject

0-1 Reference(Practitioner)



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

def collector
  @collector
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 string



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

def id
  @id
end

#local_methodObject

0-1 CodeableConcept



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

def local_method
  @local_method
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#quantityObject

0-1 Quantity



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

def quantity
  @quantity
end