Aller au contenu

← Tous les contrats

OHN-08 Shared Health Record / Health Chart

Version
1.0.0
OpenAPI
3.1.0
Source dans le dépôt
modules/OHN-08/api/openapi.json
Serveurs
https://opeshealthnetwork.com/api/ohn/v1
Authentification
bearer: http bearer

Télécharger le contrat (JSON)

Les contrats sont rédigés en anglais.

A policy-filtered, source-attributed longitudinal view assembled from the systems that hold the record. OHN-08 never replaces those systems and never presents a chart as complete. Default deny; bearer authentication; every mutating request needs an Idempotency-Key header. Access is evaluated when a chart is assembled and again on every read. Dependencies (OHN-02, 15, 16, 23, 40, 41, 42) are reached through versioned interfaces that fail closed (503) when unavailable. Reconciled with the observed behaviour of the TypeScript reference (docs/program/java/ohn-08-contract-changes.md).

Opérations

OHN-08

GET/patients/{id}/health-chartThe caller's current chart for the patient, grouped by section

Returns the most recent chart the caller assembled for this patient. Access is re-evaluated; if it was withdrawn the cached projection is purged (W003) and 403 access_revoked is returned. No business state changes; the read is audited.

Identifiant d’opération: getPatientHealthChart

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringouiA path id that is not a UUID is 404 not_found.

Réponses

CodeDescriptionType de média
200Chart
application/json: object
401Typed error
application/json: Error
403Typed error
application/json: Error
404Typed error
application/json: Error
409Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
GET/patients/{id}/timelineThe same chart as dated entries, most recent first, plus undated statements

Identifiant d’opération: getPatientTimeline

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringouiA path id that is not a UUID is 404 not_found.

Réponses

CodeDescriptionType de média
200Timeline
application/json: object
401Typed error
application/json: Error
403Typed error
application/json: Error
404Typed error
application/json: Error
409Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
POST/health-chart/rebuildAssemble a chart (F001, workflow W001)

Identifiant d’opération: rebuildChart

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête

JSON object validated by the controller against ChartQueryCommand (every bad field is reported together; unknown fields are refused with 422).

  • application/json: object

Réponses

CodeDescriptionType de média
201Chart presented, with receipt
application/json: object
400Typed error
application/json: Error
401Typed error
application/json: Error
403Typed error
application/json: Error
404Typed error
application/json: Error
409Typed error
application/json: Error
422Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
GET/health-chart/vocabulariesControlled lists, workflow states and the policy configuration in force

Identifiant d’opération: getVocabularies

Authentification: bearer

Réponses

CodeDescriptionType de média
200Vocabularies
application/json: object
401Typed error
application/json: Error
403Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
GET/health-chart/viewsThe caller's own chart requests (metadata only)

Identifiant d’opération: listViews

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
pagequerystringnonInteger >= 1. Lists clamp an unreadable value to 1; reports refuse it with 422.
page_sizequerystringnonInteger 1..100. Lists clamp (default 25); reports default 50 and refuse values outside 1..100 with 422.

Réponses

CodeDescriptionType de média
200Page of views
application/json: object
401Typed error
application/json: Error
403Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
GET/health-chart/views/{id}One of the caller's chart requests with sources and workflow history

Identifiant d’opération: getView

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringouiA path id that is not a UUID is 404 not_found.

Réponses

CodeDescriptionType de média
200View
application/json: object
401Typed error
application/json: Error
403Typed error
application/json: Error
404Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
GET/health-chart/views/{id}/access-snapshotsAccess decisions taken for one chart view (audit-access side panel)

Identifiant d’opération: listAccessSnapshots

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringouiA path id that is not a UUID is 404 not_found.

Réponses

CodeDescriptionType de média
200Snapshots
application/json: object
401Typed error
application/json: Error
403Typed error
application/json: Error
404Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
GET/health-chart/source-requestsThe caller's source requests

Identifiant d’opération: listSourceRequests

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
pagequerystringnonInteger >= 1. Lists clamp an unreadable value to 1; reports refuse it with 422.
page_sizequerystringnonInteger 1..100. Lists clamp (default 25); reports default 50 and refuse values outside 1..100 with 422.

Réponses

CodeDescriptionType de média
200Page of source requests
application/json: object
401Typed error
application/json: Error
403Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
POST/health-chart/source-requestsRe-read named sections from one located source and refresh them in the current chart (F003)

201 carries the terminal state: delivered or unavailable (source_not_located, source_unreachable, source_integrity_rejected). 409 chart_required when the caller holds no usable chart for the patient.

Identifiant d’opération: requestSource

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête

JSON object validated by the controller against SourceRequestCommand (every bad field is reported together; unknown fields are refused with 422).

  • application/json: object

Réponses

CodeDescriptionType de média
201Source request with receipt
application/json: object
400Typed error
application/json: Error
401Typed error
application/json: Error
403Typed error
application/json: Error
409Typed error
application/json: Error
422Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
GET/health-chart/source-requests/{id}One source request with its history

Identifiant d’opération: getSourceRequest

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringouiA path id that is not a UUID is 404 not_found.

Réponses

CodeDescriptionType de média
200Source request
application/json: object
401Typed error
application/json: Error
403Typed error
application/json: Error
404Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
GET/health-chart/discrepanciesCases in the caller's jurisdiction

Identifiant d’opération: listDiscrepancies

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
pagequerystringnonInteger >= 1. Lists clamp an unreadable value to 1; reports refuse it with 422.
page_sizequerystringnonInteger 1..100. Lists clamp (default 25); reports default 50 and refuse values outside 1..100 with 422.
statusquerystringnonOne of: conflict_detected, evidence_linked, clinical_review, resolved_or_disputed, history_preserved
clinical_riskquerystringnonOne of: low, moderate, high, critical
assigned_to_mequerystringnontrue | false

Réponses

CodeDescriptionType de média
200Page of cases
application/json: object
401Typed error
application/json: Error
403Typed error
application/json: Error
422Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
POST/health-chart/discrepanciesOpen a source discrepancy case (F002, workflow W002)

Identifiant d’opération: openDiscrepancy

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête

JSON object validated by the controller against DiscrepancyCaseCommand (every bad field is reported together; unknown fields are refused with 422).

  • application/json: object

Réponses

CodeDescriptionType de média
201Case with receipt
application/json: object
400Typed error
application/json: Error
401Typed error
application/json: Error
403Typed error
application/json: Error
409Typed error
application/json: Error
422Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
GET/health-chart/discrepancies/{id}One case with its history

Identifiant d’opération: getDiscrepancy

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringouiA path id that is not a UUID is 404 not_found.

Réponses

CodeDescriptionType de média
200Case
application/json: object
401Typed error
application/json: Error
403Typed error
application/json: Error
404Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
POST/health-chart/discrepancies/{id}/transitionsMove a case to the next state

conflict_detected > evidence_linked (needs evidence_refs) > clinical_review (assigned reviewer or steward) > resolved_or_disputed (licensed clinician other than the opener; needs outcome and reason) > history_preserved. 409 stale_version or invalid_transition; 403 not_assignee, clinician_required or independent_review_required. Refusals change nothing and are audited.

Identifiant d’opération: transitionDiscrepancy

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringouiA path id that is not a UUID is 404 not_found.
Idempotency-Keyheaderstringoui

Corps de la requête

JSON object validated by the controller against DiscrepancyTransitionCommand (every bad field is reported together; unknown fields are refused with 422).

  • application/json: object

Réponses

CodeDescriptionType de média
200Updated case with history and receipt
application/json: object
400Typed error
application/json: Error
401Typed error
application/json: Error
403Typed error
application/json: Error
404Typed error
application/json: Error
409Typed error
application/json: Error
422Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
POST/health-chart/revocation-signalsDeliver a consent revocation (workflow W003); platform service or steward only

Purges every cached chart projection of the patient in the jurisdiction and creates a notice for each affected principal. Redelivery of the same signal_id returns 200 with duplicate=true.

Identifiant d’opération: deliverRevocationSignal

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête

JSON object validated by the controller against RevocationSignalCommand (every bad field is reported together; unknown fields are refused with 422).

  • application/json: object

Réponses

CodeDescriptionType de média
200Already processed
application/json: object
201Revocation processed
application/json: object
400Typed error
application/json: Error
401Typed error
application/json: Error
403Typed error
application/json: Error
409Typed error
application/json: Error
422Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
GET/health-chart/revocationsRevocations handled in the jurisdiction, with history (steward only)

Identifiant d’opération: listRevocations

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
pagequerystringnonInteger >= 1. Lists clamp an unreadable value to 1; reports refuse it with 422.
page_sizequerystringnonInteger 1..100. Lists clamp (default 25); reports default 50 and refuse values outside 1..100 with 422.

Réponses

CodeDescriptionType de média
200Page of revocations
application/json: object
401Typed error
application/json: Error
403Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
GET/health-chart/revocation-noticesNotices for charts the caller had open whose access was withdrawn

Identifiant d’opération: listRevocationNotices

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
pendingquerystringnontrue | false

Réponses

CodeDescriptionType de média
200Notices
application/json: object
401Typed error
application/json: Error
403Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
POST/health-chart/revocation-notices/{id}/acknowledgeAcknowledge a notice; the revocation reaches user_notified when all are acknowledged

Identifiant d’opération: acknowledgeRevocationNotice

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringouiA path id that is not a UUID is 404 not_found.
Idempotency-Keyheaderstringoui

Réponses

CodeDescriptionType de média
200Acknowledged with receipt
application/json: object
400Typed error
application/json: Error
401Typed error
application/json: Error
403Typed error
application/json: Error
404Typed error
application/json: Error
409Typed error
application/json: Error
422Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
GET/health-chart/reports/{reportId}Reports OHN-08-R001 (source completeness), R002 (discrepancy audit), R003 (access and response performance)

Identifiant d’opération: getReport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
reportIdpath"OHN-08-R001" | "OHN-08-R002" | "OHN-08-R003"ouiAny other value is 404 not_found.
jurisdictionquerystringnonuuid
providerquerystringnonuuid
facilityquerystringnonuuid
severityquerystringnonOne of: low, moderate, high, critical
resolutionquerystringnonOne of: unresolved, all
servicequerystringnonOne of: assemble, read, source_request
period_fromquerystringnondate-time
period_toquerystringnondate-time
pagequerystringnonInteger >= 1. Lists clamp an unreadable value to 1; reports refuse it with 422.
page_sizequerystringnonInteger 1..100. Lists clamp (default 25); reports default 50 and refuse values outside 1..100 with 422.

Réponses

CodeDescriptionType de média
200Report
application/json: object
401Typed error
application/json: Error
403Typed error
application/json: Error
404Typed error
application/json: Error
422Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
POST/health-chart/reports/{reportId}/exportCreate a signed, single-use, five-minute CSV or PDF export

Identifiant d’opération: exportReport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
reportIdpath"OHN-08-R001" | "OHN-08-R002" | "OHN-08-R003"ouiAny other value is 404 not_found.
Idempotency-Keyheaderstringoui

Corps de la requête

JSON object validated by the controller against ExportCommand (every bad field is reported together; unknown fields are refused with 422).

  • application/json: object

Réponses

CodeDescriptionType de média
201Export receipt with download_path
application/json: object
400Typed error
application/json: Error
401Typed error
application/json: Error
403Typed error
application/json: Error
404Typed error
application/json: Error
409Typed error
application/json: Error
422Typed error
application/json: Error
429Typed error
application/json: Error
503Typed error
application/json: Error
GET/health-chart/exports/{id}/downloadDownload an export once (requester only)

200 returns text/csv or application/pdf with Content-Disposition attachment; single use (second download 410 export_consumed), expires after five minutes (410 export_expired), requester only (404 for anyone else).

Identifiant d’opération: downloadExport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringouiA path id that is not a UUID is 404 not_found.

Réponses

CodeDescriptionType de média
200text/csv or application/pdf
application/json: object
401Typed error
application/json: Error
403Typed error
application/json: Error
404Typed error
application/json: Error
410Typed error
application/json: Error
429Typed error
application/json: Error
500Typed error
application/json: Error
503Typed error
application/json: Error

Schémas

Error

NomTypeObligatoireDescription
errorstringouiunauthenticated, denied_by_policy, access_revoked, not_found, chart_expired, chart_required, chart_disabled, stale_version, invalid_transition, not_assignee, clinician_required, independent_review_required, idempotency_conflict, request_in_progress, missing_idempotency_key, domain_validation_failed, rate_limited, dependency_unavailable, export_expired, export_consumed, export_integrity_failed
messagestringnon
dependencystringnon
detailsobjectnonField problems (field -> code) or extra facts such as dependency, current_state, current_version, next_state

Section

"allergies" | "medications" | "problems" | "immunizations" | "results" | "procedures" | "encounters"

ClinicalPurpose

"treatment" | "emergency_care" | "care_coordination" | "clinical_data_stewardship"

ClinicalRisk

"low" | "moderate" | "high" | "critical"

DiscrepancyState

"conflict_detected" | "evidence_linked" | "clinical_review" | "resolved_or_disputed" | "history_preserved"

ChartQueryCommand

NomTypeObligatoireDescription
health_idstringoui
facility_idstringoui
clinical_purposeClinicalPurposeouiMust equal the purpose in the bearer token
relationship_refstringoui
record_scope"full_chart" | "allergies" | "medications" | "problems" | "immunizations" | "results" | "procedures" | "encounters"oui
date_fromstringnon
date_tostringnon

DiscrepancyCaseCommand

NomTypeObligatoireDescription
patient_idstringoui
source_record_idsstringoui2 to 50 identifiers separated by new lines, commas or semicolons
discrepancy_type"conflicting_status" | "conflicting_value" | "duplicate_record" | "wrong_patient_suspected" | "outdated_information" | "missing_information" | "other"oui
clinical_riskClinicalRiskoui
assigneestringoui
notesstringnon

DiscrepancyTransitionCommand

NomTypeObligatoireDescription
expected_versionintegeroui
to_stateDiscrepancyStateoui
reasonstringnon
evidence_refsarray of stringnon
outcome"resolved" | "disputed"non

SourceRequestCommand

NomTypeObligatoireDescription
record_locator_refstringoui
source_endpoint_refstringoui
requested_sectionsstringouiSection names separated by commas or spaces
patient_contextstringoui
purposeClinicalPurposeoui

RevocationSignalCommand

NomTypeObligatoireDescription
signal_idstringoui
patient_idstringoui
consent_refstringoui
revoked_atstringoui

ExportCommand

NomTypeObligatoireDescription
format"csv" | "pdf"oui
filtersobjectnonReport filters; same rules and strict keys as the report query parameters (string or number values)

Receipt

NomTypeObligatoireDescription
receipt_idstring (uuid)oui
committed_atstring (date-time)oui
aggregate_idstringoui
aggregate_typestringoui
versionintegeroui
status"committed"oui
event_delivery"pending" | "not_applicable"oui
event_idstring | nulloui

Source

NomTypeObligatoireDescription
idstring (uuid)oui
view_idstring (uuid)non
record_locator_refstring (uuid)non
source_endpoint_refstring (uuid)non
source_system_idstring (uuid)oui
facility_idstring (uuid)oui
availability"reachable" | "unreachable" | "integrity_rejected"oui
freshness"fresh" | "stale" | "unknown" | "threshold_not_configured"oui
last_updated_atstring | null (date-time)oui
retrieved_atstring (date-time)oui
sections_requestedarray of Sectionnon
fact_countintegernon
rejected_countintegernon

Fact

NomTypeObligatoireDescription
idstring (uuid)oui
sectionSectionoui
source_record_idstringoui
conceptFact.conceptoui
status_as_statedstring | nullouiAs stated by the source at recorded_at; never upgraded to 'current'
valuestring | nullnon
recorded_atstring | null (date-time)oui
terminology"validated" | "not_recognised" | "not_verified"oui
conflictbooleanouiAnother source states a different status for the same concept
open_case_idsarray of string (uuid)oui
sourceFact.sourceoui

View

NomTypeObligatoireDescription
idstring (uuid)oui
patient_idstring | nullnon
health_idstringnon
facility_idstringnon
clinical_purposestringnon
relationship_refstringnon
record_scopestringnon
date_fromstring | nullnon
date_tostring | nullnon
status"patient_resolved" | "policy_authorized" | "sources_discovered" | "records_validated" | "chart_presented"oui
outcome"in_progress" | "presented" | "denied" | "unavailable"oui
refusal_reasonstring | nullnon
completeness"complete_for_located_sources" | "partial" | "no_sources_registered" | nullnon
warningsarray of stringnon
sections_disclosedarray of Sectionnon
fact_countintegernon
assembled_atstring | nullnon
expires_atstring | nullnon
invalidated_atstring | nullnon
invalidation_reasonstring | nullnon
versionintegeroui

Chart

NomTypeObligatoireDescription
viewViewoui
noticesarray of "not_the_complete_record" | "absence_of_information_is_not_absence_of_condition" | "status_is_as_stated_by_source"oui
sectionsarray of Chart.sections.itemouiOnly sections the caller may see; a withheld section is not listed at all
sourcesarray of Sourceoui
discrepanciesChart.discrepanciesoui
receiptReceiptnon

Timeline

NomTypeObligatoireDescription
viewViewoui
noticesarray of stringoui
entriesarray of Factoui
undatedarray of Factoui
sourcesarray of Sourceoui

DiscrepancyCase

NomTypeObligatoireDescription
idstring (uuid)oui
patient_idstringoui
facility_idstring | nullnon
source_record_idsarray of stringoui
discrepancy_typestringoui
clinical_riskClinicalRiskoui
assigneestringoui
notesstring | nullnon
conceptstring | nullnon
statusDiscrepancyStateoui
next_statestring | nullnon
evidence_refsarray of stringnon
outcome"resolved" | "disputed" | nullnon
outcome_reasonstring | nullnon
decided_bystring | nullnon
versionintegeroui
receiptReceiptnon

Report

NomTypeObligatoireDescription
report_idstringoui
titlestringnon
columnsarray of stringoui
rowsarray of objectoui
totalintegeroui
pageintegernon
page_sizeintegernon
summaryobjectnon
warningsarray of "small_cohort_suppressed" | "staleness_threshold_not_configured"non
state"rendered" | "no_authorized_data" | "partial_with_source_warning"oui
generated_atstring (date-time)oui

Fact.concept défini sur place

NomTypeObligatoireDescription
systemstringoui
codestringoui
displaystringoui

Fact.source défini sur place

NomTypeObligatoireDescription
attribution_idstringoui
source_system_idstringoui
facility_idstringoui
last_updated_atstring | nulloui
freshnessstringoui

Chart.sections.item défini sur place

NomTypeObligatoireDescription
sectionSectionoui
state"information_available" | "no_information_retrieved"oui
factsarray of Factoui

Chart.discrepancies défini sur place

NomTypeObligatoireDescription
conflicting_statementsintegernon
open_casesarray of objectnon