org.openmrs
Interface Voidable

All Superinterfaces:
OpenmrsObject
All Known Subinterfaces:
OpenmrsData
All Known Implementing Classes:
ActiveListItem, Allergy, BaseOpenmrsData, Cohort, ConceptName, ConceptNameTag, ConceptSource, DrugOrder, Encounter, Obs, Order, Patient, PatientIdentifier, PatientProgram, PatientState, Person, PersonAddress, PersonAttribute, PersonName, Problem, Relationship

public interface Voidable
extends OpenmrsObject

In OpenMRS, data are rarely fully deleted (purged) from the system; rather, they are either voided or retired. When data can be removed (effectively deleted from the user's perspective), then they are voidable. Voided data are no longer valid and references from other non-voided data are not valid. For example, when duplicate patient records are merged, the record that is not kept is voided (invalidated). Unlike Retireable, voiding data invalidates any data referencing them. e.g., when a patient is voided, all observations for that patient must be voided as well.

Since:
1.5
See Also:
OpenmrsData, Retireable

Method Summary
 java.util.Date getDateVoided()
           
 User getVoidedBy()
           
 java.lang.String getVoidReason()
           
 java.lang.Boolean isVoided()
           
 void setDateVoided(java.util.Date dateVoided)
           
 void setVoided(java.lang.Boolean voided)
           
 void setVoidedBy(User voidedBy)
           
 void setVoidReason(java.lang.String voidReason)
           
 
Methods inherited from interface org.openmrs.OpenmrsObject
getId, getUuid, setId, setUuid
 

Method Detail

isVoided

java.lang.Boolean isVoided()
Returns:
Boolean - whether of not this object is voided

setVoided

void setVoided(java.lang.Boolean voided)
Parameters:
voided - - whether of not this object is voided

getVoidedBy

User getVoidedBy()
Returns:
User - the user who voided the object

setVoidedBy

void setVoidedBy(User voidedBy)
Parameters:
voidedBy - - the user who voided the object

getDateVoided

java.util.Date getDateVoided()
Returns:
Date - the date the object was voided

setDateVoided

void setDateVoided(java.util.Date dateVoided)
Parameters:
dateVoided - - the date the object was voided

getVoidReason

java.lang.String getVoidReason()
Returns:
String - the reason the object was voided

setVoidReason

void setVoidReason(java.lang.String voidReason)
Parameters:
voidReason - - the reason the object was voided

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change