POST
/transactional-api/get-miscellaneous-taskGet Miscellaneous Task
Gets one of a patient's miscellaneous tasks.
Authorization: Bearer token (JWT). See Authentication.
Request
curl -L -X POST 'https://{tenantId}.api.england.medicus.health/transactional-api/get-miscellaneous-task' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"patientId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"taskId": "9b2e4c1a-7d3f-4e8b-a6c5-1f0d2e3b4a59"
}'
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
patientId | string<uuid> | Yes | Medicus patient identifier. |
taskId | string<uuid> | Yes |
Responses
200 The task.
Response fields
| Field | Type | Description |
|---|---|---|
id | string<uuid> | |
patientId | string<uuid> | |
description | string | |
status | enum | One of: incomplete, completed, discarded. |
priority | enum | One of: normal, high. |
dueDate | string<date> (nullable) | |
snoozedUntil | string<date> (nullable) | |
assignee.type | enum | One of: staff, team. |
assignee.id | string<uuid> | |
assignee.name | string | |
createdDateTime | string<date-time> | |
createdBy.staffId | string<uuid> | |
createdBy.name | string | |
completedDateTime | string<date-time> (nullable) | |
completedBy.staffId | string<uuid> | |
completedBy.name | string |
{
"id": "9b2e4c1a-7d3f-4e8b-a6c5-1f0d2e3b4a59",
"patientId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"description": "Call the patient to book a blood test",
"status": "incomplete",
"priority": "high",
"dueDate": "2026-11-18",
"snoozedUntil": null,
"assignee": {
"type": "team",
"id": "6c1f2d7e-1b3a-4f0e-9a2c-5d8e7f6a4b3c",
"name": "Reception"
},
"createdDateTime": "2026-11-11T14:30:00+00:00",
"createdBy": {
"staffId": "1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"name": "Dr Jane Smith"
},
"completedDateTime": null,
"completedBy": {
"staffId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
}
}
400 Validation error.
4 possible code values
| Code | Description | When |
|---|---|---|
missing-patient-id | The patientId is required | patientId missing |
invalid-task-id | The taskId is not valid | taskId not a valid UUID |
patient-not-found | Patient not found for this patientId | patientId does not exist |
patient-restricted | Access to this patient is restricted for this staff member | patient record is restricted and the requesting staff member is not permitted to see it |
Response fields
| Field | Type | Description |
|---|---|---|
errors[].code | string | |
errors[].description | string |
{
"errors": [
{
"code": "missing-patient-id",
"description": "The patientId is required"
}
]
}
403 The calling application lacks the permission, or the access token is restricted to another patient.
Response fields
| Field | Type | Description |
|---|---|---|
errors[].code | string | |
errors[].description | string |
{
"errors": [
{
"code": "forbidden",
"description": "The calling application does not have permission to use this endpoint."
}
]
}
404 Task not found.
Response fields
| Field | Type | Description |
|---|---|---|
errors[].code | string | |
errors[].description | string |
{
"errors": [
{
"code": "task-not-found",
"description": "Task not found for this taskId and patientId"
}
]
}