​11.0.1 - Denmark

This page is part of the FUT Infrastructure (v11.0.1: Release) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions

: ehealth-consent - Examples

No examples are currently available for the profile.

StructureDefinition: ehealth-consent - Operation examples

GET [base]/Consent/2253

Request Headers

Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZTg3MjZlNTMtODg2Ny00ZDJlLThhNTAtMjcwY2QxMTg3MGEzIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbnNlbnQucmVhZCJdfSwiY29udGV4dCI6eyJlcGlzb2RlX29mX2NhcmVfaWQiOiJodHRwczovL2NhcmVwbGFuLmNpdC1jYXJlcGxhbi0zOTIwLmxvY2FsL2ZoaXIvRXBpc29kZU9mQ2FyZS8yMjUwL19oaXN0b3J5LzEiLCJwYXRpZW50X2lkIjoiaHR0cHM6Ly9wYXRpZW50LmNpdC1jYXJlcGxhbi0zOTIwLmxvY2FsL2ZoaXIvUGF0aWVudC85MDk2MCIsInRlYW1fb25fZW9jIjpmYWxzZX0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9.
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:54:23 GMT
x-request-id: 202c00a0-0843-45bc-b71d-7ac044a67799
server: istio-envoy
x-envoy-upstream-service-time: 30
expires: 0
x-frame-options: DENY
pragma: no-cache
last-modified: Thu, 16 Apr 2026 10:54:23 GMT
x-content-type-options: nosniff
x-xss-protection: 0
x-b3-traceid: 4cec6317683c049b506b0ac784e587fd
x-powered-by: HAPI FHIR 8.6.5 REST Server (FHIR Server; FHIR 4.0.1/R4)
content-location: https://careplan.cit-careplan-3920.local/fhir/Consent/2253/_history/1
content-type: application/fhir+json; charset=UTF-8
etag: W/"1"
cache-control: no-cache, no-store, max-age=0, must-revalidate

Response

{
  "resourceType": "Consent",
  "id": "2253",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2026-04-16T10:54:23.047+00:00",
    "source": "#d0939b0b-0da3-4a",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
    ]
  },
  "extension": [
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent-affiliation",
      "valueReference": {
        "reference": "https://careplan.cit-careplan-3920.local/fhir/EpisodeOfCare/2250"
      }
    }
  ],
  "status": "active",
  "scope": {
    "coding": [
      {
        "system": "http://ehealth.sundhed.dk/cs/ehealth-consent-scope",
        "code": "behavior"
      }
    ]
  },
  "category": [
    {
      "coding": [
        {
          "system": "http://ehealth.sundhed.dk/cs/consent-category",
          "code": "TBD"
        }
      ]
    }
  ],
  "patient": {
    "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/90960"
  },
  "performer": [
    {
      "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/79638"
    }
  ],
  "policy": [
    {
      "uri": "http://ehealth.sundhed.dk/policy/ehealth/display-triage-result"
    }
  ],
  "policyRule": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/consentpolicycodes",
        "code": "cric"
      }
    ]
  },
  "provision": {
    "actor": [
      {
        "id": "63a76812-61a4-4ea3-aa83-5ae698e7db3c",
        "role": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
              "code": "authserver"
            }
          ]
        },
        "reference": {
          "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/20310"
        }
      }
    ],
    "class": [
      {
        "system": "http://hl7.org/fhir/resource-types",
        "code": "ClinicalImpression",
        "display": "Klinisk vurdering"
      }
    ],
    "code": [
      {
        "coding": [
          {
            "system": "http://ehealth.sundhed.dk/cs/clinicalimpression-codes",
            "code": "TriagingResult",
            "display": "Triageringsresultat"
          }
        ]
      }
    ],
    "data": [
      {
        "meaning": "related",
        "reference": {
          "reference": "https://careplan.cit-careplan-3920.local/fhir/EpisodeOfCare/2252"
        }
      }
    ]
  }
}

GET [base]/Consent?data=https%3A%2F%2Fcareplan.cit-careplan-4369.local%2Ffhir%2FEpisodeOfCare%2F2774%2F_history%2F1&_lastUpdated=gt2026-10-12T16%3A55%3A46.226%2B00%3A00

Request Headers

Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNzY5ZjVjMzMtNTNiZS00ZjJkLTgxOWYtNTA4NGQxOGYwZjBkIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbnNlbnQucmVhZCIsIkNvbnNlbnQuc2VhcmNoIiwiQ29uc2VudC51cGRhdGUiLCJDb25zZW50LmNyZWF0ZSJdfSwiY29udGV4dCI6eyJ0ZWFtX29uX2VvYyI6ZmFsc2UsInVzZXJfaWQiOiI3NjlmNWMzMy01M2JlLTRmMmQtODE5Zi01MDg0ZDE4ZjBmMGQifSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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: Mon, 12 Oct 2026 16:55:46 GMT
x-request-id: 879b10f8-fcb5-4d0b-92c3-b4feed008a8a
server: istio-envoy
x-envoy-upstream-service-time: 49
expires: 0
x-frame-options: DENY
pragma: no-cache
last-modified: Mon, 12 Oct 2026 16:55:46 GMT
x-content-type-options: nosniff
x-xss-protection: 0
x-b3-traceid: a36d28f9f0592eda0719ebd8653ffa3b
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": "4e121142-5e04-4201-8820-ac5df9ed11d8",
  "meta": {
    "lastUpdated": "2026-10-12T16:55:46.561+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://careplan.cit-careplan-4369.local/fhir/Consent?_format=json&_lastUpdated=gt2026-10-12T16%3A55%3A46.226%2B00%3A00&_pretty=true&data=https%3A%2F%2Fcareplan.cit-careplan-4369.local%2Ffhir%2FEpisodeOfCare%2F2774%2F_history%2F1"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://careplan.cit-careplan-4369.local/fhir/Consent/2776",
      "resource": {
        "resourceType": "Consent",
        "id": "2776",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2026-10-12T16:55:46.350+00:00",
          "source": "#b0ebb8ae-a746-44",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
          ]
        },
        "status": "active",
        "scope": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/consentscope",
              "code": "treatment",
              "display": "Treatment"
            }
          ]
        },
        "category": [
          {
            "coding": [
              {
                "system": "http://ehealth.sundhed.dk/cs/consent-category",
                "code": "TBD"
              }
            ]
          }
        ],
        "patient": {
          "reference": "https://patient.cit-careplan-4369.local/fhir/Patient/84699"
        },
        "performer": [
          {
            "reference": "https://patient.cit-careplan-4369.local/fhir/Patient/30288"
          }
        ],
        "policyRule": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/consentpolicycodes",
              "code": "cric"
            }
          ]
        },
        "provision": {
          "period": {
            "start": "1970-01-01T00:00:01+00:00",
            "end": "1970-01-01T00:01:40+00:00"
          },
          "actor": [
            {
              "id": "1d802b2b-9732-458c-8a8b-fc84bd6b3e23",
              "role": {
                "coding": [
                  {
                    "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
                    "code": "authserver"
                  }
                ]
              },
              "reference": {
                "reference": "https://patient.cit-careplan-4369.local/fhir/Patient/19712"
              }
            }
          ],
          "data": [
            {
              "meaning": "related",
              "reference": {
                "reference": "https://careplan.cit-careplan-4369.local/fhir/EpisodeOfCare/2774"
              }
            }
          ]
        }
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://careplan.cit-careplan-4369.local/fhir/Consent/2777",
      "resource": {
        "resourceType": "Consent",
        "id": "2777",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2026-10-12T16:55:46.468+00:00",
          "source": "#93b356f9-c459-47",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
          ]
        },
        "status": "active",
        "scope": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/consentscope",
              "code": "treatment",
              "display": "Treatment"
            }
          ]
        },
        "category": [
          {
            "coding": [
              {
                "system": "http://ehealth.sundhed.dk/cs/consent-category",
                "code": "TBD"
              }
            ]
          }
        ],
        "patient": {
          "reference": "https://patient.cit-careplan-4369.local/fhir/Patient/69651"
        },
        "performer": [
          {
            "reference": "https://patient.cit-careplan-4369.local/fhir/Patient/28487"
          }
        ],
        "policyRule": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/consentpolicycodes",
              "code": "cric"
            }
          ]
        },
        "provision": {
          "period": {
            "start": "1970-01-01T00:00:01+00:00",
            "end": "1970-01-01T00:01:40+00:00"
          },
          "actor": [
            {
              "id": "aa7aeea6-2a1b-42e5-86dd-ff437788b862",
              "role": {
                "coding": [
                  {
                    "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
                    "code": "authserver"
                  }
                ]
              },
              "reference": {
                "reference": "https://patient.cit-careplan-4369.local/fhir/Patient/73308"
              }
            }
          ],
          "data": [
            {
              "meaning": "related",
              "reference": {
                "reference": "https://careplan.cit-careplan-4369.local/fhir/EpisodeOfCare/2774"
              }
            }
          ]
        }
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

GET [base]/Consent/2470/_history/2

Request Headers

Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNjA1NzE2OWQtNmQ3MS00Y2NlLTg3OWQtMmFiMWVhNzI3MTBiIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbnNlbnQucmVhZCIsIkNvbnNlbnQudXBkYXRlIiwiQ29uc2VudC5jcmVhdGUiXX0sImNvbnRleHQiOnsiZXBpc29kZV9vZl9jYXJlX2lkIjoiaHR0cHM6Ly9jYXJlcGxhbi5jaXQtY2FyZXBsYW4tMzkyMC5sb2NhbC9maGlyL0VwaXNvZGVPZkNhcmUvMjQ2Ny9faGlzdG9yeS8xIiwicGF0aWVudF9pZCI6Imh0dHBzOi8vcGF0aWVudC5jaXQtY2FyZXBsYW4tMzkyMC5sb2NhbC9maGlyL1BhdGllbnQvNjU0NDAiLCJ0ZWFtX29uX2VvYyI6ZmFsc2V9LCJ1c2VyX3R5cGUiOiJQUkFDVElUSU9ORVIifQ.
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:55:14 GMT
x-request-id: bed4669c-ccc2-9198-a89e-aed10b2ec027
server: istio-envoy
x-envoy-upstream-service-time: 32
expires: 0
x-frame-options: DENY
pragma: no-cache
last-modified: Thu, 16 Apr 2026 10:55:13 GMT
x-content-type-options: nosniff
x-xss-protection: 0
x-b3-traceid: db986c757e7aa7132b1a446023ed819c
x-powered-by: HAPI FHIR 8.6.5 REST Server (FHIR Server; FHIR 4.0.1/R4)
content-location: https://careplan.cit-careplan-3920.local/fhir/Consent/2470/_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": "Consent",
  "id": "2470",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2026-04-16T10:55:13.941+00:00",
    "source": "#4f940438-a143-95",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
    ]
  },
  "extension": [
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent-affiliation",
      "valueReference": {
        "reference": "https://careplan.cit-careplan-3920.local/fhir/EpisodeOfCare/2467"
      }
    }
  ],
  "status": "draft",
  "scope": {
    "coding": [
      {
        "system": "http://ehealth.sundhed.dk/cs/ehealth-consent-scope",
        "code": "behavior"
      }
    ]
  },
  "category": [
    {
      "coding": [
        {
          "system": "http://ehealth.sundhed.dk/cs/consent-category",
          "code": "TBD"
        }
      ]
    }
  ],
  "patient": {
    "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/65440"
  },
  "performer": [
    {
      "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/3402"
    }
  ],
  "policy": [
    {
      "uri": "http://ehealth.sundhed.dk/policy/ehealth/display-triage-result"
    }
  ],
  "policyRule": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/consentpolicycodes",
        "code": "cric"
      }
    ]
  },
  "provision": {
    "actor": [
      {
        "id": "2fb3d3b9-b333-4f07-b66f-1d97610c1e5d",
        "role": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
              "code": "authserver"
            }
          ]
        },
        "reference": {
          "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/44788"
        }
      }
    ],
    "class": [
      {
        "system": "http://hl7.org/fhir/resource-types",
        "code": "ClinicalImpression",
        "display": "Klinisk vurdering"
      }
    ],
    "code": [
      {
        "coding": [
          {
            "system": "http://ehealth.sundhed.dk/cs/clinicalimpression-codes",
            "code": "TriagingResult",
            "display": "Triageringsresultat"
          }
        ]
      }
    ],
    "data": [
      {
        "meaning": "related",
        "reference": {
          "reference": "https://careplan.cit-careplan-3920.local/fhir/EpisodeOfCare/2469"
        }
      }
    ]
  }
}

POST [base]/Consent

Request Headers

Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMTI4NmFiZTgtYWYxMi00Y2VlLWJkNDYtOGEwNWIzNzE4Y2E4IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbnNlbnQucmVhZCIsIkNvbnNlbnQuc2VhcmNoIiwiQ29uc2VudC51cGRhdGUiLCJDb25zZW50LmNyZWF0ZSJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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": "Consent",
  "meta": {
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
    ]
  },
  "status": "active",
  "scope": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/consentscope",
        "code": "treatment",
        "display": "Treatment"
      }
    ]
  },
  "category": [
    {
      "coding": [
        {
          "system": "http://ehealth.sundhed.dk/cs/consent-category",
          "code": "TBD"
        }
      ]
    }
  ],
  "patient": {
    "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/13479"
  },
  "performer": [
    {
      "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/98914"
    }
  ],
  "policyRule": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/consentpolicycodes",
        "code": "cric"
      }
    ]
  },
  "provision": {
    "period": {
      "start": "1970-01-01T00:00:01+00:00",
      "end": "1970-01-01T00:01:40+00:00"
    },
    "actor": [
      {
        "id": "e67c83b7-88e4-4c20-8ecb-e61329945045",
        "role": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
              "code": "authserver"
            }
          ]
        },
        "reference": {
          "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/91001"
        }
      }
    ],
    "data": [
      {
        "meaning": "related",
        "reference": {
          "reference": "https://careplan.cit-careplan-3920.local/fhir/EpisodeOfCare/2239"
        }
      }
    ]
  }
}

Response Headers

date: Thu, 16 Apr 2026 10:54:18 GMT
x-request-id: 4a99450e-dbac-4a75-bf1f-e25c53947f1f
server: istio-envoy
x-envoy-upstream-service-time: 79
expires: 0
x-frame-options: DENY
pragma: no-cache
last-modified: Thu, 16 Apr 2026 10:54:18 GMT
x-content-type-options: nosniff
x-xss-protection: 0
x-b3-traceid: 0815a9b54c936d81f852367598b5270c
x-powered-by: HAPI FHIR 8.6.5 REST Server (FHIR Server; FHIR 4.0.1/R4)
content-location: https://careplan.cit-careplan-3920.local/fhir/Consent/2240/_history/1
content-type: application/fhir+json; charset=UTF-8
etag: W/"1"
location: https://careplan.cit-careplan-3920.local/fhir/Consent/2240/_history/1
cache-control: no-cache, no-store, max-age=0, must-revalidate

Response

{
  "resourceType": "Consent",
  "id": "2240",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2026-04-16T10:54:18.653+00:00",
    "source": "#4a99450e-dbac-4a75-bf1f-e25c53947f1f",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
    ]
  },
  "status": "active",
  "scope": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/consentscope",
        "code": "treatment",
        "display": "Treatment"
      }
    ]
  },
  "category": [
    {
      "coding": [
        {
          "system": "http://ehealth.sundhed.dk/cs/consent-category",
          "code": "TBD"
        }
      ]
    }
  ],
  "patient": {
    "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/13479"
  },
  "performer": [
    {
      "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/98914"
    }
  ],
  "policyRule": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/consentpolicycodes",
        "code": "cric"
      }
    ]
  },
  "provision": {
    "period": {
      "start": "1970-01-01T00:00:01+00:00",
      "end": "1970-01-01T00:01:40+00:00"
    },
    "actor": [
      {
        "id": "e67c83b7-88e4-4c20-8ecb-e61329945045",
        "role": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
              "code": "authserver"
            }
          ]
        },
        "reference": {
          "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/91001"
        }
      }
    ],
    "data": [
      {
        "meaning": "related",
        "reference": {
          "reference": "https://careplan.cit-careplan-3920.local/fhir/EpisodeOfCare/2239"
        }
      }
    ]
  }
}

POST [base]/Consent/2485/$validate

Request Headers

Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNjkzMmQ4NzctZjVmNS00Y2UxLTllZDQtYjU4ZmExNjU5OThhIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbnNlbnQucmVhZCIsIkNvbnNlbnQuc2VhcmNoIiwiQ29uc2VudC51cGRhdGUiLCJDb25zZW50LmNyZWF0ZSJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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": "Consent",
        "id": "2485",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2026-04-16T10:55:22.256+00:00",
          "source": "#f20dd6f2-368b-4787-8bf3-5158e0639c67",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
          ]
        },
        "status": "active",
        "scope": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/consentscope",
              "code": "treatment",
              "display": "Treatment"
            }
          ]
        },
        "category": [
          {
            "coding": [
              {
                "system": "http://ehealth.sundhed.dk/cs/consent-category",
                "code": "TBD"
              }
            ]
          }
        ],
        "patient": {
          "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/59629"
        },
        "performer": [
          {
            "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/61688"
          }
        ],
        "policyRule": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/consentpolicycodes",
              "code": "cric"
            }
          ]
        },
        "provision": {
          "period": {
            "start": "1970-01-01T00:00:01+00:00",
            "end": "1970-01-01T00:01:40+00:00"
          },
          "actor": [
            {
              "id": "5f22c9a6-1709-40aa-8620-4ccb92a62fed",
              "role": {
                "coding": [
                  {
                    "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
                    "code": "authserver"
                  }
                ]
              },
              "reference": {
                "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/56662"
              }
            }
          ],
          "data": [
            {
              "meaning": "related",
              "reference": {
                "reference": "https://careplan.cit-careplan-3920.local/fhir/EpisodeOfCare/2484"
              }
            }
          ]
        }
      }
    }
  ]
}

Response Headers

date: Thu, 16 Apr 2026 10:55:22 GMT
x-request-id: 685b658c-ac00-90d9-80d5-7bb332ae4e15
server: istio-envoy
x-envoy-upstream-service-time: 83
expires: 0
x-content-type-options: nosniff
x-xss-protection: 0
x-b3-traceid: dad5c2c8a9c6ca114048ff33c1b6eaf6
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]/Consent/2476

Request Headers

Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiOGJmMmFlNTgtY2QwMi00YjZkLTg4MDUtYzE0NTkxMTNjNjQyIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbnNlbnQucmVhZCIsIkNvbnNlbnQuc2VhcmNoIiwiQ29uc2VudC51cGRhdGUiLCJDb25zZW50LmNyZWF0ZSJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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": "Consent",
  "id": "2476",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2026-04-16T10:55:14.889+00:00",
    "source": "#f1fe2c62-145c-4ef1-9153-9b35ab02a42f",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
    ]
  },
  "status": "draft",
  "scope": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/consentscope",
        "code": "treatment",
        "display": "Treatment"
      }
    ]
  },
  "category": [
    {
      "coding": [
        {
          "system": "http://ehealth.sundhed.dk/cs/consent-category",
          "code": "TBD"
        }
      ]
    }
  ],
  "patient": {
    "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/38772"
  },
  "performer": [
    {
      "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/9286"
    }
  ],
  "policyRule": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/consentpolicycodes",
        "code": "cric"
      }
    ]
  },
  "provision": {
    "period": {
      "start": "1970-01-01T00:00:01+00:00",
      "end": "1970-01-01T00:01:40+00:00"
    },
    "actor": [
      {
        "id": "5b928935-125b-42dc-8e46-b193a8c7c68f",
        "role": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
              "code": "authserver"
            }
          ]
        },
        "reference": {
          "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/74667"
        }
      }
    ],
    "data": [
      {
        "meaning": "related",
        "reference": {
          "reference": "https://careplan.cit-careplan-3920.local/fhir/EpisodeOfCare/2475"
        }
      }
    ]
  }
}

Response Headers

date: Thu, 16 Apr 2026 10:55:18 GMT
x-request-id: 01699e33-29eb-4f9d-924d-799e98c6ab1b
server: istio-envoy
x-envoy-upstream-service-time: 134
expires: 0
x-frame-options: DENY
pragma: no-cache
last-modified: Thu, 16 Apr 2026 10:55:18 GMT
x-content-type-options: nosniff
x-xss-protection: 0
x-b3-traceid: 9c0471c18b8378682e741567a7eef311
x-powered-by: HAPI FHIR 8.6.5 REST Server (FHIR Server; FHIR 4.0.1/R4)
content-location: https://careplan.cit-careplan-3920.local/fhir/Consent/2476/_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": "Consent",
  "id": "2476",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2026-04-16T10:55:18.298+00:00",
    "source": "#01699e33-29eb-4f9d-924d-799e98c6ab1b",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
    ]
  },
  "status": "draft",
  "scope": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/consentscope",
        "code": "treatment",
        "display": "Treatment"
      }
    ]
  },
  "category": [
    {
      "coding": [
        {
          "system": "http://ehealth.sundhed.dk/cs/consent-category",
          "code": "TBD"
        }
      ]
    }
  ],
  "patient": {
    "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/38772"
  },
  "performer": [
    {
      "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/9286"
    }
  ],
  "policyRule": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/consentpolicycodes",
        "code": "cric"
      }
    ]
  },
  "provision": {
    "period": {
      "start": "1970-01-01T00:00:01+00:00",
      "end": "1970-01-01T00:01:40+00:00"
    },
    "actor": [
      {
        "id": "5b928935-125b-42dc-8e46-b193a8c7c68f",
        "role": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
              "code": "authserver"
            }
          ]
        },
        "reference": {
          "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/74667"
        }
      }
    ],
    "data": [
      {
        "meaning": "related",
        "reference": {
          "reference": "https://careplan.cit-careplan-3920.local/fhir/EpisodeOfCare/2475"
        }
      }
    ]
  }
}