All projects
Challenge winner

ClinicFlow

KOREX · Digital Sleep Centre

ClinicFlow is digitising the sleep clinic: questionnaires on a tablet, CPAP data, check-ups and referrals all in one place, in the FHIR standard.

The problem The Sleep Centre at Brno University Hospital has the data, but it is not integrated. Questionnaires and anthropometric measurements are recorded on paper and then transcribed into the NIS. Results from Nox are copied into the report as text, whilst data from in-house devices (AirView, prismaCLOUD) are printed out during the check and transcribed. According to the client, this amounts to around 20 minutes of administrative work per patient. However, the solution must not be tied to AMIS, which the hospital plans to replace.

How it works ClinicFlow consolidates the patient’s journey into a single data stream. The patient completes the Epworth Sleepiness Scale and enters their height and weight on a tablet in the waiting room or via a QR code on their mobile phone; the score and BMI are calculated immediately. The doctor uploads a PDF report from Nox or prismaCLOUD; the system extracts the tables from it, matches the patient by their national ID number and flags any discrepancies (e.g. the TST does not match the sum of the stages). The report is generated using a template, including a complete table of results. The dashboard shows trends over time, adherence to PAP therapy and alerts indicating when to intervene. The report is sent to the NIS via interchangeable connectors: a simulated version of the current AMIS (HL7 v2) and the future NIS (FHIR). The data is in HL7 FHIR R4 on InterSystems IRIS for Health.

What we managed to achieve over the weekend All 4 points of the brief: a tablet with ESS, a database and dashboard, an automated report, and two NIS systems via connectors. In addition, a calendar for the outpatient clinic and sleep laboratory (5 rooms, closed days, schedule of check-ups after starting PAP), tracking of device entitlements and e-vouchers, a patient portal with reports (staff request a photo, OCR extracts text from it), customisable questionnaire templates, AI-generated report suggestions, and roles for doctors, nurses and administrators.

Next steps Pilot project at Brno University Hospital: the only thing missing is access to real-world data sources (AMIS, AirView, prismaCLOUD, Noxturnal) rather than simulators. Then a DPIA, a licence for the Czech version of ESS, the integration of REDCap and Excel into a single research database, and other specialities as modules on the same platform (e.g. home ventilation).

Privacy and sensitive data

  • Everything runs on-premises on the hospital network; data does not leave the hospital – only an encrypted tunnel with a token leads outwards.
  • In the demo, only fictitious patients with invalid national ID numbers are used; the CI blocks any valid ID number in the repository.
  • Only logged-in staff can view the name and ID number, depending on their role. Only a pseudonym (S001 · female · 72 years old) is used in the AI, SMS, exports and logs.
  • Scores, BMI, apnoea severity, adherence and VZP codes are calculated by the code under test, not by the AI. The AI merely makes suggestions; the output is flagged and is only entered into the record after confirmation by a doctor, with an audit trail (Provenance).
  • SMS messages are sent only with the patient’s consent and without any diagnosis included in the text.
Had before
chuť něco vytvořit
Tech & AI
Stack: web v Next.js 16 (Vercel), backend FastAPI, data v HL7 FHIR R4 na InterSystems IRIS for Health. Do NIS posíláme přes vyměnitelné konektory (HL7 v2 a FHIR). Data: anonymizované podklady FN Brno (2 pacienti s fiktivní identitou) a syntetická kohorta z našeho generátoru, žádní skuteční pacienti.

AI (Google Gemini 3.1 Flash Lite, embeddingy gemini-embedding-001): návrh textu lékařské zprávy, návrh odpovědi na zprávu od pacienta a vyhledávání ve zprávách podle významu přes IRIS Vector Search. PDF z Noxu a prismaCLOUD čte deterministický parser, fotky OCR (Tesseract), ne LLM.

Jak hlídáme chyby: skóre, BMI, tíži apnoe, adherenci a kódy VZP počítá kód s testy, ne AI. AI dostane jen pseudonym a hotová data, chybějící údaj nedomýšlí. Návrh je v aplikaci barevně odlišený, lékař ho musí potvrdit a do FHIR se uloží se značkou AI a auditní stopou (Provenance).
Impact
Čas: podle zadavatelky stojí přepis dotazníků, výsledků a dat z přístrojů asi 20 minut na pacienta, tedy kolem 1 200 hodin ročně. ClinicFlow okolo 50% z toho odstraní.

Léčba a náklady: podle dat VoZP nemá 29,9 % pacientů s přístrojem ve 2. roce telemetrii ani příslušenství, což naznačuje přerušenou léčbu. Přístroj stojí 35–100 tis. Kč, u 393 pacientů je to až 13,8–39,3 mil. Kč v přístrojích, které možná leží ve skříni. Varování o nepoužívání přístroje umožní zasáhnout po pár dnech, ne až na kontrole za rok.

Příjmy: telemetrickou kontrolu 25268 vykazují nemocnice jen u 32,1 % pacientů s přístrojem. Systém ukáže, kdo je k vykázání připravený.

Méně chyb: žádný ruční přepis, nesoulad v datech systém ukáže lékaři. Výpočty dělá testovaný kód.

Přenositelnost: díky konektorům a FHIR jde řešení nasadit i v dalších spánkových centrech s jiným NIS.
Who benefits
Patients and their families, Doctors and nurses, Hospitals and care providers, Health insurers, Research
InterSystems technologies
Yes — Ano. IRIS for Health běží jako náš FHIR R4 server: pacienty, dotazníky, výsledky vyšetření, data z PAP, zprávy i AI návrhy (s Provenance) čteme a zapisujeme přes FHIR API. Přes IRIS Vector Search (VECTOR_COSINE nad embeddingy Gemini) hledáme ve zprávách podle významu a podobné pacienty. Výměna NIS se IRIS nedotkne, data zůstávají ve FHIR.

Machine translation from Czech

Team
KOREX — Matyáš Mlnařík, Sebastián Bořík
Challenge
Digital Sleep Centre