DELETE [base]/CareTeam/10
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiOGVjYTJmNDctY2U0YS00OWYzLThhZmMtM2Q3NDhiNTNmMmFiIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNhcmVUZWFtLndyaXRlIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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 109ms</pre></td>\r\r\r</tr>\r</table>\r</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 109ms"
}
]
}
GET [base]/CareTeam?status=active&date=ge2020-02-03T15%3A01%3A50%2B01%3A00&date=le2020-02-03T15%3A01%3A50%2B01%3A00&managingOrganization=https%3A%2F%2Forganization.local.ehealth.sundhed.dk%2Ffhir%2FOrganization%2F190%2F_history%2F1
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYjFkZGQ5YzktODI3Mi00MzkyLWJkMGEtZTY3MjVmODhhODc1IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNhcmVUZWFtLnNlYXJjaCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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": "a0347259-f88c-46d6-ae2e-e1e497f58661",
"meta": {
"lastUpdated": "2020-02-03T14:01:51.153+00:00"
},
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "https://organization.local.ehealth.sundhed.dk/fhir/CareTeam?_format=json&_pretty=true&date=ge2020-02-03T15%3A01%3A50%2B01%3A00&date=le2020-02-03T15%3A01%3A50%2B01%3A00&managingOrganization=https%3A%2F%2Forganization.local.ehealth.sundhed.dk%2Ffhir%2FOrganization%2F190%2F_history%2F1&status=active"
}
],
"entry": [
{
"fullUrl": "https://organization.local.ehealth.sundhed.dk/fhir/CareTeam/191",
"resource": {
"resourceType": "CareTeam",
"id": "191",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T14:01:50.315+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "df03eb3a-9890-4431-9da9-8236ee04a01a",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "fb950dd4-a406-494b-a87b-b792495b27d1",
"period": {
"end": "2020-02-03T15:01:50+01:00"
},
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
],
"managingOrganization": [
{
"reference": "https://organization.local.ehealth.sundhed.dk/fhir/Organization/190"
}
]
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://organization.local.ehealth.sundhed.dk/fhir/CareTeam/192",
"resource": {
"resourceType": "CareTeam",
"id": "192",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T14:01:50.555+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "3fbf8d8e-36d0-49f8-840f-e15674ec7581",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "fc645d64-cc60-4f91-bc26-2a0ce8b32011",
"period": {
"end": "2020-02-03T15:01:50+01:00"
},
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
],
"managingOrganization": [
{
"reference": "https://organization.local.ehealth.sundhed.dk/fhir/Organization/190"
}
]
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/CareTeam/56/_history/2
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNWFmZTNjODktNThkMy00NDA2LWIyY2MtZTNkNDVhYjY4YjU3IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNhcmVUZWFtLnJlYWQiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "56",
"meta": {
"versionId": "2",
"lastUpdated": "2020-02-03T14:01:04.719+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "7d358edd-5450-4855-987e-b991d093f143",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "9fb79207-79da-4fa2-a854-8c3c3238bd77",
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
}
GET [base]/CareTeam/316
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMjFlNjhhOWUtMThhOC00MDYwLWIxODMtMzY4ZTEyYzJhOTNkIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNhcmVUZWFtLnJlYWQiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "316",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T14:02:21.311+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "51973bb3-6152-4eff-8d05-61293b609df5",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "9a6dc419-5fcb-4cde-9cb8-9b536b13dee9",
"participant": [
{
"role": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
"code": "monitoringResponsible"
}
]
},
"member": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/64091"
}
},
{
"role": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
"code": "monitoringResponsible"
}
]
},
"member": {
"reference": "https://organization.local.ehealth.sundhed.dk/fhir/CareTeam/313"
}
},
{
"role": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
"code": "monitoringResponsible"
}
]
},
"member": {
"reference": "https://organization.local.ehealth.sundhed.dk/fhir/Practitioner/315"
}
}
],
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
],
"managingOrganization": [
{
"reference": "https://organization.local.ehealth.sundhed.dk/fhir/Organization/314"
}
]
}
POST [base]/CareTeam
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYTAzZTA0NGYtNzA3MC00YWQ3LTkwZTUtNzBiOWI4OTM4ZGFhIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNhcmVUZWFtLndyaXRlIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "35c5e747-a644-4d06-9a9d-ada713741ef4",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "b294c7d5-7dd6-4322-83f0-8b09b62f9c2c",
"participant": [
{
"role": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
"code": "monitoringResponsible"
}
]
},
"member": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/RelatedPerson/25120"
}
},
{
"role": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
"code": "monitoringResponsible"
}
]
},
"member": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/79553"
}
},
{
"role": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
"code": "monitoringResponsible"
}
]
},
"member": {
"reference": "https://organization.local.ehealth.sundhed.dk/fhir/CareTeam/5"
}
}
],
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
],
"managingOrganization": [
{
"reference": "https://organization.local.ehealth.sundhed.dk/fhir/Organization/6"
}
]
}
Response
{
"resourceType": "CareTeam",
"id": "7",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T14:00:48.261+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "35c5e747-a644-4d06-9a9d-ada713741ef4",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "b294c7d5-7dd6-4322-83f0-8b09b62f9c2c",
"participant": [
{
"role": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
"code": "monitoringResponsible"
}
]
},
"member": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/RelatedPerson/25120"
}
},
{
"role": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
"code": "monitoringResponsible"
}
]
},
"member": {
"reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/79553"
}
},
{
"role": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
"code": "monitoringResponsible"
}
]
},
"member": {
"reference": "https://organization.local.ehealth.sundhed.dk/fhir/CareTeam/5"
}
}
],
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
],
"managingOrganization": [
{
"reference": "https://organization.local.ehealth.sundhed.dk/fhir/Organization/6"
}
]
}
POST [base]/CareTeam/58/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMWZhYzc3MDItYWY0OS00YWE2LWI5ODgtZWZlNGVkMjZkOWI2IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNhcmVUZWFtLnJlYWQiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "58",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T14:01:05.344+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "12c02c79-2228-4976-a276-99218d858c05",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "ff06ef15-a8e4-496a-8f93-297b800de95c",
"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>\r\r\r</tr>\r<tr>\r<td style=\"font-weight: bold;\">INFORMATION</td>\r<td>[]</td>\r\r\r\r<td><pre>No issues detected during validation</pre></td>\r\r\r</tr>\r</table>\r</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/56
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNmUyNWEyNTAtZmM0OS00N2IwLTgzMjctNThkNjJiYTJlMmYzIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNhcmVUZWFtLndyaXRlIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "56",
"meta": {
"versionId": "1",
"lastUpdated": "2020-02-03T14:01:04.463+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "7d358edd-5450-4855-987e-b991d093f143",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "9fb79207-79da-4fa2-a854-8c3c3238bd77",
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
}
Response
{
"resourceType": "CareTeam",
"id": "56",
"meta": {
"versionId": "2",
"lastUpdated": "2020-02-03T14:01:04.719+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
]
},
"identifier": [
{
"id": "7d358edd-5450-4855-987e-b991d093f143",
"system": "urn:ietf:rfc:3986"
}
],
"status": "active",
"name": "9fb79207-79da-4fa2-a854-8c3c3238bd77",
"reasonCode": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/conditions",
"code": "TBD"
}
]
}
]
}