mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 06:52:04 +00:00
Expose the server's live id vocabularies (derived-metric ids, vitals-baseline types, insights layout tile-ids, metric-status ids, the HealthKit ingest mapping, computed-score types, write allowlist) and the FHIR coding constants, plus the running contract version, behind requireAuth (cookie or Bearer, not admin). Every list is sourced from its canonical server constant / registry, so the endpoint cannot drift from what the routes actually accept and emit — retiring the doc-vs-server enum-drift class for the native client. Export the FHIR ATC/SNOMED URIs and a shared german-ATC default-locale set so the export route and the discovery surface share one source. Register the route in the OpenAPI table; drift-guard tests pin derivedMetricIds to the registry and writeAllowlist to the constant.