# AI-assisted SOAP notes for OpenEMR: dictation to draft, with provider choice (OpenAI, Anthropic, Gemini, Grok, Z.ai)

**URL:** <https://community.open-emr.org/t/ai-assisted-soap-notes-for-openemr-dictation-to-draft-with-provider-choice-openai-anthropic-gemini-grok-z-ai/27113>\
**Category:** OpenEMR Development\
**Created:** [October 11, 2026, 9:39pm UTC](https://community.open-emr.org/t/ai-assisted-soap-notes-for-openemr-dictation-to-draft-with-provider-choice-openai-anthropic-gemini-grok-z-ai/27113 "2026-10-11T21:39:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luisuriarte](https://community.open-emr.org/user_avatar/community.open-emr.org/luisuriarte/32/15503_2.png) [@luisuriarte](https://community.open-emr.org/u/luisuriarte)\
**Post date:** [October 11, 2026, 9:39pm UTC](https://community.open-emr.org/t/ai-assisted-soap-notes-for-openemr-dictation-to-draft-with-provider-choice-openai-anthropic-gemini-grok-z-ai/27113/1 "2026-10-11T21:39:49Z")

</div>

Hi everyone,

I’d like to share a module I’m building for OpenEMR and get feedback from the community: **oe-module-ai-assistant**.

**Repository:** [GitHub - luisuriarte/oe-module-ai-assistant · GitHub](https://github.com/luisuriarte/oe-module-ai-assistant)  
**Status:** v0.1.0, preview. Not meant for production clinical use yet.

**What it does**

- **Dictation to SOAP draft.** An “AI” button in the native SOAP form opens an editor where the clinician dictates (or pastes a transcript) and gets a draft with Subjective / Objective / Assessment / Plan, written to the same SOAP form. The draft always has to be reviewed before saving.
- **Chart-aware context.** The draft uses the patient’s history (medications, lifestyle, family history, risk factors, exams) so it can match drug names mistranscribed by speech recognition. Ambiguous items are marked `[VERIFY]` rather than guessed.
- **Optional chat panel** per patient, with answers that cite the chart section they come from. Conversation history is not stored.
- **Choose your AI provider:** OpenAI, Anthropic, Gemini, Grok (xAI) and Z.ai, with API keys encrypted at rest.
- **Self-hosted transcription with whisper.cpp,** so audio doesn’t have to go to a cloud service. Temporary audio files are deleted right after transcription. In my demo it runs on the **same server as OpenEMR** , CPU only, using the **“small” model** , because I have limited memory. The trade-off is accuracy: small makes mistakes with medical terms, which the chart-aware step partly corrects. A larger model gives better results if you have the RAM for it.
- **Customizable prompts (admin only):** section-content guidance plus extra instructions per provider, with a length limit. The safety rules and the JSON output format are fixed in code and can’t be overridden.

**Privacy and safety**

Consent gate before use, ACL and CSRF checks, per-user rate limits, an audit trail that stores metadata only (never content), and de-identification of the chart context before it leaves the server. Please do your own legal and regulatory review before sending any health data to a third-party provider.

**Try it**

Demo (OpenEMR 8.2): [https://demo.origen.ar](https://demo.origen.ar)  
User: `clinician1` / Password: `4rG3ntin4`  
Synthetic data only: please **do not enter real patient information**. The demo has rate limits, and since transcription runs on the same modest server as OpenEMR, a dictation may take a little while to come back.

Suggested path: open a test patient → SOAP form → click the AI button → accept consent → dictate or paste text → review the draft → save.

**Screenshots**

1. Module settings

 ![asisstanr01](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/8/1/81079b23b9996fdf49a3c99f126528bbdbfee1e8.png)

 ![asisstanr07](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/7/3/73e1d5a919acb2938a1770fd3b99f7d276087f41.png)

 ![asisstanr06](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/b/b/bbdfeb9f32524475fd2f36ce9a0dea352136b7be.png)

 ![asisstanr05](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/6/c/6cf90ece339974311fae2d6fdf6d1b1e5b89392a.png)

 ![asisstanr04](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/7/1/7130fa15a481a4c8a75c3cc8dbeae724b6634159.png)

 ![asisstanr03](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/f/2/f2544a820ac2fbdf371bf60ec5aa0db98f06e69f.png)

 ![asisstanr02](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/c/e/ce9030e78e94cd9c253f7515c48bc7f44c0ec3c6.png)

2. Native SOAP form with the AI button

 ![asisstanr08](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/3/2/32995bad1cb0552d3ba62a7711de6c22b89895e0.png)

3.- SOAP editor with the AI draft

 ![asisstanr09](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/f/6/f6e6c5409a20437288232990c81fafdcfc23e75c.png)

 ![asisstanr10](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/7/8/78c15ba500d27d08bb84c54785a2ebf4a2c4bbd5.png)

 ![asisstanr11](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/e/5/e5298628e2631ae1c09addc2a44a6b968832aab1.png)

 ![asisstanr12](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/2/1/21b0e9be587eab409e648a9ff8a288bf81c1667a.png)

 ![asisstanr13](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/7/7/775e5a38f7d2f63ab6ed83efda5ee4e69f6bc442.png)

 ![asisstanr14](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/e/0/e0d337482b567a9ffad0913d9318679997b91857.png)

_Sorry, the screenshots are in Spanish because my instance is set to Spanish. The module’s interface is also available in English._

**Feedback welcome**

- How do you handle the privacy trade-offs of cloud AI in your setup?
- Which providers or local models would you like to see?
- Any thoughts on how the draft should fit your SOAP workflow?

Compatibility is documented for OpenEMR 8.2.0 and 8.4.1. Installation instructions are in the README.

Regards.

Luis.
