Difference between revisions of "The Notes API"

From OpenEMR Project Wiki
(add a note about the used database table.)
Line 4: Line 4:
  require_once("$srcdir/pnotes.inc");
  require_once("$srcdir/pnotes.inc");


Once that file is included, the following functions are available:
Thos loads up all of the functions for dealing with notes.
 
Once that is done, it is important to use the appropriate ACL checks to ensure that users who are viewing/updating/deleting notes are authorized to do so.
 
Once pnotes.inc is included, the following functions are available:


== addPnote ==
== addPnote ==

Revision as of 04:48, 6 December 2012

Using the Notes API

The Notes API is available in OpenEMR by including the following line in your code:

require_once("$srcdir/pnotes.inc");

Thos loads up all of the functions for dealing with notes.

Once that is done, it is important to use the appropriate ACL checks to ensure that users who are viewing/updating/deleting notes are authorized to do so.

Once pnotes.inc is included, the following functions are available:

addPnote

deletePnote

getPnoteById

getPnotesByUser

updatePnote

updatePnoteMessageStatus

Dependencies

The Notes API uses the database table 'pnotes' to store its data.