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 |
---|---|
Date |
getDateRetired() |
User |
getRetiredBy() |
String |
getRetireReason() |
Boolean |
isRetired() |
void |
setDateRetired(Date dateRetired) |
void |
setRetired(Boolean retired) |
void |
setRetiredBy(User retiredBy) |
void |
setRetireReason(String retireReason) |
getId, getUuid, setId, setUuid
Boolean isRetired()
void setRetired(Boolean retired)
retired
- - whether of not this object is retiredUser getRetiredBy()
void setRetiredBy(User retiredBy)
retiredBy
- - the user who retired the objectDate getDateRetired()
void setDateRetired(Date dateRetired)
dateRetired
- - the date the object was retiredString getRetireReason()
void setRetireReason(String retireReason)
retireReason
- - the reason the object was retiredCopyright © 2018 OpenMRS LLC.. All Rights Reserved.