Skip to main content
A Criterion is a typed assertion attached to a Task. After a task rollout completes, the verification engine evaluates each criterion against the recorded environment state (FHIR resources, HL7 messages, SFTP uploads, portal state, voice transcripts, X12 responses) and produces a Criterion Run with a pass or fail result, a numeric score, and evidence.

Endpoints

Criterion Object

Assertion Specs

The assertion field is a discriminated union on the assert key. The verification engine dispatches to a check implementation based on this value.
Asserts that, after the rollout, a FHIR resource search returns a resource whose fields match expected values.
Asserts field values on HL7v2 outbound messages captured by the sandbox.
Asserts that after a web portal simulation ends, a given resource row has the expected fields.
Asserts that a file was uploaded to the sandbox SFTP endpoint, optionally parsing JSON contents and asserting fields.
Asserts the content of a voice call transcript. This is the check that uses LLM-assisted matching for loose phrase presence.
Asserts field values on an X12 EDI response (270/271/276/277/278) produced by the sandbox clearinghouse.

HTTP Example

Response:

SDK Example

The assertion object is passed through unchanged by the API. Keys inside assertion are not snake-to-camel transformed. Use the exact field names documented above (for example resource_type, correlate_by, parse_json, not_contains).