Class: FHIR::SupplyDelivery

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'suppliedItem' => ['CodeableConcept', 'Reference']
}
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'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  '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', '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_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'SupplyDelivery.patient', 'min'=>0, 'max'=>1},
  'type' => {'valid_codes'=>{'http://hl7.org/fhir/supply-item-type'=>['medication', 'device', '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},
  'suppliedItemCodeableConcept' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'SupplyDelivery.suppliedItem[x]', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/supply-item'}},
  'suppliedItemReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Medication', 'http://hl7.org/fhir/StructureDefinition/Substance', 'http://hl7.org/fhir/StructureDefinition/Device'], 'type'=>'Reference', 'path'=>'SupplyDelivery.suppliedItem[x]', 'min'=>0, 'max'=>1},
  'supplier' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner'], '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_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'SupplyDelivery.destination', 'min'=>0, 'max'=>1},
  'receiver' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'SupplyDelivery.receiver', 'min'=>0, 'max'=>Float::INFINITY}
}

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

#destinationObject

0-1 Reference(Location)



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

def destination
  @destination
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 id



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

def id
  @id
end

#identifierObject

0-1 Identifier



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

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



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

def language
  @language
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#patientObject

0-1 Reference(Patient)



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

def patient
  @patient
end

#quantityObject

0-1 Quantity



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

def quantity
  @quantity
end

#receiverObject

0-* [ Reference(Practitioner) ]



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

def receiver
  @receiver
end

#statusObject

0-1 code



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

def status
  @status
end

#suppliedItemCodeableConceptObject

0-1 CodeableConcept



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

def suppliedItemCodeableConcept
  @suppliedItemCodeableConcept
end

#suppliedItemReferenceObject

0-1 Reference(Medication|Substance|Device)



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

def suppliedItemReference
  @suppliedItemReference
end

#supplierObject

0-1 Reference(Practitioner)



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

def supplier
  @supplier
end

#textObject

0-1 Narrative



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

def text
  @text
end

#timeObject

0-1 dateTime



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

def time
  @time
end

#typeObject

0-1 CodeableConcept



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

def type
  @type
end

#whenPreparedObject

0-1 Period



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

def whenPrepared
  @whenPrepared
end

Instance Method Details

#resourceTypeObject



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

def resourceType
  'SupplyDelivery'
end