DELETE [base]/CareTeam/10
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYzFjNTYwOWItNmRkOS00NmRjLWE0Y2ItZjA4ZTczODlkN2FiIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNhcmVUZWFtLndyaXRlIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "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>Successfully deleted 1 resource(s) in 71ms</pre></td></tr></table></div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 71ms"
}
]
}
GET [base]/CareTeam?status=active&date=ge2019-11-04T20%3A50%3A04%2B01%3A00&date=le2019-11-04T20%3A50%3A04%2B01%3A00
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMWQxZmNiNWEtZDJkOC00Y2EzLWJmODEtYmJjYjdjM2Q2NmNlIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNhcmVUZWFtLnNlYXJjaCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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": "e8d6b1e5-b335-420b-be1c-f0c5964c095a",
"meta": {
"lastUpdated": "2019-11-04T19:50:05.434+00:00"
},
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam?_format=json&_pretty=true&date=ge2019-11-04T20%3A50%3A04%2B01%3A00&date=le2019-11-04T20%3A50%3A04%2B01%3A00&status=active"
}
],
"entry": [
{
"fullUrl": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/170",
"resource": {
"resourceType": "CareTeam",
"id": "170",
"meta": {
"versionId": "1",
"lastUpdated": "2019-11-04T19:50:04.804+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "e400b109-1787-4d2c-a2d7-fc1c1e47964f",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "7f15b01d-4441-418f-a12b-7d57b2e4cfc0",
"period": {
"end": "2019-11-04T20:50:04+01:00"
},
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/171",
"resource": {
"resourceType": "CareTeam",
"id": "171",
"meta": {
"versionId": "1",
"lastUpdated": "2019-11-04T19:50:05.038+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "6aa17f49-b4b3-4bc8-b859-68bd8a574b2a",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "1a12ef6a-ff18-4a5f-a9ff-b4abef7ee087",
"period": {
"end": "2019-11-04T20:50:04+01:00"
},
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/CareTeam/55/_history/2
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYzNmMGUwZjAtNmI0Yi00YWVlLThhMzYtYzZjZDRkOTQzNTI4IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNhcmVUZWFtLnJlYWQiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "CareTeam",
"id": "55",
"meta": {
"versionId": "2",
"lastUpdated": "2019-11-04T19:49:27.842+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "3e419b00-56c8-4f7b-bef4-5bf311aa9720",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "f5af10b0-f68a-44d9-bf32-6816b9967691",
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
}
GET [base]/CareTeam/295
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNjMzZDA0NWQtY2MzMy00MmFhLWE4MDAtNzUyMmI3ZTQ2MzMyIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNhcmVUZWFtLnJlYWQiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "CareTeam",
"id": "295",
"meta": {
"versionId": "1",
"lastUpdated": "2019-11-04T19:50:32.099+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "372ff45a-74d1-443e-beac-a7c7afb2abcf",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "039d16ff-4b02-4a3c-8cf2-ace93e2ff61a",
"participant": [
{
"role": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
"code": "monitoringResponsible"
}
]
},
"member": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/35909"
}
},
{
"role": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
"code": "monitoringResponsible"
}
]
},
"member": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/292"
}
},
{
"role": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
"code": "monitoringResponsible"
}
]
},
"member": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/Practitioner/294"
}
}
],
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
],
"managingOrganization": [
{
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/Organization/293"
}
]
}
POST [base]/CareTeam
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYmQ0YTI1NmYtY2JiOS00NjBmLWFlMDItYTYwYWExNTcyNWIxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNhcmVUZWFtLndyaXRlIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "CareTeam",
"meta": {
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "53b0e5cf-5146-4653-8b21-4a5b9d42eb66",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "fb3c93e0-5822-4fad-9a4c-ae4b3d870404",
"participant": [
{
"role": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
"code": "monitoringResponsible"
}
]
},
"member": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/RelatedPerson/55488"
}
},
{
"role": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
"code": "monitoringResponsible"
}
]
},
"member": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/22118"
}
},
{
"role": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
"code": "monitoringResponsible"
}
]
},
"member": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/5"
}
}
],
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
],
"managingOrganization": [
{
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/Organization/6"
}
]
}
Response
{
"resourceType": "CareTeam",
"id": "7",
"meta": {
"versionId": "1",
"lastUpdated": "2019-11-04T19:49:14.328+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "53b0e5cf-5146-4653-8b21-4a5b9d42eb66",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "fb3c93e0-5822-4fad-9a4c-ae4b3d870404",
"participant": [
{
"role": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
"code": "monitoringResponsible"
}
]
},
"member": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/RelatedPerson/55488"
}
},
{
"role": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
"code": "monitoringResponsible"
}
]
},
"member": {
"reference": "http://patient.local.ehealth.sundhed.dk/fhir/Patient/22118"
}
},
{
"role": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
"code": "monitoringResponsible"
}
]
},
"member": {
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/CareTeam/5"
}
}
],
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
],
"managingOrganization": [
{
"reference": "http://organization.local.ehealth.sundhed.dk/fhir/Organization/6"
}
]
}
POST [base]/CareTeam/57/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZjM5YTRkZDgtMjAzNS00ODkxLWFiYzItODM1ZmU4MDQ2N2EyIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNhcmVUZWFtLnJlYWQiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "CareTeam",
"id": "57",
"meta": {
"versionId": "1",
"lastUpdated": "2019-11-04T19:49:28.450+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "14579957-adde-406b-b6a1-e31b51a13416",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "a22413bf-b1ea-4e66-84e1-354d8b5df908",
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
}
}
]
}
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"
}
]
}
PUT [base]/CareTeam/55
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNGI0MmNkOTUtOGEyYy00MWY2LWE0ZGQtMGE1MWUwYzdlZTgyIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNhcmVUZWFtLndyaXRlIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
If-Match: "1"
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": "CareTeam",
"id": "55",
"meta": {
"versionId": "1",
"lastUpdated": "2019-11-04T19:49:27.557+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "3e419b00-56c8-4f7b-bef4-5bf311aa9720",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "f5af10b0-f68a-44d9-bf32-6816b9967691",
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
}
Response
{
"resourceType": "CareTeam",
"id": "55",
"meta": {
"versionId": "2",
"lastUpdated": "2019-11-04T19:49:27.842+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "3e419b00-56c8-4f7b-bef4-5bf311aa9720",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "f5af10b0-f68a-44d9-bf32-6816b9967691",
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
}