Javascript client for CaboLabs EHRServer
See index.html
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="ehrserver_ajax_client.js"></script>
var ehrserver = ehrserver_ajax_client;
ehrserver.init('http://localhost:8090'); // change for the IP or domain of your server
Get patient list, and show the result in a textarea with id=out
ehrserver.patients(
function(data) {
$('#out').text( JSON.stringify(data, null, " ") )
}
);