Package com.ibm.fhir.model.resource
Class MedicationDispense
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.resource.Resource
-
- com.ibm.fhir.model.resource.DomainResource
-
- com.ibm.fhir.model.resource.MedicationDispense
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class MedicationDispense extends DomainResource
Indicates that a medication product is to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order.Maturity level: FMM2 (Trial Use)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MedicationDispense.Builder
static class
MedicationDispense.Performer
Indicates who or what performed the event.static class
MedicationDispense.Substitution
Indicates whether or not substitution was made as part of the dispense.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static MedicationDispense.Builder
builder()
boolean
equals(Object obj)
List<Reference>
getAuthorizingPrescription()
Indicates the medication order that is being dispensed against.CodeableConcept
getCategory()
Indicates the type of medication dispense (for example, where the medication is expected to be consumed or administered (i.e.Reference
getContext()
The encounter or episode of care that establishes the context for this event.SimpleQuantity
getDaysSupply()
The amount of medication expressed as a timing amount.Reference
getDestination()
Identification of the facility/location where the medication was shipped to, as part of the dispense event.List<Reference>
getDetectedIssue()
Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g.List<Dosage>
getDosageInstruction()
Indicates how the medication is to be used by the patient.List<Reference>
getEventHistory()
A summary of the events of interest that have occurred, such as when the dispense was verified.List<Identifier>
getIdentifier()
Identifiers associated with this Medication Dispense that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate.Reference
getLocation()
The principal physical location where the dispense was performed.Element
getMedication()
Identifies the medication being administered.List<Annotation>
getNote()
Extra information about the dispense that could not be conveyed in the other attributes.List<Reference>
getPartOf()
The procedure that trigger the dispense.List<MedicationDispense.Performer>
getPerformer()
Indicates who or what performed the event.SimpleQuantity
getQuantity()
The amount of medication that has been dispensed.List<Reference>
getReceiver()
Identifies the person who picked up the medication.MedicationDispenseStatus
getStatus()
A code specifying the state of the set of dispense events.Element
getStatusReason()
Indicates the reason why a dispense was not performed.Reference
getSubject()
A link to a resource representing the person or the group to whom the medication will be given.MedicationDispense.Substitution
getSubstitution()
Indicates whether or not substitution was made as part of the dispense.List<Reference>
getSupportingInformation()
Additional information that supports the medication being dispensed.CodeableConcept
getType()
Indicates the type of dispensing event that is performed.DateTime
getWhenHandedOver()
The time the dispensed product was provided to the patient or their representative.DateTime
getWhenPrepared()
The time when the dispensed product was packaged and reviewed.boolean
hasChildren()
int
hashCode()
MedicationDispense.Builder
toBuilder()
Create a new Builder from the contents of this Resource-
Methods inherited from class com.ibm.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class com.ibm.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
Identifiers associated with this Medication Dispense that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.- Returns:
- An unmodifiable list containing immutable objects of type
Identifier
that may be empty.
-
getPartOf
public List<Reference> getPartOf()
The procedure that trigger the dispense.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getStatus
public MedicationDispenseStatus getStatus()
A code specifying the state of the set of dispense events.- Returns:
- An immutable object of type
MedicationDispenseStatus
that is non-null.
-
getStatusReason
public Element getStatusReason()
Indicates the reason why a dispense was not performed.- Returns:
- An immutable object of type
CodeableConcept
orReference
that may be null.
-
getCategory
public CodeableConcept getCategory()
Indicates the type of medication dispense (for example, where the medication is expected to be consumed or administered (i.e. inpatient or outpatient)).- Returns:
- An immutable object of type
CodeableConcept
that may be null.
-
getMedication
public Element getMedication()
Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.- Returns:
- An immutable object of type
CodeableConcept
orReference
that is non-null.
-
getSubject
public Reference getSubject()
A link to a resource representing the person or the group to whom the medication will be given.- Returns:
- An immutable object of type
Reference
that may be null.
-
getContext
public Reference getContext()
The encounter or episode of care that establishes the context for this event.- Returns:
- An immutable object of type
Reference
that may be null.
-
getSupportingInformation
public List<Reference> getSupportingInformation()
Additional information that supports the medication being dispensed.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getPerformer
public List<MedicationDispense.Performer> getPerformer()
Indicates who or what performed the event.- Returns:
- An unmodifiable list containing immutable objects of type
MedicationDispense.Performer
that may be empty.
-
getLocation
public Reference getLocation()
The principal physical location where the dispense was performed.- Returns:
- An immutable object of type
Reference
that may be null.
-
getAuthorizingPrescription
public List<Reference> getAuthorizingPrescription()
Indicates the medication order that is being dispensed against.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getType
public CodeableConcept getType()
Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.- Returns:
- An immutable object of type
CodeableConcept
that may be null.
-
getQuantity
public SimpleQuantity getQuantity()
The amount of medication that has been dispensed. Includes unit of measure.- Returns:
- An immutable object of type
SimpleQuantity
that may be null.
-
getDaysSupply
public SimpleQuantity getDaysSupply()
The amount of medication expressed as a timing amount.- Returns:
- An immutable object of type
SimpleQuantity
that may be null.
-
getWhenPrepared
public DateTime getWhenPrepared()
The time when the dispensed product was packaged and reviewed.- Returns:
- An immutable object of type
DateTime
that may be null.
-
getWhenHandedOver
public DateTime getWhenHandedOver()
The time the dispensed product was provided to the patient or their representative.- Returns:
- An immutable object of type
DateTime
that may be null.
-
getDestination
public Reference getDestination()
Identification of the facility/location where the medication was shipped to, as part of the dispense event.- Returns:
- An immutable object of type
Reference
that may be null.
-
getReceiver
public List<Reference> getReceiver()
Identifies the person who picked up the medication. This will usually be a patient or their caregiver, but some cases exist where it can be a healthcare professional.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getNote
public List<Annotation> getNote()
Extra information about the dispense that could not be conveyed in the other attributes.- Returns:
- An unmodifiable list containing immutable objects of type
Annotation
that may be empty.
-
getDosageInstruction
public List<Dosage> getDosageInstruction()
Indicates how the medication is to be used by the patient.- Returns:
- An unmodifiable list containing immutable objects of type
Dosage
that may be empty.
-
getSubstitution
public MedicationDispense.Substitution getSubstitution()
Indicates whether or not substitution was made as part of the dispense. In some cases, substitution will be expected but does not happen, in other cases substitution is not expected but does happen. This block explains what substitution did or did not happen and why. If nothing is specified, substitution was not done.- Returns:
- An immutable object of type
MedicationDispense.Substitution
that may be null.
-
getDetectedIssue
public List<Reference> getDetectedIssue()
Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. drug-drug interaction, duplicate therapy, dosage alert etc.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getEventHistory
public List<Reference> getEventHistory()
A summary of the events of interest that have occurred, such as when the dispense was verified.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classDomainResource
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:Visitable
Accept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }
- Specified by:
accept
in interfaceVisitable
- Specified by:
accept
in classAbstractVisitable
- Parameters:
elementName
- the name of the element in the context of this visitelementIndex
- the index of the element in a list or -1 if it is not contained within a Listvisitor
- the visitor to use
-
toBuilder
public MedicationDispense.Builder toBuilder()
Description copied from class:Resource
Create a new Builder from the contents of this Resource- Specified by:
toBuilder
in classDomainResource
-
builder
public static MedicationDispense.Builder builder()
-
-