Skip to main content
v2026.11,858 entries · CC-BY 4.0
LAC HealthMedical & Research SuppliesReagents, PPE & instruments — chain-of-custody documented.Fast, traceable sourcing built for regulated research environments, from bench consumables to instrumentation.Shop lac.us CodeCASRAIlac.us

AI SOAP Note Generator: Clinical Section Structure, LOINC & FHIR Mapping, E/M MDM Compliance, and EHR Workflows

How an AI SOAP note generator works in clinical practice: what must be included in Subjective, Objective, Assessment, and Plan sections, LOINC and HL7 FHIR mapping, AMA/CMS E/M Medical Decision Making compliance, and HIPAA EHR integration.

Written and maintained by CASRAI Editorial Board

Last updated

An AI SOAP note generator is a clinical natural language processing (NLP) and ambient documentation system that transforms patient-clinician encounter audio, clinical dictation, or unstructured intake notes into a structured Subjective, Objective, Assessment, and Plan (SOAP) medical record entry. Used across primary care, emergency medicine, behavioral health, and specialty outpatient clinics—either inside enterprise ambient platforms like DAX Copilot and Suki AI or specialized progress note templates—an AI SOAP note generator bridges conversational dialogue with standardized Electronic Health Record (EHR) schemas.

What Should Be Included in an AI SOAP Note Generator?

A clinical-grade AI SOAP note generator must accurately separate subjective patient history from objective clinician observations, synthesize a problem-oriented clinical assessment, and document a medical decision-making (MDM) plan that satisfies AMA and CMS Evaluation and Management (E/M) coding standards.

A common failure mode of generic consumer language models is conflating what the patient reports (Subjective) with what the clinician examines or measures (Objective), or fabricating normal physical exam systems that were never examined during the visit. To meet CMS 42 CFR § 482.24 clinical documentation and audit standards, an AI SOAP note generator must enforce strict section rules across all four components:

SOAP Section LOINC Section Code Required Clinical Content & Sub-Elements AI Extraction & Anti-Hallucination Guardrail
Subjective (S) 61150-9 (Subjective Narrative) Chief Complaint (10154-3), History of Present Illness (HPI: onset, location, duration, character, alleviating/aggravating factors, radiation, timing, severity), pertinent Review of Systems (ROS), and patient-reported medication adherence. Attribute statements strictly to the patient or historian; preserve pertinent negatives explicitly stated in the encounter dialogue.
Objective (O) 61149-1 (Objective Narrative) Vital signs (8716-3), physical examination findings by body system (29545-1), point-of-care test results, and reviewed laboratory or imaging data (SOAP Note Objective section). Never auto-populate unperformed physical exam maneuvers unless explicitly verbalized by the clinician or imported from verified EHR vitals/flowsheets.
Assessment (A) 51848-0 (Evaluation Note) Prioritized problem list, acute vs. chronic status (e.g., stable, worsening, inadequately controlled), differential diagnosis reasoning, and candidate ICD-10-CM diagnosis codes. Link each assessment statement to supporting S/O evidence (linked transcript citations) to prevent unsupported diagnostic leaps.
Plan (P) 18776-5 (Plan of Care Note) Diagnostic workup ordered, medications prescribed/adjusted (with dose, route, frequency), referrals, patient safety counseling, follow-up timeframe, and E/M MDM risk rationale. Capture concrete discussion of treatment risks, prescription management, or independent test interpretation required for AMA/CMS E/M level justification.

How Is an AI SOAP Note Generator Structured in EHR Workflows?

In production EHR workflows, an AI SOAP note generator operates as a four-stage informatics pipeline—combining multi-speaker acoustic diarization, medical speech-to-text, schema-constrained LLM generation, and standards-based HL7 FHIR or HL7 v2 write-back.

  1. Stage 1 — Multi-Speaker Audio Capture & Speaker Diarization: Through a mobile EHR app (such as Epic Haiku), desktop browser microphone, or telehealth stream, the acoustic front-end segments continuous audio into speaker turns (`Speaker_Clinician`, `Speaker_Patient`, `Speaker_Caregiver`) and strips background noise.
  2. Stage 2 — Domain-Adapted Medical ASR: A clinical automatic speech recognition (ASR) model tuned on pharmacological vocabularies (RxNorm), anatomical terms (SNOMED CT), and clinical eponyms transcribes the diarized audio while preserving negation cues (“denies chest pain or dyspnea” vs. “reports chest pain”).
  3. Stage 3 — Prompt-Constrained LLM Structuring & Evidence Linking: Rather than generating free-form prose, the clinical LLM applies specialty-specific JSON schema constraints (for example, Nurse Practitioner SOAP templates or nursing SOAPIE notes). Enterprise platforms attach timestamped transcript spans to each generated sentence so the reviewing clinician can hover over any clinical claim in the draft note and verify the exact spoken words.
  4. Stage 4 — EHR Interoperability & Standards Mapping: Once reviewed, the structured SOAP output is transmitted to the host EHR using one of three interoperability patterns:
    • HL7 FHIR R4 `DocumentReference` & `Composition`: Packages the note under USCDI Clinical Notes (`LOINC 11506-3` Progress Note) with discrete `Composition.section` entries coded to `61150-9` (S), `61149-1` (O), `51848-0` (A), and `18776-5` (P) (or `51847-2` combined A/P).
    • HL7 v2 `MDM^T02` / `MDM^T08` Medical Document Management: Transmits the structured document sections in `OBX` segments over an hospital interface engine to populate inpatient or ambulatory note tabs.
    • Native EHR Smart-Data Elements / SmartBlocks: Writes discrete sections directly into EHR note-writer buffers so clinicians can edit and cosign inside their standard charting screen.

Aligning AI SOAP Notes with AMA/CMS E/M Medical Decision Making (MDM)

Under the AMA CPT and CMS Evaluation and Management (E/M) guidelines (99202–99215), an AI SOAP note generator adds maximum compliance value when its Assessment and Plan prompts explicitly structure the three MDM tables:

  • Number and Complexity of Problems Addressed: Distinguishing between 1 stable chronic illness (Low MDM, e.g., `99213`), 2+ stable chronic illnesses or 1 chronic illness with exacerbation/progression (Moderate MDM, e.g., `99214`), and 1 acute or chronic illness posing a threat to life or bodily function (High MDM, e.g., `99215`).
  • Amount and/or Complexity of Data Reviewed: Documenting independent review of external notes, ordering/reviewing unique laboratory or imaging tests, independent visualization of an image/tracing (not merely reading the radiologist’s report), or discussion of management with an external physician.
  • Risk of Complications and/or Morbidity of Patient Management: Explicitly recording prescription drug management, decisions regarding minor or major surgery, parenteral controlled substances, or social determinants of health (SDOH) that significantly limit diagnosis or treatment (`ICD-10-CM Z55–Z65`).

HIPAA, Consent, and Clinical Governance Checklist

Before deploying an AI SOAP note generator in a clinical practice or research clinic, informatics and compliance officers should verify four mandatory safeguards:

  • Signed HIPAA Business Associate Agreement (BAA): Verify an executed BAA under 45 CFR § 164.504(e) with zero-data-retention audio configuration and contractual prohibition on training public models on patient PHI.
  • All-Party Audio Recording Consent: Obtain and log verbal or written patient consent at the start of the encounter to satisfy two-party recording consent statutes.
  • Physical Exam Verbalization Protocol: Train clinicians to verbalize pertinent positive and negative physical exam findings aloud during the examination so the Objective section reflects actual findings rather than default template macros.
  • Mandatory Human Clinician Attestation (`42 CFR § 482.24(c)`): Require the treating clinician to review, edit, and electronically sign every AI-generated SOAP note before it becomes part of the legal medical record.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · free to try

Ask about AI SOAP Note Generator: Clinical Section Structure, LOINC & FHIR Mapping, E/M MDM Compliance, and EHR Workflows

Ask your first 2 questions free below. Subscribers get 150 a day for $29 a month.

An AI assistant specialized in research administration. It cites the sources behind every answer, labels web answers and says when it can't answer.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays free to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →