Description
FHIR R4 mapping types exist in src/lib/fhir.ts (1057 lines) but there is no API endpoint. This would enable interoperability with health information systems.
Current State
- FHIR mapping functions exist (Patient, Observation, Condition, ClinicalImpression)
- No API endpoint to serve FHIR resources
Required Changes
- Create server API routes (/api/fhir/Patient, /api/fhir/Observation, etc.)
- Implement FHIR search/read operations from IndexedDB
- Return proper FHIR JSON bundles
- Support basic query parameters (_id, _lastUpdated, _count)
- Add auth/authorization
Description
FHIR R4 mapping types exist in
src/lib/fhir.ts(1057 lines) but there is no API endpoint. This would enable interoperability with health information systems.Current State
Required Changes