DOCUMENT_STATUS_LOCKED

Document status can no longer change: what the DOCUMENT_STATUS_LOCKED error means and how to fix it.

HTTP 409. Problem type: https://docs.ovok.com/errors/document-status-locked.

What this means

POST /fhir/R4/DocumentReference/<id>/$update-metadata asked to change a document whose metadata can no longer change: it is final or amended, or it was deleted (entered-in-error). The same code answers when the document changed while the update was made. Nothing was written.

Troubleshooting

  1. Read the document again: GET /fhir/R4/DocumentReference/<id>.
  2. If its docStatus is still preliminary or empty, send the update again.
  3. Otherwise send a new document whose relatesTo names this one with the code replaces.

Retry safely

Safe to send again after reading the document; a final or deleted document keeps answering 409.

If the problem persists

Share the HTTP status, problem type, request path, response timestamp and traceId with your administrator or support contact. Remove access tokens, provider secrets and patient data first. The Error responses guide explains the response fields, and the machine-code registry lists every endpoint-specific type.

Last updated on

On this page