eHealth Infrastructure
9.0.0 - release DK

This page is part of the FUT Infrastructure (v9.0.0: Release) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

Resource Profile: ehealth-documentreference - Examples

No examples are currently available for the profile.

StructureDefinition: ehealth-documentreference - Operation examples

DELETE [base]/DocumentReference/1014

Request Headers

Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiRG9jdW1lbnRSZWZlcmVuY2UuY3JlYXRlIiwiJHRlc3Qtb25seS1jcmVhdGUiLCJEb2N1bWVudFJlZmVyZW5jZS5kZWxldGUiLCJEb2N1bWVudFJlZmVyZW5jZS5zZWFyY2giLCJEb2N1bWVudFJlZmVyZW5jZS5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/8.6.5 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip

Response Headers

date: Thu, 16 Apr 2026 10:33:43 GMT
x-request-id: ba33dd6a-9417-4577-96c2-b1bdea26918e
server: istio-envoy
x-envoy-upstream-service-time: 78
expires: 0
x-frame-options: DENY
pragma: no-cache
x-content-type-options: nosniff
x-xss-protection: 0
x-b3-traceid: 492b48b6862abddaa3360408c3feb15f
x-powered-by: HAPI FHIR 8.6.5 REST Server (FHIR Server; FHIR 4.0.1/R4)
content-location: https://document-transformation.cit-document-transformation-3534.local/fhir/DocumentReference/1014/_history/2
content-type: application/fhir+json; charset=UTF-8
cache-control: no-cache, no-store, max-age=0, must-revalidate

Response

{
  "resourceType": "OperationOutcome",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td>Successfully deleted 1 resource(s). Took 32ms.</td></tr></table></div>"
  },
  "issue": [
    {
      "severity": "information",
      "code": "informational",
      "details": {
        "coding": [
          {
            "system": "https://hapifhir.io/fhir/CodeSystem/hapi-fhir-storage-response-code",
            "code": "SUCCESSFUL_DELETE",
            "display": "Delete succeeded."
          }
        ]
      },
      "diagnostics": "Successfully deleted 1 resource(s). Took 32ms."
    }
  ]
}

GET [base]/DocumentReference?type=http%3A%2F%2Fehealth.sundhed.dk%2Fcs%2Fehealth-document-reference-type%7Cmaterial&description=df5d55e2-7022-41f8-b98f-21078f8ee8a3

Request Headers

Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiJHRlc3Qtb25seS1jcmVhdGUiLCJEb2N1bWVudFJlZmVyZW5jZS5zZWFyY2giLCJEb2N1bWVudFJlZmVyZW5jZS5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/8.6.5 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip

Response Headers

date: Thu, 16 Apr 2026 11:34:36 GMT
x-request-id: 40093c4e-829f-4d76-a894-c86a32d66909
server: istio-envoy
x-envoy-upstream-service-time: 58
expires: 0
x-frame-options: DENY
pragma: no-cache
last-modified: Thu, 16 Apr 2026 11:34:36 GMT
x-content-type-options: nosniff
x-xss-protection: 0
x-b3-traceid: da7ba7e95706b89b49a0d473cd3c8f04
x-powered-by: HAPI FHIR 8.6.5 REST Server (FHIR Server; FHIR 4.0.1/R4)
content-type: application/fhir+json; charset=UTF-8
cache-control: no-cache, no-store, max-age=0, must-revalidate

Response

{
  "resourceType": "Bundle",
  "id": "e7b3496e-5724-4791-983b-aa3f661ce94b",
  "meta": {
    "lastUpdated": "2026-04-16T11:34:36.883+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://plan.cit-plan-2227.local/fhir/DocumentReference?_format=json&_pretty=true&description=df5d55e2-7022-41f8-b98f-21078f8ee8a3&type=http%3A%2F%2Fehealth.sundhed.dk%2Fcs%2Fehealth-document-reference-type%7Cmaterial"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://plan.cit-plan-2227.local/fhir/DocumentReference/1532",
      "resource": {
        "resourceType": "DocumentReference",
        "id": "1532",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2026-04-16T11:34:36.657+00:00",
          "source": "#476511ff-1d27-4d",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-documentreference"
          ]
        },
        "status": "current",
        "type": {
          "coding": [
            {
              "system": "http://ehealth.sundhed.dk/cs/ehealth-document-reference-type",
              "code": "material"
            }
          ]
        },
        "date": "2026-04-16T11:34:36.493+00:00",
        "description": "df5d55e2-7022-41f8-b98f-21078f8ee8a3",
        "content": [
          {
            "attachment": {
              "url": "http://some.com/"
            }
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://plan.cit-plan-2227.local/fhir/DocumentReference/1533",
      "resource": {
        "resourceType": "DocumentReference",
        "id": "1533",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2026-04-16T11:34:36.795+00:00",
          "source": "#a9cb168a-0db7-42",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-documentreference"
          ]
        },
        "status": "current",
        "type": {
          "coding": [
            {
              "system": "http://ehealth.sundhed.dk/cs/ehealth-document-reference-type",
              "code": "material"
            }
          ]
        },
        "date": "2026-04-16T11:34:36.644+00:00",
        "description": "df5d55e2-7022-41f8-b98f-21078f8ee8a3",
        "content": [
          {
            "attachment": {
              "url": "http://some.com/"
            }
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

GET [base]/DocumentReference/1581/_history/2

Request Headers

Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiRG9jdW1lbnRSZWZlcmVuY2UuY3JlYXRlIiwiRG9jdW1lbnRSZWZlcmVuY2UudXBkYXRlIiwiJHRlc3Qtb25seS1jcmVhdGUiLCJEb2N1bWVudFJlZmVyZW5jZS5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/8.6.5 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip

Response Headers

date: Thu, 16 Apr 2026 11:36:03 GMT
x-request-id: 36f2d3e5-74a9-4a0d-bdee-204b9468a9ac
server: istio-envoy
x-envoy-upstream-service-time: 23
expires: 0
x-frame-options: DENY
pragma: no-cache
last-modified: Thu, 16 Apr 2026 11:36:03 GMT
x-content-type-options: nosniff
x-xss-protection: 0
x-b3-traceid: fe29e9e63fb78aaeaa9feba73e35f63f
x-powered-by: HAPI FHIR 8.6.5 REST Server (FHIR Server; FHIR 4.0.1/R4)
content-location: https://plan.cit-plan-2227.local/fhir/DocumentReference/1581/_history/2
content-type: application/fhir+json; charset=UTF-8
etag: W/"2"
cache-control: no-cache, no-store, max-age=0, must-revalidate

Response

{
  "resourceType": "DocumentReference",
  "id": "1581",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2026-04-16T11:36:03.604+00:00",
    "source": "#45de74b9-5c2b-43",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-documentreference"
    ]
  },
  "status": "current",
  "type": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "69730-0"
      }
    ]
  },
  "subject": {
    "reference": "https://organization.cit-plan-2227.local/fhir/Practitioner/9392"
  },
  "date": "2026-04-16T11:36:03.331+00:00",
  "content": [
    {
      "attachment": {
        "url": "http://some.com/"
      }
    }
  ]
}

POST [base]/DocumentReference

Request Headers

Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiRG9jdW1lbnRSZWZlcmVuY2UuY3JlYXRlIiwiRG9jdW1lbnRSZWZlcmVuY2UudXBkYXRlIiwiJHRlc3Qtb25seS1jcmVhdGUiLCJEb2N1bWVudFJlZmVyZW5jZS5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/8.6.5 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8

Body:

{
  "resourceType": "DocumentReference",
  "meta": {
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-documentreference"
    ]
  },
  "status": "current",
  "type": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "69730-0"
      }
    ]
  },
  "date": "2026-04-16T11:36:02.460+00:00",
  "content": [
    {
      "attachment": {
        "url": "http://some.com/"
      }
    }
  ]
}

Response Headers

date: Thu, 16 Apr 2026 11:36:02 GMT
x-request-id: 8592fbb4-7b55-4147-9ec4-4dd6a3b95a19
server: istio-envoy
x-envoy-upstream-service-time: 77
expires: 0
x-frame-options: DENY
pragma: no-cache
last-modified: Thu, 16 Apr 2026 11:36:02 GMT
x-content-type-options: nosniff
x-xss-protection: 0
x-b3-traceid: ab0f76ba3681aaa785f352170d2056ee
x-powered-by: HAPI FHIR 8.6.5 REST Server (FHIR Server; FHIR 4.0.1/R4)
content-location: https://plan.cit-plan-2227.local/fhir/DocumentReference/1578/_history/1
content-type: application/fhir+json; charset=UTF-8
etag: W/"1"
location: https://plan.cit-plan-2227.local/fhir/DocumentReference/1578/_history/1
cache-control: no-cache, no-store, max-age=0, must-revalidate

Response

{
  "resourceType": "DocumentReference",
  "id": "1578",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2026-04-16T11:36:02.581+00:00",
    "source": "#8592fbb4-7b55-4147-9ec4-4dd6a3b95a19",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-documentreference"
    ]
  },
  "status": "current",
  "type": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "69730-0"
      }
    ]
  },
  "date": "2026-04-16T11:36:02.460+00:00",
  "content": [
    {
      "attachment": {
        "url": "http://some.com/"
      }
    }
  ]
}

POST [base]/DocumentReference/1509/$validate

Request Headers

Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiZW1kci1Eb2N1bWVudFJlZmVyZW5jZS5zZWFyY2giLCJlbWRyLURvY3VtZW50UmVmZXJlbmNlLmNyZWF0ZSIsIkRvY3VtZW50UmVmZXJlbmNlLnVwZGF0ZSIsIkRvY3VtZW50UmVmZXJlbmNlLmNyZWF0ZSIsIiR0ZXN0LW9ubHktY3JlYXRlIiwiZW1kci1Eb2N1bWVudFJlZmVyZW5jZS51cGRhdGUiLCJlbWRyLURvY3VtZW50UmVmZXJlbmNlLnJlYWQiLCJEb2N1bWVudFJlZmVyZW5jZS5zZWFyY2giLCJEb2N1bWVudFJlZmVyZW5jZS5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/8.6.5 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8

Body:

{
  "resourceType": "Parameters",
  "parameter": [
    {
      "name": "resource",
      "resource": {
        "resourceType": "DocumentReference",
        "id": "1509",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2026-04-16T11:34:21.976+00:00",
          "source": "#91aecbd0-d68d-4b79-b3c2-433d375d030f",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-documentreference"
          ]
        },
        "status": "current",
        "type": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "69730-0"
            }
          ]
        },
        "date": "2026-04-16T11:34:21.810+00:00",
        "content": [
          {
            "attachment": {
              "url": "http://some.com/"
            }
          }
        ]
      }
    }
  ]
}

Response Headers

date: Thu, 16 Apr 2026 11:34:22 GMT
x-request-id: 2bdf5618-0393-4a66-82ef-89dda24ec315
server: istio-envoy
x-envoy-upstream-service-time: 93
expires: 0
x-content-type-options: nosniff
x-xss-protection: 0
x-b3-traceid: b54dcc5340517169b5b666032852eadd
x-frame-options: DENY
x-powered-by: HAPI FHIR 8.6.5 REST Server (FHIR Server; FHIR 4.0.1/R4)
content-type: application/fhir+json; charset=UTF-8
cache-control: no-cache, no-store, max-age=0, must-revalidate
pragma: no-cache

Response

{
  "resourceType": "OperationOutcome",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td>No issues detected during validation</td></tr><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td>No issues detected during validation</td></tr></table></div>"
  },
  "issue": [
    {
      "severity": "information",
      "code": "informational",
      "diagnostics": "No issues detected during validation"
    },
    {
      "severity": "information",
      "code": "informational",
      "diagnostics": "No issues detected during validation"
    }
  ]
}

PUT [base]/DocumentReference/1581

Request Headers

Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiRG9jdW1lbnRSZWZlcmVuY2UuY3JlYXRlIiwiRG9jdW1lbnRSZWZlcmVuY2UudXBkYXRlIiwiJHRlc3Qtb25seS1jcmVhdGUiLCJEb2N1bWVudFJlZmVyZW5jZS5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
If-Match: W/"1"
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/8.6.5 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8

Body:

{
  "resourceType": "DocumentReference",
  "id": "1581",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2026-04-16T11:36:03.482+00:00",
    "source": "#845e4577-9b36-9948-90b7-901499384d65",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-documentreference"
    ]
  },
  "status": "current",
  "type": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "69730-0"
      }
    ]
  },
  "subject": {
    "reference": "https://organization.cit-plan-2227.local/fhir/Practitioner/9392"
  },
  "date": "2026-04-16T11:36:03.331+00:00",
  "content": [
    {
      "attachment": {
        "url": "http://some.com/"
      }
    }
  ]
}

Response Headers

date: Thu, 16 Apr 2026 11:36:03 GMT
x-request-id: 45de74b9-5c2b-436b-bc47-e10442b5c91a
server: istio-envoy
x-envoy-upstream-service-time: 97
expires: 0
x-frame-options: DENY
pragma: no-cache
last-modified: Thu, 16 Apr 2026 11:36:03 GMT
x-content-type-options: nosniff
x-xss-protection: 0
x-b3-traceid: 351949920512c0847106d5f501037680
x-powered-by: HAPI FHIR 8.6.5 REST Server (FHIR Server; FHIR 4.0.1/R4)
content-location: https://plan.cit-plan-2227.local/fhir/DocumentReference/1581/_history/2
content-type: application/fhir+json; charset=UTF-8
etag: W/"2"
cache-control: no-cache, no-store, max-age=0, must-revalidate

Response

{
  "resourceType": "DocumentReference",
  "id": "1581",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2026-04-16T11:36:03.604+00:00",
    "source": "#45de74b9-5c2b-436b-bc47-e10442b5c91a",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-documentreference"
    ]
  },
  "status": "current",
  "type": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "69730-0"
      }
    ]
  },
  "subject": {
    "reference": "https://organization.cit-plan-2227.local/fhir/Practitioner/9392"
  },
  "date": "2026-04-16T11:36:03.331+00:00",
  "content": [
    {
      "attachment": {
        "url": "http://some.com/"
      }
    }
  ]
}