protocols

Check Protocol Name Endpoint

Check whether a protocol's name describes what the protocol does.

Advisory only. A 'mismatch' never blocks saving a protocol — the name is the user's to choose, and a model that misreads a naming convention must not be able to stop work.

Returns 'uncheckable' for a name that makes no claim (a codename like "ETR874", a generic "Test", or a name carried in from an uploaded vendor file), so callers can render nothing at all in those cases.

Parameters

body : CheckProtocolNameRequest The name, the protocol it names, and whether the name came from a file.

Returns

CheckProtocolNameResponse The verdict, its confidence, the specific contradictions, and a suggested name.

post/protocols/check_name

Request body

namestring required

The protocol name to check, as the user typed it.

name_from_fileboolean

True when the name came from an uploaded protocol file rather than from the user. The check then returns 'uncheckable' without calling the model: the name is the vendor file's, so a mismatch is not something the user can act on.

Response

Successful Response

verdictstring required

'match' when nothing in the name contradicts the protocol, 'mismatch' when something does, 'uncheckable' when the name makes no claim to check (a codename, an identifier, or a name carried in from a file). Only 'mismatch' should surface anything in the UI.

confidencenumber required

Confidence in a 'mismatch' verdict, 0-1. Above 0.8 is a contradiction pinned to a number; around 0.5 is a judgement call on wording. Always 1.0 for 'match' and 'uncheckable'.

summarystring

One sentence naming the contradiction. Empty unless mismatched.

suggested_namestring

A corrected name in the user's own style, or empty when there is nothing to correct or the correction equals the current name.

Changes

No recorded changes to this endpoint across all 1 revision of this API.