The Notes API
From OpenEMR Project Wiki
Using the Notes API
The notes api is available in Openemr by including the following line in your code:
require_once("$srcdir/pnotes.inc");
Once that file is included, the following functions are available: