GET [base]/Task/278
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/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Task",
"id": "278",
"meta": {
"versionId": "2",
"lastUpdated": "2020-10-22T14:20:29.441+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-1106.local/fhir/Practitioner/31038"
}
}
],
"status": "draft",
"intent": "proposal",
"priority": "routine",
"context": {
"reference": "https://careplan.cit-task-1106.local/fhir/EpisodeOfCare/66962"
},
"owner": {
"reference": "https://organization.cit-task-1106.local/fhir/Practitioner/22566"
}
}
GET [base]/Task?context=https%3A%2F%2Fcareplan.cit-task-1106.local%2Ffhir%2FEpisodeOfCare%2F38940&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/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Bundle",
"id": "66e7460c-3996-49c6-b5b7-c8a8916689e1",
"meta": {
"lastUpdated": "2020-10-22T14:20:50.272+00:00"
},
"type": "searchset",
"total": 3,
"link": [
{
"relation": "self",
"url": "https://task.cit-task-1106.local/fhir/Task?_format=json&_pretty=true&context=https%3A%2F%2Fcareplan.cit-task-1106.local%2Ffhir%2FEpisodeOfCare%2F38940&restriction-category=measurement-monitoring%2Cnone"
}
],
"entry": [
{
"fullUrl": "https://task.cit-task-1106.local/fhir/Task/291",
"resource": {
"resourceType": "Task",
"id": "291",
"meta": {
"versionId": "1",
"lastUpdated": "2020-10-22T14:20:49.685+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-1106.local/fhir/Practitioner/52134"
}
}
],
"status": "draft",
"intent": "proposal",
"priority": "routine",
"context": {
"reference": "https://careplan.cit-task-1106.local/fhir/EpisodeOfCare/38940"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://task.cit-task-1106.local/fhir/Task/293",
"resource": {
"resourceType": "Task",
"id": "293",
"meta": {
"versionId": "1",
"lastUpdated": "2020-10-22T14:20:49.978+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-1106.local/fhir/Practitioner/84083"
}
}
],
"status": "draft",
"intent": "proposal",
"priority": "routine",
"context": {
"reference": "https://careplan.cit-task-1106.local/fhir/EpisodeOfCare/38940"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://task.cit-task-1106.local/fhir/Task/294",
"resource": {
"resourceType": "Task",
"id": "294",
"meta": {
"versionId": "1",
"lastUpdated": "2020-10-22T14:20:50.128+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-1106.local/fhir/Practitioner/68941"
}
}
],
"status": "draft",
"intent": "proposal",
"priority": "routine",
"context": {
"reference": "https://careplan.cit-task-1106.local/fhir/EpisodeOfCare/38940"
}
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/Task/279/_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/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Task",
"id": "279",
"meta": {
"versionId": "2",
"lastUpdated": "2020-10-22T14:20:40.454+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-1106.local/fhir/Practitioner/47328"
}
}
],
"status": "cancelled",
"intent": "proposal",
"priority": "routine",
"context": {
"reference": "https://careplan.cit-task-1106.local/fhir/EpisodeOfCare/75944"
}
}
PATCH [base]/Task/279
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/5.0.2 (FHIR Client; FHIR 3.0.2/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": "279",
"meta": {
"versionId": "2",
"lastUpdated": "2020-10-22T14:20:40.454+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-1106.local/fhir/Practitioner/47328"
}
}
],
"status": "cancelled",
"intent": "proposal",
"priority": "routine",
"context": {
"reference": "https://careplan.cit-task-1106.local/fhir/EpisodeOfCare/75944"
}
}
POST [base]/Task
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24uY2l0LXRhc2stMTEwNi5sb2NhbC9maGlyL1ByYWN0aXRpb25lci85NjkwMiIsInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJUYXNrLmNyZWF0ZSIsIlJlc3RyaWN0aW9uQ2F0ZWdvcnkkbWVhc3VyZW1lbnQtbW9uaXRvcmluZyJdfSwiY29udGV4dCI6eyJjYXJlX3RlYW1faWQiOiJodHRwczovL29yZ2FuaXphdGlvbi5jaXQtdGFzay0xMTA2LmxvY2FsL2ZoaXIvQ2FyZVRlYW0vNjEzMzUiLCJ0ZWFtX29uX2VvYyI6ZmFsc2V9LCJ1c2VyX3R5cGUiOiJQUkFDVElUSU9ORVIifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/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": [
{
"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-1106.local/fhir/CareTeam/61335"
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
"valueReference": {
"reference": "https://organization.cit-task-1106.local/fhir/Practitioner/79833"
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
"valueReference": {
"reference": "https://patient.cit-task-1106.local/fhir/Patient/78938"
}
}
],
"status": "draft",
"intent": "proposal",
"priority": "routine",
"for": {
"reference": "https://patient.cit-task-1106.local/fhir/Patient/24438"
},
"context": {
"reference": "https://careplan.cit-task-1106.local/fhir/EpisodeOfCare/13898"
}
}
Response
{
"resourceType": "Task",
"id": "267",
"meta": {
"versionId": "1",
"lastUpdated": "2020-10-22T14:19:57.914+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-1106.local/fhir/CareTeam/61335"
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
"valueReference": {
"reference": "https://organization.cit-task-1106.local/fhir/Practitioner/79833"
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
"valueReference": {
"reference": "https://patient.cit-task-1106.local/fhir/Patient/78938"
}
}
],
"status": "draft",
"intent": "proposal",
"priority": "routine",
"for": {
"reference": "https://patient.cit-task-1106.local/fhir/Patient/24438"
},
"context": {
"reference": "https://careplan.cit-task-1106.local/fhir/EpisodeOfCare/13898"
},
"authoredOn": "2020-10-22T14:19:57+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/5.0.2 (FHIR Client; FHIR 3.0.2/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-1106.local/fhir/Practitioner/18112"
}
}
],
"status": "draft",
"intent": "proposal",
"priority": "routine",
"context": {
"reference": "https://careplan.cit-task-1106.local/fhir/EpisodeOfCare/22315"
}
}
}
]
}
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"
}
]
}