Class: FHIR::BiologicallyDerivedProduct::Collection

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_models/fhir/resources/BiologicallyDerivedProduct.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', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole'], 'type'=>'Reference', 'path'=>'Collection.collector', 'min'=>0, 'max'=>1},
  'source' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Collection.source', '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}
}

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, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #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

#collectedDateTimeObject

0-1 dateTime



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

def collectedDateTime
  @collectedDateTime
end

#collectedPeriodObject

0-1 Period



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

def collectedPeriod
  @collectedPeriod
end

#collectorObject

0-1 Reference(Practitioner|PractitionerRole)



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

def collector
  @collector
end

#extensionObject

0-* [ Extension ]



49
50
51
# File 'lib/fhir_models/fhir/resources/BiologicallyDerivedProduct.rb', line 49

def extension
  @extension
end

#idObject

0-1 string



48
49
50
# File 'lib/fhir_models/fhir/resources/BiologicallyDerivedProduct.rb', line 48

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



50
51
52
# File 'lib/fhir_models/fhir/resources/BiologicallyDerivedProduct.rb', line 50

def modifierExtension
  @modifierExtension
end

#sourceObject

0-1 Reference(Patient|Organization)



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

def source
  @source
end