Blog

    Chatbot for Medical Diagnosis

    By GauravNovember 13, 202610 mins read
    On this page

    A founder demos a chat window that turns ten symptoms into three likely conditions, with percentages and a calm tone. The physician in the room asks where the suggestion would appear in the note, what the model read, and who is responsible if the first condition is wrong. The demo has no answer for any of the three.

    A chatbot for medical diagnosis is that product. This guide is about why it fails in clinical use, what FDA's clinical decision support policy actually turns on, and what has to be true before a suggestion is allowed near a patient. It is not a tutorial for wiring up a chat model.

    What is a chatbot for medical diagnosis, and why do most fail?

    Putting diagnosis support in the workflow?

    Agnotic Technologies builds clinical decision support that shows its inputs, lands in the clinician's workflow, and does not pretend a chat transcript is a diagnosis.

    A chatbot for medical diagnosis is a conversational system that collects symptoms and returns a suggested condition. Most fail in clinical use because they skip the clinician, hide why a suggestion was made, and never write into the order or note the care team already trusts.

    The failure is not the chat format. Clinicians already take histories in words. The failure is a suggestion that cannot be checked, cannot be filed, and cannot be refused in a way the record remembers. Patients receive a condition name with no owner. Physicians receive a transcript they did not ask to read between visits. Either way the work of diagnosis, which is a person weighing findings, has been replaced by a paragraph. If the product cannot name the clinician who will see the suggestion and the field where it will be recorded, it is not ready for a clinic, whatever the demo accuracy sounds like.

    When is diagnosis software a medical device?

    Diagnosis software can be a medical device. A narrow exclusion exists for some clinical decision support, and it applies only when every criterion in section 520(o)(1)(E) of the FD&C Act is met. Missing one criterion means the exclusion does not apply.

    FDA's guidance on Clinical Decision Support Software explains those four criteria. The function is not meant to acquire, process, or analyze a medical image, a signal from an in vitro diagnostic device, or a pattern or signal from a signal acquisition system. It is meant to display, analyze, or print medical information. It is meant to support or provide recommendations to a health care professional about prevention, diagnosis, or treatment. And it is meant to enable that professional to independently review the basis for the recommendation so they do not rely primarily on it. FDA says it does not consider software intended for a critical, time-sensitive task to meet the fourth criterion, because the professional is unlikely to have time to review the basis. A chatbot that tells a patient they have a condition is outside a criterion written for recommendations to a health care professional. A chatbot that shows a clinician a label with no inputs, no guideline, and no path to the source data fails the independent-review criterion. Whether a specific product is a device is a regulatory judgment. Read the guidance before the interface says 'diagnosis.'

    • Criterion 1: No image, IVD signal, or acquired-signal analysis if you are aiming at the non-device exclusion.
    • Criterion 2: The function displays, analyzes, or prints medical information, including guidelines.
    • Criterion 3: The recommendation is for a health care professional, not a patient-facing verdict.
    • Criterion 4: The professional can review the basis and is not expected to rely on the suggestion alone.
    • Time pressure: A critical, time-sensitive decision is a poor fit for the fourth criterion, per FDA's guidance.

    What provenance does a clinician need to see?

    A clinician needs to see the inputs that were used, the source of each input, and the logic or reference behind the suggestion, in language they can check without opening a research paper mid-visit. A confidence percentage with no inputs is not provenance.

    List the problems, meds, labs, and patient-reported answers the suggestion actually consumed, and mark anything that was missing. Link a guideline or other basis the clinician can open. Record the model or rule version on the suggestion so a later review knows what ran. FDA's fourth criterion is about this independent review, not about a disclaimer under the chat box. If the basis is 'the model said so,' the professional cannot review it, and the exclusion is not available. Store the provenance with the suggestion. A log that only the vendor can see does not help the person who has to sign the note.

    Where should a suggestion land in the workflow?

    A suggestion should land where the clinician already decides: the differential in the note, the order they are about to sign, or a work queue with an owner. It should not land as an unsolicited chat thread the clinician must remember to open.

    Pick one insertion point for the first release. If the product helps a physician consider a missed diagnosis, the suggestion sits beside the problem list, with accept, dismiss, and a reason. Accepting it does not by itself create a diagnosis. The physician still records the condition in the usual way. Dismissing it is data, not an insult to the model, and the reason codes (not relevant, already addressed, wrong chart) tell you whether the tool is noise. Do not write the suggestion into the legal note as if the clinician said it. Do not send it to the patient portal ahead of the clinician. The workflow test is whether a busy visit can use the suggestion in under the time you observed, and ignore it without extra clicks when it is wrong.

    • Place: One screen the clinician already uses for this decision.
    • Actions: Accept, dismiss, and a short reason. Accept does not auto-file a diagnosis.
    • Note: The clinician's words remain the note. The suggestion stays labeled as software output.
    • Patient: No condition name goes to the patient until a clinician has acted.
    • Queue: If it cannot fit the visit, it goes to a role with an age limit, not to an unread chat.

    What data should the bot be allowed to read?

    The bot should read the minimum the suggestion needs, for the patient who is open, under an authorization the clinician can see. A diagnosis assistant that can browse every note in the enterprise is a privacy incident waiting for a prompt.

    If the conversation or the chart context includes electronic protected health information, 45 CFR 164.312 applies: access control with a unique user identity, audit of activity, integrity, authentication, and transmission security. Log which patient context was opened and which suggestion came back. Do not send the chart to a model endpoint you cannot name in the risk review. Patient-typed symptoms are ePHI once they sit in the covered entity's system, even though they look like a chat. Keep them in the record of this encounter, not in a vendor transcript that has no retention limit and no patient-access story. When the clinician is acting under SMART on FHIR, the scopes should match the resources the suggestion needs, not every scope the EHR will grant.

    How do you test a diagnosis assistant without pretending it is a clinician?

    Test the assistant as a suggestion engine beside a clinician, on cases where the true decision is already known, and measure whether the clinician can see the basis and whether the suggestion changes the right action. Do not score the bot as if it were the diagnosing physician.

    Build a set of charts with a known outcome, including cases where the tempting wrong answer is a common condition and the right answer is rarer, and cases with missing data. Ask clinicians to work the case with the tool and without it, and record accept, dismiss, and whether they could explain the basis. Count harmful accepts: a suggestion followed when the inputs were incomplete. Also test the empty path. If the service is down, the visit must proceed with no suggestion and no blocked note. A test plan that only reports how often the model's top label matched a billing code has measured the wrong thing. Billing codes are not a gold diagnosis.

    What should the product refuse to say?

    The product should refuse to state that a patient has a disease, refuse to tell a patient to stop a medicine, and refuse to produce a suggestion when the required inputs are missing. Those refusals are features. A chat that always answers is not safer.

    Write the refusals as product behavior, not as a footer. If the user is a patient, the reply is that a clinician makes the diagnosis, plus how to reach care, and it does not name a condition as theirs. If the user is a clinician and the chart has no recent context, the tool says what it could not see. If the question is an emergency symptom the organization defined, the reply points to emergency care and does not continue the differential. Log the refusal with the same provenance fields as a suggestion, so you can see how often the guard fires. A model that can be talked out of a refusal in the next sentence does not have a refusal. The guard has to sit outside the free-text reply.

    How is this different from a general medical chatbot?

    A general medical chatbot answers questions about a clinic's hours, a bill, or how to prepare for a known test. A diagnosis chatbot proposes what is wrong with this person. The second one carries the device question, the provenance duty, and the workflow insertion. The first one does not, as long as it stays in its lane.

    Keep them separate products, or at least separate intents with a hard gate. A scheduling bot that slides into 'what do you think this rash is' has become a diagnosis bot without the review. Detect that turn and hand it to the refusal path. The moment the subject is this patient's condition, the rules in this guide apply.

    How Agnotic can help

    Agnotic Technologies builds the clinical decision support around the suggestion: the data it may read, the provenance the clinician sees, the accept and dismiss actions in the chart, and the refusals the model is not allowed to overrule. Agnotic also helps the client put the FDA device question in front of counsel before the interface uses the word diagnosis.

    The build does not start from a chat window. It starts from the decision, the professional who owns it, and the field in Epic, Oracle Health (Cerner), athenahealth, or a custom record where the outcome will live.

    Put the suggestion where the decision is

    Plan diagnostic decision support with our engineers, or read the AI agent guides.

    Related reading on Agnotic

    Broader clinical decision support, how a healthcare chatbot is built, and HIPAA constraints on AI software.

    Sources

    Frequently Asked Questions

    The exclusion in section 520(o)(1)(E) is written for recommendations to a health care professional who can independently review the basis. A chat that gives a patient a diagnosis does not fit that criterion. Treat patient-facing diagnosis language as a device question for counsel and FDA's guidance, not as a copy change.

    Talk to an engineer about your project

    We build diagnostic decision support with visible inputs, a clinician workflow, and refusals the model cannot talk its way past.

    Go deeper

    Services and solutions on this topic