Class: FHIR::DSTU2::SupplyDelivery

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

Constant Summary collapse

SEARCH_PARAMS =
['identifier', 'patient', 'receiver', 'status', 'supplier']
METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'SupplyDelivery.id', 'min' => 0, 'max' => 1 },
  'meta' => { 'type' => 'Meta', 'path' => 'SupplyDelivery.meta', 'min' => 0, 'max' => 1 },
  'implicitRules' => { 'type' => 'uri', 'path' => 'SupplyDelivery.implicitRules', 'min' => 0, 'max' => 1 },
  'language' => { 'type' => 'code', 'path' => 'SupplyDelivery.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
  'text' => { 'type' => 'Narrative', 'path' => 'SupplyDelivery.text', 'min' => 0, 'max' => 1 },
  'contained' => { 'type' => 'Resource', 'path' => 'SupplyDelivery.contained', 'min' => 0, 'max' => Float::INFINITY },
  'extension' => { 'type' => 'Extension', 'path' => 'SupplyDelivery.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'SupplyDelivery.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'identifier' => { 'type' => 'Identifier', 'path' => 'SupplyDelivery.identifier', 'min' => 0, 'max' => 1 },
  'status' => { 'valid_codes' => { 'http://hl7.org/fhir/supplydelivery-status' => ['in-progress', 'completed', 'abandoned'] }, 'type' => 'code', 'path' => 'SupplyDelivery.status', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/supplydelivery-status' } },
  'patient' => { 'type' => 'Reference', 'path' => 'SupplyDelivery.patient', 'min' => 0, 'max' => 1 },
  'type' => { 'valid_codes' => { 'http://hl7.org/fhir/supply-item-type' => ['medication', 'device'] }, 'type' => 'CodeableConcept', 'path' => 'SupplyDelivery.type', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/supplydelivery-type' } },
  'quantity' => { 'type' => 'Quantity', 'path' => 'SupplyDelivery.quantity', 'min' => 0, 'max' => 1 },
  'suppliedItem' => { 'type' => 'Reference', 'path' => 'SupplyDelivery.suppliedItem', 'min' => 0, 'max' => 1 },
  'supplier' => { 'type' => 'Reference', 'path' => 'SupplyDelivery.supplier', 'min' => 0, 'max' => 1 },
  'whenPrepared' => { 'type' => 'Period', 'path' => 'SupplyDelivery.whenPrepared', 'min' => 0, 'max' => 1 },
  'time' => { 'type' => 'dateTime', 'path' => 'SupplyDelivery.time', 'min' => 0, 'max' => 1 },
  'destination' => { 'type' => 'Reference', 'path' => 'SupplyDelivery.destination', 'min' => 0, 'max' => 1 },
  'receiver' => { 'type' => 'Reference', 'path' => 'SupplyDelivery.receiver', 'min' => 0, 'max' => Float::INFINITY }
}

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#containedObject

0-* [ Resource ]



36
37
38
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 36

def contained
  @contained
end

#destinationObject

0-1 Reference()



48
49
50
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 48

def destination
  @destination
end

#extensionObject

0-* [ Extension ]



37
38
39
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 37

def extension
  @extension
end

#idObject

0-1 id



31
32
33
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 31

def id
  @id
end

#identifierObject

0-1 Identifier



39
40
41
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 39

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



33
34
35
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 33

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



34
35
36
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 34

def language
  @language
end

#metaObject

0-1 Meta



32
33
34
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 32

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



38
39
40
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 38

def modifierExtension
  @modifierExtension
end

#patientObject

0-1 Reference()



41
42
43
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 41

def patient
  @patient
end

#quantityObject

0-1 Quantity



43
44
45
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 43

def quantity
  @quantity
end

#receiverObject

0-* [ Reference() ]



49
50
51
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 49

def receiver
  @receiver
end

#statusObject

0-1 code



40
41
42
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 40

def status
  @status
end

#suppliedItemObject

0-1 Reference()



44
45
46
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 44

def suppliedItem
  @suppliedItem
end

#supplierObject

0-1 Reference()



45
46
47
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 45

def supplier
  @supplier
end

#textObject

0-1 Narrative



35
36
37
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 35

def text
  @text
end

#timeObject

0-1 dateTime



47
48
49
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 47

def time
  @time
end

#typeObject

0-1 CodeableConcept



42
43
44
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 42

def type
  @type
end

#whenPreparedObject

0-1 Period



46
47
48
# File 'lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb', line 46

def whenPrepared
  @whenPrepared
end

Instance Method Details

#resourceTypeObject



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

def resourceType
  'SupplyDelivery'
end