Aller au contenu

← Tous les contrats

OHN-03 Master Patient Index (MPI)

Version
1.0.0
OpenAPI
3.1.0
Source dans le dépôt
modules/OHN-03/api/openapi.yaml
Serveurs
https://opeshealthnetwork.com/api/ohn/v1
Authentification
gatewayToken: http bearer (JWT)

Télécharger le contrat (YAML)

Les contrats sont rédigés en anglais.

Written from the observed behaviour of the TypeScript reference (backend/modules/ohn-03, 2026-11-17). Every route requires a token scoped to ONE jurisdiction (UUID claim); the wildcard is refused (403 forbidden). A different x-ohn-purpose header than the token purpose is refused (403 purpose_mismatch). A record of another jurisdiction is reported as not found.

Opérations

mpi

POST/mpi/match

Identifiant d’opération: matchPatient

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Identity stored and candidates evaluated
application/json: MatchResult
403application/problem+json with the legacy error code
application/problem+json: Problem
422application/problem+json with the legacy error code
application/problem+json: Problem
GET/mpi/candidates

Identifiant d’opération: listCandidates

Authentification: gatewayToken

Réponses

CodeDescriptionType de média
200Latest 50 pairs of the jurisdiction
application/json: CandidateList
POST/mpi/cases/{id}/decisions

Identifiant d’opération: decideCase

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Decision recorded
application/json: MatchDecision
404application/problem+json with the legacy error code
application/problem+json: Problem
422application/problem+json with the legacy error code
application/problem+json: Problem
GET/mpi/patients

Identifiant d’opération: searchPatients

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
family_namequerystringnon
given_namequerystringnon
birth_datequerystringnon

Réponses

CodeDescriptionType de média
200At most 25 identities
application/json: PatientList
422application/problem+json with the legacy error code
application/problem+json: Problem
GET/mpi/patients/{id}

Identifiant d’opération: getPatient

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui

Réponses

CodeDescriptionType de média
200Identity
application/json: PatientIdentity
404application/problem+json with the legacy error code
application/problem+json: Problem

governance

GET/mpi/candidates/{id}

Identifiant d’opération: getCandidate

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui

Réponses

CodeDescriptionType de média
200Pair with decision history
application/json: CandidateDetail
404application/problem+json with the legacy error code
application/problem+json: Problem
GET/mpi/rule-sets

Identifiant d’opération: listRuleSets

Authentification: gatewayToken

Réponses

CodeDescriptionType de média
200Rule sets and the active rule
application/json: RuleSetList
POST/mpi/rule-sets

Identifiant d’opération: submitRuleSet

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Submitted
application/json: RuleSet
422application/problem+json with the legacy error code
application/problem+json: Problem
GET/mpi/rule-sets/{id}

Identifiant d’opération: getRuleSet

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui

Réponses

CodeDescriptionType de média
200Rule set
application/json: RuleSet
404application/problem+json with the legacy error code
application/problem+json: Problem
POST/mpi/rule-sets/{id}/approve

A different person than the submitter must approve (403 second_approver_required). The previous active rule becomes superseded.

Identifiant d’opération: approveRuleSet

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Active
application/json: RuleSet
403application/problem+json with the legacy error code
application/problem+json: Problem
409application/problem+json with the legacy error code
application/problem+json: Problem
POST/mpi/rule-sets/{id}/reject

Identifiant d’opération: rejectRuleSet

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Rejected
application/json: RuleSet
409application/problem+json with the legacy error code
application/problem+json: Problem
POST/mpi/rule-sets/{id}/retire

Identifiant d’opération: retireRuleSet

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Retired
application/json: RuleSet
409application/problem+json with the legacy error code
application/problem+json: Problem
GET/mpi/investigations

Identifiant d’opération: listInvestigations

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
statusquery"open" | "closed"non

Réponses

CodeDescriptionType de média
200Up to 200 newest first
application/json: InvestigationList
POST/mpi/investigations

Identifiant d’opération: openInvestigation

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Opened
application/json: Investigation
404application/problem+json with the legacy error code
application/problem+json: Problem
422application/problem+json with the legacy error code
application/problem+json: Problem
GET/mpi/investigations/{id}

Identifiant d’opération: getInvestigation

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui

Réponses

CodeDescriptionType de média
200Investigation
application/json: Investigation
404application/problem+json with the legacy error code
application/problem+json: Problem
POST/mpi/investigations/{id}/close

Identifiant d’opération: closeInvestigation

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Closed
application/json: Investigation
404application/problem+json with the legacy error code
application/problem+json: Problem
409application/problem+json with the legacy error code
application/problem+json: Problem
GET/mpi/reports/{reportId}

OHN-03-R001..R003. format=csv downloads and records an export event.

Identifiant d’opération: runMpiReport

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
reportIdpathstringoui
fromquerystringnon
toquerystringnon
formatquerystringnon

Réponses

CodeDescriptionType de média
200Report json or csv
application/json: object
text/csv: string
404application/problem+json with the legacy error code
application/problem+json: Problem
422application/problem+json with the legacy error code
application/problem+json: Problem

Schémas

Problem

NomTypeObligatoireDescription
errorstringoui
messagestringnon
idstringnon
detailsobjectnon
trace_idstringnon

ReasonCommand

NomTypeObligatoireDescription
reasonstringoui

PatientIdentityCommand

NomTypeObligatoireDescription
jurisdiction_idstring (uuid)oui
given_namestringnon
family_namestringnon
birth_datestring (date)non
sex_at_birth"male" | "female" | "unknown" | "other"non
local_identifierstringnon
source_facilitystring (uuid)oui
purposestringoui

PatientIdentity

NomTypeObligatoireDescription
idstring (uuid)non
jurisdiction_idstring (uuid)non
given_namestring | nullnon
family_namestring | nullnon
birth_datestring | nullnon
sex_at_birthstring | nullnon
local_identifierstring | nullnon
source_facilitystring (uuid)non
purposestringnon
match_status"unresolved" | "review_required" | "resolved"non
versionintegernon
created_atstring (date-time)non
updated_atstring (date-time)non

PatientList

NomTypeObligatoireDescription
itemsarray of PatientIdentitynon

MatchCandidate

NomTypeObligatoireDescription
idstring (uuid)non
left_patient_idstring (uuid)non
right_patient_idstring (uuid)non
scorenumber (double)non
rule_set_idstring (uuid)non
statusstringnon
reviewer_idstring | nullnon
created_atstring (date-time)non
updated_atstring (date-time)non

CandidateList

NomTypeObligatoireDescription
itemsarray of MatchCandidatenon
totalintegernon

MatchResult

NomTypeObligatoireDescription
patientPatientIdentitynon
candidatesarray of MatchCandidatenon

DecisionEntry

NomTypeObligatoireDescription
idstring (uuid)non
decisionstringnon
match_explanationstringnon
reasonstringnon
reviewer_idstringnon
created_atstring (date-time)non

CandidateDetail

NomTypeObligatoireDescription
idstring (uuid)non
left_patient_idstring (uuid)non
right_patient_idstring (uuid)non
scorenumber (double)non
rule_set_idstring (uuid)non
statusstringnon
reviewer_idstring | nullnon
created_atstring (date-time)non
updated_atstring (date-time)non
rule_versionstringnon
decisionsarray of DecisionEntrynon

MatchDecisionCommand

NomTypeObligatoireDescription
candidate_pair_idstring (uuid)non
decision"link" | "non_link" | "needs_review"oui
evidence_refsarray of string (uuid)non
match_explanationstringoui
reasonstringoui
reviewer_idstring (uuid)oui

MatchDecision

NomTypeObligatoireDescription
idstring (uuid)non
candidate_pair_idstring (uuid)non
decisionstringnon
match_explanationstringnon
reasonstringnon
reviewer_idstringnon
created_atstring (date-time)non

RuleSetDraft

NomTypeObligatoireDescription
rule_versionstringoui
feature_weightsstringnon
auto_link_thresholdnumber (double)oui
manual_review_thresholdnumber (double)oui
effective_fromstring (date)oui
reasonstringoui

RuleSet

NomTypeObligatoireDescription
idstring (uuid)non
rule_versionstringnon
feature_weightsstringnon
auto_link_thresholdnumber (double)non
manual_review_thresholdnumber (double)non
effective_fromstringnon
status"submitted" | "active" | "rejected" | "retired" | "superseded"non
submitted_bystring | nullnon
approved_bystring | nullnon
reasonstring | nullnon
decided_atstring | nullnon
created_atstring (date-time)non
updated_atstring (date-time)non

ActiveRule

NomTypeObligatoireDescription
idstring | nullnon
rule_versionstringnon
auto_link_thresholdnumber (double)non
manual_review_thresholdnumber (double)non

RuleSetList

NomTypeObligatoireDescription
itemsarray of RuleSetnon
activeActiveRulenon

InvestigationCommand

NomTypeObligatoireDescription
patient_refstring (uuid)oui
suspected_duplicate_refstring (uuid)oui
investigation_reasonstringoui
source_evidencestring (uuid)non

CloseCommand

NomTypeObligatoireDescription
outcome"duplicate_confirmed" | "not_duplicate" | "inconclusive"oui
reasonstringoui

Investigation

NomTypeObligatoireDescription
idstring (uuid)non
patient_refstring (uuid)non
suspected_duplicate_refstring (uuid)non
investigation_reasonstringnon
source_evidencestring | nullnon
status"open" | "closed"non
outcomestring | nullnon
opened_bystring | nullnon
closed_bystring | nullnon
created_atstring (date-time)non
updated_atstring (date-time)non

InvestigationList

NomTypeObligatoireDescription
itemsarray of Investigationnon