Silver gate checks the cytology's presents_ answers

The synthetic cytology form records one "actualmente presenta" answer; only
that field is expected true, the others stay unknown.
Not run yet: tests are deferred until all the new fields are in.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-27 14:50:23 -06:00
parent 7b6ffe17f5
commit 1dc681fb5a
+5 -3
View File
@@ -17,9 +17,11 @@ from core import catalog
GYN = ("gyn_puerperium", "gyn_pregnancy", "gyn_iud",
"gyn_hormonal_treatment", "gyn_other_treatment",
"gyn_postmenopause", "gyn_hysterectomy", "gyn_not_applicable")
PRESENTS = ("presents_discharge", "presents_vulvar_pruritus",
"presents_abnormal_bleeding", "presents_none")
FIELDS = {
"cervical_cytology": ("sample_date", "screening_history", *GYN, "report_date",
"adequacy", "result", "hpv", "hpv_16", "hpv_18"),
"cervical_cytology": ("sample_date", "screening_history", *GYN, *PRESENTS,
"report_date", "adequacy", "result", "hpv", "hpv_16", "hpv_18"),
"cervical_biopsy": ("request_date", "report_date", "histology"),
"mammography": ("exam_date", "report_date", "adequacy", "birads"),
"breast_biopsy": ("request_date", "report_date", "histology", "histologic_type", "grade",
@@ -27,7 +29,7 @@ FIELDS = {
"breast_treatment": ("start_date", "kind"),
"clinical_note": ("note_date", "specialty", "icd10"),
} # fmt: skip
BOOLS = {"hpv", "hpv_16", "hpv_18", *GYN}
BOOLS = {"hpv", "hpv_16", "hpv_18", *GYN, *PRESENTS}
NUMBERS = {"ki67_pct", "size_mm"}