Skip to main content
POST/transactional-api/create-clinical-target-rule

Create Clinical Target Rule

Creates a new clinical target rule.

Authorization: Bearer token (JWT). See Authentication.

Request​

curl -L -X POST 'https://{tenantId}.api.england.medicus.health/transactional-api/create-clinical-target-rule' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"name": "Hypertension blood pressure target",
"identifier": "hypertension-bp-target",
"description": "Blood pressure below 140/90 for patients with hypertension."
}'

Body parameters

FieldTypeRequiredDescription
namestringYesRule name.
identifierstringYesStable machine-readable identifier for the rule. Lowercase letters, numbers and hyphens; the organisation prefix is added for you.
descriptionstring (nullable)NoRule description.

Responses​

201 Created.

Response fields

FieldTypeDescription
idstring<uuid>
{
"id": "00000000-0000-0000-0000-000000000000"
}
400 Invalid request.
2 possible code values
CodeDescriptionWhen
missing-required-fieldfieldName is requireda required field is absent
invalid-operationHuman-readable reason.business rule violation

Response fields

FieldTypeDescription
errors[].codestring
errors[].descriptionstring
{
"errors": [
{
"code": "missing-required-field",
"description": "fieldName is required"
}
]
}