public interface MedicationDispenseService extends OpenmrsService
Modifier and Type | Method and Description |
---|---|
MedicationDispense |
getMedicationDispense(Integer medicationDispenseId)
Gets a MedicationDispense by id
|
List<MedicationDispense> |
getMedicationDispenseByCriteria(MedicationDispenseCriteria criteria)
Gets all MedicationDispense results that match the given criteria
|
MedicationDispense |
getMedicationDispenseByUuid(String uuid)
Gets a MedicationDispense based on the uuid
|
void |
purgeMedicationDispense(MedicationDispense medicationDispense)
Completely remove a MedicationDispense from the database.
|
MedicationDispense |
saveMedicationDispense(MedicationDispense medicationDispense)
Saves a MedicationDispense
|
MedicationDispense |
unvoidMedicationDispense(MedicationDispense medicationDispense)
Un-void a previously voided MedicationDispense
|
MedicationDispense |
voidMedicationDispense(MedicationDispense medicationDispense,
String reason)
Voids a MedicationDispense
|
onShutdown, onStartup
@Authorized(value="Get Medication Dispense") MedicationDispense getMedicationDispense(Integer medicationDispenseId)
medicationDispenseId
- the id of the MedicationDispense to retrieve@Authorized(value="Get Medication Dispense") MedicationDispense getMedicationDispenseByUuid(String uuid)
uuid
- - uuid of the MedicationDispense to be returned@Authorized(value="Get Medication Dispense") List<MedicationDispense> getMedicationDispenseByCriteria(MedicationDispenseCriteria criteria)
criteria
- - the criteria for the returned MedicationDispense results@Authorized(value="Edit Medication Dispense") MedicationDispense saveMedicationDispense(MedicationDispense medicationDispense)
medicationDispense
- - the MedicationDispense to be saved@Authorized(value="Edit Medication Dispense") MedicationDispense voidMedicationDispense(MedicationDispense medicationDispense, String reason)
medicationDispense
- the MedicationDispense to be voidedreason
- the reason for voiding the MedicationDispense@Authorized(value="Edit Medication Dispense") MedicationDispense unvoidMedicationDispense(MedicationDispense medicationDispense)
medicationDispense
- MedicationDispense to un-void@Authorized(value="Delete Medication Dispense") void purgeMedicationDispense(MedicationDispense medicationDispense)
medicationDispense
- the MedicationDispense to be purgedCopyright © 2024 OpenMRS Inc.. All rights reserved.