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 onException
void createNote(Note note) throws Exception
note
- the Note being createdException
Note getNote(Integer noteId) throws Exception
noteId
- the internal primary key identifier for a NoteException
void 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 APIException
Copyright © 2016 OpenMRS Inc.. All rights reserved.