mirror of
https://github.com/temetro/temetro.git
synced 2026-07-26 11:58:14 +00:00
d79f7f7c06
Read-only FHIR R4 server at /fhir with per-clinic API keys. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
11 KiB
11 KiB
Changelog
All notable changes to temetro are recorded here. The format is loosely based on Keep a Changelog, and the project follows Semantic Versioning. See RELEASING.md for how releases are cut and published.
[Unreleased]
[0.6.0] — 2026-07-04
Added
- Read-only FHIR R4 server — temetro can now be a FHIR server, not just a client.
A new endpoint tree at
/fhir(mounted outside/api, bearer-only) exposes each clinic's records as FHIR R4: Patient, Observation (labs + synthesized vital signs), AllergyIntolerance, Condition, MedicationRequest, Encounter and Appointment, plus an unauthenticatedGET /fhir/metadataCapabilityStatement. Searches return searchsetBundles with_count/_offsetpagination and self/next/prev links. Because temetro stores free-text clinical values, everyCodeableConceptis text-only (no SNOMED/LOINC) and patients carry an age extension rather than abirthDate— documented in the CapabilityStatement and API docs. - Per-clinic FHIR API keys — machine-to-machine auth via
Authorization: Bearer tmf_…. Keys are created/revoked under Settings → Integrations → FHIR server (owner/admin), SHA-256-hashed at rest, and shown once at creation. Every FHIR request is org-scoped (no cross-clinic reads) and written to the activity log with the key name and result count. Newfhir_api_keystable,middleware/fhir-auth.ts, theservices/fhir-server/mapping module (queries, resources, bundle, capability, keys), the/fhirrouter, andGET/POST/DELETE /api/integrations/fhir-server/keys. NewfhirServerlocale namespace across all five languages.
[0.5.0] — 2026-07-03
Added
- Clinic → wallet record-update push — a clinician can push an updated record to a
wallet-linked patient (a permanent, approved share). The record snapshot is signed
with the clinic's Ed25519 key and sealed to the wallet's X25519 key (derived from its
Ed25519 wallet number via the birational map — verified byte-for-byte against the wallet's
own derivation), stored
pending, and delivered over the/walletrelay live and on the wallet's next authenticated connect (so an offline phone catches up). The patient reviews it in a pending-updates inbox and approves/denies; the wallet signs its decision, the backend verifies it, and the on-device record is replaced only on approval. The wallet pins the clinic key (TOFU) and warns on a key change. NewPOST /api/patients/wallet/push,GET /api/patients/wallet/{link/:fileNumber,updates,updates/:id},walletRecordUpdatestable + service,wallet:update-request/wallet:update-responserelay events, a "Push to wallet" dialog with live status, and a "Sent updates" list under Settings → Signing. NewwalletPush/walletUpdatesListlocale namespaces across all five languages. (The wallet app half ships in the siblingtemetro-apprepo.)
[0.4.0] — 2026-07-03
Added
- Ambient AI visit scribe — a Record visit action on the patient sheet turns a
clinician↔patient conversation into a draft SOAP encounter note. Record with the
microphone (
MediaRecorder, stored as an auditable patient attachment) or paste a transcript; the backend transcribes via the user's OpenAI (Whisper) or Gemini key, de-identifies the transcript + patient context through Veil, and the model drafts a structured note that the clinician reviews and edits before saving — the same write-approval gate as the chat agent. NewPOST /api/scribe/{transcribe,draft,save}(backend/src/routes/scribe.ts,services/ai/transcribe.ts), aveil.redactText()free-text redactor, and anappendEncounterservice that adds one note without touching the rest of the record. Gated bypatient:write+ the clinic AI policy (reception and disabled-AI accounts don't see it). Newscribelocale namespace across all five languages. Drafting also works with local Ollama from a pasted transcript.
[0.3.0] — 2026-07-02
Added
- Three new interface languages — Somali (
so), Arabic (ar) and German (de) join English and French, selectable in Settings → Profile → Language. Each locale carries a full translation of the ~1,660 UI strings, with native names shown in the selector (Soomaali, العربية, Deutsch). - Right-to-left (RTL) support — selecting Arabic sets
dir="rtl"on the document (applied before first paint via an inline script, so no flash), flips physical spacing/alignment to logical CSS utilities, mirrors directional icons, and loads an Arabic-capable typeface (IBM Plex Sans Arabic) appended to the font stack for per-character fallback. - Language roams across devices — the chosen language is persisted to the
per-user
user_settingspreferences and re-applied on sign-in, with localStorage remaining the offline source of truth. frontend/scripts/check-locales.mjs(+npm run check-locales) — a parity check that fails on missing/extra keys or{{placeholder}}mismatches across locales and warns when Arabic count-keys lack the full CLDR plural forms.
[0.2.5] — 2026-07-01
Fixed
- Multi-arch Docker images — the
releaseworkflow now builds and publisheskhalidxv/temetro-backendandkhalidxv/temetro-frontendfor bothlinux/amd64andlinux/arm64. Previously the images were amd64-only, sodocker compose pullon Apple Silicon failed with no matching manifest for linux/arm64/v8 and fell back to building from source.
Changed
- Language switcher in Settings → Profile is now a select that asks for confirmation before switching the interface language, instead of applying the change instantly on a button tap.
[0.2.4] — 2026-06-29
Added
- Pagination on the Activity and Invoices pages (10 per page), matching the
Patients page, via a shared
ListPaginationcomponent. - French (Français) interface language, with a language switcher in Settings → Profile. The choice persists on the device.
- "Check for updates" button in Settings → About & updates that forces a fresh check.
Changed
- Update detection now reads the latest version from Docker Hub image tags (the channel clinics actually pull), falling back to the GitHub release if Docker Hub is unreachable. This fixes "About & updates" showing Up to date when a newer image was already published.
- docker compose host ports are now configurable (
BACKEND_PORT,FRONTEND_PORT,ADMINER_PORT, alongsidePOSTGRES_PORT) so a port clash ondocker compose up -dcan be resolved from.envwithout editing the file.
[0.2.3] — 2026-06-29
Fixed
- AI chat patient record cards now render on Google Gemini for name
lookups. "Show me 's medical record" relied on the model chaining
searchPatients→getPatient, but Gemini often calledsearchPatientsand then emitted only a canned closing line ("Here's the record.") without the second tool call — so no card was ever drawn.searchPatientsnow displays the record card directly when exactly one patient matches, so the flow no longer depends on a follow-up tool call. (The previous Gemini fix in 0.2.2 only covered the empty-schema list tools.)
[0.2.2] — 2026-06-28
Fixed
- AI chat record cards now render on Google Gemini. The card-emitting
chat tools (
listAppointments,listTasks,listPrescriptions,getClinicInfo,getAnalytics,listInventory) used an empty parameter schema; Gemini can't emit a function call for a schema with no properties, so it printed the call astool_codetext instead of invoking the tool — leaving replies as plain text (e.g. "Show today's schedule" leaked a raw<tool_code>block) with no cards. The tools now share a non-empty schema so Gemini calls them; other providers are unaffected.
[0.2.1] — 2026-06-27
Fixed
- Patients pagination controls now render as proper buttons — the prev/next
and page-number controls were unstyled and wrapping (the COSS
PaginationLinkdrops its button styling when given arenderprop). - Patient detail sheet header reflowed: actions (Download summary / Transfer / Edit / Delete) moved to their own wrapping row so the patient name is no longer truncated.
- Messages thread now shows sender and recipient avatars alongside the chat bubbles.
- Release notes — the
releaseworkflow now publishes the matchingCHANGELOG.mdsection as the GitHub Release body (instead of only the auto-generated "Full Changelog" link).
[0.2.0] — 2026-06-27
Added
- Patients table pagination. The Patients list now paginates at 10 rows per
page (COSS
Pagination), so large clinics no longer scroll endlessly. - Per-patient record history. The patient detail sheet shows an audit
timeline of every add/change on that chart.
GET /api/activity/patient/:fileNumber. - Patient summary PDF. A Download summary action on the patient sheet produces a clean, printable one-page clinical summary (browser "Save as PDF").
- AI setup notice. A single, dismissible heads-up appears above the chat input on a fresh chat when no AI provider (API key or local Ollama) is configured; it clears itself once you send a message.
- Version & update awareness.
GET /api/versionreports the running version and checks GitHub Releases for a newer one; Settings → About & updates shows the current/latest version, and an optional, dismissible banner appears when an update is available. - LAN access. The frontend now resolves the backend URL from the host the
browser is using, so other departments can reach temetro at
http://<server-LAN-IP>:3000with no rebuild. A Settings panel surfaces the shareable network address.GET /api/networkreports detected LAN addresses. - Prebuilt Docker images published to Docker Hub (
khalidxv/temetro-backend,khalidxv/temetro-frontend) via a tag-triggered GitHub Actions release workflow. - Voice dictation on the AI chat input (Web Speech API), with graceful fallback where the browser doesn't support it.
Changed
- Messages thread rebuilt on the shadcn
Message/Bubble/Attachmentcomponents (COSS colour tokens preserved) for a cleaner conversation surface. - Patient status badges now use semantic colours (active → success, inpatient → info) instead of a flat secondary badge.
docker-compose.ymlreferences the published images (with a build fallback) and no longer bakes a fixed API URL into the frontend.
Fixed
- AI import approval card.
previewImportnow declares a concrete record schema so Google Gemini emits a real tool call (and the approval card renders) instead of dumping atool_code/JSON wall as text. The system prompt also forbids printing tool calls and re-listing fields. - Settings network address no longer shows a bogus container IP / "Error"
under Docker — the
/api/networkendpoint now skips container-internal interfaces, and the panel falls back to the helpful LAN hint.
[0.1.0] — 2026-06-26
Initial baseline: clinician AI-chat UI wired to the TypeScript/Express/Postgres API (Better Auth, multi-tenant clinics, org-scoped patient records), the patient wallet encrypted-share flow, and Dockerised local run.