Class: FHIR::Specimen::Collection
- 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
-
#bodySite ⇒ Object
0-1 CodeableConcept.
-
#collectedDateTime ⇒ Object
0-1 dateTime.
-
#collectedPeriod ⇒ Object
0-1 Period.
-
#collector ⇒ Object
0-1 Reference(Practitioner).
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 string.
-
#local_method ⇒ Object
0-1 CodeableConcept.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#quantity ⇒ Object
0-1 Quantity.
Method Summary
Methods included from Xml
from_xml, is_valid?, #to_xml, validate
Methods included from Json
Methods included from Hashable
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
#bodySite ⇒ Object
0-1 CodeableConcept
59 60 61 |
# File 'lib/fhir/resources/Specimen.rb', line 59 def bodySite @bodySite end |
#collectedDateTime ⇒ Object
0-1 dateTime
55 56 57 |
# File 'lib/fhir/resources/Specimen.rb', line 55 def collectedDateTime @collectedDateTime end |
#collectedPeriod ⇒ Object
0-1 Period
56 57 58 |
# File 'lib/fhir/resources/Specimen.rb', line 56 def collectedPeriod @collectedPeriod end |
#collector ⇒ Object
0-1 Reference(Practitioner)
54 55 56 |
# File 'lib/fhir/resources/Specimen.rb', line 54 def collector @collector end |
#extension ⇒ Object
0-* [ Extension ]
52 53 54 |
# File 'lib/fhir/resources/Specimen.rb', line 52 def extension @extension end |
#id ⇒ Object
0-1 string
51 52 53 |
# File 'lib/fhir/resources/Specimen.rb', line 51 def id @id end |
#local_method ⇒ Object
0-1 CodeableConcept
58 59 60 |
# File 'lib/fhir/resources/Specimen.rb', line 58 def local_method @local_method end |
#modifierExtension ⇒ Object
0-* [ Extension ]
53 54 55 |
# File 'lib/fhir/resources/Specimen.rb', line 53 def modifierExtension @modifierExtension end |
#quantity ⇒ Object
0-1 Quantity
57 58 59 |
# File 'lib/fhir/resources/Specimen.rb', line 57 def quantity @quantity end |