eHealth Infrastructure, published by Den telemedicinske infrastruktur (eHealth Infrastructure). This guide is not an authorized publication; it is the continuous build for version 8.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/fut-infrastructure/implementation-guide/ and changes regularly. See the Directory of published versions
| Official URL: http://ehealth.sundhed.dk/fhir/OperationDefinition/DocumentReference-t-deprecate-document | Version: 8.0.0 | |||
| Active as of 2026-01-14 | Computable Name: deprecate-document | |||
Deprecates a shared document. The operation takes a documentIdentifier and cpr-number as parameters and finds the DocumentReference with the corresponding masterIdentifier. masterIdentifier should be unique for DocumentReference so if less than 0 or more than 1 are found the operation throws and exception. If the found documentReference has a patient which cpr number matches the provided value the document is deprecated. iti-57 is used to deprecate the document on XDS. On successthe documentReference status is updated to superseded and updated in the database.
URL: [base]/DocumentReference/$deprecate-document
| Use | Name | Scope | Cardinality | Type | Binding | Documentation |
| IN | documentId | 0..1 | string (token) | The documentIdentifier that makes up the masterIdentifier of the DocumentReference to deprecate. | ||
| IN | cpr | 0..1 | string (string) | The cpr-number that makes up the masterIdentifier of the DocumentReference to deprecate. |