The treatment_plan.lab_recommendation.updated webhook is triggered when an active treatment plan's lab recommendations are changed.
Includes adding a lab recommendation, cancelling one, or modifying its tests.
Specifically triggered by adding or removing tests, or by changes to a lab recommendation's fulfillment method, sample collection provider, or fasting requirement.
| Scopes needed: | patients:treatment_plan_history |
| Event payload: | a subset of the treatment plan object |
"event_payload": {
"event": {
"id": "x5xxxxx8-92x7-4xxx-9x0x-345x404x94x1",
"type": "treatment_plan.lab_recommendation.updated",
"created_at": "2018-10-16T04:00:00.000Z",
"clinic_id": "xx7x357x-9x36-xxxx-x553-7x3xx398xxx",
"data": {
"treatment_plan": {
"id": "xx45x0xx-x840-41xx-9922-98xx6001507x",
"state": "active",
"available_at": "2018-03-02",
"lab_recommendations": [
{
"id": "233df3fd-c41a-45e8-9091-0d420408293b",
"name": "Lab Test 1",
"requires_fasting": false,
"instructions": "Instructions for Lab Company 1",
"tests": [{
"id": "5ccf88ae-532e-41c1-9404-1142fbf7c4f7",
"name": "Basic Metabolic Panel"
}]
}
]
}
}
}
}