POST
/transactional-api/create-investigation-requestCreate Investigation Request
Records a finalised investigation request, with one item per requested investigation, for an order placed in the calling application. The order method on the patient record shows the calling application's name. The requester is requestingStaffId when given, otherwise the practitioner the access token acts as. Resending an orderReference already recorded for the patient returns 409, so a retry never duplicates the request.
Authorization: Bearer token (JWT). See Authentication.
Request
curl -L -X POST 'https://{tenantId}.api.england.medicus.health/transactional-api/create-investigation-request' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"patientId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"orderReference": "ORD-2026-000123",
"investigations": [
{
"conceptId": "26604007",
"description": "Full blood count"
}
],
"requestingStaffId": "6c1f2d7e-1b3a-4f0e-9a2c-5d8e7f6a4b3c",
"requestedDateTime": "2026-11-11T14:30:00+00:00",
"serviceProvider": {
"name": "Royal Infirmary Pathology",
"odsCode": "RX1"
},
"reasonForRequest": "Fatigue, query anaemia",
"additionalInformation": "Fasting sample",
"consultationTopicHeadingId": "8d3c2b1a-4e5f-4a6b-9c7d-0e1f2a3b4c5d"
}'
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
patientId | string<uuid> | Yes | Medicus patient identifier. |
orderReference | string | Yes | The calling application's own reference for the order. Stored on each requested investigation. |
investigations | array<object> | Yes | The investigations requested. At least one. |
requestingStaffId | string<uuid> | No | Medicus staff identifier of the requesting clinician. Defaults to the practitioner the access token acts as. |
requestedDateTime | string<date-time> | No | When the order was placed (ISO 8601 / ATOM). Defaults to now. |
serviceProvider | object | No | The laboratory or department performing the investigations. |
reasonForRequest | string | No | |
additionalInformation | string | No | |
consultationTopicHeadingId | string<uuid> | No | Consultation topic heading to file the request under. |
Responses
200 Investigation request created.
Response fields
| Field | Type | Description |
|---|---|---|
id | string<uuid> | Identifier of the created investigation request. |
{
"id": "00000000-0000-0000-0000-000000000000"
}
400 Validation error.
13 possible code values
| Code | Description | When |
|---|---|---|
missing-patient-id | The patientId is required | patientId missing |
invalid-patient-id | The patientId is not valid | patientId not a valid UUID |
missing-order-reference | The orderReference is required | orderReference missing |
missing-investigations | The investigations is required | investigations missing or empty |
invalid-investigations | The investigations is not valid | an investigations entry has no description |
invalid-requesting-staff-id | The requestingStaffId is not valid | requestingStaffId not a valid UUID |
invalid-requested-date-time | The requestedDateTime is not a valid date/time format | requestedDateTime not a valid date/time |
invalid-service-provider | The serviceProvider is not valid | serviceProvider has no name |
invalid-code | Could not resolve conceptId into a SNOMED CT code. Check the NHS term browser. | a conceptId doesn't resolve to a SNOMED CT code |
patient-not-found | Patient not found for this patientId | patientId does not exist |
staff-not-found | Staff not found for this requestingStaffId | requestingStaffId does not exist |
invalid-consultation-topic-heading-id | The consultationTopicHeadingId is not valid | consultationTopicHeadingId not a valid UUID |
consultation-topic-heading-not-found | Consultation topic heading not found for this consultationTopicHeadingId | consultationTopicHeadingId doesn't exist or is on another patient's record |
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."
}
]
}
409 The order has already been recorded for this patient.
Response fields
| Field | Type | Description |
|---|---|---|
errors[].code | string | |
errors[].description | string |
{
"errors": [
{
"code": "duplicate-order-reference",
"description": "An investigation request with this orderReference already exists for this patient"
}
]
}