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sqFpNTikA-QZ-Xn_GxPnK5Vs2VLCcxAsQ4Q5QPI9IbvlGIT5dPY-g3yuTKDucvtE_-ciCXRmBefsJbaaxiasyGCP9viEZ388Ko1fOPtS3m-6yRYl6Z8hXWnPYvlDpFUCWiIw6hxaLmDXdKWTyt6e8VGme3SSQrkc1515k79u5EKr9_xw2Xa7-7oSW1gQlt0Ei4D7SrlsRlbAHlhvHCU62HauX5_3ll8pjGwUlkDi9L91GZkTi2y44Q
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "EpisodeOfCare",
"id": "153",
"meta": {
"versionId": "1",
"lastUpdated": "2019-05-13T09:28:06.794+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
]
},
"contained": [
{
"resourceType": "Condition",
"id": "1",
"meta": {
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-condition"
]
},
"clinicalStatus": "active",
"code": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
},
"subject": {
"reference": "http://local.ehealth.sundhed.dk:31380/trifork-fhir-server/Patient/32941"
},
"assertedDate": "2019-05-13T11:28:06+02:00"
}
],
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-careManagers",
"valueReference": {
"reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Practitioner/42933"
}
}
],
"status": "active",
"diagnosis": [
{
"condition": {
"reference": "#1"
}
}
],
"patient": {
"reference": "http://local.ehealth.sundhed.dk:31380/trifork-fhir-server/Patient/88043"
},
"managingOrganization": {
"reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/57315"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
}
}
GET [base]/EpisodeOfCare?patient=http%3A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XGFhHqRE4ngNHwhmjBQ3bhmxJoTyTrPN6PsqFpNTikA-QZ-Xn_GxPnK5Vs2VLCcxAsQ4Q5QPI9IbvlGIT5dPY-g3yuTKDucvtE_-ciCXRmBefsJbaaxiasyGCP9viEZ388Ko1fOPtS3m-6yRYl6Z8hXWnPYvlDpFUCWiIw6hxaLmDXdKWTyt6e8VGme3SSQrkc1515k79u5EKr9_xw2Xa7-7oSW1gQlt0Ei4D7SrlsRlbAHlhvHCU62HauX5_3ll8pjGwUlkDi9L91GZkTi2y44Q
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Bundle",
"id": "308e2a7d-6f4a-46fd-929f-29af259e646c",
"meta": {
"lastUpdated": "2019-05-13T09:28:07.542+00:00"
},
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "http://local.ehealth.sundhed.dk:31380/hapi-fhir-server/fhir/EpisodeOfCare?_format\u003djson\u0026_pretty\u003dtrue\u0026patient\u003dhttp%3A%2F%2Flocal.ehealth.sundhed.dk%3A31380%2Ftrifork-fhir-server%2FPatient%2F49732"
}
],
"entry": [
{
"fullUrl": "http://local.ehealth.sundhed.dk:31380/hapi-fhir-server/fhir/EpisodeOfCare/156",
"resource": {
"resourceType": "EpisodeOfCare",
"id": "156",
"meta": {
"versionId": "1",
"lastUpdated": "2019-05-13T09:28:07.409+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
]
},
"contained": [
{
"resourceType": "Condition",
"id": "1",
"meta": {
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-condition"
]
},
"clinicalStatus": "active",
"code": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
},
"subject": {
"reference": "http://local.ehealth.sundhed.dk:31380/trifork-fhir-server/Patient/11013"
},
"assertedDate": "2019-05-13T11:28:07+02:00"
}
],
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-careManagers",
"valueReference": {
"reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Practitioner/78452"
}
}
],
"status": "active",
"diagnosis": [
{
"condition": {
"reference": "#1"
}
}
],
"patient": {
"reference": "http://local.ehealth.sundhed.dk:31380/trifork-fhir-server/Patient/49732"
},
"managingOrganization": {
"reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/73569"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "http://local.ehealth.sundhed.dk:31380/hapi-fhir-server/fhir/EpisodeOfCare/154",
"resource": {
"resourceType": "EpisodeOfCare",
"id": "154",
"meta": {
"versionId": "1",
"lastUpdated": "2019-05-13T09:28:06.973+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
]
},
"contained": [
{
"resourceType": "Condition",
"id": "1",
"meta": {
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-condition"
]
},
"clinicalStatus": "active",
"code": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
},
"subject": {
"reference": "http://local.ehealth.sundhed.dk:31380/trifork-fhir-server/Patient/48435"
},
"assertedDate": "2019-05-13T11:28:06+02:00"
}
],
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-careManagers",
"valueReference": {
"reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Practitioner/33783"
}
}
],
"status": "active",
"diagnosis": [
{
"condition": {
"reference": "#1"
}
}
],
"patient": {
"reference": "http://local.ehealth.sundhed.dk:31380/trifork-fhir-server/Patient/49732"
},
"managingOrganization": {
"reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/82486"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
}
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/EpisodeOfCare/158/_history/2
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJwWjRaNUUydU9UTXNPY1BiazYydUJwUkdGUVROSV9fT1I3UndQcmdJU0FVIn0.eyJqdGkiOiI0NGFjZGQwMy01NWYwLTQyZTYtYjA0My1mY2JhNDI1ZDJkN2UiLCJleHAiOjE1NTc3Mzk5NTQsIm5iZiI6MCwiaWF0IjoxNTU3NzM5NjU0LCJpc3MiOiJodHRwczovL2ludHRlc3QuZWhlYWx0aC5zdW5kaGVkLmRrL2F1dGgvcmVhbG1zL2ludHRlc3QiLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiZTRmYzdkMGUtMWZiOC00MzZmLWFiNWYtMTYzODZkZjZlYzdiIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoidHJpZm9ya19tb2NrIiwiYXV0aF90aW1lIjowLCJzZXNzaW9uX3N0YXRlIjoiZjhmN2UwYTgtYjVjNy00NjIwLWFlZDMtZGFmMmU1ZDE1ZjhlIiwiYWNyIjoiMSIsInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJvZmZsaW5lX2FjY2VzcyIsInVtYV9hdXRob3JpemF0aW9uIiwiZnV0LWEiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6ImVtYWlsIHByb2ZpbGUiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwibmFtZSI6InRlc3QiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzeXN0ZW1hdGljIiwiZmFtaWx5X25hbWUiOiJ0ZXN0In0.hzEcQjdtROGAX-Oj-3V7BLr33trrqexYMS36iPq7eV4AXmUlCpjswO5TOex5irXGFhHqRE4ngNHwhmjBQ3bhmxJoTyTrPN6PsqFpNTikA-QZ-Xn_GxPnK5Vs2VLCcxAsQ4Q5QPI9IbvlGIT5dPY-g3yuTKDucvtE_-ciCXRmBefsJbaaxiasyGCP9viEZ388Ko1fOPtS3m-6yRYl6Z8hXWnPYvlDpFUCWiIw6hxaLmDXdKWTyt6e8VGme3SSQrkc1515k79u5EKr9_xw2Xa7-7oSW1gQlt0Ei4D7SrlsRlbAHlhvHCU62HauX5_3ll8pjGwUlkDi9L91GZkTi2y44Q
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "EpisodeOfCare",
"id": "158",
"meta": {
"versionId": "2",
"lastUpdated": "2019-05-13T09:28:08.171+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
]
},
"contained": [
{
"resourceType": "Condition",
"id": "1",
"meta": {
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-condition"
]
},
"clinicalStatus": "active",
"code": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
},
"subject": {
"reference": "http://local.ehealth.sundhed.dk:31380/trifork-fhir-server/Patient/39936"
},
"assertedDate": "2019-05-13T11:28:07+02:00"
}
],
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-careManagers",
"valueReference": {
"reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Practitioner/12444"
}
}
],
"status": "finished",
"diagnosis": [
{
"condition": {
"reference": "#1"
}
}
],
"patient": {
"reference": "http://local.ehealth.sundhed.dk:31380/trifork-fhir-server/Patient/64382"
},
"managingOrganization": {
"reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/87848"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
}
}
PUT [base]/EpisodeOfCare/158
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJwWjRaNUUydU9UTXNPY1BiazYydUJwUkdGUVROSV9fT1I3UndQcmdJU0FVIn0.eyJqdGkiOiI0NGFjZGQwMy01NWYwLTQyZTYtYjA0My1mY2JhNDI1ZDJkN2UiLCJleHAiOjE1NTc3Mzk5NTQsIm5iZiI6MCwiaWF0IjoxNTU3NzM5NjU0LCJpc3MiOiJodHRwczovL2ludHRlc3QuZWhlYWx0aC5zdW5kaGVkLmRrL2F1dGgvcmVhbG1zL2ludHRlc3QiLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiZTRmYzdkMGUtMWZiOC00MzZmLWFiNWYtMTYzODZkZjZlYzdiIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoidHJpZm9ya19tb2NrIiwiYXV0aF90aW1lIjowLCJzZXNzaW9uX3N0YXRlIjoiZjhmN2UwYTgtYjVjNy00NjIwLWFlZDMtZGFmMmU1ZDE1ZjhlIiwiYWNyIjoiMSIsInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJvZmZsaW5lX2FjY2VzcyIsInVtYV9hdXRob3JpemF0aW9uIiwiZnV0LWEiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6ImVtYWlsIHByb2ZpbGUiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwibmFtZSI6InRlc3QiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzeXN0ZW1hdGljIiwiZmFtaWx5X25hbWUiOiJ0ZXN0In0.hzEcQjdtROGAX-Oj-3V7BLr33trrqexYMS36iPq7eV4AXmUlCpjswO5TOex5irXGFhHqRE4ngNHwhmjBQ3bhmxJoTyTrPN6PsqFpNTikA-QZ-Xn_GxPnK5Vs2VLCcxAsQ4Q5QPI9IbvlGIT5dPY-g3yuTKDucvtE_-ciCXRmBefsJbaaxiasyGCP9viEZ388Ko1fOPtS3m-6yRYl6Z8hXWnPYvlDpFUCWiIw6hxaLmDXdKWTyt6e8VGme3SSQrkc1515k79u5EKr9_xw2Xa7-7oSW1gQlt0Ei4D7SrlsRlbAHlhvHCU62HauX5_3ll8pjGwUlkDi9L91GZkTi2y44Q
If-Match: "1"
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "EpisodeOfCare",
"id": "158",
"meta": {
"versionId": "1",
"lastUpdated": "2019-05-13T09:28:08.001+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
]
},
"contained": [
{
"resourceType": "Condition",
"id": "1",
"meta": {
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-condition"
]
},
"clinicalStatus": "active",
"code": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
},
"subject": {
"reference": "http://local.ehealth.sundhed.dk:31380/trifork-fhir-server/Patient/39936"
},
"assertedDate": "2019-05-13T11:28:07+02:00"
}
],
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-careManagers",
"valueReference": {
"reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Practitioner/12444"
}
}
],
"status": "finished",
"diagnosis": [
{
"condition": {
"reference": "#1"
}
}
],
"patient": {
"reference": "http://local.ehealth.sundhed.dk:31380/trifork-fhir-server/Patient/64382"
},
"managingOrganization": {
"reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/87848"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
}
}
Response
{
"resourceType": "EpisodeOfCare",
"id": "158",
"meta": {
"versionId": "2",
"lastUpdated": "2019-05-13T09:28:08.171+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare"
]
},
"contained": [
{
"resourceType": "Condition",
"id": "1",
"meta": {
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-condition"
]
},
"clinicalStatus": "active",
"code": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
},
"subject": {
"reference": "http://local.ehealth.sundhed.dk:31380/trifork-fhir-server/Patient/39936"
},
"assertedDate": "2019-05-13T11:28:07+02:00"
}
],
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-careManagers",
"valueReference": {
"reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Practitioner/12444"
}
}
],
"status": "finished",
"diagnosis": [
{
"condition": {
"reference": "#1"
}
}
],
"patient": {
"reference": "http://local.ehealth.sundhed.dk:31380/trifork-fhir-server/Patient/64382"
},
"managingOrganization": {
"reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/87848"
},
"period": {
"start": "1970-01-01T01:00:01+01:00",
"end": "1970-01-01T01:01:40+01:00"
}
}