Flow Between Lab and API
1. Lab Conducts a Test and Sends Data to Docus Lab API
POST /visits
201 Created
(if successful)POST /lab-results
201 Created
POST /attachments
201 Created
2. Docus Lab API Stores Data and Triggers AI Report Generation
1.
2.
3.
3. External System Checks AI Report Status
GET /lab-results/report/{visit_id}
{ "ready": false, "status": "Processing" }
{ "ready": true, "status": "Completed", "report": { ... } }
4. External System Retrieves AI Report and Uses It
GET /lab-results/report/{visit_id}
5. External System Retrieves Original Test Report (If Needed)
GET /attachments/{visit_id}
Summary of Workflow
POST /visits
)POST /lab-results
)POST /attachments
)GET /lab-results/report/{visit_id}
)GET /attachments/{visit_id}
)Benefits of Docus Lab API
General flow
Modified atĀ 2025-03-04 08:43:20