How DokEMR suggests diagnoses from lab results
The two ways DokEMR suggests a diagnosis from lab results: fixed built-in rules, and an AI enhancement a doctor can ask for.
Useful for Clinic admin Doctor
- DokEMR suggests diagnoses from lab results in two ways, and every record says which one a diagnosis came from. Suggested by rules comes from the fixed built-in rules described below: it appears by itself when a lab result is saved, the same results always give the same suggestion, no AI credits are used, and the reason is written beside it. AI-enhanced comes from AI: a doctor asks for it with the Enhance with AI button when the clinic has turned it on, and it can notice patterns across several results that a fixed rule cannot.
- The rules, in detail. Sugar: HbA1c 6.5 or more, or fasting glucose 126 mg/dL or more, suggests diabetes mellitus. HbA1c 5.7 to 6.4 suggests prediabetes, and fasting glucose 100 to 125 suggests impaired fasting glucose.
- Lipids: LDL 130 or more, total cholesterol 200 or more, triglycerides 150 or more, or HDL under 40 (men) or 50 (women) suggests dyslipidemia, and the wording becomes atherogenic, mixed or severe hypertriglyceridemia for the matching combinations.
- Uric acid, liver and kidney: uric acid above 7 (men) or 6 (women) mg/dL suggests hyperuricemia; SGOT above 38 / 32 or SGPT above 41 / 31 (men / women) suggests transaminitis; a high creatinine or a BUN above 23.25 suggests renal function abnormality.
- CBC: hemoglobin under 13 (men) or 12 (women) g/dL suggests anemia, named by MCV (under 80 microcytic, 80 to 100 normocytic, over 100 macrocytic); low hemoglobin, white cells and platelets together suggest a pancytopenia pattern. White cells under 5 or over 10, platelets under 140 or over 400, and high neutrophils, lymphocytes or eosinophils suggest the matching pattern.
- Other chemistry: sodium, potassium, calcium, glucose, bilirubin, albumin, ALP, GGT, amylase, lipase, ferritin, ESR, INR and thyroid results (TSH, read with free T4 when present) suggest the matching high or low finding or thyroid pattern.
- Infection and screening tests: a reactive HBsAg suggests hepatitis B infection; reactive or positive hepatitis C, hepatitis A IgM, dengue, Typhidot, malaria smear, CRP, ASO, RA factor, fecal occult blood and parasites in stool each suggest their own finding.
- Urinalysis: protein, sugar, ketones, blood and bacteria suggest proteinuria, glycosuria, ketonuria, hematuria or bacteriuria, and bacteria together with raised pus cells, nitrite or leukocyte esterase suggest a urinary tract infection.
- The laboratory's own range wins: when a result is printed inside the lab's normal range, a stricter fixed limit does not create a suggestion (HbA1c, glucose and lipids are the exception: they follow clinical criteria and say so). A value the lab flags HIGH or LOW is followed where a rule uses it.
- Enhance with AI. A doctor sees this button beside Suggest in Edit Medical History, and on + Diagnosis in an encounter that has lab results. It sends the lab findings, the patient's age in years and sex to an AI service, which proposes diagnosis labels with a short reason. The labels appear under the Diagnosis box, and nothing is added until the doctor presses Add on a line (or Add all). Where the rules also made a suggestion, each AI line says whether the rules suggested it too (Also suggested by the rules or Only the AI).
- What AI adds. AI reads the findings together, takes age and sex into account and can propose a diagnosis the fixed rules have no limit for. Its answer can change from one request to the next and it can be wrong, so each line is a starting point for the doctor to confirm, not a result. The age and sex are the only patient details sent: never the name, birth date, patient number or clinic, and the service keeps nothing.
- Turning it on. A clinic admin opens Clinic Settings, then General, and turns on Let doctors ask AI to enhance a suggested diagnosis in the Suggested diagnoses from lab results card; it asks you to confirm first. It is off until then. Each press uses one AI review credit from the same monthly allowance as reading uploaded lab sheets (the Plan tab shows what is left), and the button is off when none are left.
- Where you see which one it was. A record shows Suggested by rules · unconfirmed or AI-enhanced · unconfirmed until the doctor reads it and keeps, edits or removes it. Open the record in Medical History, or read the visit's note, to see the reason: "Why it was suggested" for the rules, "Why the AI suggested it" for AI. When a record mixes AI lines with the doctor's own words it reads AI-enhanced, edited.
Common questions
Can I change the limits?
Not the rules' limits. They are the same for every clinic so that a rules suggestion always means the same thing. The doctor can change any suggested diagnosis on the record, whichever way it was suggested.
Which one should I use?
You do not have to choose. The rules run by themselves when a result is saved and cost nothing. Enhance with AI is a second opinion a doctor asks for when it is worth one credit, for example when several results together point somewhere the fixed rules do not cover.
The rules and the AI suggested different things. Which is right?
Neither is a diagnosis: the doctor decides. A line marked Only the AI is worth a second look against the results and the patient, and a rules line the AI did not repeat is not wrong for that reason. The reason written beside each suggestion shows what it was based on.
Will the AI give the same answer every time?
Not always. The rules give the same suggestion for the same results every time. AI can word things differently or notice different things on another request, which is one more reason its lines are only added when the doctor presses Add.
What is sent to the AI service?
The lab findings, the patient's age in years and sex. Never the name, birth date, patient number, clinic or anything else on the chart, and the service keeps nothing. Lab values with an age and sex are still personal data, so turn it on only if your clinic is comfortable with that.
Who can use Enhance with AI, and what does it cost?
Doctors, once a clinic admin has turned it on. Each press uses one AI review credit, the same credits used to read uploaded lab sheets, and the button is off when there are none left this month. A press that fails uses nothing.
Can I turn suggested diagnoses off?
Yes, each separately. A clinic admin opens Clinic Settings, then General, and turns off Suggest a diagnosis when a lab result is saved (the rules) and, if it was on, Let doctors ask AI to enhance a suggested diagnosis. With the first off, new lab results are saved with their values and no suggested diagnosis; suggestions already on records stay until the doctor removes them, and the Suggest button on the diagnosis forms still works when a doctor presses it. Turning off Let doctors ask AI to enhance a suggested diagnosis hides the Enhance with AI button and uses no credits; records already marked AI-enhanced keep their mark and reason. Neither switch changes anything already on a record or stops a doctor typing a diagnosis: they only decide whether new suggestions are made.