9 lines
365 B
SQL
9 lines
365 B
SQL
{# Survival: indexed at the first biopsy reported as carcinoma or carcinoma in situ (core.cacu CASE). #}
|
|
{% set p = var('cacu') %}
|
|
select i.person_id, i.index_date,
|
|
case {{ cacu_common_exclusion_cases('i') }}
|
|
else i.excluded_by end as excluded_by
|
|
from (
|
|
{{ first_biopsy_cohort('cacu_events', p.case, p.recruitment, cacu_rules=true) }}
|
|
) as i
|