← Tous les contrats
OHN-57 Research, Insurance Analytics and Workforce Statistics
- Version
- 1.0.0
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-57/api/openapi.yaml- Serveurs
https://opeshealthnetwork.com
- Authentification
bearer: http bearer (JWT)
Télécharger le contrat (YAML)
Les contrats sont rédigés en anglais.
Module key `research`. Every route except `GET /health/ohn-57` needs a gateway-issued Bearer token (ES256, issuer `ohn-platform-gateway`, audience `ohn-57`; subject, `jurisdiction` and `organization_id` are UUIDs) whose role uses its
purpose of use (researcher/research, dac_member/research_governance, research_admin/research_administration,
treating_clinician/treatment, insurer_analyst/insurance_analytics, fraud_reviewer/fraud_review,
employer_analyst/workforce_statistics). Default deny: unknown route 404 (after authentication), role not listed 403 (audited), role used with another purpose 403. Every disclosure threshold (k, minimum cell, minimum group, maximum suppression) is configuration (`/config`, deployment defaults); nothing in the contract fixes one. Every write needs an
`Idempotency-Key` header. Synthetic data only.
Opérations
Autres opérations
GET/health/ohn-57Public liveness: status, module, dependencies (OHN-15, OHN-24, OHN-51: live or unconfigured), keys (pseudonym_key, link_key, export_signing_key: configured or not), writes_enabled, auth_configured, synthetic_auth (always false in Java), data (synthetic_only, or governed_release_only in production)
Réponses
| Code | Description | Type de média |
|---|
200 | OK | — |
503 | Database unavailable | — |
GET/api/ohn/v1/research/contextRole
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
200 | OK | — |
GET/api/ohn/v1/research/configDisclosure configuration
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
200 | OK | |
PUT/api/ohn/v1/research/configUpdate disclosure configuration (research_admin)
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Saved | — |
409 | Error | |
422 | Error | |
GET/api/ohn/v1/research/studiesStudies (own organisation; committee sees all)
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
200 | OK | — |
POST/api/ohn/v1/research/studiesRegister a study with ethics evidence (researcher)
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Registered | — |
409 | Error | |
422 | Invalid or ethics not current | — |
GET/api/ohn/v1/research/studies/{id}Study detail with requests
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | OK | |
404 | Error | |
POST/api/ohn/v1/research/studies/{id}/stateSuspend, reinstate or close (dac_member, research_admin)
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Changed | — |
409 | Error | |
POST/api/ohn/v1/research/studies/{id}/access-requestsAsk the data access committee (researcher)
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Submitted | — |
409 | Study not active or ethics not current | — |
GET/api/ohn/v1/research/access-requestsAccess requests with votes
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
state | query | "submitted" | "approved" | "rejected" | "withdrawn" | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | OK | |
POST/api/ohn/v1/research/access-requests/{id}/withdrawWithdraw a waiting request (researcher)
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Withdrawn | — |
409 | Error | |
POST/api/ohn/v1/research/access-requests/{id}/decisionsCommittee vote (dac_member). N distinct approvals approve; one rejection rejects; requester cannot vote.
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Recorded | — |
403 | Conflict of interest | — |
409 | Already decided or not waiting | — |
GET/api/ohn/v1/research/studies/{id}/workspace/queriesQuery log (append-only)
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | OK | — |
POST/api/ohn/v1/research/studies/{id}/workspace/queriesAggregate-only workspace query over approved variables; logged
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Suppressed aggregates | |
403 | Not approved or variable not approved | — |
POST/api/ohn/v1/research/cohort-countsSuppressed feasibility count (researcher); logged
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Count | |
GET/api/ohn/v1/research/trialsTrials
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
200 | OK | — |
POST/api/ohn/v1/research/trialsConfigure a trial (researcher, study registered with current approval)
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Draft created | — |
GET/api/ohn/v1/research/trials/{id}Trial with suppressed outcome counts
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | OK | |
POST/api/ohn/v1/research/trials/{id}/statedraft -> recruiting -> closed (researcher)
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Changed | — |
409 | Error | |
GET/api/ohn/v1/research/trials/{id}/eligibilityEligibility counts only (suppressed)
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | OK | |
POST/api/ohn/v1/research/trials/{id}/contact-requestsRoute contact requests to treating clinicians for patients with OHN-15 research_contact permit (researcher)
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Suppressed counts | |
409 | Trial not recruiting | — |
503 | OHN-15 unavailable; nothing stored | — |
GET/api/ohn/v1/research/contact-requestsThe treating clinician's own contact requests (only place a patient is named)
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
state | query | "awaiting_clinician" | "contacted" | "patient_interested" | "patient_declined" | "not_appropriate" | "consent_withdrawn" | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | OK | |
POST/api/ohn/v1/research/contact-requests/{id}/outcomeRecord contact outcome (treating_clinician); consent rechecked before 'contacted'
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Recorded | — |
409 | invalid_transition | — |
503 | OHN-15 unavailable | — |
GET/api/ohn/v1/research/fraud/rulesInsurer fraud rules
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
200 | OK | — |
PUT/api/ohn/v1/research/fraud/rulesCreate or update one rule (insurer_analyst)
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Saved | — |
409 | Error | |
422 | Error | |
GET/api/ohn/v1/research/fraud/scansRecent scans
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
200 | OK | — |
POST/api/ohn/v1/research/fraud/scansScan the insurer's OHN-51 claims with enabled rules (insurer_analyst). Never changes a claim.
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Scan result | — |
409 | No rules configured | — |
503 | OHN-51 unavailable | — |
GET/api/ohn/v1/research/fraud/flagsReviewer queue
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
state | query | "open" | "under_review" | "cleared" | "referred_for_investigation" | non | |
rule_type | query | "duplicate_claim" | "impossible_volume" | "outlier_provider" | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | OK | |
GET/api/ohn/v1/research/fraud/flags/{id}Flag with history
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | OK | — |
POST/api/ohn/v1/research/fraud/flags/{id}/transitionReview a flag (fraud_reviewer)
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Changed | — |
409 | Error | |
GET/api/ohn/v1/research/insights/population-riskAnonymous aggregates of the insurer's own members (insurer_analyst)
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
dimension | query | "age_band" | "sex" | "region" | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | OK | |
GET/api/ohn/v1/research/insights/workforceAnonymous workforce statistics for the employer's own workforce (employer_analyst)
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
dimension | query | "age_band" | "sex" | "region" | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | OK | |
POST/api/ohn/v1/research/mart/subjectsIngest synthetic subject records (research_admin)
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Upserted | — |
POST/api/ohn/v1/research/admin/synthetic-loadGenerate synthetic subjects (research_admin, non-production only)
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Loaded | — |
404 | Not available in production or unless ohn.m57.synthetic-load-enabled is true | — |
GET/api/ohn/v1/research/mart/summaryData mart counts (dac_member
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
200 | OK | — |
GET/api/ohn/v1/research/auditAudit records (research_admin
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
200 | OK | — |
POST/api/ohn/v1/research/admin/outbox/relayRelay pending events to OHN-24 (research_admin)
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Relay result | — |
Schémas
Error
| Nom | Type | Obligatoire | Description |
|---|
type | string | non | |
title | string | non | |
status | integer | non | |
detail | string | non | |
error | string | oui | |
message | string | non | |
trace_id | string | non | |
setting | string | non | |
dependency | string | non | |
current_version | integer | non | |
k_required | integer | non | |
receipt_id | string (uuid) | non | |
details | any | non | For a 422: the first failing check per top-level field as a zod issue code (invalid_type, too_small, too_big, invalid_string, invalid_enum_value, invalid_literal); unknown keys under _ as unrecognized_keys. |
Receipt
| Nom | Type | Obligatoire | Description |
|---|
receipt_id | string (uuid) | non | |
committed_at | string (date-time) | non | |
aggregate_id | string | null | non | |
aggregate_type | string | non | |
status | "committed" | "denied" | "refused" | non | |
Published
| Nom | Type | Obligatoire | Description |
|---|
count | integer | null | oui | |
suppressed | boolean | oui | |
below | integer | non | |
Cell
| Nom | Type | Obligatoire | Description |
|---|
key | object | oui | |
count | integer | null | oui | |
suppressed | boolean | oui | |
Criteria
| Nom | Type | Obligatoire | Description |
|---|
sex | "female" | "male" | "other" | "unknown" | non | |
age_min | integer | non | |
age_max | integer | non | |
regions | array of string | non | |
conditions_any | array of string | non | |
conditions_all | array of string | non | |
conditions_none | array of string | non | |
SubjectRecord
| Nom | Type | Obligatoire | Description |
|---|
patient_id | string (uuid) | oui | |
birth_year | integer | oui | |
sex | "female" | "male" | "other" | "unknown" | oui | |
region | string | oui | |
conditions | array of string | oui | |
treating_clinician_id | string | null (uuid) | oui | |
treating_org_id | string | null (uuid) | oui | |
employer_org_id | string | null (uuid) | oui | |
insurer_org_id | string | null (uuid) | oui | |
Config
Disclosure thresholds of the jurisdiction. Until an administrator configures them (version 0, source default) the deployment defaults apply; if a default is not configured the answer is 503 not_configured and nothing is disclosed.
| Nom | Type | Obligatoire | Description |
|---|
k_anonymity | integer | oui | |
min_cell | integer | oui | |
insurer_min_cell | integer | oui | |
employer_min_group | integer | oui | |
max_suppression_pct | integer | oui | |
version | integer | non | |
source | "configured" | "default" | non | |
Study
| Nom | Type | Obligatoire | Description |
|---|
id | string (uuid) | non | |
title | string | non | |
summary | string | non | |
state | "registered" | "suspended" | "closed" | non | |
ethics_committee | string | non | |
ethics_reference | string | non | |
ethics_approved_on | string (date) | non | |
ethics_expires_on | string (date) | non | |
ethics_evidence_ref | string | non | |
ethics_evidence_sha256 | string | non | |
ethics_current | boolean | non | |
version | integer | non | |
AccessRequest
| Nom | Type | Obligatoire | Description |
|---|
id | string (uuid) | non | |
study_id | string (uuid) | non | |
kind | "extract" | "workspace" | non | |
variables | array of "age_band" | "sex" | "region" | "conditions" | non | |
justification | string | non | |
state | "submitted" | "approved" | "rejected" | "withdrawn" | non | |
approvals | integer | non | |
approvals_required | integer | non | |
Trial
| Nom | Type | Obligatoire | Description |
|---|
id | string (uuid) | non | |
study_id | string (uuid) | non | |
title | string | non | |
registry_ref | string | null | non | |
criteria | Criteria | non | |
state | "draft" | "recruiting" | "closed" | non | |
version | integer | non | |
FraudFlag
| Nom | Type | Obligatoire | Description |
|---|
id | string (uuid) | non | |
rule_type | "duplicate_claim" | "impossible_volume" | "outlier_provider" | non | |
claim_id | string | null (uuid) | non | |
claim_number | string | null | non | |
provider_org_id | string (uuid) | non | |
summary | string | non | |
evidence | object | non | |
score | number | non | |
state | "open" | "under_review" | "cleared" | "referred_for_investigation" | non | |
version | integer | non | |
Aggregates
| Nom | Type | Obligatoire | Description |
|---|
group_too_small | boolean | non | |
dimension | "age_band" | "sex" | "region" | non | |
members | Published | non | |
employees | Published | non | |
groups | array of Cell | non | |
conditions | array of Cell | non | |
cells | array of Cell | non | |
min_cell | integer | non | |
min_group | integer | non | |
put-api-ohn-v1-research-config.request défini sur place
| Nom | Type | Obligatoire | Description |
|---|
k_anonymity | integer | oui | |
min_cell | integer | oui | |
insurer_min_cell | integer | oui | |
employer_min_group | integer | oui | |
max_suppression_pct | integer | oui | |
version | integer | non | |
source | "configured" | "default" | non | |
expected_version | integer | oui | |
post-api-ohn-v1-research-studies.request défini sur place
post-api-ohn-v1-research-studies.request.ethics défini sur place
| Nom | Type | Obligatoire | Description |
|---|
committee | string | oui | |
reference | string | oui | |
approved_on | string (date) | oui | |
expires_on | string (date) | oui | |
evidence_ref | string | oui | |
evidence_sha256 | string | oui | |
post-api-ohn-v1-research-studies-id-state.request défini sur place
| Nom | Type | Obligatoire | Description |
|---|
state | "registered" | "suspended" | "closed" | oui | |
reason | string | oui | |
expected_version | integer | oui | |
post-api-ohn-v1-research-studies-id-access-requests.request défini sur place
| Nom | Type | Obligatoire | Description |
|---|
kind | "extract" | "workspace" | oui | |
variables | array of "age_band" | "sex" | "region" | "conditions" | oui | |
justification | string | oui | |
get-api-ohn-v1-research-access-requests.response-200 défini sur place
post-api-ohn-v1-research-access-requests-id-decisions.request défini sur place
| Nom | Type | Obligatoire | Description |
|---|
decision | "approve" | "reject" | oui | |
reason | string | oui | |
post-api-ohn-v1-research-studies-id-workspace-queries.request défini sur place
| Nom | Type | Obligatoire | Description |
|---|
request_id | string (uuid) | oui | |
criteria | Criteria | non | |
dimensions | array of "age_band" | "sex" | "region" | "condition" | non | |
post-api-ohn-v1-research-studies-id-workspace-queries.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
total | Published | non | |
cells | array of Cell | non | |
min_cell | integer | non | |
post-api-ohn-v1-research-cohort-counts.request défini sur place
| Nom | Type | Obligatoire | Description |
|---|
criteria | Criteria | non | |
post-api-ohn-v1-research-trials.request défini sur place
| Nom | Type | Obligatoire | Description |
|---|
study_id | string (uuid) | oui | |
title | string | oui | |
registry_ref | string | non | |
criteria | Criteria | oui | |
post-api-ohn-v1-research-trials-id-state.request défini sur place
| Nom | Type | Obligatoire | Description |
|---|
state | "recruiting" | "closed" | oui | |
expected_version | integer | oui | |
get-api-ohn-v1-research-trials-id-eligibility.response-200 défini sur place
post-api-ohn-v1-research-trials-id-contact-requests.response-200 défini sur place
post-api-ohn-v1-research-contact-requests-id-outcome.request défini sur place
| Nom | Type | Obligatoire | Description |
|---|
outcome | "contacted" | "patient_interested" | "patient_declined" | "not_appropriate" | oui | |
note | string | non | |
expected_version | integer | oui | |
get-api-ohn-v1-research-fraud-flags.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
items | array of FraudFlag | non | |
note | string | non | |
post-api-ohn-v1-research-fraud-flags-id-transition.request défini sur place
| Nom | Type | Obligatoire | Description |
|---|
to | "under_review" | "cleared" | "referred_for_investigation" | oui | |
note | string | oui | |
expected_version | integer | oui | |
post-api-ohn-v1-research-mart-subjects.request défini sur place
| Nom | Type | Obligatoire | Description |
|---|
source | string | oui | |
synthetic | true | oui | |
records | array of SubjectRecord | oui | |
post-api-ohn-v1-research-admin-synthetic-load.request défini sur place
post-api-ohn-v1-research-admin-synthetic-load.request.treating.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
clinician_id | string (uuid) | oui | |
org_id | string (uuid) | oui | |
FraudRule.params.option-1 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
window_days | integer | oui | |
FraudRule.params.option-2 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
max_units_per_provider_day | integer | oui | |
service_codes | array of string | non | |
FraudRule.params.option-3 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
z_threshold | number | oui | |
min_providers | integer | oui | |
min_claims_per_provider | integer | oui | |