Schemas / Clinic
rig.clinic.criterion
v1.0.0 · stable maturity: draft 4 fields 2 required
Fields
| Field | Type | Meaning | |
|---|---|---|---|
trial |
entity | required | The rig.clinic.trial |
text |
string | required | Rule as written |
code |
string | optional | Optional. Criterion code as the source wrote it |
polarity |
enuminclude · exclude | optional | Optional. include / exclude; absent = include |
One eligibility rule of a trial. Format when present.
This schema is the rule as data - not a narrative protocol, and not a matching engine.
trial and text are required. A second rule is another entity. Do not invent a criteria array on the trial.
JSON Schema
Resolves at https://rig.works/schemas/rig.clinic.criterion.schema.json —
raw file.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://rig.works/schemas/rig.clinic.criterion.schema.json",
"title": "rig.clinic.criterion",
"type": "object",
"additionalProperties": false,
"properties": {
"trial": {
"$ref": "./_defs.schema.json#/$defs/entity"
},
"text": {
"$ref": "./_defs.schema.json#/$defs/string"
},
"code": {
"$ref": "./_defs.schema.json#/$defs/string"
},
"polarity": {
"type": "string",
"enum": [
"include",
"exclude"
]
}
},
"required": [
"trial",
"text"
],
"description": "One eligibility rule of a trial. polarity absent = include.",
"x-rig-maturity": "draft"
}