@Transactional public class MedicationDispenseServiceImpl extends BaseOpenmrsService implements MedicationDispenseService
MedicationDispenseService
interface
It defines the API for interacting with MedicationDispense objects.Constructor and Description |
---|
MedicationDispenseServiceImpl() |
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
|
MedicationDispenseDAO |
getMedicationDispenseDAO() |
void |
purgeMedicationDispense(MedicationDispense medicationDispense)
Completely remove a MedicationDispense from the database.
|
MedicationDispense |
saveMedicationDispense(MedicationDispense medicationDispense)
Saves a MedicationDispense
|
void |
setMedicationDispenseDAO(MedicationDispenseDAO conditionDAO) |
MedicationDispense |
unvoidMedicationDispense(MedicationDispense medicationDispense)
Un-void a previously voided MedicationDispense
|
MedicationDispense |
voidMedicationDispense(MedicationDispense medicationDispense,
String reason)
Voids a MedicationDispense
|
onShutdown, onStartup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onShutdown, onStartup
public void setMedicationDispenseDAO(MedicationDispenseDAO conditionDAO)
public MedicationDispenseDAO getMedicationDispenseDAO()
@Transactional(readOnly=true) public MedicationDispense getMedicationDispense(Integer medicationDispenseId)
MedicationDispenseService
getMedicationDispense
in interface MedicationDispenseService
medicationDispenseId
- the id of the MedicationDispense to retrieve@Transactional(readOnly=true) public MedicationDispense getMedicationDispenseByUuid(String uuid)
MedicationDispenseService
getMedicationDispenseByUuid
in interface MedicationDispenseService
uuid
- - uuid of the MedicationDispense to be returned@Transactional(readOnly=true) public List<MedicationDispense> getMedicationDispenseByCriteria(MedicationDispenseCriteria criteria)
MedicationDispenseService
getMedicationDispenseByCriteria
in interface MedicationDispenseService
criteria
- - the criteria for the returned MedicationDispense resultspublic MedicationDispense saveMedicationDispense(MedicationDispense medicationDispense)
MedicationDispenseService
saveMedicationDispense
in interface MedicationDispenseService
medicationDispense
- - the MedicationDispense to be savedpublic MedicationDispense voidMedicationDispense(MedicationDispense medicationDispense, String reason)
MedicationDispenseService
voidMedicationDispense
in interface MedicationDispenseService
medicationDispense
- the MedicationDispense to be voidedreason
- the reason for voiding the MedicationDispensepublic MedicationDispense unvoidMedicationDispense(MedicationDispense medicationDispense)
MedicationDispenseService
unvoidMedicationDispense
in interface MedicationDispenseService
medicationDispense
- MedicationDispense to un-voidpublic void purgeMedicationDispense(MedicationDispense medicationDispense) throws APIException
MedicationDispenseService
purgeMedicationDispense
in interface MedicationDispenseService
medicationDispense
- the MedicationDispense to be purgedAPIException
Copyright © 2024 OpenMRS Inc.. All rights reserved.