Aller au contenu

← 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

CodeDescriptionType de média
200OK—
503Database unavailable—
GET/api/ohn/v1/research/contextRole

Authentification: bearer

Réponses

CodeDescriptionType de média
200OK—
GET/api/ohn/v1/research/configDisclosure configuration

Authentification: bearer

Réponses

CodeDescriptionType de média
200OK
application/json: Config
PUT/api/ohn/v1/research/configUpdate disclosure configuration (research_admin)

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Saved—
409Error
application/json: Error
422Error
application/json: Error
GET/api/ohn/v1/research/studiesStudies (own organisation; committee sees all)

Authentification: bearer

Réponses

CodeDescriptionType de média
200OK—
POST/api/ohn/v1/research/studiesRegister a study with ethics evidence (researcher)

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Registered—
409Error
application/json: Error
422Invalid or ethics not current—
GET/api/ohn/v1/research/studies/{id}Study detail with requests

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
application/json: Study
404Error
application/json: Error
POST/api/ohn/v1/research/studies/{id}/stateSuspend, reinstate or close (dac_member, research_admin)

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Changed—
409Error
application/json: Error
POST/api/ohn/v1/research/studies/{id}/access-requestsAsk the data access committee (researcher)

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Submitted—
409Study not active or ethics not current—
GET/api/ohn/v1/research/access-requestsAccess requests with votes

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
statequery"submitted" | "approved" | "rejected" | "withdrawn"non

Réponses

CodeDescriptionType de média
200OK
POST/api/ohn/v1/research/access-requests/{id}/withdrawWithdraw a waiting request (researcher)

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Réponses

CodeDescriptionType de média
200Withdrawn—
409Error
application/json: 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

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Recorded—
403Conflict of interest—
409Already decided or not waiting—
POST/api/ohn/v1/research/studies/{id}/extractsPrepare a de-identified k-anonymous extract (researcher, approved extract request)

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Released
403Not approved—
422empty_cohort or k_anonymity_not_reachable—
503Signing key not configured—
GET/api/ohn/v1/research/extracts/{id}/downloadSigned CSV (pid, generalised approved variables only)

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200CSV
text/csv: string
409Study no longer active—
GET/api/ohn/v1/research/studies/{id}/workspace/queriesQuery log (append-only)

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200OK—
POST/api/ohn/v1/research/studies/{id}/workspace/queriesAggregate-only workspace query over approved variables; logged

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Suppressed aggregates
403Not approved or variable not approved—
POST/api/ohn/v1/research/cohort-countsSuppressed feasibility count (researcher); logged

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Count
application/json: Published
GET/api/ohn/v1/research/trialsTrials

Authentification: bearer

Réponses

CodeDescriptionType de média
200OK—
POST/api/ohn/v1/research/trialsConfigure a trial (researcher, study registered with current approval)

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Draft created—
GET/api/ohn/v1/research/trials/{id}Trial with suppressed outcome counts

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
application/json: Trial
POST/api/ohn/v1/research/trials/{id}/statedraft -> recruiting -> closed (researcher)

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Changed—
409Error
application/json: Error
GET/api/ohn/v1/research/trials/{id}/eligibilityEligibility counts only (suppressed)

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
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

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

  • application/json: object

Réponses

CodeDescriptionType de média
200Suppressed counts
409Trial not recruiting—
503OHN-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

NomEmplacementTypeObligatoireDescription
statequery"awaiting_clinician" | "contacted" | "patient_interested" | "patient_declined" | "not_appropriate" | "consent_withdrawn"non

Réponses

CodeDescriptionType de média
200OK
POST/api/ohn/v1/research/contact-requests/{id}/outcomeRecord contact outcome (treating_clinician); consent rechecked before 'contacted'

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Recorded—
409invalid_transition—
503OHN-15 unavailable—
GET/api/ohn/v1/research/fraud/rulesInsurer fraud rules

Authentification: bearer

Réponses

CodeDescriptionType de média
200OK—
PUT/api/ohn/v1/research/fraud/rulesCreate or update one rule (insurer_analyst)

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Saved—
409Error
application/json: Error
422Error
application/json: Error
GET/api/ohn/v1/research/fraud/scansRecent scans

Authentification: bearer

Réponses

CodeDescriptionType de média
200OK—
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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

  • application/json: object

Réponses

CodeDescriptionType de média
200Scan result—
409No rules configured—
503OHN-51 unavailable—
GET/api/ohn/v1/research/fraud/flagsReviewer queue

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
statequery"open" | "under_review" | "cleared" | "referred_for_investigation"non
rule_typequery"duplicate_claim" | "impossible_volume" | "outlier_provider"non

Réponses

CodeDescriptionType de média
200OK
GET/api/ohn/v1/research/fraud/flags/{id}Flag with history

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200OK—
POST/api/ohn/v1/research/fraud/flags/{id}/transitionReview a flag (fraud_reviewer)

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Changed—
409Error
application/json: Error
GET/api/ohn/v1/research/insights/population-riskAnonymous aggregates of the insurer's own members (insurer_analyst)

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
dimensionquery"age_band" | "sex" | "region"non

Réponses

CodeDescriptionType de média
200OK
application/json: Aggregates
GET/api/ohn/v1/research/insights/workforceAnonymous workforce statistics for the employer's own workforce (employer_analyst)

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
dimensionquery"age_band" | "sex" | "region"non

Réponses

CodeDescriptionType de média
200OK
application/json: Aggregates
POST/api/ohn/v1/research/mart/subjectsIngest synthetic subject records (research_admin)

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Upserted—
POST/api/ohn/v1/research/admin/synthetic-loadGenerate synthetic subjects (research_admin, non-production only)

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Loaded—
404Not 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

CodeDescriptionType de média
200OK—
GET/api/ohn/v1/research/auditAudit records (research_admin

Authentification: bearer

Réponses

CodeDescriptionType de média
200OK—
POST/api/ohn/v1/research/admin/outbox/relayRelay pending events to OHN-24 (research_admin)

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Réponses

CodeDescriptionType de média
200Relay result—

Schémas

Error

NomTypeObligatoireDescription
typestringnon
titlestringnon
statusintegernon
detailstringnon
errorstringoui
messagestringnon
trace_idstringnon
settingstringnon
dependencystringnon
current_versionintegernon
k_requiredintegernon
receipt_idstring (uuid)non
detailsanynonFor 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

NomTypeObligatoireDescription
receipt_idstring (uuid)non
committed_atstring (date-time)non
aggregate_idstring | nullnon
aggregate_typestringnon
status"committed" | "denied" | "refused"non

Published

NomTypeObligatoireDescription
countinteger | nulloui
suppressedbooleanoui
belowintegernon

Cell

NomTypeObligatoireDescription
keyobjectoui
countinteger | nulloui
suppressedbooleanoui

Criteria

NomTypeObligatoireDescription
sex"female" | "male" | "other" | "unknown"non
age_minintegernon
age_maxintegernon
regionsarray of stringnon
conditions_anyarray of stringnon
conditions_allarray of stringnon
conditions_nonearray of stringnon

SubjectRecord

NomTypeObligatoireDescription
patient_idstring (uuid)oui
birth_yearintegeroui
sex"female" | "male" | "other" | "unknown"oui
regionstringoui
conditionsarray of stringoui
treating_clinician_idstring | null (uuid)oui
treating_org_idstring | null (uuid)oui
employer_org_idstring | null (uuid)oui
insurer_org_idstring | 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.

NomTypeObligatoireDescription
k_anonymityintegeroui
min_cellintegeroui
insurer_min_cellintegeroui
employer_min_groupintegeroui
max_suppression_pctintegeroui
versionintegernon
source"configured" | "default"non

Study

NomTypeObligatoireDescription
idstring (uuid)non
titlestringnon
summarystringnon
state"registered" | "suspended" | "closed"non
ethics_committeestringnon
ethics_referencestringnon
ethics_approved_onstring (date)non
ethics_expires_onstring (date)non
ethics_evidence_refstringnon
ethics_evidence_sha256stringnon
ethics_currentbooleannon
versionintegernon

AccessRequest

NomTypeObligatoireDescription
idstring (uuid)non
study_idstring (uuid)non
kind"extract" | "workspace"non
variablesarray of "age_band" | "sex" | "region" | "conditions"non
justificationstringnon
state"submitted" | "approved" | "rejected" | "withdrawn"non
approvalsintegernon
approvals_requiredintegernon

Extract

NomTypeObligatoireDescription
idstring (uuid)non
k_requiredintegernon
k_achievedintegernon
generalisationExtract.generalisationnon
rows_totalintegernon
rows_releasedintegernon
rows_suppressedintegernon
sha256stringnon

Trial

NomTypeObligatoireDescription
idstring (uuid)non
study_idstring (uuid)non
titlestringnon
registry_refstring | nullnon
criteriaCriterianon
state"draft" | "recruiting" | "closed"non
versionintegernon

ContactRequest

Returned only to the treating clinician named on the request.

NomTypeObligatoireDescription
idstring (uuid)non
state"awaiting_clinician" | "contacted" | "patient_interested" | "patient_declined" | "not_appropriate" | "consent_withdrawn"non
patient_idstring (uuid)non
trial_titlestringnon
criteriaCriterianon
versionintegernon

FraudRule

NomTypeObligatoireDescription
rule_type"duplicate_claim" | "impossible_volume" | "outlier_provider"oui
paramsFraudRule.params.option-1 | FraudRule.params.option-2 | FraudRule.params.option-3oui
enabledbooleanoui
expected_versionintegeroui

FraudFlag

NomTypeObligatoireDescription
idstring (uuid)non
rule_type"duplicate_claim" | "impossible_volume" | "outlier_provider"non
claim_idstring | null (uuid)non
claim_numberstring | nullnon
provider_org_idstring (uuid)non
summarystringnon
evidenceobjectnon
scorenumbernon
state"open" | "under_review" | "cleared" | "referred_for_investigation"non
versionintegernon

Aggregates

NomTypeObligatoireDescription
group_too_smallbooleannon
dimension"age_band" | "sex" | "region"non
membersPublishednon
employeesPublishednon
groupsarray of Cellnon
conditionsarray of Cellnon
cellsarray of Cellnon
min_cellintegernon
min_groupintegernon

put-api-ohn-v1-research-config.request défini sur place

NomTypeObligatoireDescription
k_anonymityintegeroui
min_cellintegeroui
insurer_min_cellintegeroui
employer_min_groupintegeroui
max_suppression_pctintegeroui
versionintegernon
source"configured" | "default"non
expected_versionintegeroui

post-api-ohn-v1-research-studies.request défini sur place

NomTypeObligatoireDescription
titlestringoui
summarystringoui
ethicspost-api-ohn-v1-research-studies.request.ethicsoui

post-api-ohn-v1-research-studies.request.ethics défini sur place

NomTypeObligatoireDescription
committeestringoui
referencestringoui
approved_onstring (date)oui
expires_onstring (date)oui
evidence_refstringoui
evidence_sha256stringoui

post-api-ohn-v1-research-studies-id-state.request défini sur place

NomTypeObligatoireDescription
state"registered" | "suspended" | "closed"oui
reasonstringoui
expected_versionintegeroui

post-api-ohn-v1-research-studies-id-access-requests.request défini sur place

NomTypeObligatoireDescription
kind"extract" | "workspace"oui
variablesarray of "age_band" | "sex" | "region" | "conditions"oui
justificationstringoui

get-api-ohn-v1-research-access-requests.response-200 défini sur place

NomTypeObligatoireDescription
itemsarray of AccessRequestnon

post-api-ohn-v1-research-access-requests-id-decisions.request défini sur place

NomTypeObligatoireDescription
decision"approve" | "reject"oui
reasonstringoui

post-api-ohn-v1-research-studies-id-extracts.request défini sur place

NomTypeObligatoireDescription
request_idstring (uuid)oui
criteriaCriterianon

post-api-ohn-v1-research-studies-id-extracts.response-201 défini sur place

NomTypeObligatoireDescription
extractExtractnon
receiptReceiptnon

post-api-ohn-v1-research-studies-id-workspace-queries.request défini sur place

NomTypeObligatoireDescription
request_idstring (uuid)oui
criteriaCriterianon
dimensionsarray of "age_band" | "sex" | "region" | "condition"non

post-api-ohn-v1-research-studies-id-workspace-queries.response-200 défini sur place

NomTypeObligatoireDescription
totalPublishednon
cellsarray of Cellnon
min_cellintegernon

post-api-ohn-v1-research-cohort-counts.request défini sur place

NomTypeObligatoireDescription
criteriaCriterianon

post-api-ohn-v1-research-trials.request défini sur place

NomTypeObligatoireDescription
study_idstring (uuid)oui
titlestringoui
registry_refstringnon
criteriaCriteriaoui

post-api-ohn-v1-research-trials-id-state.request défini sur place

NomTypeObligatoireDescription
state"recruiting" | "closed"oui
expected_versionintegeroui

get-api-ohn-v1-research-trials-id-eligibility.response-200 défini sur place

NomTypeObligatoireDescription
eligiblePublishednon
with_treating_clinicianPublishednon

post-api-ohn-v1-research-trials-id-contact-requests.response-200 défini sur place

NomTypeObligatoireDescription
routed_to_cliniciansPublishednon
without_research_contact_consentPublishednon
remainingPublishednon

get-api-ohn-v1-research-contact-requests.response-200 défini sur place

NomTypeObligatoireDescription
itemsarray of ContactRequestnon

post-api-ohn-v1-research-contact-requests-id-outcome.request défini sur place

NomTypeObligatoireDescription
outcome"contacted" | "patient_interested" | "patient_declined" | "not_appropriate"oui
notestringnon
expected_versionintegeroui

get-api-ohn-v1-research-fraud-flags.response-200 défini sur place

NomTypeObligatoireDescription
itemsarray of FraudFlagnon
notestringnon

post-api-ohn-v1-research-fraud-flags-id-transition.request défini sur place

NomTypeObligatoireDescription
to"under_review" | "cleared" | "referred_for_investigation"oui
notestringoui
expected_versionintegeroui

post-api-ohn-v1-research-mart-subjects.request défini sur place

NomTypeObligatoireDescription
sourcestringoui
synthetictrueoui
recordsarray of SubjectRecordoui

post-api-ohn-v1-research-admin-synthetic-load.request défini sur place

NomTypeObligatoireDescription
countintegeroui
seedintegeroui
treatingarray of post-api-ohn-v1-research-admin-synthetic-load.request.treating.itemoui
employer_org_idsarray of string (uuid)non
insurer_org_idsarray of string (uuid)non

post-api-ohn-v1-research-admin-synthetic-load.request.treating.item défini sur place

NomTypeObligatoireDescription
clinician_idstring (uuid)oui
org_idstring (uuid)oui

Extract.generalisation défini sur place

NomTypeObligatoireDescription
levelintegernon
age_band_widthintegernon
region"exact" | "suppressed"non
sex"exact" | "suppressed"non

FraudRule.params.option-1 défini sur place

NomTypeObligatoireDescription
window_daysintegeroui

FraudRule.params.option-2 défini sur place

NomTypeObligatoireDescription
max_units_per_provider_dayintegeroui
service_codesarray of stringnon

FraudRule.params.option-3 défini sur place

NomTypeObligatoireDescription
z_thresholdnumberoui
min_providersintegeroui
min_claims_per_providerintegeroui