A coded catalog result may name the code system of its values; the histological type comes out as its ICD-O-3 code

This commit is contained in:
rockdrigo
2026-11-18 19:56:07 -06:00
parent 7a84cb19c9
commit ca0f02aa0c
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ def test_a_pathology_pdf_s_text_layer_gives_its_results():
going through the PDF reader, or a receptor's percentage stops sharing its captions with the receptor."""
leido = cama.DEL_REPORTE_DE_PATOLOGIA.leer(SimpleNamespace(bx_pdf_blob=pdf_de(INFORME_DE_PATOLOGIA[1])))
assert {r: v for r, (v, _) in leido.items()} == {
"biopsia.tipo_histologico": "DUCTAL_INFILTRANTE", "biopsia.grado_nottingham": "G2",
"biopsia.tipo_histologico": "8500/3", "biopsia.grado_nottingham": "G2",
"biopsia.receptor_estrogeno": "POSITIVO", "biopsia.receptor_estrogeno_pct": 90.0,
"biopsia.receptor_progesterona": "NEGATIVO", "biopsia.receptor_progesterona_pct": 0.0,
"biopsia.her2": "H3", "biopsia.ki67_pct": 25.0,