Skip to main content
POST/transactional-api/create-note

Create Note

Creates a clinical note against a patient record. Provide free-text text, a SNOMED CT coded entry via code, or both; at least one is required.

Authorization: Bearer token (JWT). See Authentication.

Request​

curl -L -X POST 'https://{tenantId}.api.england.medicus.health/transactional-api/create-note' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"patientId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"text": "Patient called to confirm medication review.",
"code": {
"conceptId": "185389009",
"description": "Telephone encounter"
},
"recordDate": "2026-01-15",
"consultationTopicHeadingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"hiddenFromPatientFacingServices": false,
"confidentialFromThirdParties": false,
"patientBannerFlags": [
"risk-to-self"
]
}'

Body parameters

FieldTypeRequiredDescription
patientIdstring<uuid>YesMedicus patient identifier.
textstringNoFree-text note body. Required unless code is supplied.
codeobjectNoSNOMED CT coded entry. Required unless text is supplied; resolved against the NHS term browser.
recordDatestring<date>NoRecord date (YYYY-MM-DD). Defaults to today.
consultationTopicHeadingIdstring<uuid> (nullable)No
hiddenFromPatientFacingServicesbooleanNoIf true, hidden from Patient Facing Services (IM1) such as the NHS App.
confidentialFromThirdPartiesbooleanNo
patientBannerFlagsarray<string>NoPatient banner flag types to raise. Omit or leave empty to raise none. Each item one of: risk-to-self, risk-to-others, risk-from-others, local-reasonable-adjustment, medico-legal.

Responses​

200 Note created.

Response fields

FieldTypeDescription
idstring<uuid>Identifier of the created note.
{
"id": "00000000-0000-0000-0000-000000000000"
}
400 Validation error.
9 possible code values
CodeDescriptionWhen
missing-patient-idThe patientId is requiredpatientId missing
invalid-patient-idThe patientId is not validpatientId not a valid UUID
patient-not-foundPatient not found for this patientIdpatientId doesn't exist
invalid-codeCould not resolve conceptId into a SNOMED CT code. Check the NHS term browser.code conceptId doesn't resolve to a SNOMED CT code
no-code-or-textYou must specify one of code or textneither code nor text supplied
invalid-consultation-topic-heading-idThe consultationTopicHeadingId is not a UUIDconsultationTopicHeadingId not a UUID
consultation-topic-heading-not-foundConsultation topic heading not found for this consultationTopicHeadingIdconsultationTopicHeadingId doesn't exist
invalid-record-dateThe recordDate is not a valid date in Y-m-d format.recordDate not a valid date in Y-m-d format
invalid-patient-banner-flagEach entry in patientBannerFlags must be one of the recognised patient banner flag types.patientBannerFlags contains a value that is not a recognised patient banner flag type

Response fields

FieldTypeDescription
errors[].codestring
errors[].descriptionstring
{
"errors": [
{
"code": "missing-patient-id",
"description": "The patientId is required"
}
]
}