Use shared access for synthetic breast follow-up
This commit is contained in:
+7
-13
@@ -1,14 +1,10 @@
|
||||
# Breast cohort: synthetic integration contract
|
||||
|
||||
This contract is for a synthetic source. Set `CAMA_COHORT_ACCESS_TOKEN` in
|
||||
the server environment. The token must be at least 32 ASCII
|
||||
letters, digits, underscores or hyphens. The application reads the configured CaMa database
|
||||
and checks the `X-Cama-Cohort-Token` request header on patient routes. The
|
||||
header must be supplied by a trusted server-side access boundary, never
|
||||
embedded in browser code. Without an enabled reader the aggregate returns
|
||||
503; without authorized access the patient routes return 403. This is not a
|
||||
production access policy; authorization for real patient data has not been
|
||||
implemented.
|
||||
This contract is for a synthetic source. The application reads the configured
|
||||
CaMa database through the shared persistence settings. Patient routes have
|
||||
the same application access boundary as CaCu follow-up; an optional access
|
||||
callback can apply an additional boundary. An unavailable reader returns 503.
|
||||
Authorization for real patient data has not been implemented.
|
||||
|
||||
`GET /cama/analisis/indicadores?corte=2026-10-20` returns a descriptive count
|
||||
by BI-RADS. It includes `cohorte`, `revision`, `escenario`, `corte`,
|
||||
@@ -69,13 +65,11 @@ materializes the full cohort in memory and has not been sized for production.
|
||||
|
||||
The local example `examples/serve_cama_cohort.py` accepts an existing synthetic
|
||||
SQLite file in `CAMA_SYNTHETIC_SQLITE`, opens it read-only, binds to loopback,
|
||||
and requires `CAMA_COHORT_ACCESS_TOKEN` of at least 32 characters. Send it in
|
||||
`X-Cama-Cohort-Token` for patient requests.
|
||||
and does not require cohort-specific environment variables.
|
||||
Other domain database URLs are set to isolated in-memory SQLite by the example.
|
||||
The Windows-only `fcntl` shim raises if locking is attempted: this example does
|
||||
not validate file-locking functionality.
|
||||
|
||||
`examples/serve_cama_integration.py` runs normal application configuration
|
||||
against an existing disposable SQLite copy, with a temporary token injected by
|
||||
its loopback-only test proxy. It is suitable only
|
||||
against an existing disposable SQLite copy, bound to loopback. It is suitable only
|
||||
for local synthetic integration and does not provide production authentication.
|
||||
|
||||
Reference in New Issue
Block a user