public class Notification extends AbstractNotification
| Constructor and Description |
|---|
Notification() |
Notification(String data)
Create a notification from server data.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDelete()
Returns true if the notification can be deleted.
|
boolean |
equals(Object object) |
String |
getAlertId()
Returns the unique alert id.
|
String |
getDfn()
Returns the DFN of the associated patient, if any.
|
String |
getPatientLocation()
Returns the patient's current location.
|
Priority |
getPriority()
Returns the priority of the notification.
|
String |
getType()
Returns the notification type.
|
boolean |
isActionable()
True if the notification has an associated action.
|
protected void |
setActionable(boolean actionable)
Sets the actionable state of the notification.
|
protected void |
setAlertId(String alertId)
Sets the unique alert id.
|
protected void |
setCanDelete(boolean canDelete)
Allow or disallow manual notification deletion.
|
protected void |
setDfn(String dfn)
Sets the DFN of the associated patient, if any.
|
protected void |
setPatientLocation(String patientLocation)
Sets the patient's current location.
|
protected void |
setPriority(Priority priority)
Sets the priority of the notification.
|
protected void |
setType(String type)
Sets the notification type.
|
findParam, getDeliveryDate, getDisplayText, getExtraInfo, getMessage, getParam, getPatientName, getSenderName, getSubject, hasPatient, setDeliveryDate, setExtraInfo, setMessage, setParam, setPatientName, setSenderName, setSubjectpublic Notification()
public Notification(String data)
data - Format is
1 2 3 4 5 6 7 8 9 10 11 12
Priority^Info Only^Patient Name^ Patient Location ^Subject^Date Delivered^Sender Name^DFN^Alert Type^Alert ID^Can Delete^Extra Info
public boolean isActionable()
isActionable in class AbstractNotificationprotected void setActionable(boolean actionable)
actionable - True if the notification has an associated action.public Priority getPriority()
getPriority in class AbstractNotificationprotected void setPriority(Priority priority)
setPriority in class AbstractNotificationpriority - Notification priority.public String getDfn()
getDfn in class AbstractNotificationprotected void setDfn(String dfn)
setDfn in class AbstractNotificationdfn - DFN of the associated patient (null if no patient association).public String getPatientLocation()
protected void setPatientLocation(String patientLocation)
patientLocation - Patient's location.public String getType()
protected void setType(String type)
type - The notification type.public String getAlertId()
protected void setAlertId(String alertId)
alertId - Unique alert id.public boolean canDelete()
canDelete in class AbstractNotificationprotected void setCanDelete(boolean canDelete)
canDelete - If true, the user may delete the notification manually.Copyright © 2014 Regenstrief Center for Biomedical Informatics. All rights reserved.