Silver checks the site's recurrences and positive nodes
This commit is contained in:
@@ -23,8 +23,9 @@ FIELDS = {
|
|||||||
"cervical_biopsy": ("request_date", "report_date", "histology"),
|
"cervical_biopsy": ("request_date", "report_date", "histology"),
|
||||||
"mammography": ("exam_date", "report_date", "adequacy", "birads"),
|
"mammography": ("exam_date", "report_date", "adequacy", "birads"),
|
||||||
"breast_biopsy": ("request_date", "report_date", "histology", "histologic_type", "grade",
|
"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_treatment": ("start_date", "kind"),
|
||||||
|
"breast_recurrence": ("diagnosis_date", "site"),
|
||||||
"clinical_note": ("note_date", "specialty", "icd10"),
|
"clinical_note": ("note_date", "specialty", "icd10"),
|
||||||
"death": ("death_date",),
|
"death": ("death_date",),
|
||||||
"mchat": ("screening_date", "score"),
|
"mchat": ("screening_date", "score"),
|
||||||
@@ -32,7 +33,7 @@ FIELDS = {
|
|||||||
"eeg": ("study_date", "lab_record_id", "edf"),
|
"eeg": ("study_date", "lab_record_id", "edf"),
|
||||||
} # fmt: skip
|
} # fmt: skip
|
||||||
BOOLS = {"hpv", "hpv_16", "hpv_18"}
|
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):
|
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)
|
got = next((v for v in values if v is not None), None)
|
||||||
mine.setdefault(record, {})[field] = value(field, got)
|
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
|
stated = read = scanned = 0
|
||||||
missed: Counter = Counter()
|
missed: Counter = Counter()
|
||||||
wrong = []
|
wrong = []
|
||||||
|
|||||||
Reference in New Issue
Block a user