added
July 2, 2024: Data Subscriptions API now supports referencing an existing Practitioner
6 months ago by Brian Marentay
Enrolling a patient in a ZAP Data Subscription requires specifying the practitioner with a treatment relationship to the patient. The Data Subscriptions API will now accept a reference to an existing FHIR Practitioner resource in place of the NPI, name, and role fields when creating or updating an enrollment.
POST https://zap-data-subscriptions.dev.zusapi.com/zap-data-subscriptions/enrollment-statuses
{
"data": {
"type": "patient-data-subscriptions/enrollment-status",
"attributes": {
"status": "active",
"practitioner": {
//Specify either practitioner resource-id OR an npi, name, and role
"resourceId": "{{Practitioner ID}}"
//"npi": "",
//"name": "",
//"role": ""
}
},
"relationships": {
"patient": {
"data": {
"id": "{{Patient ID}}",
"type": "fhir/Patient"
}
},
"package": {
"data": {
"id": "{{Package ID}}",
"type": "zap-data-subscriptions/package"
}
}
}
}
}
For more information on how to enroll your patients in a ZAP Data Subscription, visit our API Documentation.