Transforming Clinical Note Generation:
Scalable Migration from OpenAI to AWS Bedrock
Business Problem
About
Mariana.AI is a cutting-edge healthcare innovation company focused on automating clinical documentation and patient engagement. To modernize its systems, Mariana.AI partnered with goML to migrate its clinical note generation and medical coding workflows from OpenAI to AWS Bedrock. The goal was to enhance performance, improve prompt engineering, and establish a scalable, compliant backend for future expansion into real-time and voice-based clinical support.
Solution
goML proposed a 4-week AWS-native PoC leveraging Claude Sonnet 3.5 on AWS Bedrock, integrated via Portkey and Langchain for advanced multi-agent prompt orchestration. The solution automates clinical note generation and medical coding workflows with strong schema validation and performance monitoring.
1.
OpenAI to Bedrock Migration
Migrated clinical documentation logic from OpenAI to Claude Sonnet 3.5 via AWS Bedrock, ensuring better performance and alignment with enterprise cloud policies.
4.
Data Extraction & Structuring
Implemented a robust pipeline for ingesting data from physician tools, clinical articles, and Mariana.AI’s internal knowledge base.
2.
Backend API Development
Backend APIs built with FastAPI (Python) to pull and process clinical data efficiently and securely.
5.
Schema Validation & Quality Assurance
Developed a comprehensive validation framework to ensure outputs maintain grammatical accuracy, coherence, structural consistency, and JSON schema compliance.
3.
Advanced Prompt Orchestration
Automated Prompt Chains created using Portkey and Langchain to generate structured clinical reports in JSON and Markdown formats.
6.
Monitoring & Secure Data Storage
Set up end-to-end logging and monitoring with AWS CloudWatch, secure document storage using AWS S3, and metadata management via AWS RDS.
Architecture
