DEV Community

Renato Banzai for InterSystems

Posted on

Using FHIR to Interact with Natural Language

Whats NLP Stands For?

NLP stands for Natural Language Processing which is a field of Artificial Intelligence with a lot of complexity and
techniques to in short words "understand what are you talking about".

And FHIR is...???

FHIR stands for Fast Healthcare Interoperability Resources and is a standard to data structures for healthcare. There are
some good articles here explainig better how FHIR interact with Intersystems IRIS.

My Solution

picture

Chatbot to query FHIR

The most common approach in chatbots is use machine learning to train the model based in old conversations. But when the
chatbot need to use "live" data the challenge is improved. If you already know how a machine learning model works, you know
that is most of cases the trained model is a kind of "hadcorde" application with all decision embedded inside. If you need
more data without retraining the model you will need to create by yourself the integrations and put your mind to work part
in machine learning and part in software engineering.

First Approach

To show more about FHIR I have decided to first work on questions that a healthcare professional could do to a chatbot.
And to do this I keep the software engineering simple, using just javascript and regular expressions to look for intentions
and entities on the chat.

Regular Expressions

picture

This is my favorite subject in processing texts. Regex are a powerful way to work text and match patterns. With regular
expressions I can search for what patient the person chatting wants to know about and what question or chart he wants to see.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay