Aller au contenu

← Tous les contrats

OHN-02 Health ID Management

Version
1.0.0
OpenAPI
3.1.0
Source dans le dépôt
modules/OHN-02/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-02, 2026-11-17). The by-subject operation depends on OHN-03 through a port; until the service-token decision (OWNER-BLOCKERS B38) it fails closed with 503.

Opérations

health-ids

POST/patients

Identifiant d’opération: issueHealthId

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Identity and first health id created
application/json: HealthIdentifier
422application/problem+json with the legacy error code
application/problem+json: Problem
503application/problem+json with the legacy error code
application/problem+json: Problem
POST/patients/{id}/health-ids

Identifiant d’opération: issueAdditionalHealthId

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Additional id
application/json: HealthIdentifier
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/patients/by-subject/{subject}

Identifiant d’opération: getPatientBySubject

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
subjectpathstringoui

Réponses

CodeDescriptionType de média
200Binding
application/json: SubjectBinding
404application/problem+json with the legacy error code
application/problem+json: Problem
503application/problem+json with the legacy error code
application/problem+json: Problem
GET/health-ids

Identifiant d’opération: listHealthIds

Authentification: gatewayToken

Réponses

CodeDescriptionType de média
200Identifiers with their patient
application/json: HealthIdentifierList
POST/health-ids/resolve

Identifiant d’opération: resolveHealthId

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

  • application/json: object

Réponses

CodeDescriptionType de média
200Patient reference
application/json: Resolution
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/health-ids/{id}/verify

Identifiant d’opération: verifyHealthId

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui

Réponses

CodeDescriptionType de média
200Active identifier
application/json: HealthIdentifier
404application/problem+json with the legacy error code
application/problem+json: Problem
POST/health-ids/{id}/recover

Identifiant d’opération: recoverHealthId

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Alias recorded and identifier set to recovered
application/json: Recovery
404application/problem+json with the legacy error code
application/problem+json: Problem
422application/problem+json with the legacy error code
application/problem+json: Problem
POST/health-ids/{id}/status

Identifiant d’opération: changeHealthIdStatus

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Updated
application/json: HealthIdentifier
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/health-ids/{id}/history

Identifiant d’opération: getHealthIdHistory

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui

Réponses

CodeDescriptionType de média
200Status history oldest first
application/json: HistoryList
GET/identifier-aliases

Identifiant d’opération: listIdentifierAliases

Authentification: gatewayToken

Réponses

CodeDescriptionType de média
200Aliases
application/json: RecoveryList

reports

GET/health-ids/reports

Identifiant d’opération: listReports

Authentification: gatewayToken

Réponses

CodeDescriptionType de média
200Reports
application/json: ReportList
403application/problem+json with the legacy error code
application/problem+json: Problem
GET/health-ids/issuance-exceptions

Identifiant d’opération: listIssuanceExceptions

Authentification: gatewayToken

Réponses

CodeDescriptionType de média
200Failed or retried issuances without identifiers
application/json: object
403application/problem+json with the legacy error code
application/problem+json: Problem
GET/health-ids/reports/{reportId}

Identifiant d’opération: runReport

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
reportIdpathstringoui
jurisdictionquerystringnon
channelquerystringnon
statusquerystringnon
period_fromquerystringnon
period_toquerystringnon
datequerystringnon
cursorquerystringnon

Réponses

CodeDescriptionType de média
200Report
application/json: Report
403application/problem+json with the legacy error code
application/problem+json: Problem
404application/problem+json with the legacy error code
application/problem+json: Problem
422application/problem+json with the legacy error code
application/problem+json: Problem
POST/health-ids/reports/{reportId}/export

Identifiant d’opération: exportReport

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
reportIdpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Export created - single use and valid for five minutes
application/json: ExportReceipt
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/health-ids/report-exports/{token}

Identifiant d’opération: downloadReportExport

Authentification: gatewayToken

Paramètres

NomEmplacementTypeObligatoireDescription
tokenpathstringoui

Réponses

CodeDescriptionType de média
200The file as csv or pdf
text/csv: string (binary)
application/pdf: string (binary)
404application/problem+json with the legacy error code
application/problem+json: Problem
410application/problem+json with the legacy error code
application/problem+json: Problem

Schémas

Problem

NomTypeObligatoireDescription
errorstringoui
messagestringnon
detailsobjectnon
trace_idstringnon

IssueHealthIdCommand

NomTypeObligatoireDescription
jurisdiction_idstring (uuid)oui
patient_identity_refstring (uuid)oui
proofing_case_idstring (uuid)oui
registration_channelstringoui
languagestringoui
idempotency_keystringnon

IssueAdditionalIdCommand

NomTypeObligatoireDescription
jurisdiction_idstring (uuid)oui
verification_purposestringoui
requesting_facility_idstring (uuid)oui
patient_disclosure_authoritystring (uuid)non

HealthIdentifier

NomTypeObligatoireDescription
idstring (uuid)non
health_identity_idstring (uuid)non
health_idstringnon
jurisdiction_idstring (uuid)non
verification_purposestringnon
requesting_facility_idstring (uuid)non
patient_disclosure_authoritystring | nullnon
statusstringnon
versionintegernon
created_atstring (date-time)non
updated_atstring (date-time)non
patient_idstring | nullnon

HealthIdentifierList

NomTypeObligatoireDescription
dataarray of HealthIdentifiernon

SubjectBinding

NomTypeObligatoireDescription
patient_idstringnon
health_idstring | nullnon
status"active" | "suspended"non

Resolution

NomTypeObligatoireDescription
patient_idstringnon
statusstringnon

RecoveryCommand

NomTypeObligatoireDescription
claimed_idstringnon
identity_evidence_refstring (uuid)oui
recovery_reasonstringoui
verified_contactstringnon
reviewer_idstring (uuid)oui

Recovery

NomTypeObligatoireDescription
idstring (uuid)non
health_identifier_idstring (uuid)non
claimed_idstring | nullnon
identity_evidence_refstring (uuid)non
recovery_reasonstringnon
verified_contactstring | nullnon
reviewer_idstring (uuid)non
statusstringnon
created_atstring (date-time)non
updated_atstring (date-time)non

RecoveryList

NomTypeObligatoireDescription
dataarray of Recoverynon

StatusChangeCommand

NomTypeObligatoireDescription
requested_status"suspended" | "retired" | "active"oui
reasonstringoui
effective_atstring (date-time)oui
approver_idstring (uuid)oui

HistoryEntry

NomTypeObligatoireDescription
idstring (uuid)non
health_identifier_idstring (uuid)non
previous_statusstringnon
new_statusstringnon
reasonstringnon
effective_atstring (date-time)non
approver_idstring (uuid)non
created_atstring (date-time)non

HistoryList

NomTypeObligatoireDescription
dataarray of HistoryEntrynon

ReportList

NomTypeObligatoireDescription
reportsarray of ReportList.reports.itemnon

Report

NomTypeObligatoireDescription
report_idstringoui
titlestringoui
columnsarray of stringoui
rowsarray of objectoui
summaryobjectoui
state"rendered" | "no_authorized_data"oui
generated_atstring (date-time)oui
next_cursorstring | nulloui

ExportCommand

NomTypeObligatoireDescription
format"csv" | "pdf"oui
filtersobjectnon

ExportReceipt

NomTypeObligatoireDescription
export_idstring (uuid)non
report_idstringnon
formatstringnon
rowsintegernon
expires_atstring (date-time)non
single_usebooleannon
download_pathstringnon

ReportList.reports.item défini sur place

NomTypeObligatoireDescription
idstringnon
titlestringnon