GET [base]/Task/70
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiVGFzay5zZWFyY2giLCJUYXNrLnJlYWQiLCJUYXNrLmNyZWF0ZSIsIiR0ZXN0LW9ubHktY3JlYXRlIiwiVGFzay5wYXRjaCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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": "Task",
"id": "70",
"meta": {
"versionId": "2",
"lastUpdated": "2020-06-22T20:23:26.082+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/task-category",
"code": "TBD"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/restriction-category",
"code": "None"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
"valueReference": {
"reference": "https://organization.cit-task-899.local/fhir/Practitioner/41000"
}
}
],
"status": "draft",
"intent": "proposal",
"priority": "routine",
"context": {
"reference": "https://careplan.cit-task-899.local/fhir/EpisodeOfCare/90596"
},
"owner": {
"reference": "https://organization.cit-task-899.local/fhir/Practitioner/17105"
}
}
GET [base]/Task?context=https%3A%2F%2Fcareplan.cit-task-899.local%2Ffhir%2FEpisodeOfCare%2F29050&restriction-category=measurement-monitoring%2CNone
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiVGFzay5zZWFyY2giLCJUYXNrLnJlYWQiLCJUYXNrLmNyZWF0ZSIsIiR0ZXN0LW9ubHktY3JlYXRlIiwiVGFzay5wYXRjaCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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": "55d7b9b1-8cfa-4198-b7f5-a63ea7028603",
"meta": {
"lastUpdated": "2020-06-22T20:23:40.394+00:00"
},
"type": "searchset",
"total": 3,
"link": [
{
"relation": "self",
"url": "https://task.cit-task-899.local/fhir/Task?_format=json&_pretty=true&context=https%3A%2F%2Fcareplan.cit-task-899.local%2Ffhir%2FEpisodeOfCare%2F29050&restriction-category=measurement-monitoring%2CNone"
}
],
"entry": [
{
"fullUrl": "https://task.cit-task-899.local/fhir/Task/83",
"resource": {
"resourceType": "Task",
"id": "83",
"meta": {
"versionId": "1",
"lastUpdated": "2020-06-22T20:23:39.734+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/task-category",
"code": "TBD"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/restriction-category",
"code": "measurement-monitoring"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/restriction-category",
"code": "measuring-support"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
"valueReference": {
"reference": "https://organization.cit-task-899.local/fhir/Practitioner/22297"
}
}
],
"status": "draft",
"intent": "proposal",
"priority": "routine",
"context": {
"reference": "https://careplan.cit-task-899.local/fhir/EpisodeOfCare/29050"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://task.cit-task-899.local/fhir/Task/85",
"resource": {
"resourceType": "Task",
"id": "85",
"meta": {
"versionId": "1",
"lastUpdated": "2020-06-22T20:23:40.020+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/task-category",
"code": "TBD"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/restriction-category",
"code": "measurement-monitoring"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
"valueReference": {
"reference": "https://organization.cit-task-899.local/fhir/Practitioner/75115"
}
}
],
"status": "draft",
"intent": "proposal",
"priority": "routine",
"context": {
"reference": "https://careplan.cit-task-899.local/fhir/EpisodeOfCare/29050"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://task.cit-task-899.local/fhir/Task/86",
"resource": {
"resourceType": "Task",
"id": "86",
"meta": {
"versionId": "1",
"lastUpdated": "2020-06-22T20:23:40.201+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/task-category",
"code": "TBD"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/restriction-category",
"code": "None"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
"valueReference": {
"reference": "https://organization.cit-task-899.local/fhir/Practitioner/92565"
}
}
],
"status": "draft",
"intent": "proposal",
"priority": "routine",
"context": {
"reference": "https://careplan.cit-task-899.local/fhir/EpisodeOfCare/29050"
}
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/Task/71/_history/2
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiVGFzay5zZWFyY2giLCJUYXNrLnJlYWQiLCJUYXNrLmNyZWF0ZSIsIiR0ZXN0LW9ubHktY3JlYXRlIiwiVGFzay5wYXRjaCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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": "Task",
"id": "71",
"meta": {
"versionId": "2",
"lastUpdated": "2020-06-22T20:23:33.181+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/task-category",
"code": "TBD"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/restriction-category",
"code": "None"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
"valueReference": {
"reference": "https://organization.cit-task-899.local/fhir/Practitioner/64711"
}
}
],
"status": "cancelled",
"intent": "proposal",
"priority": "routine",
"context": {
"reference": "https://careplan.cit-task-899.local/fhir/EpisodeOfCare/41954"
}
}
PATCH [base]/Task/71
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiVGFzay5zZWFyY2giLCJUYXNrLnJlYWQiLCJUYXNrLmNyZWF0ZSIsIiR0ZXN0LW9ubHktY3JlYXRlIiwiVGFzay5wYXRjaCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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": "/status",
"value": "cancelled"
}
]
Response
{
"resourceType": "Task",
"id": "71",
"meta": {
"versionId": "2",
"lastUpdated": "2020-06-22T20:23:33.181+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/task-category",
"code": "TBD"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/restriction-category",
"code": "None"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
"valueReference": {
"reference": "https://organization.cit-task-899.local/fhir/Practitioner/64711"
}
}
],
"status": "cancelled",
"intent": "proposal",
"priority": "routine",
"context": {
"reference": "https://careplan.cit-task-899.local/fhir/EpisodeOfCare/41954"
}
}
POST [base]/Task
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24uY2l0LXRhc2stODk5LmxvY2FsL2ZoaXIvUHJhY3RpdGlvbmVyLzk5NzQ2IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlRhc2suY3JlYXRlIiwiUmVzdHJpY3Rpb25DYXRlZ29yeSRtZWFzdXJlbWVudC1tb25pdG9yaW5nIl19LCJjb250ZXh0Ijp7ImNhcmVfdGVhbV9pZCI6Imh0dHBzOi8vb3JnYW5pemF0aW9uLmNpdC10YXNrLTg5OS5sb2NhbC9maGlyL0NhcmVUZWFtLzgxNjkwIiwidGVhbV9vbl9lb2MiOmZhbHNlfSwidXNlcl90eXBlIjoiUFJBQ1RJVElPTkVSIn0.
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": "Task",
"meta": {
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/task-category",
"code": "TBD"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category",
"valueCodeableConcept": {
"coding": [
{
"code": "measurement-monitoring"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
"valueReference": {
"reference": "https://organization.cit-task-899.local/fhir/CareTeam/81690"
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
"valueReference": {
"reference": "https://organization.cit-task-899.local/fhir/Practitioner/80874"
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
"valueReference": {
"reference": "https://patient.cit-task-899.local/fhir/Patient/96954"
}
}
],
"status": "draft",
"intent": "proposal",
"priority": "routine",
"for": {
"reference": "https://patient.cit-task-899.local/fhir/Patient/24228"
},
"context": {
"reference": "https://careplan.cit-task-899.local/fhir/EpisodeOfCare/37180"
}
}
Response
{
"resourceType": "Task",
"id": "60",
"meta": {
"versionId": "1",
"lastUpdated": "2020-06-22T20:23:08.497+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/task-category",
"code": "TBD"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category",
"valueCodeableConcept": {
"coding": [
{
"code": "measurement-monitoring"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
"valueReference": {
"reference": "https://organization.cit-task-899.local/fhir/CareTeam/81690"
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
"valueReference": {
"reference": "https://organization.cit-task-899.local/fhir/Practitioner/80874"
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
"valueReference": {
"reference": "https://patient.cit-task-899.local/fhir/Patient/96954"
}
}
],
"status": "draft",
"intent": "proposal",
"priority": "routine",
"for": {
"reference": "https://patient.cit-task-899.local/fhir/Patient/24228"
},
"context": {
"reference": "https://careplan.cit-task-899.local/fhir/EpisodeOfCare/37180"
},
"authoredOn": "2020-06-22T20:23:08+00:00"
}
POST [base]/Task/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiVGFzay5zZWFyY2giLCJUYXNrLnJlYWQiLCJUYXNrLmNyZWF0ZSIsIiR0ZXN0LW9ubHktY3JlYXRlIiwiVGFzay5wYXRjaCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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": "Task",
"meta": {
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/task-category",
"code": "TBD"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/restriction-category",
"code": "None"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
"valueReference": {
"reference": "https://organization.cit-task-899.local/fhir/Practitioner/34271"
}
}
],
"status": "draft",
"intent": "proposal",
"priority": "routine",
"context": {
"reference": "https://careplan.cit-task-899.local/fhir/EpisodeOfCare/33432"
}
}
}
]
}
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"
}
]
}