GET [base]/EpisodeOfCare/694
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cDovL29yZ2FuaXphdGlvbi5sb2NhbC5laGVhbHRoLnN1bmRoZWQuZGsvZmhpci9QcmFjdGl0aW9uZXIvNTIzMTQiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ29uZGl0aW9uLnJlYWQiLCJFcGlzb2RlT2ZDYXJlLnJlYWQiLCJFcGlzb2RlT2ZDYXJlJGNyZWF0ZS1lcGlzb2RlLW9mLWNhcmUiLCIkdGVzdC1vbmx5LWNyZWF0ZSIsIlByb3ZlbmFuY2UucmVhZCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "EpisodeOfCare",
"id": "694",
"meta": {
"versionId": "1",
"lastUpdated": "2019-11-04T20:16:54.900+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization",
"valueReference": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/Organization/58833"
}
}
],
"status": "planned",
"statusHistory": [
{
"status": "planned",
"period": {
"start": "2019-11-04T20:16:54+00:00"
}
}
],
"diagnosis": [
{
"condition": {
"reference": "http://careplan.local.ehealth.sundhed.dk/fhir/Condition/695"
}
}
],
"patient": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/8782"
},
"managingOrganization": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/Organization/38058"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
}
}
GET [base]/EpisodeOfCare?team=http%3A%2F%2Forganization.local.ehealth.sundhed.dk%2Ffhir%2FCareTeam%2F10573%2Chttp%3A%2F%2Forganization.local.ehealth.sundhed.dk%2Ffhir%2FCareTeam%2F76399
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cDovL29yZ2FuaXphdGlvbi5sb2NhbC5laGVhbHRoLnN1bmRoZWQuZGsvZmhpci9QcmFjdGl0aW9uZXIvNTc1OTgiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiRXBpc29kZU9mQ2FyZS5zZWFyY2giLCJFcGlzb2RlT2ZDYXJlLnJlYWQiLCJDYXJlUGxhbi5yZWFkIiwiRXBpc29kZU9mQ2FyZSR1cGRhdGUtY2FyZS10ZWFtcyIsIiR0ZXN0LW9ubHktY3JlYXRlIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Bundle",
"id": "b76b6998-d54c-489d-a03f-73d9bc5be323",
"meta": {
"lastUpdated": "2019-11-04T20:17:06.159+00:00"
},
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "http://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare?_format=json&_pretty=true&team=http%3A%2F%2Forganization.local.ehealth.sundhed.dk%2Ffhir%2FCareTeam%2F10573%2Chttp%3A%2F%2Forganization.local.ehealth.sundhed.dk%2Ffhir%2FCareTeam%2F76399"
}
],
"entry": [
{
"fullUrl": "http://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/759",
"resource": {
"resourceType": "EpisodeOfCare",
"id": "759",
"meta": {
"versionId": "1",
"lastUpdated": "2019-11-04T20:17:05.781+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization",
"valueReference": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/Organization/24786"
}
}
],
"status": "active",
"diagnosis": [
{
"condition": {
"reference": "http://careplan.local.ehealth.sundhed.dk/fhir/Condition/758"
},
"rank": 1
}
],
"patient": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/35318"
},
"managingOrganization": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/Organization/5874"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
},
"team": [
{
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/10573"
}
]
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "http://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/761",
"resource": {
"resourceType": "EpisodeOfCare",
"id": "761",
"meta": {
"versionId": "1",
"lastUpdated": "2019-11-04T20:17:05.989+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization",
"valueReference": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/Organization/16009"
}
}
],
"status": "active",
"diagnosis": [
{
"condition": {
"reference": "http://careplan.local.ehealth.sundhed.dk/fhir/Condition/760"
},
"rank": 1
}
],
"patient": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/67704"
},
"managingOrganization": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/Organization/12637"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
},
"team": [
{
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/76399"
}
]
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/EpisodeOfCare/868/_history/2
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cDovL29yZ2FuaXphdGlvbi5sb2NhbC5laGVhbHRoLnN1bmRoZWQuZGsvZmhpci9QcmFjdGl0aW9uZXIvNTQ5ODgiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiRXBpc29kZU9mQ2FyZS5yZWFkIiwiJHRlc3Qtb25seS1jcmVhdGUiLCJFcGlzb2RlT2ZDYXJlLnBhdGNoIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "EpisodeOfCare",
"id": "868",
"meta": {
"versionId": "2",
"lastUpdated": "2019-11-04T20:17:23.181+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization",
"valueReference": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/Organization/32519"
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory",
"extension": [
{
"url": "careTeam",
"valueReference": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/91802"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2019-11-03T21:17:22+01:00",
"end": "2019-11-04T20:17:23+00:00"
}
}
]
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory",
"extension": [
{
"url": "careTeam",
"valueReference": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/37774"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2019-11-04T20:17:23+00:00"
}
}
]
}
],
"status": "active",
"diagnosis": [
{
"condition": {
"reference": "http://careplan.local.ehealth.sundhed.dk/fhir/Condition/867"
},
"rank": 1
}
],
"patient": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/94660"
},
"managingOrganization": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/Organization/97688"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
},
"team": [
{
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/37774"
}
]
}
POST [base]/EpisodeOfCare/8/$is-context-allowed
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiRXBpc29kZU9mQ2FyZSRpcy1jb250ZXh0LWFsbG93ZWQiLCIkdGVzdC1vbmx5LWNyZWF0ZSJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "Parameters",
"parameter": [
{
"name": "patient",
"valueReference": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/93436"
}
}
]
}
Response
{
"resourceType": "Parameters",
"parameter": [
{
"name": "Patient",
"valueReference": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/93436"
}
}
]
}
PATCH [base]/EpisodeOfCare/868
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cDovL29yZ2FuaXphdGlvbi5sb2NhbC5laGVhbHRoLnN1bmRoZWQuZGsvZmhpci9QcmFjdGl0aW9uZXIvNTQ5ODgiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiRXBpc29kZU9mQ2FyZS5yZWFkIiwiJHRlc3Qtb25seS1jcmVhdGUiLCJFcGlzb2RlT2ZDYXJlLnBhdGNoIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/json-patch+json; charset=UTF-8
Body:
[
{
"op": "replace",
"path": "/team",
"value": [
{
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/37774"
}
]
}
]
Response
{
"resourceType": "EpisodeOfCare",
"id": "868",
"meta": {
"versionId": "2",
"lastUpdated": "2019-11-04T20:17:23.181+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization",
"valueReference": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/Organization/32519"
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory",
"extension": [
{
"url": "careTeam",
"valueReference": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/91802"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2019-11-03T21:17:22+01:00",
"end": "2019-11-04T20:17:23+00:00"
}
}
]
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory",
"extension": [
{
"url": "careTeam",
"valueReference": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/37774"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2019-11-04T20:17:23+00:00"
}
}
]
}
],
"status": "active",
"diagnosis": [
{
"condition": {
"reference": "http://careplan.local.ehealth.sundhed.dk/fhir/Condition/867"
},
"rank": 1
}
],
"patient": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/94660"
},
"managingOrganization": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/Organization/97688"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
},
"team": [
{
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/37774"
}
]
}
POST [base]/EpisodeOfCare/777/$update-care-teams
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cDovL29yZ2FuaXphdGlvbi5sb2NhbC5laGVhbHRoLnN1bmRoZWQuZGsvZmhpci9QcmFjdGl0aW9uZXIvODQ1MjEiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiRXBpc29kZU9mQ2FyZS5zZWFyY2giLCJFcGlzb2RlT2ZDYXJlLnJlYWQiLCJDYXJlUGxhbi5yZWFkIiwiRXBpc29kZU9mQ2FyZSR1cGRhdGUtY2FyZS10ZWFtcyIsIiR0ZXN0LW9ubHktY3JlYXRlIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "Parameters",
"parameter": [
{
"name": "addCareteams",
"valueReference": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/22417"
}
},
{
"name": "removeCareteams",
"valueReference": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/66561"
}
}
]
}
Response
{
"resourceType": "EpisodeOfCare",
"id": "777",
"meta": {
"versionId": "2",
"lastUpdated": "2019-11-04T20:17:09.103+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization",
"valueReference": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/Organization/79991"
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory",
"extension": [
{
"url": "careTeam",
"valueReference": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/22417"
}
},
{
"url": "period",
"valuePeriod": {
"start": "2019-11-04T20:17:09+00:00"
}
}
]
}
],
"status": "active",
"diagnosis": [
{
"condition": {
"reference": "http://careplan.local.ehealth.sundhed.dk/fhir/Condition/776"
},
"rank": 1
}
],
"patient": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/62734"
},
"managingOrganization": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/Organization/42276"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
},
"team": [
{
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/97607"
},
{
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/22417"
}
]
}
POST [base]/EpisodeOfCare/787/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cDovL29yZ2FuaXphdGlvbi5sb2NhbC5laGVhbHRoLnN1bmRoZWQuZGsvZmhpci9QcmFjdGl0aW9uZXIvNDk4OTkiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiRXBpc29kZU9mQ2FyZS5zZWFyY2giLCJFcGlzb2RlT2ZDYXJlLnJlYWQiLCJDYXJlUGxhbi5yZWFkIiwiRXBpc29kZU9mQ2FyZSR1cGRhdGUtY2FyZS10ZWFtcyIsIiR0ZXN0LW9ubHktY3JlYXRlIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "Parameters",
"parameter": [
{
"name": "resource",
"resource": {
"resourceType": "EpisodeOfCare",
"id": "787",
"meta": {
"versionId": "1",
"lastUpdated": "2019-11-04T20:17:10.295+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization",
"valueReference": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/Organization/74881"
}
}
],
"status": "active",
"diagnosis": [
{
"condition": {
"reference": "http://careplan.local.ehealth.sundhed.dk/fhir/Condition/786"
},
"rank": 1
}
],
"patient": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/39225"
},
"managingOrganization": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/Organization/58389"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
}
}
}
]
}
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><pre>No issues detected during validation</pre></td></tr><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>No issues detected during validation</pre></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"
}
]
}