beacon-trial-finder / data /tools /parse_criteria.json
KevinIsInCoding
feat: structured eligibility assessment with per-criterion verdicts (#14)
e15864e unverified
Raw
History Blame Contribute Delete
1.01 kB
{
"type": "object",
"required": ["criteria"],
"properties": {
"criteria": {
"type": "array",
"items": {
"type": "object",
"required": ["key", "type", "description", "raw_criteria"],
"properties": {
"key": { "type": "string" },
"type": { "enum": ["inclusion", "exclusion"] },
"description": { "type": "string" },
"raw_criteria": { "type": "string" },
"constraint": {
"oneOf": [
{ "type": "null" },
{
"type": "object",
"required": ["key", "operator", "value"],
"properties": {
"key": { "type": "string" },
"operator": { "enum": ["<=", ">=", "==", "!=", "in", "not_in", "between"] },
"value": {},
"unit": { "type": ["string", "null"] }
}
}
]
}
}
}
}
}
}