Class 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:
  • Field Details

    • identifier

      Identifier assigned by the dispensing facility when the item(s) is dispensed.
    • 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

      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

      The amount of supply that has been dispensed. Includes unit of measure.
    • 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

      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

      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

      Identification of the facility/location where the Supply was shipped to, as part of the dispense event.
    • 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.)
    • receiver

      protected List<Reference> receiver
      Identifies the person who picked up the Supply.
    • 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:
    • SP_RECEIVER

      public static final String SP_RECEIVER
      See Also:
    • SP_PATIENT

      public static final String SP_PATIENT
      See Also:
    • SP_SUPPLIER

      public static final String SP_SUPPLIER
      See Also:
    • SP_STATUS

      public static final String SP_STATUS
      See Also:
  • Constructor Details

  • Method Details

    • getIdentifier

      Returns:
      identifier (Identifier assigned by the dispensing facility when the item(s) is dispensed.)
    • hasIdentifier

      public boolean hasIdentifier()
    • setIdentifier

      Parameters:
      value - identifier (Identifier assigned by the dispensing facility when the item(s) is dispensed.)
    • 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

      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

      Returns:
      A code specifying the state of the dispense event.
    • setStatus

      Parameters:
      value - A code specifying the state of the dispense event.
    • getPatient

      Returns:
      patient (A link to a resource representing the person whom the delivered item is for.)
    • hasPatient

      public boolean hasPatient()
    • setPatient

      Parameters:
      value - patient (A link to a resource representing the person whom the delivered item is for.)
    • getPatientTarget

      Returns:
      patient The 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

      Parameters:
      value - patient The 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

      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

      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

      Returns:
      quantity (The amount of supply that has been dispensed. Includes unit of measure.)
    • hasQuantity

      public boolean hasQuantity()
    • setQuantity

      Parameters:
      value - quantity (The amount of supply that has been dispensed. Includes unit of measure.)
    • 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

      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

      Returns:
      suppliedItem The 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

      Parameters:
      value - suppliedItem The 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

      Returns:
      supplier (The individual responsible for dispensing the medication, supplier or device.)
    • hasSupplier

      public boolean hasSupplier()
    • setSupplier

      Parameters:
      value - supplier (The individual responsible for dispensing the medication, supplier or device.)
    • getSupplierTarget

      Returns:
      supplier The 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

      Parameters:
      value - supplier The 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

      Returns:
      whenPrepared (The time the dispense event occurred.)
    • hasWhenPrepared

      public boolean hasWhenPrepared()
    • setWhenPrepared

      Parameters:
      value - whenPrepared (The time the dispense event occurred.)
    • 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

      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

      Returns:
      destination (Identification of the facility/location where the Supply was shipped to, as part of the dispense event.)
    • hasDestination

      public boolean hasDestination()
    • setDestination

      Parameters:
      value - destination (Identification of the facility/location where the Supply was shipped to, as part of the dispense event.)
    • getDestinationTarget

      Returns:
      destination The 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

      Parameters:
      value - destination The 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

      Returns:
      receiver (Identifies the person who picked up the Supply.)
    • hasReceiver

      public boolean hasReceiver()
    • addReceiver

      Returns:
      receiver (Identifies the person who picked up the Supply.)
    • addReceiver

    • 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

      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:
      listChildren in class DomainResource
    • setProperty

      public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fhirType

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class DomainResource
    • copy

      public SupplyDelivery copy()
      Specified by:
      copy in class DomainResource
    • typedCopy

    • equalsDeep

      public boolean equalsDeep(Base other)
      Overrides:
      equalsDeep in class DomainResource
    • equalsShallow

      public boolean equalsShallow(Base other)
      Overrides:
      equalsShallow in class DomainResource
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class DomainResource
    • getResourceType

      Specified by:
      getResourceType in class Resource