Hi Avery, Is there an example out there that shows how the smart client can access the 'practitioner' resources ?
For example, for the patient the example app provides some API like
var patient = smart.patient; |
var pt
= patient.
read();
if (smart.hasOwnProperty('patient')) { $.when(pt).fail(onError); $.when(pt).done(function(patient) { // do whatever with the patient resources }); |
Is there something similar for practitioner ?
something like below ? or what is the equivalent ?
if (smart.hasOwnProperty('practitioner')) {
var prac = smart.practitioner; |
$.when(pr).fail(onError); |
$.when(pr).done(function(practitioner) { |
alert("Practitioner Bundle read = " + JSON.stringify(practitioner)); |
}
if (smart.hasOwnProperty('practitioner')) { |