eHealth Infrastructure - Local Development build (v2022.2). See the Directory of published versions
POST [base]/EpisodeOfCare/1394/$update-care-teams
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24uY2l0LWNhcmVwbGFuLTIwNDYubG9jYWwvZmhpci9QcmFjdGl0aW9uZXIvMzg3MTMiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiRXBpc29kZU9mQ2FyZS5zZWFyY2giLCJFcGlzb2RlT2ZDYXJlLnJlYWQiLCJDYXJlUGxhbi5yZWFkIiwiRXBpc29kZU9mQ2FyZSR1cGRhdGUtY2FyZS10ZWFtcyIsIiR0ZXN0LW9ubHktY3JlYXRlIiwiRXBpc29kZU9mQ2FyZS5wYXRjaCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.7.0 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "Parameters",
"parameter": [
{
"name": "addCareteams",
"valueReference": {
"reference": "https://organization.cit-careplan-2046.local/fhir/CareTeam/66078"
}
},
{
"name": "removeCareteams",
"valueReference": {
"reference": "https://organization.cit-careplan-2046.local/fhir/CareTeam/89542"
}
}
]
}
Response
{
"resourceType": "EpisodeOfCare",
"id": "1394",
"meta": {
"versionId": "2",
"lastUpdated": "2022-06-17T08:37:18.743+00:00",
"source": "#b0f38c1a-7bbf-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-2046.local/fhir/Organization/48951"
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory",
"extension": [
{
"url": "careTeam",
"valueReference": {
"reference": "https://organization.cit-careplan-2046.local/fhir/CareTeam/66078"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2022-06-17T08:37:18+00:00"
}
}
]
}
],
"status": "active",
"diagnosis": [
{
"condition": {
"reference": "https://careplan.cit-careplan-2046.local/fhir/Condition/1393"
},
"rank": 1
}
],
"patient": {
"reference": "https://patient.cit-careplan-2046.local/fhir/Patient/48353"
},
"managingOrganization": {
"reference": "https://organization.cit-careplan-2046.local/fhir/Organization/91634"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"team": [
{
"reference": "https://organization.cit-careplan-2046.local/fhir/CareTeam/14034"
},
{
"reference": "https://organization.cit-careplan-2046.local/fhir/CareTeam/66078"
}
]
}