Skip to main content
POST/transactional-api/get-miscellaneous-task

Get 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

FieldTypeRequiredDescription
patientIdstring<uuid>YesMedicus patient identifier.
taskIdstring<uuid>Yes

Responses​

200 The task.

Response fields

FieldTypeDescription
idstring<uuid>
patientIdstring<uuid>
descriptionstring
statusenumOne of: incomplete, completed, discarded.
priorityenumOne of: normal, high.
dueDatestring<date> (nullable)
snoozedUntilstring<date> (nullable)
assignee.typeenumOne of: staff, team.
assignee.idstring<uuid>
assignee.namestring
createdDateTimestring<date-time>
createdBy.staffIdstring<uuid>
createdBy.namestring
completedDateTimestring<date-time> (nullable)
completedBy.staffIdstring<uuid>
completedBy.namestring
{
"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
CodeDescriptionWhen
missing-patient-idThe patientId is requiredpatientId missing
invalid-task-idThe taskId is not validtaskId not a valid UUID
patient-not-foundPatient not found for this patientIdpatientId does not exist
patient-restrictedAccess to this patient is restricted for this staff memberpatient record is restricted and the requesting staff member is not permitted to see it

Response fields

FieldTypeDescription
errors[].codestring
errors[].descriptionstring
{
"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

FieldTypeDescription
errors[].codestring
errors[].descriptionstring
{
"errors": [
{
"code": "forbidden",
"description": "The calling application does not have permission to use this endpoint."
}
]
}
404 Task not found.

Response fields

FieldTypeDescription
errors[].codestring
errors[].descriptionstring
{
"errors": [
{
"code": "task-not-found",
"description": "Task not found for this taskId and patientId"
}
]
}