Package org.hl7.fhir.dstu2.model
Class SupplyDelivery
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.BaseResource
-
- org.hl7.fhir.dstu2.model.Resource
-
- org.hl7.fhir.dstu2.model.DomainResource
-
- org.hl7.fhir.dstu2.model.SupplyDelivery
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IAnyResource,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions,org.hl7.fhir.instance.model.api.IBaseResource,org.hl7.fhir.instance.model.api.IDomainResource
public class SupplyDelivery extends DomainResource
Record of delivery of what is supplied.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSupplyDelivery.SupplyDeliveryStatusstatic classSupplyDelivery.SupplyDeliveryStatusEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected ReferencedestinationIdentification of the facility/location where the Supply was shipped to, as part of the dispense event.protected LocationdestinationTargetThe actual object that is the target of the reference (Identification of the facility/location where the Supply was shipped to, as part of the dispense event.)protected IdentifieridentifierIdentifier assigned by the dispensing facility when the item(s) is dispensed.protected ReferencepatientA link to a resource representing the person whom the delivered item is for.protected PatientpatientTargetThe actual object that is the target of the reference (A link to a resource representing the person whom the delivered item is for.)protected SimpleQuantityquantityThe amount of supply that has been dispensed.protected List<Reference>receiverIdentifies the person who picked up the Supply.protected List<Practitioner>receiverTargetThe actual objects that are the target of the reference (Identifies the person who picked up the Supply.)static StringSP_IDENTIFIERstatic StringSP_PATIENTstatic StringSP_RECEIVERstatic StringSP_STATUSstatic StringSP_SUPPLIERprotected Enumeration<SupplyDelivery.SupplyDeliveryStatus>statusA code specifying the state of the dispense event.protected ReferencesuppliedItemIdentifies the medication, substance or device being dispensed.protected ResourcesuppliedItemTargetThe actual object that is the target of the reference (Identifies the medication, substance or device being dispensed.protected ReferencesupplierThe individual responsible for dispensing the medication, supplier or device.protected PractitionersupplierTargetThe actual object that is the target of the reference (The individual responsible for dispensing the medication, supplier or device.)protected DateTimeTypetimeThe time the dispensed item was sent or handed to the patient (or agent).protected CodeableConcepttypeIndicates the type of dispensing event that is performed.protected PeriodwhenPreparedThe time the dispense event occurred.-
Fields inherited from class org.hl7.fhir.dstu2.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description SupplyDelivery()
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getModifierExtension, getText, hasContained, hasExtension, hasModifierExtension, hasText, setText
-
Methods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setId
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
-
-
-
-
Field Detail
-
identifier
protected Identifier identifier
Identifier assigned by the dispensing facility when the item(s) is dispensed.
-
status
protected Enumeration<SupplyDelivery.SupplyDeliveryStatus> status
A code specifying the state of the dispense event.
-
patient
protected Reference patient
A link to a resource representing the person whom the delivered item is for.
-
patientTarget
protected Patient patientTarget
The actual object that is the target of the reference (A link to a resource representing the person whom the delivered item is for.)
-
type
protected CodeableConcept type
Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.
-
quantity
protected SimpleQuantity quantity
The amount of supply that has been dispensed. Includes unit of measure.
-
suppliedItem
protected Reference suppliedItem
Identifies the medication, substance or device being dispensed. This is either a link to a resource representing the details of the item or a simple attribute carrying a code that identifies the item from a known list.
-
suppliedItemTarget
protected Resource suppliedItemTarget
The actual object that is the target of the reference (Identifies the medication, substance or device being dispensed. This is either a link to a resource representing the details of the item or a simple attribute carrying a code that identifies the item from a known list.)
-
supplier
protected Reference supplier
The individual responsible for dispensing the medication, supplier or device.
-
supplierTarget
protected Practitioner supplierTarget
The actual object that is the target of the reference (The individual responsible for dispensing the medication, supplier or device.)
-
whenPrepared
protected Period whenPrepared
The time the dispense event occurred.
-
time
protected DateTimeType time
The time the dispensed item was sent or handed to the patient (or agent).
-
destination
protected Reference destination
Identification of the facility/location where the Supply was shipped to, as part of the dispense event.
-
destinationTarget
protected Location destinationTarget
The actual object that is the target of the reference (Identification of the facility/location where the Supply was shipped to, as part of the dispense event.)
-
receiverTarget
protected List<Practitioner> receiverTarget
The actual objects that are the target of the reference (Identifies the person who picked up the Supply.)
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
- See Also:
- Constant Field Values
-
SP_RECEIVER
public static final String SP_RECEIVER
- See Also:
- Constant Field Values
-
SP_PATIENT
public static final String SP_PATIENT
- See Also:
- Constant Field Values
-
SP_SUPPLIER
public static final String SP_SUPPLIER
- See Also:
- Constant Field Values
-
SP_STATUS
public static final String SP_STATUS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SupplyDelivery
public SupplyDelivery()
-
-
Method Detail
-
getIdentifier
public Identifier getIdentifier()
- Returns:
identifier(Identifier assigned by the dispensing facility when the item(s) is dispensed.)
-
hasIdentifier
public boolean hasIdentifier()
-
setIdentifier
public SupplyDelivery setIdentifier(Identifier value)
- Parameters:
value-identifier(Identifier assigned by the dispensing facility when the item(s) is dispensed.)
-
getStatusElement
public Enumeration<SupplyDelivery.SupplyDeliveryStatus> getStatusElement()
- Returns:
status(A code specifying the state of the dispense event.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
hasStatusElement
public boolean hasStatusElement()
-
hasStatus
public boolean hasStatus()
-
setStatusElement
public SupplyDelivery setStatusElement(Enumeration<SupplyDelivery.SupplyDeliveryStatus> value)
- Parameters:
value-status(A code specifying the state of the dispense event.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
getStatus
public SupplyDelivery.SupplyDeliveryStatus getStatus()
- Returns:
- A code specifying the state of the dispense event.
-
setStatus
public SupplyDelivery setStatus(SupplyDelivery.SupplyDeliveryStatus value)
- Parameters:
value- A code specifying the state of the dispense event.
-
getPatient
public Reference getPatient()
- Returns:
patient(A link to a resource representing the person whom the delivered item is for.)
-
hasPatient
public boolean hasPatient()
-
setPatient
public SupplyDelivery setPatient(Reference value)
- Parameters:
value-patient(A link to a resource representing the person whom the delivered item is for.)
-
getPatientTarget
public Patient getPatientTarget()
- Returns:
patientThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A link to a resource representing the person whom the delivered item is for.)
-
setPatientTarget
public SupplyDelivery setPatientTarget(Patient value)
- Parameters:
value-patientThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A link to a resource representing the person whom the delivered item is for.)
-
getType
public CodeableConcept getType()
- Returns:
type(Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.)
-
hasType
public boolean hasType()
-
setType
public SupplyDelivery setType(CodeableConcept value)
- Parameters:
value-type(Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.)
-
getQuantity
public SimpleQuantity getQuantity()
- Returns:
quantity(The amount of supply that has been dispensed. Includes unit of measure.)
-
hasQuantity
public boolean hasQuantity()
-
setQuantity
public SupplyDelivery setQuantity(SimpleQuantity value)
- Parameters:
value-quantity(The amount of supply that has been dispensed. Includes unit of measure.)
-
getSuppliedItem
public Reference getSuppliedItem()
- Returns:
suppliedItem(Identifies the medication, substance or device being dispensed. This is either a link to a resource representing the details of the item or a simple attribute carrying a code that identifies the item from a known list.)
-
hasSuppliedItem
public boolean hasSuppliedItem()
-
setSuppliedItem
public SupplyDelivery setSuppliedItem(Reference value)
- Parameters:
value-suppliedItem(Identifies the medication, substance or device being dispensed. This is either a link to a resource representing the details of the item or a simple attribute carrying a code that identifies the item from a known list.)
-
getSuppliedItemTarget
public Resource getSuppliedItemTarget()
- Returns:
suppliedItemThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Identifies the medication, substance or device being dispensed. This is either a link to a resource representing the details of the item or a simple attribute carrying a code that identifies the item from a known list.)
-
setSuppliedItemTarget
public SupplyDelivery setSuppliedItemTarget(Resource value)
- Parameters:
value-suppliedItemThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Identifies the medication, substance or device being dispensed. This is either a link to a resource representing the details of the item or a simple attribute carrying a code that identifies the item from a known list.)
-
getSupplier
public Reference getSupplier()
- Returns:
supplier(The individual responsible for dispensing the medication, supplier or device.)
-
hasSupplier
public boolean hasSupplier()
-
setSupplier
public SupplyDelivery setSupplier(Reference value)
- Parameters:
value-supplier(The individual responsible for dispensing the medication, supplier or device.)
-
getSupplierTarget
public Practitioner getSupplierTarget()
- Returns:
supplierThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The individual responsible for dispensing the medication, supplier or device.)
-
setSupplierTarget
public SupplyDelivery setSupplierTarget(Practitioner value)
- Parameters:
value-supplierThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The individual responsible for dispensing the medication, supplier or device.)
-
getWhenPrepared
public Period getWhenPrepared()
- Returns:
whenPrepared(The time the dispense event occurred.)
-
hasWhenPrepared
public boolean hasWhenPrepared()
-
setWhenPrepared
public SupplyDelivery setWhenPrepared(Period value)
- Parameters:
value-whenPrepared(The time the dispense event occurred.)
-
getTimeElement
public DateTimeType getTimeElement()
- Returns:
time(The time the dispensed item was sent or handed to the patient (or agent).). This is the underlying object with id, value and extensions. The accessor "getTime" gives direct access to the value
-
hasTimeElement
public boolean hasTimeElement()
-
hasTime
public boolean hasTime()
-
setTimeElement
public SupplyDelivery setTimeElement(DateTimeType value)
- Parameters:
value-time(The time the dispensed item was sent or handed to the patient (or agent).). This is the underlying object with id, value and extensions. The accessor "getTime" gives direct access to the value
-
getTime
public Date getTime()
- Returns:
- The time the dispensed item was sent or handed to the patient (or agent).
-
setTime
public SupplyDelivery setTime(Date value)
- Parameters:
value- The time the dispensed item was sent or handed to the patient (or agent).
-
getDestination
public Reference getDestination()
- Returns:
destination(Identification of the facility/location where the Supply was shipped to, as part of the dispense event.)
-
hasDestination
public boolean hasDestination()
-
setDestination
public SupplyDelivery setDestination(Reference value)
- Parameters:
value-destination(Identification of the facility/location where the Supply was shipped to, as part of the dispense event.)
-
getDestinationTarget
public Location getDestinationTarget()
- Returns:
destinationThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Identification of the facility/location where the Supply was shipped to, as part of the dispense event.)
-
setDestinationTarget
public SupplyDelivery setDestinationTarget(Location value)
- Parameters:
value-destinationThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Identification of the facility/location where the Supply was shipped to, as part of the dispense event.)
-
getReceiver
public List<Reference> getReceiver()
- Returns:
receiver(Identifies the person who picked up the Supply.)
-
hasReceiver
public boolean hasReceiver()
-
addReceiver
public Reference addReceiver()
- Returns:
receiver(Identifies the person who picked up the Supply.)
-
addReceiver
public SupplyDelivery addReceiver(Reference t)
-
getReceiverTarget
public List<Practitioner> getReceiverTarget()
- Returns:
receiver(The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. Identifies the person who picked up the Supply.)
-
addReceiverTarget
public Practitioner addReceiverTarget()
- Returns:
receiver(Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. Identifies the person who picked up the Supply.)
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classDomainResource
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public SupplyDelivery copy()
- Specified by:
copyin classDomainResource
-
typedCopy
protected SupplyDelivery typedCopy()
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-