Skip to main content

API Reference

Proteus Bridge exposes a REST interface to interact with the configured PACS nodes. All requests (except /healthz) must include the security token in the authorization header.

Authentication​

All requests must include the Authorization header:

Authorization: Bearer <CONFIG_TOKEN>

Where <CONFIG_TOKEN> is the value defined in the global token field in config.yaml.


/find/all/studies [POST]​

Searches studies on all configured nodes in parallel.

  • Body (JSON): FindStudiesPayload (see below).
  • Response: Returns a combined list of all studies found.

/find/first/studies [POST]​

Searches studies sequentially. Stops and returns results from the first node that finds matches.

  • Purpose: Reduce PACS load when only a single match is needed.

/find/all/series [POST]​

Searches series on all configured nodes in parallel.

/find/first/series [POST]​

Searches series sequentially, returning results from the first node with a successful response.


/viewer [POST]​

Generates a dynamic link to the viewer or print (film) system.

  • Body (JSON):
    {
    "iuids": ["1.2.3.4"],
    "source": "SiteA",
    "isMobile": false,
    "duration": 15778800
    }
  • Logic:
    • If the study contains the KO (Key Object) modality, the node's film template is used.
    • Otherwise, the viewer template is used.
    • If the template contains %token%, the bridge requests a temporary token from the PACS before returning the URL.

Utilities​

/healthz [GET]​

Public endpoint (no authentication) to check the bridge's status.

  • Response:
    {
    "status": "ok",
    "version": "0.1.2"
    }

Data Structures (Payloads)​

FindStudiesPayload​

FieldTypeDescription
studyIuidarray<string>List of Study Instance UIDs.
patNamestringPatient name.
patIdstringPatient ID.
accessionNostringAccession number.
studyDatestringStudy date (YYYYMMDD).
limitnumberResult limit per node.
offsetnumberPagination offset.
sortobject{ "by": "studyDate", "desc": true }.