Set Operation functions - ndobb/clinical-trials-seq2seq-annotation GitHub Wiki
criteria()
criteria()
refers to a count of criteria which a patient must meet, often phrased like "at least 2 of the following...".
Arguments -
- Two or more functions.
Example -
'INC'
'- "Afflicted" participants : must meet criteria for at least one of the following
subjective afflictions based on Q 1 responses : 1 ) Cardiovascular Dysfunction ,
2 ) Neurocognitive Disease , 3 ) Chronic Pain , and / or 4 ) Sleep Apnea'
'- "Afflicted" participants : must meet criteria for eq(op(GTEQ), val("one")) of criteria()
subjective afflictions based on Q 1 responses : 1 ) cond("Cardiovascular Dysfunction") ,
2 ) cond("Neurocognitive Disease") , 3 ) chronic() obs("Pain") , and / or 4 ) cond("Sleep Apnea")'
criteria(
cond("Cardiovascular Dysfunction"),
cond("Neurocognitive Disease"),
obs("Pain")
.chronic(),
cond("Sleep Apnea")
)
.min_count(
eq(op(GTEQ), val("one"))
)
intersect()
intersect()
indicates that every one of its arguments must be true.
Arguments -
- Two or more functions.
Example -
'EXC'
'- Chronic kidney disease with a Glomerular Filtration Rate < 50 ml / min'
'- chronic() cond("kidney disease") with a lab("Glomerular Filtration Rate")
eq(op(LT), val("50"), unit("ml"), per(MINUTE))'
intersect(
cond("kidney disease")
.chronic(),
lab("Glomerular Filtration Rate")
.num_filter(
eq(op(LT), val("50"), unit("ml"), per(MINUTE))
)
)
union()
union()
indicates that at least one of its arguments must be true.
Arguments -
- Two or more functions.
Example -
'EXC'
'- prior immunotherapy or treatment with another anti PD - 1 agent besides nivolumab'
'- eq(temporal_per(PAST)) proc("immunotherapy") or proc() with other
drug("anti PD - 1 agent") except() drug("nivolumab")'
union(
proc("immunotherapy"),
drug("anti PD - 1 agent")
.except(
drug("nivolumab")
)
)
.temporality(
eq(temporal_per(PAST))
)