Silver checks the site's recurrences and positive nodes

This commit is contained in:
Roberto Treviño
2026-11-29 01:50:23 -06:00
parent 5c781f2a52
commit 7e8e8b44d8
+4 -3
View File
@@ -23,8 +23,9 @@ FIELDS = {
"cervical_biopsy": ("request_date", "report_date", "histology"),
"mammography": ("exam_date", "report_date", "adequacy", "birads"),
"breast_biopsy": ("request_date", "report_date", "histology", "histologic_type", "grade",
"er", "pr", "her2", "ki67_pct", "size_mm", "stage"),
"er", "pr", "her2", "ki67_pct", "size_mm", "positive_nodes", "stage"),
"breast_treatment": ("start_date", "kind"),
"breast_recurrence": ("diagnosis_date", "site"),
"clinical_note": ("note_date", "specialty", "icd10"),
"death": ("death_date",),
"mchat": ("screening_date", "score"),
@@ -32,7 +33,7 @@ FIELDS = {
"eeg": ("study_date", "lab_record_id", "edf"),
} # fmt: skip
BOOLS = {"hpv", "hpv_16", "hpv_18"}
NUMBERS = {"ki67_pct", "size_mm", "score", *ADOS2_SCORES}
NUMBERS = {"ki67_pct", "size_mm", "positive_nodes", "score", *ADOS2_SCORES}
def value(field, v):
@@ -123,7 +124,7 @@ def test_a_site_becomes_silver_and_review_gets_the_rest(platform, site, tmp_path
):
got = next((v for v in values if v is not None), None)
mine.setdefault(record, {})[field] = value(field, got)
assert mine, entity
assert mine or not any(said(r, entity) for r in truth), entity
stated = read = scanned = 0
missed: Counter = Counter()
wrong = []