MedSynth

This project leverages large language models and natural language processing to transform how medical institutions process and summarize patient data. By automating the generation of epicrisis reports.

OpenAI GPT Fune-tuned

Python

FastAPI

React.js

NLP Pipelines

Healthcare Data Anonymization

Cloud & On-Prem Deployment

Membrane

Project Overview

The AI-Powered Clinical Documentation System was conceived to eliminate one of healthcare’s most persistent inefficiencies: the manual processing of clinical histories. Hospitals and clinics spend enormous amounts of time reviewing extensive patient records to produce consistent discharge summaries. Our approach was to create a robust, fine-tuned language model capable of understanding complex medical narratives and automatically structuring them into professional, standardized epicrisis documents.

The initiative began as a proof of concept, developed in close collaboration with a medical research team. This first stage validated that an LLM could reliably process real clinical records and generate summaries meeting medical-quality standards, establishing a strong foundation for future scalability and integration into hospital systems.

About the Product

The system processes entire clinical histories—from admission notes and progress records to diagnostic results—and produces complete epicrisis reports in seconds. Each document is structured around key sections such as background, diagnosis, treatment course, and discharge recommendations.

Powered by OpenAI’s GPT-4o mini fine-tuned on authentic anonymized data, the model uses medical NLP pipelines to identify, extract, and organize critical patient information with exceptional linguistic precision. An internal validation workflow ensures factual consistency and professional tone alignment.

Since the successful proof of concept, the team has explored expanding the solution into a fully operational API and user interface as a natural next step. This evolution would allow healthcare institutions to upload records, visualize summaries, and integrate the AI’s functionality directly into their internal systems—either in the cloud or on-premise—while maintaining strict data governance standards.

The Challenge

Manual clinical documentation remains a bottleneck for healthcare facilities worldwide. Doctors often spend hours reviewing long medical histories—sometimes exceeding tens of thousands of words—to prepare accurate discharge reports. This not only delays the administrative cycle but also increases the likelihood of human error, inconsistent language, and overlooked clinical details.

Another challenge lies in the contextual complexity of medical texts: long narratives, mixed formats, and data embedded in tables or scanned PDFs make automated processing non-trivial. Additionally, healthcare data requires strict adherence to privacy regulations and ethical safeguards when working with AI systems.

Our Solution

Rather Labs designed a multi-stage solution that combines LLM fine-tuning, NLP preprocessing, and scalable software engineering. The fine-tuned GPT-4o mini model was trained using real anonymized clinical cases validated by a medical team. The pipeline ingests PDF records, segments and preprocesses data, and structures the content before passing it to the model for summarization.

The system was engineered to handle context-length limitations of large language models by strategically chunking text and maintaining narrative continuity through metadata linking. Privacy constraints were addressed by anonymization layers, secure data handling policies, and controlled API access to the model.

The resulting architecture allows for rapid deployment in healthcare settings, offering flexibility for integration with existing hospital systems while maintaining the model hosted in the OpenAI environment for stability and scalability.

Results and Progress

The proof-of-concept successfully demonstrated the technical and clinical feasibility of AI-generated epicrisis. The fine-tuned GPT-4o mini model achieved high-quality outputs validated by a professional medical team, accurately summarizing 90 complete patient histories. Each generated report matched the quality of manually written documents, confirming the model’s reliability for clinical documentation.

Beyond this specific project, it is worth noting that the broader AI landscape has advanced significantly since the PoC was completed. Modern models now offer larger context windows, improved reasoning capabilities, and more efficient processing pipelines. Tools for data handling, privacy-preserving workflows, and medical NLP have also matured. These industry-wide improvements make it increasingly feasible to enhance timing, expand context capacity, reduce processing limitations, and improve accuracy in future implementations. While these technological advances are not part of this PoC, they highlight strong potential for next-generation systems inspired by this work.

Industry Impact

This initiative highlights the transformative role of AI in healthcare operations. By automating documentation processes, it enables faster data flow, reduces physician workload, and improves the consistency of patient information. The project also sets a precedent for how LLM-based systems can be safely applied in sensitive domains through anonymization, ethical use, and human validation.

The solution’s success proves that with the right data alignment, fine-tuning, and validation pipelines, large language models can be trusted as assistive tools in clinical environments—bridging the gap between healthcare efficiency and human oversight.

Our Team Leadership

Skilled engineers, product thinkers, and problem solvers working together to bring ambitious ideas to life. Get to know the people leading our technical direction.

Julian portrait
Julian
Technical Lead
Pedro portrait
Pedro
Blockchain Developer

Executive Oversight

Vision and experience at the core. Our executive team ensures every project we build aligns with long-term strategy, innovation, and impact.

Federico Caccia
CEO
Franco Scucchiero
CTO

Talk to Our Experts

We’ve helped founders and startups design, develop, and launch their projects globally — and we can help you too.
Valid number
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Schedule a Meeting

Discover what we're capable of