inou/lib
James bf57e28e71 fix: replace naive byte-scan findTag with DICOM stream walker
The old findTag scanned raw bytes for the 4-byte tag pattern, which
caused false matches inside Siemens CSA private OB blobs (e.g. the
large 0029,1020 Series Header). This corrupted body_part and other
fields on Siemens MAGNETOM Sola MRIs because findTag(0x0018, 0x0015)
hit a matching byte sequence inside the binary payload before reaching
the real BodyPartExamined element.

Fix: walkToTag() walks the DICOM element stream sequentially, reading
VR and length fields to skip element values entirely. Falls back to
byte-scan only on corrupt/truncated length fields. findLastTag updated
to use the same walker.
2026-03-23 12:09:31 -04:00
..
templates Document processing pipeline: OpenRouter OCR + Stepfun extraction 2026-03-15 05:28:05 -04:00
._db_schema.go Initial commit from dev 2026-02-01 08:03:12 +00:00
config.go Document processing pipeline: OpenRouter OCR + Stepfun extraction 2026-03-15 05:28:05 -04:00
crypto.go Lab reference charts, import tracking, DossierFromEntry consolidation 2026-02-24 05:15:03 -05:00
data.go.bak Refactor: Remove legacy v2, data, roles modules; update auth, queries, translations, portal MCP tools 2026-02-13 15:30:22 -05:00
db_auth.go TASK-018: Fix session management vulnerabilities 2026-03-23 00:35:36 -04:00
db_queries.go Lab reference charts, import tracking, DossierFromEntry consolidation 2026-02-24 05:15:03 -05:00
db_schema.go Checkpoint: all pending changes across lib, portal, api, tools 2026-03-11 23:37:44 -04:00
dbcore.go Document processing pipeline: OpenRouter OCR + Stepfun extraction 2026-03-15 05:28:05 -04:00
dicom.go fix: replace naive byte-scan findTag with DICOM stream walker 2026-03-23 12:09:31 -04:00
email.go Checkpoint: all pending changes across lib, portal, api, tools 2026-03-11 23:37:44 -04:00
errors.go Initial commit from dev 2026-02-01 08:03:12 +00:00
files.go Initial commit from dev 2026-02-01 08:03:12 +00:00
journal.go refactor: unexport raw DB functions, enforce RBAC at data layer 2026-02-10 02:34:51 -05:00
lab_reference.go Lab reference charts, import tracking, DossierFromEntry consolidation 2026-02-24 05:15:03 -05:00
lib_test.go Add comprehensive test suite: labs, entries, dossiers, readings 2026-02-28 07:20:44 -05:00
llm.go Document processing pipeline: OpenRouter OCR + Stepfun extraction 2026-03-15 05:28:05 -04:00
normalize.go Checkpoint: all pending changes across lib, portal, api, tools 2026-03-11 23:37:44 -04:00
notify.go Checkpoint: all pending changes across lib, portal, api, tools 2026-03-11 23:37:44 -04:00
parse_numeric.go fix: genome query RBAC - use system context for data access 2026-02-07 16:31:17 -05:00
rbac.go Lab reference charts, import tracking, DossierFromEntry consolidation 2026-02-24 05:15:03 -05:00
roles.go.bak Refactor: Remove legacy v2, data, roles modules; update auth, queries, translations, portal MCP tools 2026-02-13 15:30:22 -05:00
stubs.go Lab reference charts, import tracking, DossierFromEntry consolidation 2026-02-24 05:15:03 -05:00
tracker.go Lab reference charts, import tracking, DossierFromEntry consolidation 2026-02-24 05:15:03 -05:00
translate.go Document processing pipeline: OpenRouter OCR + Stepfun extraction 2026-03-15 05:28:05 -04:00
types.go Lab reference charts, import tracking, DossierFromEntry consolidation 2026-02-24 05:15:03 -05:00
v2.go.bak Refactor: Remove legacy v2, data, roles modules; update auth, queries, translations, portal MCP tools 2026-02-13 15:30:22 -05:00