IHE MHD Query Minimal DocumentReference

DocumentReference resources conforming to this profile are requested by ZorgDomein in the following two cases:

  1. When populating the list with selectable attachments from the source information system.
  2. When requesting attachments that should be automatically added to a document in ZorgDomein without user interaction.

To obtain the relevant attachment documents from the source XIS, ZorgDomein follows the implementation of MedMij for exchanging unstructured documents containing health information. MedMij adopts as much as possible from the Mobile access to Health Documents (MHD) profile from Integrating the Healthcare Enterprise (IHE). Hence the request for relevant attachment documents is a query for DocumentReference resources that conform to IHE MHD Profile on DocumentReference from a Query with Minimal Metadata

Queries on the https://[FHIRServerUrl]/DocumentReference endpoint may include the following query parameters:

  • patient=[PatientID]: [PatientID] refers to the patient ID as provided in the Task resource that is requested by ZorgDomein during SSO. 
  • indexed=ge[date]: the resources in the search result must only contain DocumentReference resources that have a DocumentReference.indexed value that is greater than or equal to [date]. 
  • related-id=[TaskId]TaskId refers to the id of the Task resource that was provided to ZorgDomein at SSO. This way ZorgDomein queries for attachments that are directly related to the task or transaction in the information system of the sender. These attachments will be added automatically to the document in ZorgDomein. Note that the DocumentReference resources in the search response MUST contain the TaskId in context.related.identifier.value.
  • _summary=true: return only those elements marked as “summary” in the base definition of the DocumentReference resource (indicated with the Σ symbol under the “Flags” column). 
  • _summary=count: just return a count of the matching resources, without returning the actual matches.

NB: After the XIS has returned the DocumentReference resources to ZorgDomein, ZorgDomein will send individual GET requests for the url in DocumentReference.content.attachment.url to obtain the actual binary data of each document. This url may point to a Binary resource (eg https://[FHIRServerUrl]/Binary/1234) but can also directly point to the document itself (eg 

Resource example

Below you find an example of a DocumentReference resource that conforms to the IHE MHD Query Minimal DocumentReference profile.

      "resourceType": "DocumentReference",
      "id": "1868",
      "meta": {
        "profile": [
      "masterIdentifier": {
          "value": "43cfc5a6-885b-4448-b96e-4749a1a4c796"
      "status": "current",
      "type": {
        "text": "attachment"
      "subject": {
        "reference": "Patient/1"
      "indexed": "2020-03-30T00:00:00.000+02:00",
      "description": "MRI knie (rechts)",
      "content": [
          "attachment": {
            "contentType": "image/jpeg",
            "url": "",
            "size": 16538,
            "title": "mri_knie_rechts.jpg"
      "context": {
        "related": [
            "identifier": {
              "value": "1865"
    <DocumentReference xmlns="">
      <id value="1868"/>
        <profile value=""/>
        <value value="43cfc5a6-885b-4448-b96e-4749a1a4c796"/>
      <status value="current"/>
        <text value="attachment"/>
        <reference value="Patient/1"/>
      <indexed value="2020-03-30T00:00:00.000+02:00"/>
      <description value="MRI knie (rechts)"/>
          <contentType value="image/jpeg"/>
          <url value=""/>
          <size value="16538"/>
          <title value="mri_knie_rechts.jpg"/>
            <value value="1865"/>