Spaces:
Sleeping
Sleeping
KevinIsInCoding
feat: structured eligibility assessment with per-criterion verdicts (#14)
e15864e unverified | { | |
| "type": "object", | |
| "required": ["trials"], | |
| "properties": { | |
| "trials": { | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "required": ["nct_id", "criteria"], | |
| "properties": { | |
| "nct_id": { "type": "string" }, | |
| "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"] } | |
| } | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |