Focusing Inspector
The Focusing Inspector is a proposed tool for professional stakeholders (developers, researchers, etc.) providing a user interface to check the results of preprocessed ePIs and the application of Lenses.
Purpose
Enables inspection of:
- Preprocessor annotation quality
- Lens execution results
- Attention detail modifications
- f(ePI) output
- Comparison between ePI → p(ePI) → f(ePI)
Views Supported
Programmer View
Technical inspection for developers:
- Raw FHIR JSON comparison
- HtmlElementLink extensions
- CSS class attributes
- Provenance chains
- Standard terminology codes
- Lens execution logs
End-User View
Visual presentation as patient sees it:
- Rendered HTML with styling
- Highlighted sections
- Collapsed sections
- Added supplementary content
- Supporting Material links
Features
Diff Viewer
Compare versions:
Annotation Explorer
Inspect p(ePI) annotations:
- View all HtmlElementLink extensions
- Filter by terminology system (SNOMED-CT, ICPC-2)
- Search by concept code
- Validate annotation completeness
Lens Simulator
Test Lenses with different inputs:
- Select patient profiles (IPS)
- Adjust Persona Vector
- Compare lens variants
- Debug lens logic
Performance Profiler
Analyze execution:
- Preprocessor duration
- Lens execution time
- Memory usage
- API call traces
Access Control
Restricted to authorized roles via Keycloak:
- Developers
- Content creators
- Quality assurance teams
- Regulatory reviewers
Integration
Connects to:
- Focusing Manager APIs
- FHIR Server for resources
- LEE for lens execution
- CTF for provenance inspection
Deployment
- Web-based interface
- Deployed via Kubernetes
- Exposed through Istio gateway