Docus Lab SAAS Sandbox
    Docus Lab SAAS Sandbox
    • Getting Started
    • Initial Biomarkers and Biomarker Groups Setup
    • Flow Between Lab and API
    • Limitations
    • Support
    • Patient
      • Create a patient
        POST
      • Update a patient
        PUT
      • Get patient by ID
        GET
    • Visit
      • Create visit
        POST
      • Create composite visit
        POST
      • Generate AI report
        POST
      • Get AI report by visit ID
        GET
    • Lab Test
      • Create a plain lab test
        POST
      • Create a lab test with biomarkers
        POST
      • Create bulk plain lab tests
        POST
      • Create bulk lab tests with biomarkers
        POST
      • Get lab test by ID
        GET
    • Biomarker Group
      • Create a biomarker group
        POST
      • Update a biomarker group
        PUT
      • Get biomarker group by ID
        GET
    • Biomarker
      • Create a biomarker
        POST
      • Update biomarker by ID
        PUT
      • Get biomarker by ID
        GET
    • Branch
      • Create a branch
        POST
      • Update branch by ID
        PUT
      • Get branch by ID
        GET
    • Webhooks
      • Health reports
      • Notifications
    • Schemas
      • Schemas
        • UpdateBiomarkerDto
        • CreateLabTestPlanDTO
        • UpdateBiomarkerGroupDto
        • LabTestReport
        • CreateCompositeVisitDto
        • MultipleTestIdsDto
        • CreateBulkLabTestsPlainDTO
        • CreateBulkLabTestsDTO
        • CreateBranchDto
        • UpdateBranchDto
        • Biomarker
        • CreateBiomarkerGroupDto
        • CreateBiomarkerDto
        • SingleReport
        • CreatePatientDto
        • UpdatePatientDto
        • CreateVisitDto
        • CreateLabTestDTO

    Flow Between Lab and API

    The Docus Lab API is designed to streamline the interaction between medical laboratories and external systems by handling patient data, lab test results, AI-generated reports, and file attachments efficiently. Below is the structured flow describing how a lab interacts with the API.

    1. Lab Conducts a Test and Sends Data to Docus Lab API#

    When a lab processes a patient's test, it collects and organizes biomarker data along with visit details (e.g., patient info, test date, and physician details).
    šŸ“¤ Lab sends a new patient request to Docus Lab API:
    Create a patient
    šŸ“¤ Lab sends a new visit request to Docus Lab API:
    Create visit
    šŸ“¤ Lab recives frontend access for the user and (optional) physician from Docus Lab API:
    Create visit
    šŸ“¤ Lab sends test results:
    Create a lab test
    šŸ“¤ Lab triggers AI report generation:
    Generate AI report

    2. Docus Lab API Stores Data and Triggers AI Report Generation#

    After receiving the test results:
    1.
    The API stores visit and test data in the database.
    2.
    A background job is triggered to generate an AI-enhanced lab report.
    This process may take a few minutes depending on system load and complexity.
    3.
    The API provides user access for the frontend dashboard.

    3. Docus Frontend Solution Retrieves AI Report and Uses It#

    Once the AI report is ready, the system retrieves it for:
    Displaying in a dashboard
    Integrating into a patient's medical record

    4. Docus Frontend Solution Retrieves Original Test Report (If Needed)#

    If the lab initially uploaded a PDF or other file, it can be retrieved and shown in frontend.

    Summary of Workflow#

    Lab registers the patient
    Lab registers the visit
    Lab submits test results
    (Optional) Lab uploads test report file
    Docus Lab API triggers AI report generation in the background
    Docus Lab API provides access information for the according users
    Once ready, the AI report is retrieved and shown in frontend

    General flow#

    Modified atĀ 2025-07-29 13:15:40
    Previous
    Initial Biomarkers and Biomarker Groups Setup
    Next
    Limitations
    Built with