How to Build AI Clinical Documentation Software (an AI Medical Scribe)

How to build AI clinical documentation software: input options, build vs buy, HIPAA and consent, 6 build steps, costs and a real Therapix.AI example.

Naresh KothiyaFull stack developer, CodesClue 9 min read
Cover image: AI clinical documentation software, build or buy, with a laptop showing a draft SOAP note and a Review and Sign button

Your clinicians finish the last patient at five and start on notes at seven. Maybe you run a clinic group that wants that evening back, or a health-tech product that needs notes as a feature.

Either way, the question is the same. Should you build your own AI clinical documentation software, and what will it take to make an AI medical scribe your clinicians trust? This guide covers the parts, the steps, the compliance work and the cost, with lessons from Therapix.AI.

Key takeaways

  • An AI scribe is five parts working together: input, transcription or capture, a note model, a review screen and the hand-off to your records system.
  • Decide how notes start first. Ambient audio, dictation and typed or guided input lead to very different builds and very different consent work.
  • Buy a finished scribe if you only need notes for your own clinicians. Build when notes are part of your product or your workflow is unusual.
  • Every vendor that touches patient data needs a business associate agreement, and the clinician must approve every note before you save it.
  • Begin small: one note type and one specialty, built as a proof of concept. Therapix.AI began as a small first version and grew from there.

What AI clinical documentation software does

AI clinical documentation software turns what happens in a visit into a draft clinical note. It takes session input, such as recorded audio, dictation or typed details. It pulls out the clinically relevant facts and writes them into a set format such as a SOAP note. A clinician then checks, edits and signs the draft before it enters the record.

That last step matters more than any model choice. The software writes a draft. Your clinician stays the author of the record.

Under the hood, a working system has five parts:

  1. Input. A microphone, a telehealth stream, a dictation button or a guided form.
  2. Capture and transcription. Speech-to-text tuned for medical words, with speaker labels so the note knows who said what.
  3. The note model. A large language model (LLM) that writes the note to your template and leaves a field empty when the session did not cover it.
  4. The review screen. Where the clinician compares the draft with the source, fixes it and approves it.
  5. Storage and hand-off. Encrypted storage, an audit trail and, when you need it, a push into your EHR (electronic health record).

What AI clinical documentation software does: input, capture and transcription, note model, review screen, and storage and EHR hand-off, with the clinician as author

Most demos cover parts two and three. Most of the real work sits in four and five.

Ambient, dictation or guided input: choose how notes start

The input decision shapes everything after it, so make it before you pick any vendor. Here is how the three common options compare.

Input type How it works Best fit Main trade-off
Ambient audio The app listens to the whole visit and drafts the note from the conversation Primary care and specialty visits with lots of back-and-forth Hardest to build well, and it needs patient consent and clear speaker separation
Dictation The clinician speaks a summary after the visit Clinicians who already dictate Saves less time, but the audio is simpler and you record only the clinician
Typed or guided input The clinician enters key details in a short form and the AI writes the full note Therapy and behavioral health, where recording a session can feel intrusive No audio pipeline at all, so it is faster to ship, but the clinician still types something

Therapix.AI took the third route. Therapists type session details or answer a guided set of prompts, and the AI turns them into SOAP notes, reports and summaries. For therapy, that choice removed the recording question entirely.

Pro tip: Ask five of your own clinicians how they want to start a note before you choose. The answer often changes by specialty, and a short guided form can save you months of audio work.

Build or buy an AI medical scribe?

Plenty of finished scribes exist, and for many practices buying one is the right call. Building makes sense when the notes are part of something you sell, or when your workflow does not fit a standard product.

Buy a finished scribe or build your own: comparison of who uses the notes, note formats, data rules and the first step

Your situation Better choice Why
A practice that wants notes for its own clinicians, standard specialties, a common EHR Buy A subscription can run quickly and the vendor carries model upkeep
A health-tech product where documentation is a feature your customers pay for Build You control the note format, the data and the roadmap
Unusual note types, such as therapy progress notes, home health visits or research forms Build, or buy and extend Off-the-shelf templates rarely match these formats
Strict rules on where data lives or which models may see it Build You choose the cloud region, the model and the retention rules
A team that wants to test demand before committing Build a small proof of concept One note type answers the real question for a fraction of the cost

Our full comparison of the same choice for patient-facing bots is in our HIPAA compliant chatbot build vs buy guide.

How to build an AI medical scribe in 6 steps

We would run a new build in this order, and every step leaves your clinicians something to try.

  1. Pick one note type and one specialty. A SOAP note for outpatient therapy is a good first target. Write down the template field by field, with a real example for each field.
  2. Build the input path. For audio, that means capture, medical speech-to-text and speaker labels. For guided input, it means a form designed with clinicians, ideally on phone and desktop.
  3. Write the note logic. Give the model your template as a strict structure and tell it to leave a field empty when the session did not cover it. A blank field is easy to fill. An invented dose is dangerous.
  4. Design the review screen. Show the draft next to its source, make every field editable, and require an explicit approval before the system stores anything.
  5. Add storage, audit and access control. Encrypt stored data and every connection, log who viewed or changed each note, and set how long you keep audio and drafts.
  6. Test with real clinicians, then connect the EHR. Measure how much of each draft they change. Once edits drop to a level they accept, connect your EHR, usually through its FHIR API (the healthcare data standard most modern EHRs support).

Pro tip: Track the edit rate from day one. It tells you more about note quality than any accuracy score from a vendor, because it measures your notes, your clinicians and your templates.

Plan compliance in the first week, not the last. It touches the input, the storage and the review screen.

Three areas need decisions:

  • Business associate agreements. Any outside service that keeps or handles patient data on your behalf needs one, including your cloud, speech-to-text and LLM providers. HHS guidance on HIPAA and cloud computing (opens in a new tab) confirms this applies even when the provider only stores encrypted data.
  • Recording consent. If you record visits, state law applies on top of HIPAA. Some states require every party’s consent in at least some situations. California, Florida, Illinois and Maryland are on that list in the Justia 50-state survey (opens in a new tab). Build a clear consent step into the app and have your counsel confirm it.
  • Clinician approval. The software drafts. The clinician reviews, edits and signs. Store the approval with the note so you can show who signed what and when.

Use this checklist before your first pilot:

  • A signed BAA with every vendor that touches patient data
  • A consent screen and a written consent policy for recorded sessions
  • Encryption at rest and in transit
  • Role-based access, so staff only see their own patients
  • An audit log for every view, edit and approval
  • A retention rule for audio, drafts and final notes
  • A way for the clinician to delete a draft before anyone saves it

HIPAA, consent and clinician sign-off: BAAs, recording consent, clinician approval and a compliance checklist for the first pilot

Pro tip: Decide early whether you keep the audio at all. Deleting audio once the clinician approves the note shrinks the amount of sensitive data you have to protect.

What it costs to build AI clinical documentation software

Cost depends mostly on the input type, the number of note templates and whether you need an EHR connection on day one. CodesClue quotes for this kind of build fall into three bands:

Stage Typical scope CodesClue budget band
Proof of concept One note type, one specialty, a simple review screen, test data only $8K to $25K
First release (MVP) Web plus mobile, two or three templates, audit log, BAAs in place, pilot with real clinicians $25K to $70K
Production platform Several specialties, EHR integration, admin and reporting, multi-clinic access rules From $70K

On top of the build, budget for running costs: speech-to-text and LLM usage per visit, hosting, and time to keep templates and prompts current. Our AI app development cost guide breaks down wider AI budgets, and the healthcare software development cost guide covers the rest of a clinical product.

Want a number for your own scope? Send us your note types and EHR and we will come back with a written estimate.

A real example: how Therapix.AI started small

We designed and built Therapix.AI for therapists and clinicians as an AI clinical documentation platform. It started as a small first version and grew from there, which is the path we suggest for most teams.

Here is what the build looks like today:

  • Clinicians type session notes or follow guided flows shaped to their own documentation style.
  • From that input, the AI writes draft SOAP notes, summaries and reports.
  • The clinician reviews, edits and approves every draft, and the system stores only approved notes.
  • The stack is React.js and Node.js, with PostgreSQL on AWS, across a web app and iOS and Android apps.

Therapix.AI cut documentation time by 62% and the administrative workload by 70% across the product. The design lesson we carry into every scribe project is simple: a clinician will only sign a note they can check. So the Therapix.AI review screen shows how the AI built each draft from the session. You can read the full story in the Therapix.AI case study.

How Therapix.AI started small: clinicians type or follow guided flows, AI drafts SOAP notes, clinicians approve, built with React, Node.js and PostgreSQL on AWS

Common mistakes to avoid

  • Starting with every specialty. Each specialty brings its own templates and words. One done well beats five done badly.
  • Letting the model fill gaps. If the session did not mention a medication, the note should not either. Leave the field empty and let the clinician decide.
  • Treating the review screen as an afterthought. It is the part clinicians use most. Design it with them.
  • Signing vendors before the BAA. Confirm that each speech and LLM provider will sign one for the plan you intend to use before you write any code.
  • Judging quality by demo notes. Test on your own sessions and measure how much clinicians edit.
  • Leaving the EHR until launch week. Every EHR has its own rules for writing notes back. Find out early what yours allows.

Before you start: a short planning list

Bring these answers to your first planning call, whoever you build with:

  • Which note types and specialties come first
  • How notes should start: ambient audio, dictation or guided input
  • Which EHR you use and whether you need write-back in the first release
  • How many clinicians will join the pilot
  • Your rules on data location, retention and which AI models you allow

Build AI clinical documentation software your clinicians will use

The teams that succeed with AI clinical documentation software keep the first version small. They choose one note type, settle compliance early and put clinician review at the center of the product. The model matters, but the review screen and the workflow decide whether anyone uses it.

CodesClue is an AI-first team with its engineering base in Ahmedabad and teammates in the US and Germany. We like to start AI products as a small proof of concept, then grow them into an MVP and a production release. Planning an AI medical scribe? See our AI development services and healthcare software development services. Or tell us about your project, and you will hear back within one business day.

AI clinical documentation software: questions buyers ask

Do our speech-to-text and LLM vendors need to sign a BAA?

Yes, if they store or process patient data for you. HHS treats cloud and AI providers that handle protected health information as business associates, so each one needs a signed agreement before real patient data reaches it. Check that the plan you intend to buy includes a BAA, because some providers only offer one on higher tiers.

Can an AI scribe write notes in our own templates?

Yes, and for a custom build it should. You define each template field by field, and the note model fills only those fields. Therapix.AI lets each clinician adapt the input and output flows to their own documentation style, because clinicians document in different ways.

Should AI-drafted notes go straight into the EHR?

No. Keep every note as a draft until a clinician has reviewed, edited and approved it, then send the approved version to the EHR. Store the approval with the note. That keeps the clinician as the author of the record and gives you a clear audit trail if a note is ever questioned.

Is guided input a real alternative to recording the visit?

For some specialties, yes. In therapy and behavioral health, recording a session can feel intrusive, so a short guided form that the AI expands into a full note can work better. It also removes the audio pipeline and most recording consent questions, which makes the first release faster to build.

What do you need from us to estimate an AI scribe build?

Four things: the note types and specialties you want first, how notes should start (audio, dictation or guided input), which EHR you use and whether you need write-back early, and your rules on data location and AI models. With that, we can place the build in one of our three budget bands and outline the first release.

  • AI

Written by Naresh Kothiya (full stack developer) for CodesClue, a software development company with teams in India, the USA and Germany that designs, builds and supports web, mobile and AI products. About CodesClue

Want this done for your product?

Tell us what you are planning. An engineer replies within one business day with honest next steps, and we sign an NDA before any engagement.

  1. Answer two quick questions and tell us about the project.
  2. We read it and reply with questions or a plan.
  3. You get a written estimate with milestones before anything is signed.
See what we have built

    Build together with CodesClue