BioFlow Requirements
System Test Specifications
  • SYS-001
    reviewed 1. First-launch readiness for local enrolment UID: SYS-001 RELATIONS (Child): STATEMENT:

    When the device is opened on a workstation that has no pre-existing BioFlow data directory, a default local clinic shall be present and immediately available for the clinician to attach newly-enrolled patient records, without requiring the clinician to first create or configure a clinic record manually.

    RATIONALE:

    Stakeholder commitment: clinicians installing the device on a fresh workstation expect to enrol their first patient within minutes of starting the application, without learning a separate clinic-management workflow as a prerequisite. Auto-provisioning a default local clinic removes that friction.

    TYPE:

    functional

    ACTIVE:

    true

    REVIEWED_HASH:

    c22a517f428da0e422be230bae3d28a2b6c6f69e823c99a130b08e26cedb6c22

    REVIEWED_BY:

    @DougYoungberg

  • SRS-001
    reviewed 1. First-launch database initialisation UID: SRS-001 RELATIONS (Parent): RELATIONS (Child): STATEMENT:

    On first launch, when no database file exists at the configured application data path, the software shall create the local database, apply the current schema version, and create a default local clinic record that serves as the container for locally-created patient records.

    RATIONALE:

    Refines SYS-001: the software-level mechanism that realises the device's first-launch readiness commitment. Establishes the minimum persistent state required for any subsequent clinical operation — without it, patient records cannot be stored and recording sessions cannot be attached to a patient.

    TYPE:

    functional

    ACTIVE:

    true

    REVIEWED_HASH:

    b2dacb9770834083552885f0b26dfd623390ebf0a0cfa890795079d5b9acb043

    REVIEWED_BY:

    @DougYoungberg

    NOTES:

    coverage-plan: ST-001 on clean install — fresh workstation, first launch, verify the local clinic is visible in the Patients menu.

ST-001
reviewedPassed 1. Local clinic visible in Patients menu UID: ST-001 RELATIONS (Parent): STATEMENT:

With the application launched on a workstation that has no pre-existing BioFlow data directory, navigate to the Patients menu and open the clinics dropdown. The local clinic entry shall be visible in the dropdown.

TEST_METHOD:

automated

TEST_TOOL:

VisionTrace

ACCEPTANCE_CRITERIA:

Preconditions: application is launched on a clean workstation (no prior data directory); the main screen is visible. Steps: navigate to the Patients menu; open the clinics dropdown. Verification: a VisionTrace AI agent.verify(...) call confirms the local clinic is visible in the dropdown. No error dialog appears during launch or navigation.

ACTIVE:

true

REVIEWED_HASH:

362fe8cf9e9bbd843a2b2a0ad5eb7883748412bdbb21fff6694b075908e40dfe

REVIEWED_BY:

@DougYoungberg

NOTES:

Launching the application on a clean workstation is a test precondition handled by the VisionTrace app_session fixture, not a step in the test body. Test code lives in this repo at visiontrace_tests/bioflow/st001/, decorated with @visiontrace_test_case("ST-001"). The agent.verify(...) call takes a screenshot of the current UI and asks an AI model to confirm the described condition — for this test, that the local clinic is present in the dropdown. Running this test in CI requires VisionTrace to be installed in the CI environment and a Windows runner with a usable desktop session. Multi-link verifies SYS-001 (operator can enrol on first launch) and SRS-001 (software creates default clinic); both close via this same end-to-end observation.