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)
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 (10)
- reports (5)
health-ids
POST/patients
Identifiant d’opération: issueHealthId
Authentification: gatewayToken
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:IssueHealthIdCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Identity and first health id created | application/json: HealthIdentifier |
422 | application/problem+json with the legacy error code | application/problem+json: Problem |
503 | application/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
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:IssueAdditionalIdCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Additional id | application/json: HealthIdentifier |
404 | application/problem+json with the legacy error code | application/problem+json: Problem |
422 | application/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
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
subject | path | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Binding | application/json: SubjectBinding |
404 | application/problem+json with the legacy error code | application/problem+json: Problem |
503 | application/problem+json with the legacy error code | application/problem+json: Problem |
GET/health-ids
Identifiant d’opération: listHealthIds
Authentification: gatewayToken
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Identifiers with their patient | application/json: HealthIdentifierList |
POST/health-ids/resolve
Identifiant d’opération: resolveHealthId
Authentification: gatewayToken
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:object
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Patient reference | application/json: Resolution |
404 | application/problem+json with the legacy error code | application/problem+json: Problem |
422 | application/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
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Active identifier | application/json: HealthIdentifier |
404 | application/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
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:RecoveryCommand
Réponses
POST/health-ids/{id}/status
Identifiant d’opération: changeHealthIdStatus
Authentification: gatewayToken
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:StatusChangeCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Updated | application/json: HealthIdentifier |
404 | application/problem+json with the legacy error code | application/problem+json: Problem |
422 | application/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
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Status history oldest first | application/json: HistoryList |
GET/identifier-aliases
Identifiant d’opération: listIdentifierAliases
Authentification: gatewayToken
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Aliases | application/json: RecoveryList |
reports
GET/health-ids/reports
Identifiant d’opération: listReports
Authentification: gatewayToken
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Reports | application/json: ReportList |
403 | application/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
| Code | Description | Type de média |
|---|---|---|
200 | Failed or retried issuances without identifiers | application/json: object |
403 | application/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
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
reportId | path | string | oui | |
jurisdiction | query | string | non | |
channel | query | string | non | |
status | query | string | non | |
period_from | query | string | non | |
period_to | query | string | non | |
date | query | string | non | |
cursor | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Report | application/json: Report |
403 | application/problem+json with the legacy error code | application/problem+json: Problem |
404 | application/problem+json with the legacy error code | application/problem+json: Problem |
422 | application/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
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
reportId | path | string | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ExportCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Export created - single use and valid for five minutes | application/json: ExportReceipt |
404 | application/problem+json with the legacy error code | application/problem+json: Problem |
422 | application/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
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
token | path | string | oui |
Réponses
Schémas
Problem
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
error | string | oui | |
message | string | non | |
details | object | non | |
trace_id | string | non |
IssueHealthIdCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
jurisdiction_id | string (uuid) | oui | |
patient_identity_ref | string (uuid) | oui | |
proofing_case_id | string (uuid) | oui | |
registration_channel | string | oui | |
language | string | oui | |
idempotency_key | string | non |
IssueAdditionalIdCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
jurisdiction_id | string (uuid) | oui | |
verification_purpose | string | oui | |
requesting_facility_id | string (uuid) | oui | |
patient_disclosure_authority | string (uuid) | non |
HealthIdentifier
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | non | |
health_identity_id | string (uuid) | non | |
health_id | string | non | |
jurisdiction_id | string (uuid) | non | |
verification_purpose | string | non | |
requesting_facility_id | string (uuid) | non | |
patient_disclosure_authority | string | null | non | |
status | string | non | |
version | integer | non | |
created_at | string (date-time) | non | |
updated_at | string (date-time) | non | |
patient_id | string | null | non |
HealthIdentifierList
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
data | array of HealthIdentifier | non |
SubjectBinding
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
patient_id | string | non | |
health_id | string | null | non | |
status | "active" | "suspended" | non |
Resolution
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
patient_id | string | non | |
status | string | non |
RecoveryCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
claimed_id | string | non | |
identity_evidence_ref | string (uuid) | oui | |
recovery_reason | string | oui | |
verified_contact | string | non | |
reviewer_id | string (uuid) | oui |
Recovery
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | non | |
health_identifier_id | string (uuid) | non | |
claimed_id | string | null | non | |
identity_evidence_ref | string (uuid) | non | |
recovery_reason | string | non | |
verified_contact | string | null | non | |
reviewer_id | string (uuid) | non | |
status | string | non | |
created_at | string (date-time) | non | |
updated_at | string (date-time) | non |
RecoveryList
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
data | array of Recovery | non |
StatusChangeCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
requested_status | "suspended" | "retired" | "active" | oui | |
reason | string | oui | |
effective_at | string (date-time) | oui | |
approver_id | string (uuid) | oui |
HistoryEntry
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | non | |
health_identifier_id | string (uuid) | non | |
previous_status | string | non | |
new_status | string | non | |
reason | string | non | |
effective_at | string (date-time) | non | |
approver_id | string (uuid) | non | |
created_at | string (date-time) | non |
HistoryList
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
data | array of HistoryEntry | non |
ReportList
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
reports | array of ReportList.reports.item | non |
Report
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
report_id | string | oui | |
title | string | oui | |
columns | array of string | oui | |
rows | array of object | oui | |
summary | object | oui | |
state | "rendered" | "no_authorized_data" | oui | |
generated_at | string (date-time) | oui | |
next_cursor | string | null | oui |
ExportCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
format | "csv" | "pdf" | oui | |
filters | object | non |
ExportReceipt
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
export_id | string (uuid) | non | |
report_id | string | non | |
format | string | non | |
rows | integer | non | |
expires_at | string (date-time) | non | |
single_use | boolean | non | |
download_path | string | non |
ReportList.reports.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string | non | |
title | string | non |