Skip to main content
POST/transactional-api/create-investigation-request

Create 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

FieldTypeRequiredDescription
patientIdstring<uuid>YesMedicus patient identifier.
orderReferencestringYesThe calling application's own reference for the order. Stored on each requested investigation.
investigationsarray<object>YesThe investigations requested. At least one.
requestingStaffIdstring<uuid>NoMedicus staff identifier of the requesting clinician. Defaults to the practitioner the access token acts as.
requestedDateTimestring<date-time>NoWhen the order was placed (ISO 8601 / ATOM). Defaults to now.
serviceProviderobjectNoThe laboratory or department performing the investigations.
reasonForRequeststringNo
additionalInformationstringNo
consultationTopicHeadingIdstring<uuid>NoConsultation topic heading to file the request under.

Responses​

200 Investigation request created.

Response fields

FieldTypeDescription
idstring<uuid>Identifier of the created investigation request.
{
"id": "00000000-0000-0000-0000-000000000000"
}
400 Validation error.
13 possible code values
CodeDescriptionWhen
missing-patient-idThe patientId is requiredpatientId missing
invalid-patient-idThe patientId is not validpatientId not a valid UUID
missing-order-referenceThe orderReference is requiredorderReference missing
missing-investigationsThe investigations is requiredinvestigations missing or empty
invalid-investigationsThe investigations is not validan investigations entry has no description
invalid-requesting-staff-idThe requestingStaffId is not validrequestingStaffId not a valid UUID
invalid-requested-date-timeThe requestedDateTime is not a valid date/time formatrequestedDateTime not a valid date/time
invalid-service-providerThe serviceProvider is not validserviceProvider has no name
invalid-codeCould 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-foundPatient not found for this patientIdpatientId does not exist
staff-not-foundStaff not found for this requestingStaffIdrequestingStaffId does not exist
invalid-consultation-topic-heading-idThe consultationTopicHeadingId is not validconsultationTopicHeadingId not a valid UUID
consultation-topic-heading-not-foundConsultation topic heading not found for this consultationTopicHeadingIdconsultationTopicHeadingId doesn't exist or is on another patient's record

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."
}
]
}
409 The order has already been recorded for this patient.

Response fields

FieldTypeDescription
errors[].codestring
errors[].descriptionstring
{
"errors": [
{
"code": "duplicate-order-reference",
"description": "An investigation request with this orderReference already exists for this patient"
}
]
}