GenAI on 🔥 (FHIR)
![We developed an advanced healthcare interoperability application using GenAI and FHIR](https://blanclabs.com/wp-content/uploads/2023/10/Cover_A.jpg)
![We developed an advanced healthcare interoperability application using GenAI and FHIR](https://blanclabs.com/wp-content/uploads/2023/10/Cover_A_mobile_c.jpg)
We developed an advanced healthcare interoperability application using GenAI and FHIR
Blanc Labs has spent the last five years working with healthcare companies like Reliq Health Technologies and Shannex as well as partners like Smile Digital Health and AWS, on building healthcare interoperability platforms and technologies on the latest standards such as FHIR and HL7.
Given the excitement around Generative AI and Large Language Models (LLMs) and their potential to transform entire swaths of how we build and interact with technology, our healthcare team wanted to experiment with combining Gen AI tools with an FHIR standard to see if we could leverage it for a practical healthcare scenario.
As a result, our team developed a proof of concept that is meant to showcase the power of conversational AI tools to query an interoperable database of medical information.
For this PoC, we used OpenAI to query Health Samurai‘s FHIR platform, Aidbox.
Blanc Labs has spent the last five years working with healthcare companies like Reliq Health Technologies and Shannex as well as partners like Smile Digital Health and AWS, on building healthcare interoperability platforms and technologies on the latest standards such as FHIR and HL7.
Given the excitement around Generative AI and Large Language Models (LLMs) and their potential to transform entire swaths of how we build and interact with technology, our healthcare team wanted to experiment with combining Gen AI tools with an FHIR standard to see if we could leverage it for a practical healthcare scenario.
As a result, our team developed a proof of concept that is meant to showcase the power of conversational AI tools to query an interoperable database of medical information.
For this PoC, we used OpenAI to query Health Samurai‘s FHIR platform, Aidbox.
Why we did it
In our opinion, providing a conversational UI/UX to the end user will dramatically enhance the healthcare practitioner’s ability to access and act upon patient data on-demand instead of being limited by traditional web UI/UX.
The goal of building this prototype is to evaluate the strengths and weakness of Generative AI technologies to convert natural language instructions to corresponding FHIRÂ APIÂ calls.
![Digital health adoption](https://blanclabs.com/wp-content/uploads/2023/09/mid-adult-businessman-healthcare-workers-analyzing-documents-during-meeting-office_resized.jpg)
![How Blanc Labs transformed for Reliq Health Technologies](https://blanclabs.com/wp-content/uploads/2023/09/doctor-advising-patient-online-with-laptop_resized.jpg)
Source 1 and 2: Canada Health Infoway – Pan Canadian Interoperability Roadmap
Solution Approach Overview
We built a prototype that allows healthcare practitioners to access any arbitrary patient data simply by asking questions in natural language.
To develop this prototype, we leveraged OpenAI’s GPT3.5 APIs as the foundational LLM to convert natural language to a FHIR query that would be run on Health Samurai’s Aidbox FHIR platform. We fine-tuned the standard GPT3.5 LLM model using prompt-engineering techniques to better understand healthcare-based user instructions and matched it with corresponding standard FHIR APIs to retrieve the required data. The model was also fine-tuned to output the data in a non-technical, natural language format.
While it is built on Health Samurai’s Aidbox with OpenAI APIs, this application can be customized for other FHIR providers and other Gen AI APIs without making major changes to the fundamentals to the application.
Examples of questions we can ask the AI–Powered Knowledge Assistant
What is the number of patients in the system?
- Give me information about patient number XX*.
- What’s the name of patient number XXZ?
- Tell me about the last medical record of patient number YYT.
- I want to know about the conditions that patient number XYZ is presenting.
*In a real-life scenario, XX would be replaced with the patient ID
![Denis Zavylov Health Samurai](https://blanclabs.com/wp-content/uploads/2023/10/Denis-Zavylov.jpeg)
![Denis Zavylov Health Samurai](https://blanclabs.com/wp-content/uploads/2023/10/Denis-Zavylov.jpeg)
Blanc Labs has developed an innovative Proof of Concept that leverages Generative AI and our FHIR platform, Aidbox, to enable natural language access to patient data through FHIR APIs. We believe this could have
mainstream application around healthcare data accessibility leading to enhanced patient care.
Gen AI on 🔥 Techstack
Lessons Learned
Training is both Art, and Science
- With this prototype, we have proven that quick and low-cost techniques like fine-tuning generic LLM models, refer Prompt Engineering techniques using OpenAI Â (e.g. GPT3.5) work in most cases in converting natural language to FHIR standards. This is a good alternative to the intensive and expensive approach of building foundational models from scratch or re-training existing LLMs for specific use-cases.
- Since FHIR is an extensive standard, the process to fine-tune LLMs for every scenario would be time-consuming. Hence developers can start by focusing on their specific use-case rather than fine-tuning for all possible scenarios.
Conversational Queries Do Not Equal Structured Query Language
- As we were fine-tuning the models using prompt engineering, we observed if the prompts were not detailed and precise, we would end up with ambiguous answers. In our attempt to make the UI easy to use by non-technical users who are not aware of FHIR standards, we spent a considerable amount of time in perfecting our prompt engineering techniques for specific use-cases.
- This approach works well for a layman approach to asking questions to present information from the dataset, but it is interesting to consider how a “power user” ie. A clinician with a more informed understanding of what data they were looking for, as well as the taxonomy of the dataset they are querying could yield different outcomes for users.
- One of the limitations of the GPT 3.5 LLM model was the limit of characters that can be returned. Some queries can’t be completed because their response would be larger than what is supported by the LLM model. For such scenarios, we would have to break a single prompt into multiple prompts. Their responses would need to be intelligently merged to provide a sensible output to the user.
Give Me the Data, But Make It Usable
- Extracting raw data from a FHIR platform can be very useful, but often the data is one dimensional or very dense. There is a big opportunity around health informatics3 to present the data in various ways to make it easier to consume, more relevant or easier to pinpoint the “so what” of what is being presented.
- Future improvements to the prototype’s functionality can be made by enhancing it to include responses in other data formats like tables and graphs to help users better visualize certain kinds of health data.
What’s next?
Our intention is to enhance the demo to support more complex queries involving more than one FHIR API call as well as supporting richer output formats like charts & tables.
We’d also like to hear from the FHIR community on their thoughts about how to take this to the next level. Please participate in the brief questionnaire below to provide you input and feedback.
What did you think of this initiative? Give us your feedback in the form below.
Latest Insights
Process Improvement and Automation Support the Mission at Trez Capital 🚀
![Trez Capital](https://blanclabs.com/wp-content/uploads/2024/07/TC.png)
Trez distributes capital based on very specific criteria. But with over 300 investments in their portfolio, they process numerous payment requests and deal with documents in varied data formats. They saw an opportunity to enhance efficiency, improve task management, and better utilize data insights for strategic decision-making.
How Open Banking Will Empower Small Businesses in Canada
![small business owners benefitting from open banking technology](https://blanclabs.com/wp-content/uploads/2024/06/small-business-owners-open-banking-technology-blanc-labs.jpg)
With 85% of business owners seeking faster access to capital in today’s challenging economy, Open Banking offers a way out. This guide explores how it addresses issues like high inflation and slow lending processes, aiding small businesses in navigating the evolving landscape.
Align, Assemble, Assure: A Framework for AI Adoption
![](https://blanclabs.com/wp-content/uploads/2024/05/AAA-Framework_Blanc-Labs.jpg)
An in-depth guide for adopting and scaling AI in the enterprise using actionable and measurable steps.
Blanc Labs Welcomes Two New Leaders to Advance AI Innovation and Enhance Tech Advisory Services for Financial Institutions Across North America
![](https://blanclabs.com/wp-content/uploads/2024/05/featured-1.jpg)
Blanc Labs and TCG Process have partnered to transform lending operations with innovative automation solutions, using the DocProStar platform to enhance efficiency, compliance, and customer satisfaction in the Canadian lending market.
Blanc Labs Partners with TCG Process to Integrate their Automation and Orchestration Platform and deliver Advanced Intelligent Workflow Automation to Financial Institutions
![](https://blanclabs.com/wp-content/uploads/2024/05/featured.jpg)
Blanc Labs and TCG Process have partnered to transform lending operations with innovative automation solutions, using the DocProStar platform to enhance efficiency, compliance, and customer satisfaction in the Canadian lending market.
BPI in Banking and Financial Services in the US & Canada
![Business Process Improvement in Financial Services in US & Canada](https://blanclabs.com/wp-content/uploads/2024/04/Business-Process-Banks-and-Financial-Services.jpg)
Banking and financial services are changing fast. Moving from old, paper methods to new, digital ones is key to staying in business. It’s important to think about how business process improvement (BPI) can help.
Business Process Improvement vs Business Process ReengineeringÂ
![](https://blanclabs.com/wp-content/uploads/2024/03/content-african-american-manager-writing-chart-glass-board-professional-young-pretty-female-colleague-holding-document-looking-graph-conference-room-teamwork-marketing-concept.jpg)
Business process improvement vs. reengineering is a tough choice. In this guide, we help you choose between the two based on four factors.
What is the role of a Business Process Improvement Specialist?Â
![Business Process Improvement Specialist in Canada](https://blanclabs.com/wp-content/uploads/2024/02/Business-Process-Improvement-Specialist-in-Canada.jpg)
A business process improvement specialist identifies bottlenecks and inefficiencies in your workflows, allowing you to focus efforts on automating the right processes.
Open Banking Technology Architecture Whitepaper
![](https://blanclabs.com/wp-content/uploads/2024/02/DALL·E-2024-02-13-17.15.19-Update-the-previous-image-to-include-more-shades-of-blue-and-purple-enhancing-the-futuristic-and-digital-feel.-Add-representations-of-people-such-as.webp)
We’ve developed this resource to help technical teams adopt an Open Banking approach by explaining a high-level solution architecture that is organization agnostic.
Winning the Open Banking Race: A Challenger’s Path to Entering the Ecosystem Economy
![Winning the Open Banking Race_Consumer driven banking_Blanc Labs](https://blanclabs.com/wp-content/uploads/2024/01/Winning-the-open-banking-race_Blanc-Labs.jpg)
Learn about the steps you can take in forming an open banking strategy and executing on it.
Canadian IT services firms offer a strategic opportunity for US Banks and FIs
![Understanding the Strategic Advantages of Canadian Nearshore IT Support for U.S. Banks_Blanc Labs](https://blanclabs.com/wp-content/uploads/2024/01/Toronto-skyline_Blanc-Labs-e1706552422108.jpg)
Discover the strategic advantage for U.S. banks embracing innovation with cost-effective Canadian nearshore IT support.
These are not your grandmother’s models: the impact of LLM’s on Document Processing
![These are not your grandmother’s models: the impact of Large Language Models on Document Processing](https://blanclabs.com/wp-content/uploads/2024/01/LLMs_Blanc-Labs.jpg)
Explore the transformative influence of large language models (LLMs) on document processing in this insightful article. Discover how these cutting-edge models are reshaping traditional approaches, unlocking new possibilities in data analysis, and revolutionizing the way we interact with information.
From Chaos to Clarity: Achieving Operational Excellence through Business Process Improvement
![Business process improvement at work_Blanc Labs](https://blanclabs.com/wp-content/uploads/2023/12/business-process-meeting-e1702585708370.jpg)
Discover transformative insights and strategies to streamline operations, enhance efficiency, and drive success.
Digital Transformation Vs. IT Modernization: What’s the Difference?
Healthcare Interoperability: Challenges and Benefits
Navigating the Healthcare Interoperability Journey
Finding the right API Management Platform
Process Improvement and Automation Support the Mission at Trez Capital 🚀
![Trez Capital](https://blanclabs.com/wp-content/uploads/2024/07/TC.png)
Trez distributes capital based on very specific criteria. But with over 300 investments in their portfolio, they process numerous payment requests and deal with documents in varied data formats. They saw an opportunity to enhance efficiency, improve task management, and better utilize data insights for strategic decision-making.
How Open Banking Will Empower Small Businesses in Canada
![small business owners benefitting from open banking technology](https://blanclabs.com/wp-content/uploads/2024/06/small-business-owners-open-banking-technology-blanc-labs.jpg)
With 85% of business owners seeking faster access to capital in today’s challenging economy, Open Banking offers a way out. This guide explores how it addresses issues like high inflation and slow lending processes, aiding small businesses in navigating the evolving landscape.
Align, Assemble, Assure: A Framework for AI Adoption
![](https://blanclabs.com/wp-content/uploads/2024/05/AAA-Framework_Blanc-Labs.jpg)
An in-depth guide for adopting and scaling AI in the enterprise using actionable and measurable steps.
Blanc Labs Welcomes Two New Leaders to Advance AI Innovation and Enhance Tech Advisory Services for Financial Institutions Across North America
![](https://blanclabs.com/wp-content/uploads/2024/05/featured-1.jpg)
Blanc Labs and TCG Process have partnered to transform lending operations with innovative automation solutions, using the DocProStar platform to enhance efficiency, compliance, and customer satisfaction in the Canadian lending market.
Blanc Labs Partners with TCG Process to Integrate their Automation and Orchestration Platform and deliver Advanced Intelligent Workflow Automation to Financial Institutions
![](https://blanclabs.com/wp-content/uploads/2024/05/featured.jpg)
Blanc Labs and TCG Process have partnered to transform lending operations with innovative automation solutions, using the DocProStar platform to enhance efficiency, compliance, and customer satisfaction in the Canadian lending market.
BPI in Banking and Financial Services in the US & Canada
![Business Process Improvement in Financial Services in US & Canada](https://blanclabs.com/wp-content/uploads/2024/04/Business-Process-Banks-and-Financial-Services.jpg)
Banking and financial services are changing fast. Moving from old, paper methods to new, digital ones is key to staying in business. It’s important to think about how business process improvement (BPI) can help.
Business Process Improvement vs Business Process ReengineeringÂ
![](https://blanclabs.com/wp-content/uploads/2024/03/content-african-american-manager-writing-chart-glass-board-professional-young-pretty-female-colleague-holding-document-looking-graph-conference-room-teamwork-marketing-concept.jpg)
Business process improvement vs. reengineering is a tough choice. In this guide, we help you choose between the two based on four factors.
What is the role of a Business Process Improvement Specialist?Â
![Business Process Improvement Specialist in Canada](https://blanclabs.com/wp-content/uploads/2024/02/Business-Process-Improvement-Specialist-in-Canada.jpg)
A business process improvement specialist identifies bottlenecks and inefficiencies in your workflows, allowing you to focus efforts on automating the right processes.
Open Banking Technology Architecture Whitepaper
![](https://blanclabs.com/wp-content/uploads/2024/02/DALL·E-2024-02-13-17.15.19-Update-the-previous-image-to-include-more-shades-of-blue-and-purple-enhancing-the-futuristic-and-digital-feel.-Add-representations-of-people-such-as.webp)
We’ve developed this resource to help technical teams adopt an Open Banking approach by explaining a high-level solution architecture that is organization agnostic.
Winning the Open Banking Race: A Challenger’s Path to Entering the Ecosystem Economy
![Winning the Open Banking Race_Consumer driven banking_Blanc Labs](https://blanclabs.com/wp-content/uploads/2024/01/Winning-the-open-banking-race_Blanc-Labs.jpg)
Learn about the steps you can take in forming an open banking strategy and executing on it.
Canadian IT services firms offer a strategic opportunity for US Banks and FIs
![Understanding the Strategic Advantages of Canadian Nearshore IT Support for U.S. Banks_Blanc Labs](https://blanclabs.com/wp-content/uploads/2024/01/Toronto-skyline_Blanc-Labs-e1706552422108.jpg)
Discover the strategic advantage for U.S. banks embracing innovation with cost-effective Canadian nearshore IT support.
These are not your grandmother’s models: the impact of LLM’s on Document Processing
![These are not your grandmother’s models: the impact of Large Language Models on Document Processing](https://blanclabs.com/wp-content/uploads/2024/01/LLMs_Blanc-Labs.jpg)
Explore the transformative influence of large language models (LLMs) on document processing in this insightful article. Discover how these cutting-edge models are reshaping traditional approaches, unlocking new possibilities in data analysis, and revolutionizing the way we interact with information.
From Chaos to Clarity: Achieving Operational Excellence through Business Process Improvement
![Business process improvement at work_Blanc Labs](https://blanclabs.com/wp-content/uploads/2023/12/business-process-meeting-e1702585708370.jpg)
Discover transformative insights and strategies to streamline operations, enhance efficiency, and drive success.
Digital Transformation Vs. IT Modernization: What’s the Difference?
Healthcare Interoperability: Challenges and Benefits
Navigating the Healthcare Interoperability Journey
Finding the right API Management Platform
Process Improvement and Automation Support the Mission at Trez Capital 🚀
![Trez Capital](https://blanclabs.com/wp-content/uploads/2024/07/TC.png)
Trez distributes capital based on very specific criteria. But with over 300 investments in their portfolio, they process numerous payment requests and deal with documents in varied data formats. They saw an opportunity to enhance efficiency, improve task management, and better utilize data insights for strategic decision-making.
How Open Banking Will Empower Small Businesses in Canada
![small business owners benefitting from open banking technology](https://blanclabs.com/wp-content/uploads/2024/06/small-business-owners-open-banking-technology-blanc-labs.jpg)
With 85% of business owners seeking faster access to capital in today’s challenging economy, Open Banking offers a way out. This guide explores how it addresses issues like high inflation and slow lending processes, aiding small businesses in navigating the evolving landscape.
Align, Assemble, Assure: A Framework for AI Adoption
![](https://blanclabs.com/wp-content/uploads/2024/05/AAA-Framework_Blanc-Labs.jpg)
An in-depth guide for adopting and scaling AI in the enterprise using actionable and measurable steps.
Blanc Labs Welcomes Two New Leaders to Advance AI Innovation and Enhance Tech Advisory Services for Financial Institutions Across North America
![](https://blanclabs.com/wp-content/uploads/2024/05/featured-1.jpg)
Blanc Labs and TCG Process have partnered to transform lending operations with innovative automation solutions, using the DocProStar platform to enhance efficiency, compliance, and customer satisfaction in the Canadian lending market.
Blanc Labs Partners with TCG Process to Integrate their Automation and Orchestration Platform and deliver Advanced Intelligent Workflow Automation to Financial Institutions
![](https://blanclabs.com/wp-content/uploads/2024/05/featured.jpg)
Blanc Labs and TCG Process have partnered to transform lending operations with innovative automation solutions, using the DocProStar platform to enhance efficiency, compliance, and customer satisfaction in the Canadian lending market.
BPI in Banking and Financial Services in the US & Canada
![Business Process Improvement in Financial Services in US & Canada](https://blanclabs.com/wp-content/uploads/2024/04/Business-Process-Banks-and-Financial-Services.jpg)
Banking and financial services are changing fast. Moving from old, paper methods to new, digital ones is key to staying in business. It’s important to think about how business process improvement (BPI) can help.
Business Process Improvement vs Business Process ReengineeringÂ
![](https://blanclabs.com/wp-content/uploads/2024/03/content-african-american-manager-writing-chart-glass-board-professional-young-pretty-female-colleague-holding-document-looking-graph-conference-room-teamwork-marketing-concept.jpg)
Business process improvement vs. reengineering is a tough choice. In this guide, we help you choose between the two based on four factors.
What is the role of a Business Process Improvement Specialist?Â
![Business Process Improvement Specialist in Canada](https://blanclabs.com/wp-content/uploads/2024/02/Business-Process-Improvement-Specialist-in-Canada.jpg)
A business process improvement specialist identifies bottlenecks and inefficiencies in your workflows, allowing you to focus efforts on automating the right processes.
Open Banking Technology Architecture Whitepaper
![](https://blanclabs.com/wp-content/uploads/2024/02/DALL·E-2024-02-13-17.15.19-Update-the-previous-image-to-include-more-shades-of-blue-and-purple-enhancing-the-futuristic-and-digital-feel.-Add-representations-of-people-such-as.webp)
We’ve developed this resource to help technical teams adopt an Open Banking approach by explaining a high-level solution architecture that is organization agnostic.
Winning the Open Banking Race: A Challenger’s Path to Entering the Ecosystem Economy
![Winning the Open Banking Race_Consumer driven banking_Blanc Labs](https://blanclabs.com/wp-content/uploads/2024/01/Winning-the-open-banking-race_Blanc-Labs.jpg)
Learn about the steps you can take in forming an open banking strategy and executing on it.
Canadian IT services firms offer a strategic opportunity for US Banks and FIs
![Understanding the Strategic Advantages of Canadian Nearshore IT Support for U.S. Banks_Blanc Labs](https://blanclabs.com/wp-content/uploads/2024/01/Toronto-skyline_Blanc-Labs-e1706552422108.jpg)
Discover the strategic advantage for U.S. banks embracing innovation with cost-effective Canadian nearshore IT support.
These are not your grandmother’s models: the impact of LLM’s on Document Processing
![These are not your grandmother’s models: the impact of Large Language Models on Document Processing](https://blanclabs.com/wp-content/uploads/2024/01/LLMs_Blanc-Labs.jpg)
Explore the transformative influence of large language models (LLMs) on document processing in this insightful article. Discover how these cutting-edge models are reshaping traditional approaches, unlocking new possibilities in data analysis, and revolutionizing the way we interact with information.
From Chaos to Clarity: Achieving Operational Excellence through Business Process Improvement
![Business process improvement at work_Blanc Labs](https://blanclabs.com/wp-content/uploads/2023/12/business-process-meeting-e1702585708370.jpg)
Discover transformative insights and strategies to streamline operations, enhance efficiency, and drive success.