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-consent - Examples

Examples for the ehealth-consent Profile:

  • Consent/23
  • 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?patient=https%3A%2F%2Fpatient.cit-careplan-3920.local%2Ffhir%2FPatient%2F22260&data=https%3A%2F%2Fcareplan.cit-careplan-3920.local%2Ffhir%2FEpisodeOfCare%2F2408%2F_history%2F1&category=SSLPCI&status=active

    Request Headers

    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZDI5NzRlNjMtZGEzOS00YTllLWIyM2ItMzg0YWExNzQ5YWFmIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbnNlbnQucmVhZCIsIkNvbnNlbnQuc2VhcmNoIiwiQ29uc2VudC51cGRhdGUiLCJDb25zZW50LmNyZWF0ZSJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
    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:51 GMT
    x-request-id: e7a36680-d046-4b6f-8be1-05157089868b
    server: istio-envoy
    x-envoy-upstream-service-time: 61
    expires: 0
    x-frame-options: DENY
    pragma: no-cache
    last-modified: Thu, 16 Apr 2026 10:54:51 GMT
    x-content-type-options: nosniff
    x-xss-protection: 0
    x-b3-traceid: 36df025a80b7e3ee14ea3f0f4541f5ca
    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": "d2117387-7e05-4ce9-a18f-abda1e7160fa",
      "meta": {
        "lastUpdated": "2026-04-16T10:54:51.267+00:00"
      },
      "type": "searchset",
      "total": 1,
      "link": [
        {
          "relation": "self",
          "url": "https://careplan.cit-careplan-3920.local/fhir/Consent?_format=json&_pretty=true&category=SSLPCI&data=https%3A%2F%2Fcareplan.cit-careplan-3920.local%2Ffhir%2FEpisodeOfCare%2F2408%2F_history%2F1&patient=https%3A%2F%2Fpatient.cit-careplan-3920.local%2Ffhir%2FPatient%2F22260&status=active"
        }
      ],
      "entry": [
        {
          "fullUrl": "https://careplan.cit-careplan-3920.local/fhir/Consent/2409",
          "resource": {
            "resourceType": "Consent",
            "id": "2409",
            "meta": {
              "versionId": "1",
              "lastUpdated": "2026-04-16T10:54:51.016+00:00",
              "source": "#d73bcb6b-8d28-96",
              "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": "SSLPCI"
                  }
                ]
              }
            ],
            "patient": {
              "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/22260"
            },
            "performer": [
              {
                "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/63020"
              }
            ],
            "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": "e00ea2f0-422c-4f30-b179-120949acc971",
                  "role": {
                    "coding": [
                      {
                        "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
                        "code": "authserver"
                      }
                    ]
                  },
                  "reference": {
                    "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/98944"
                  }
                }
              ],
              "data": [
                {
                  "meaning": "related",
                  "reference": {
                    "reference": "https://careplan.cit-careplan-3920.local/fhir/EpisodeOfCare/2408"
                  }
                }
              ]
            }
          },
          "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"
            }
          }
        ]
      }
    }