public interface NoteService
| Modifier and Type | Method and Description |
|---|---|
void |
createNote(Note note)
Creates a Note for a user.
|
Note |
getNote(Integer noteId)
Gets a note by internal primary key identifier
|
List<Note> |
getNotes(User user)
Get all Notes for a given user, Does not return voided notes.
|
void |
updateNote(Note note)
Save or update the given
note in the database |
Note |
voidNote(Note note,
String reason)
Mark a note as voided.
|
@Authorized(value="Get Notes") List<Note> getNotes(User user) throws Exception
user - the user to match onExceptionvoid createNote(Note note) throws Exception
note - the Note being createdExceptionNote getNote(Integer noteId) throws Exception
noteId - the internal primary key identifier for a NoteExceptionvoid updateNote(Note note) throws Exception
note in the database note - note being updatedException@Authorized(value="Delete Notes") Note voidNote(Note note, String reason) throws APIException
note - note being voidedreason - a reason for the the void action APIExceptionCopyright © 2016 OpenMRS Inc.. All rights reserved.