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

Examples for the ehealth-episodeofcare Profile:

  • EpisodeOfCare/42
  • StructureDefinition: ehealth-episodeofcare - Operation examples

    GET [base]/EpisodeOfCare/1821

    Request Headers

    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMWVjZmU0NmItYTFhMS00ZmMzLWFhNDMtOTU3ZTkxY2YwMDBlIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkVwaXNvZGVPZkNhcmUucmVhZCJdfSwiY29udGV4dCI6eyJlcGlzb2RlX29mX2NhcmVfaWQiOiJodHRwczovL2NhcmVwbGFuLmNpdC1jYXJlcGxhbi0zOTIwLmxvY2FsL2ZoaXIvRXBpc29kZU9mQ2FyZS8xODIxIiwidGVhbV9vbl9lb2MiOmZhbHNlfSwidXNlcl90eXBlIjoiUFJBQ1RJVElPTkVSIn0.
    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:50:07 GMT
    x-request-id: 5dbca85e-d692-4d1c-87be-07692bc1804d
    server: istio-envoy
    x-envoy-upstream-service-time: 53
    expires: 0
    x-frame-options: DENY
    pragma: no-cache
    last-modified: Thu, 16 Apr 2026 10:50:07 GMT
    x-content-type-options: nosniff
    x-xss-protection: 0
    x-b3-traceid: 784226544110b918d3389bde4d04d352
    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/EpisodeOfCare/1821/_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": "EpisodeOfCare",
      "id": "1821",
      "meta": {
        "versionId": "1",
        "lastUpdated": "2026-04-16T10:50:07.480+00:00",
        "source": "#6fd2076c-397f-43",
        "profile": [
          "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
        ]
      },
      "extension": [
        {
          "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization",
          "valueReference": {
            "reference": "https://organization.cit-careplan-3920.local/fhir/Organization/1188"
          }
        }
      ],
      "status": "active",
      "statusHistory": [
        {
          "status": "active",
          "period": {
            "start": "2026-04-16T10:50:07+00:00"
          }
        }
      ],
      "diagnosis": [
        {
          "condition": {
            "reference": "https://careplan.cit-careplan-3920.local/fhir/Condition/1820"
          },
          "rank": 1
        }
      ],
      "patient": {
        "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/93959"
      },
      "managingOrganization": {
        "reference": "https://organization.cit-careplan-3920.local/fhir/Organization/1188"
      },
      "period": {
        "start": "1970-01-01T00:00:01+00:00",
        "end": "1970-01-01T00:01:40+00:00"
      }
    }
    

    GET [base]/EpisodeOfCare?team=https%3A%2F%2Forganization.cit-careplan-3920.local%2Ffhir%2FCareTeam%2F4711%2Chttps%3A%2F%2Forganization.cit-careplan-3920.local%2Ffhir%2FCareTeam%2F9354

    Request Headers

    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMGRmOGUzNjUtMTY0MC00MmRjLWI1ZjEtNGI0MjlkMTU4MDQ1IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkVwaXNvZGVPZkNhcmUuc2VhcmNoIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
    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:18:37 GMT
    x-request-id: 6326f4a1-6b91-4edb-84fe-6d32b4ac3832
    server: istio-envoy
    x-envoy-upstream-service-time: 39
    expires: 0
    x-frame-options: DENY
    pragma: no-cache
    last-modified: Thu, 16 Apr 2026 11:18:37 GMT
    x-content-type-options: nosniff
    x-xss-protection: 0
    x-b3-traceid: 1c89caad5bb3a985cc29793eda2e53fe
    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": "c4cb59e9-d4a9-4bc2-bc02-1ed4f8005a53",
      "meta": {
        "lastUpdated": "2026-04-16T11:18:37.356+00:00"
      },
      "type": "searchset",
      "total": 2,
      "link": [
        {
          "relation": "self",
          "url": "https://careplan.cit-careplan-3920.local/fhir/EpisodeOfCare?_format=json&_pretty=true&team=https%3A%2F%2Forganization.cit-careplan-3920.local%2Ffhir%2FCareTeam%2F4711%2Chttps%3A%2F%2Forganization.cit-careplan-3920.local%2Ffhir%2FCareTeam%2F9354"
        }
      ],
      "entry": [
        {
          "fullUrl": "https://careplan.cit-careplan-3920.local/fhir/EpisodeOfCare/5253",
          "resource": {
            "resourceType": "EpisodeOfCare",
            "id": "5253",
            "meta": {
              "versionId": "1",
              "lastUpdated": "2026-04-16T11:18:37.030+00:00",
              "source": "#395cd82a-ea36-4b",
              "profile": [
                "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
              ]
            },
            "extension": [
              {
                "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization",
                "valueReference": {
                  "reference": "https://organization.cit-careplan-3920.local/fhir/Organization/33512"
                }
              }
            ],
            "status": "active",
            "statusHistory": [
              {
                "status": "active",
                "period": {
                  "start": "2026-04-16T11:18:36+00:00"
                }
              }
            ],
            "diagnosis": [
              {
                "condition": {
                  "reference": "https://careplan.cit-careplan-3920.local/fhir/Condition/5252"
                },
                "rank": 1
              }
            ],
            "patient": {
              "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/92821"
            },
            "managingOrganization": {
              "reference": "https://organization.cit-careplan-3920.local/fhir/Organization/33512"
            },
            "period": {
              "start": "1970-01-01T00:00:01+00:00",
              "end": "1970-01-01T00:01:40+00:00"
            },
            "team": [
              {
                "reference": "https://organization.cit-careplan-3920.local/fhir/CareTeam/4711"
              }
            ]
          },
          "search": {
            "mode": "match"
          }
        },
        {
          "fullUrl": "https://careplan.cit-careplan-3920.local/fhir/EpisodeOfCare/5255",
          "resource": {
            "resourceType": "EpisodeOfCare",
            "id": "5255",
            "meta": {
              "versionId": "1",
              "lastUpdated": "2026-04-16T11:18:37.266+00:00",
              "source": "#7f3df033-d6f8-4d",
              "profile": [
                "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
              ]
            },
            "extension": [
              {
                "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization",
                "valueReference": {
                  "reference": "https://organization.cit-careplan-3920.local/fhir/Organization/73663"
                }
              }
            ],
            "status": "active",
            "statusHistory": [
              {
                "status": "active",
                "period": {
                  "start": "2026-04-16T11:18:37+00:00"
                }
              }
            ],
            "diagnosis": [
              {
                "condition": {
                  "reference": "https://careplan.cit-careplan-3920.local/fhir/Condition/5254"
                },
                "rank": 1
              }
            ],
            "patient": {
              "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/6344"
            },
            "managingOrganization": {
              "reference": "https://organization.cit-careplan-3920.local/fhir/Organization/73663"
            },
            "period": {
              "start": "1970-01-01T00:00:01+00:00",
              "end": "1970-01-01T00:01:40+00:00"
            },
            "team": [
              {
                "reference": "https://organization.cit-careplan-3920.local/fhir/CareTeam/9354"
              }
            ]
          },
          "search": {
            "mode": "match"
          }
        }
      ]
    }
    

    GET [base]/EpisodeOfCare/5151/_history/1

    Request Headers

    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24uY2l0LWNhcmVwbGFuLTM5MjAubG9jYWwvZmhpci9QcmFjdGl0aW9uZXIvODUwODMiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiRXBpc29kZU9mQ2FyZS5yZWFkIl19LCJjb250ZXh0Ijp7ImNhcmVfdGVhbV9pZCI6Imh0dHBzOi8vb3JnYW5pemF0aW9uLmNpdC1jYXJlcGxhbi0zOTIwLmxvY2FsL2ZoaXIvQ2FyZVRlYW0vNDQ4MzgiLCJlcGlzb2RlX29mX2NhcmVfaWQiOiJodHRwczovL2NhcmVwbGFuLmNpdC1jYXJlcGxhbi0zOTIwLmxvY2FsL2ZoaXIvRXBpc29kZU9mQ2FyZS81MTUxIiwidGVhbV9vbl9lb2MiOmZhbHNlfSwidXNlcl90eXBlIjoiUFJBQ1RJVElPTkVSIn0.
    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:18:15 GMT
    x-request-id: 8cb32250-e0c8-4a8c-b260-000a27cee6fe
    server: istio-envoy
    x-envoy-upstream-service-time: 40
    expires: 0
    x-frame-options: DENY
    pragma: no-cache
    last-modified: Thu, 16 Apr 2026 11:18:15 GMT
    x-content-type-options: nosniff
    x-xss-protection: 0
    x-b3-traceid: ba9fd4534888fe1a02c104e966cea2df
    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/EpisodeOfCare/5151/_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": "EpisodeOfCare",
      "id": "5151",
      "meta": {
        "versionId": "1",
        "lastUpdated": "2026-04-16T11:18:15.755+00:00",
        "source": "#603cc22d-a563-47",
        "profile": [
          "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
        ]
      },
      "extension": [
        {
          "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization",
          "valueReference": {
            "reference": "https://organization.cit-careplan-3920.local/fhir/Organization/18428"
          }
        }
      ],
      "status": "active",
      "statusHistory": [
        {
          "status": "active",
          "period": {
            "start": "2026-04-16T11:18:15+00:00"
          }
        }
      ],
      "diagnosis": [
        {
          "condition": {
            "reference": "https://careplan.cit-careplan-3920.local/fhir/Condition/5150"
          },
          "rank": 1
        }
      ],
      "patient": {
        "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/2104"
      },
      "managingOrganization": {
        "reference": "https://organization.cit-careplan-3920.local/fhir/Organization/18428"
      },
      "period": {
        "start": "1970-01-01T00:00:01+00:00",
        "end": "1970-01-01T00:01:40+00:00"
      },
      "team": [
        {
          "reference": "https://organization.cit-careplan-3920.local/fhir/CareTeam/86196"
        }
      ]
    }
    

    PATCH [base]/EpisodeOfCare/3246

    Request Headers

    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24uY2l0LWNhcmVwbGFuLTM5MjAubG9jYWwvZmhpci9QcmFjdGl0aW9uZXIvMzU3NzkiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiRXBpc29kZU9mQ2FyZS5zZWFyY2giLCJFcGlzb2RlT2ZDYXJlLnJlYWQiLCJDYXJlUGxhbi5yZWFkIiwiRXBpc29kZU9mQ2FyZSR1cGRhdGUtY2FyZS10ZWFtcyIsIkVwaXNvZGVPZkNhcmUucGF0Y2giXX0sInVzZXJfdHlwZSI6IlNZU1RFTSIsInNjb3BlIjoib3BlbmlkIGh0dHA6Ly9laGVhbHRoLnN1bmRoZWQuZGsvY3MvZWhlYWx0aC1zeXN0ZW18eGEifQ.
    Accept: application/fhir+xml;q=1.0, application/fhir+json;q=1.0, application/xml+fhir;q=0.9, 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/json-patch+json; charset=UTF-8
    

    Body:

    [
      {
        "op": "replace",
        "path": "/status",
        "value": "active"
      }
    ]
    

    Response Headers

    date: Thu, 16 Apr 2026 11:03:34 GMT
    x-request-id: 62bac5b7-fa5b-4a50-883e-4448a5a311fa
    server: istio-envoy
    x-envoy-upstream-service-time: 75
    expires: 0
    x-frame-options: DENY
    pragma: no-cache
    last-modified: Thu, 16 Apr 2026 11:03:34 GMT
    x-content-type-options: nosniff
    x-xss-protection: 0
    x-b3-traceid: 5705bd6a9a0a1d2ba45b20fd1e94b45d
    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/EpisodeOfCare/3246/_history/2
    content-type: application/fhir+json; charset=UTF-8
    cache-control: no-cache, no-store, max-age=0, must-revalidate
    

    Response

    {
      "resourceType": "EpisodeOfCare",
      "id": "3246",
      "meta": {
        "versionId": "2",
        "lastUpdated": "2026-04-16T11:03:34.265+00:00",
        "source": "#62bac5b7-fa5b-4a50-883e-4448a5a311fa",
        "profile": [
          "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
        ]
      },
      "extension": [
        {
          "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization",
          "valueReference": {
            "reference": "https://organization.cit-careplan-3920.local/fhir/Organization/26591"
          }
        }
      ],
      "status": "active",
      "statusHistory": [
        {
          "status": "finished",
          "period": {
            "start": "2026-04-15T11:03:31+00:00",
            "end": "2026-04-16T11:03:34+00:00"
          }
        },
        {
          "status": "active",
          "period": {
            "start": "2026-04-16T11:03:34+00:00"
          }
        }
      ],
      "diagnosis": [
        {
          "condition": {
            "reference": "https://careplan.cit-careplan-3920.local/fhir/Condition/3245"
          },
          "rank": 1
        }
      ],
      "patient": {
        "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/5853"
      },
      "managingOrganization": {
        "reference": "https://organization.cit-careplan-3920.local/fhir/Organization/26591"
      },
      "period": {
        "start": "1970-01-01T00:00:01+00:00",
        "end": "1970-01-01T00:01:40+00:00"
      }
    }
    

    POST [base]/EpisodeOfCare/5293/$validate

    Request Headers

    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24uY2l0LWNhcmVwbGFuLTM5MjAubG9jYWwvZmhpci9QcmFjdGl0aW9uZXIvNjY4MTgiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiRXBpc29kZU9mQ2FyZSR1cGRhdGUtY2FyZS10ZWFtcyJdfSwiY29udGV4dCI6eyJjYXJlX3RlYW1faWQiOiJodHRwczovL29yZ2FuaXphdGlvbi5jaXQtY2FyZXBsYW4tMzkyMC5sb2NhbC9maGlyL0NhcmVUZWFtLzc0MTg3IiwiZXBpc29kZV9vZl9jYXJlX2lkIjoiaHR0cHM6Ly9jYXJlcGxhbi5jaXQtY2FyZXBsYW4tMzkyMC5sb2NhbC9maGlyL0VwaXNvZGVPZkNhcmUvNTI4MyIsInRlYW1fb25fZW9jIjpmYWxzZX0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9.
    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": "EpisodeOfCare",
            "id": "5293",
            "meta": {
              "versionId": "1",
              "lastUpdated": "2026-04-16T11:18:47.277+00:00",
              "source": "#df43c4d7-b5d1-9023-992a-d804ead08d5c",
              "profile": [
                "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
              ]
            },
            "extension": [
              {
                "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization",
                "valueReference": {
                  "reference": "https://organization.cit-careplan-3920.local/fhir/Organization/5391"
                }
              }
            ],
            "status": "active",
            "statusHistory": [
              {
                "status": "active",
                "period": {
                  "start": "2026-04-16T11:18:47+00:00"
                }
              }
            ],
            "diagnosis": [
              {
                "condition": {
                  "reference": "https://careplan.cit-careplan-3920.local/fhir/Condition/5292"
                },
                "rank": 1
              }
            ],
            "patient": {
              "reference": "https://patient.cit-careplan-3920.local/fhir/Patient/95574"
            },
            "managingOrganization": {
              "reference": "https://organization.cit-careplan-3920.local/fhir/Organization/5391"
            },
            "period": {
              "start": "1970-01-01T00:00:01+00:00",
              "end": "1970-01-01T00:01:40+00:00"
            }
          }
        }
      ]
    }
    

    Response Headers

    date: Thu, 16 Apr 2026 11:18:47 GMT
    x-request-id: b839ad89-7b87-404f-a4c2-a095b9b847c4
    server: istio-envoy
    x-envoy-upstream-service-time: 81
    expires: 0
    x-content-type-options: nosniff
    x-xss-protection: 0
    x-b3-traceid: 05698d40a4af15c40ac583221b21e64b
    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"
        }
      ]
    }