feat: Add LaTeX template-based form filling for G2210-11

Replace unreliable visual overlay mode with precise LaTeX templates:

- Add LaTeX template for G2210-11 (Ärztlicher Befundbericht der WAG)
- Create Python Flask backend for LaTeX compilation (latex_service.py, server.py)
- Add frontend latexService.ts for API communication
- Update ReviewPanel with LaTeX mode toggle and preview
- Enhance Gemini prompts with G2210-11 specific field extraction
- Add Dockerfile with TeX Live for Railway deployment
- Update railway.toml to use Docker builder

The LaTeX approach ensures accurate field placement and proper
formatting for German medical/insurance forms.

https://claude.ai/code/session_016pQhdznHZ74Fpkvwr3cLBq
This commit is contained in:
Claude 2026-01-29 18:29:22 +00:00
parent adf8f0240e
commit 19e96ef59b
No known key found for this signature in database
10 changed files with 1557 additions and 32 deletions

View file

@ -11,7 +11,9 @@
"test": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest --coverage",
"test:run": "vitest run"
"test:run": "vitest run",
"latex:server": "python3 server.py",
"dev:all": "concurrently \"npm run dev\" \"npm run latex:server\""
},
"dependencies": {
"react-dom": "^19.2.4",