Review queues a scan read only in part, and an undated name one typo from a person

This commit is contained in:
Roberto Treviño
2026-11-27 14:02:08 -06:00
parent 7b9ae69de2
commit 3546269eaf
3 changed files with 21 additions and 26 deletions
+3 -6
View File
@@ -2,7 +2,7 @@
can trust, and everything the platform can't decide alone is put in front of a reviewer.
The source hides its answers the way the real one does (synthetic.site): one PDF per study in
two SQL Server tables, the institute's forms and what outsourced labs send back; an HPV result
one SQL Server table, the institute's forms beside what outsourced labs send back; an HPV result
is a document of its own on its cytology's order; pathology comes scanned, the name surname
first and no birth date; some forms say "MA." for María or misspell the name and leave the
employee number out; some HPV reports were re-issued the other way; two women share a name.
@@ -106,11 +106,8 @@ def test_a_site_becomes_silver_and_review_gets_the_rest(platform, site, tmp_path
# another ("IIA" as "IA"), which nothing in the text betrays: at most 1% of a scan's
# values, each listed.
at = {r["where"]: r for r in truth}
place = {
r: f"ArchivosUni:{i}" for i, r in q("select id, _record from bronze.n__site__archivos")
}
place |= {r: f"ResultadosSubrogados:{i}"
for i, r in q("select id, _record from bronze.n__site__subrogados")} # fmt: skip
place = {r: f"ResultadoSubrogado:{i}"
for i, r in q("select id, _record from bronze.n__site__resultados")} # fmt: skip
record_of = {w: r for r, w in place.items()}
accepted: dict[str, dict[str, dict]] = {} # study -> record -> fields (from silver's long rows)
for entity in FIELDS: