public interface Retireable extends OpenmrsObject
OpenmrsMetadata
). For
example, an encounter form type or a patient attribute type may no longer be valid but cannot be
removed because there are (and may be in perpetuity) data previously collected using these
metadata. Making these metadata Retirable allows them to be retired, meaning that existing
references remain valid but future references are not allowed.OpenmrsMetadata
,
Voidable
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getDateRetired() |
User |
getRetiredBy() |
java.lang.String |
getRetireReason() |
java.lang.Boolean |
isRetired() |
void |
setDateRetired(java.util.Date dateRetired) |
void |
setRetired(java.lang.Boolean retired) |
void |
setRetiredBy(User retiredBy) |
void |
setRetireReason(java.lang.String retireReason) |
getId, getUuid, setId, setUuid
java.lang.Boolean isRetired()
void setRetired(java.lang.Boolean retired)
retired
- - whether of not this object is retiredUser getRetiredBy()
void setRetiredBy(User retiredBy)
retiredBy
- - the user who retired the objectjava.util.Date getDateRetired()
void setDateRetired(java.util.Date dateRetired)
dateRetired
- - the date the object was retiredjava.lang.String getRetireReason()
void setRetireReason(java.lang.String retireReason)
retireReason
- - the reason the object was retiredCopyright © 2018 OpenMRS Inc.. All Rights Reserved.