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() |
Boolean |
getRetired() |
User |
getRetiredBy() |
String |
getRetireReason() |
Boolean |
isRetired()
Deprecated.
as of 2.0, use
getRetired() |
void |
setDateRetired(Date dateRetired) |
void |
setRetired(Boolean retired) |
void |
setRetiredBy(User retiredBy) |
void |
setRetireReason(String retireReason) |
getId, getUuid, setId, setUuid
@Deprecated Boolean isRetired()
getRetired()
Boolean getRetired()
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 © 2024 OpenMRS Inc.. All rights reserved.