HPI Examples: 8 Complete Histories of Present Illness, a Template and How to Write One
Eight complete HPI examples (ED, primary care, pediatrics, behavioral health and more), three weak-to-strong rewrites and a copyable HPI template.
By SondeasNov 25, 202619 min read

On this page
The history of present illness (HPI) is the chronological story of the problem that brought the patient in, from the first symptom (or the last visit) to today. It describes the symptom's location, quality, severity, duration, timing, context, modifying factors and associated symptoms, plus the pertinent negatives that matter for that complaint.
A short example, from an invented urgent care visit:
28-year-old woman with burning with urination for 2 days, with frequency and urgency since yesterday. No fever, flank pain, nausea or vaginal discharge. Similar symptoms once 2 years ago. Last menstrual period 2 weeks ago; reports no chance of pregnancy. Has tried increased fluids without relief.
Below are eight complete HPI examples across specialties, three weak-to-strong rewrites, a copyable HPI template and what "brief" and "extended" HPI mean since the 2021 coding changes.
Every patient on this page is invented. The examples show how to document a history; they are not diagnostic or treatment guidance. Medications appear only as what a fictional patient reported. Follow your clinical judgment, your organization's policies and your payers' rules.
The eight elements of an HPI
The element list most templates use comes from the CMS documentation guidelines for evaluation and management (E/M) services. The 1997 guidelines define the HPI as "a chronological description of the development of the patient's present illness" and list eight elements:
| Element | Question it answers | Example wording |
|---|---|---|
| Location | Where is it? | "Substernal, radiating to the left arm" |
| Quality | What is it like? | "Pressure, like a weight" |
| Severity | How bad is it? | "7/10 at worst; had to stop walking" |
| Duration | How long has it lasted, or how long since onset? | "Began 2 hours ago; episodes last about 20 minutes" |
| Timing | When does it happen, and how often? | "Constant since 06:00", "worse at night", "2 to 3 a month" |
| Context | What was happening when it started? | "While carrying groceries up stairs" |
| Modifying factors | What makes it better or worse? What was tried? | "Eased with rest; ibuprofen didn't help" |
| Associated signs and symptoms | What else came with it? | "Sweating and nausea; no cough or fever" |
OLDCARTS, OPQRST and SOCRATES
Mnemonics are interview prompts, not note headings: they help you ask every question in clinic so the write-up has no gaps.
- OLDCARTS: Onset, Location, Duration, Character, Aggravating and Alleviating factors, Radiation, Timing, Severity.
- OPQRST: Onset, Provocation and Palliation, Quality, Region and Radiation, Severity, Time. Built around pain.
- SOCRATES: Site, Onset, Character, Radiation, Associations, Time course, Exacerbating and relieving factors, Severity. Also a pain mnemonic.
OLDCARTS and OPQRST have no letter for context or associated symptoms, which is often where the red flags live (the exertion that brought on the chest pain, the visual aura before the headache). Ask for them on purpose, and write the HPI as a narrative in time order rather than a list of letters.
HPI examples by specialty
Each is a complete HPI for an invented patient, with the elements it covers and why it is written that way.
1. Emergency department: chest pain
54-year-old man with hypertension and a 30 pack-year smoking history presenting with chest pressure for 2 hours. "It feels like a weight on my chest." Pain began at about 07:30 while carrying groceries up two flights of stairs: substernal pressure radiating to the left arm and jaw, 7/10. It eased after about 20 minutes of rest, then returned at rest at 09:00 and has been constant since, now 6/10. Associated sweating and nausea, no vomiting. Denies pain that is sharp, worse with breathing or position, or tearing through to the back. No shortness of breath, palpitations, fainting, cough, fever, recent travel or leg swelling. Over the past 2 weeks he has had three shorter episodes of similar pressure when climbing stairs, each under 5 minutes and relieved by rest; he did not seek care. Took no medication before arrival. Father had a heart attack at 50.
Elements: all eight. Why it works: the exertional context and the 2-week pattern are stated plainly, and the negatives target other dangerous causes of chest pain, not a generic list.
2. Primary care: chronic disease follow-up
66-year-old woman here for follow-up of type 2 diabetes, hypertension and hypothyroidism. No new complaints today.
- Type 2 diabetes: fasting home glucose 110 to 140 mg/dL on her meter over the past month, no readings below 70 and no symptoms of low blood sugar. Takes metformin with breakfast and dinner as reported, no missed doses; mild loose stools in the first weeks have settled. Denies numbness or tingling in the feet, foot sores and vision changes.
- Hypertension: home readings average 128/78 on an upper-arm cuff, morning and evening. No dizziness on standing, headaches or ankle swelling.
- Hypothyroidism: takes levothyroxine every morning on an empty stomach, 30 minutes before breakfast. Energy, weight and bowel habits unchanged; no palpitations or heat intolerance.
Walks 30 minutes most days. Asked whether she can stop checking her glucose daily.
Elements: the status of three chronic conditions (the 1997 alternative to four elements), with adherence, home data and side effects for each. Why it works: one line per condition, every number says where it came from, and the patient's question is kept for the plan.
3. Pediatrics: fever and ear pain
3-year-old boy, previously healthy, brought in by his mother (reliable historian) for fever and ear pain for 2 days. Runny nose and cough began 4 days ago. Two days ago he developed fever, highest 39.2 °C (102.6 °F) by ear thermometer last night, and started pulling at his right ear and crying when lying down. Sleep disrupted both nights. Eating less but drinking well, with 4 wet diapers today. Last fever-reducing medicine at 06:00, given per the label. Mother denies vomiting, diarrhea, rash, trouble breathing, unusual sleepiness and ear discharge. Attends daycare, where several children have colds. Immunizations up to date per mother. No previous ear infections.
Elements: location, severity, duration, timing, context, modifying factors, associated signs and symptoms. Why it works: the source and side are named, hydration is described the way a parent can report it, and the negatives cover signs of more serious illness.
4. Sports medicine: knee injury
24-year-old woman with right knee pain and instability for 5 days after a non-contact twisting injury. While pivoting with her right foot planted during a soccer game, she felt a "pop" in the knee and fell. Could not continue playing. Swelling developed within 2 hours. Now 4/10 at rest and 6/10 on stairs, felt deep inside the knee rather than on one side. The knee has "given way" twice on stairs since. Ice, elevation and a compression sleeve have reduced the swelling. Denies locking, catching, numbness or tingling in the foot. No previous injury to either knee. Works at a desk. Wants to know when she can return to playing.
Elements: location, quality, severity, duration, context, modifying factors, associated signs and symptoms. Why it works: the mechanism, the pop, the speed of swelling and the giving way each change how the exam is read, and the patient's goal is stated for the plan.
5. Neurology or primary care: recurrent headaches
38-year-old woman with recurrent headaches for 6 months. Headaches occur 2 to 3 times a month and last 6 to 12 hours. Each begins with zigzag flashing lights in the right visual field for about 20 minutes, followed by throbbing pain over the left temple, 7/10, with nausea and sensitivity to light and sound. Worse with movement; better lying in a dark room and after sleep. Missed meals and the days before her period seem to trigger them. Takes an over-the-counter pain reliever on 6 to 8 days a month, with partial relief. Denies sudden "worst ever" onset, fever, neck stiffness, weakness, numbness, speech changes, and headaches that wake her from sleep or are worse lying down. No head injury. Her mother has "migraines". Missed 3 workdays last month.
Elements: all eight. Why it works: the pattern (frequency, aura, triggers) is the story, pain-reliever days are counted, and the warning signs of a secondary headache are documented as asked and absent.
6. Behavioral health: low mood
41-year-old man with low mood for about 3 months, since losing his job in a company restructuring. "I just don't care about anything anymore." Describes feeling down most days, losing interest in cycling and seeing friends, waking at 4 a.m. most nights and unable to fall back asleep, low energy and difficulty concentrating when job hunting. Appetite reduced, with an estimated 4 kg (9 lb) weight loss. Symptoms are worse in the mornings. Alcohol has increased from 1 or 2 beers at weekends to 3 or 4 most evenings, "to sleep". Denies suicidal thoughts, intent or plan, and has no history of self-harm or suicide attempts. No firearms at home. Denies periods of elevated mood or reduced need for sleep. No previous mental health treatment. Lives with his wife, who encouraged the visit and is supportive.
Elements: quality, severity, duration, timing, context, modifying factors, associated signs and symptoms. Why it works: risk is documented explicitly rather than assumed, and the alcohol change is recorded in numbers, not a label. For later sessions, see our therapy progress note examples.
7. Hospital admission: shortness of breath
79-year-old woman with heart failure and atrial fibrillation, admitted with 5 days of worsening shortness of breath. History from the patient and her daughter, consistent with each other. Five days ago she became breathless walking to the mailbox; now she is breathless walking across the room. Needs 3 pillows to sleep (usually 1) and has woken gasping for breath twice. Ankle swelling has increased, and her home scale shows a gain of 3 kg (6.6 lb) over the week. Her daughter reports that she ran out of her water pill 8 days ago and did not refill it, and that she ate salty food at a family event 6 days ago. Denies chest pain, fever, productive cough and palpitations beyond her usual. No recent hospital stays. Lives alone, independent in daily activities until this week.
Elements: severity, duration, timing, context, modifying factors, associated signs and symptoms, plus the status of a chronic condition. Why it works: decline is described by function (mailbox, then the room), each trigger is recorded with who reported it, and the baseline gives a target for discharge.
8. Dermatology: itchy rash
33-year-old man with an itchy rash on both forearms and the left side of his neck for 4 days. It began 2 days after clearing brush in his backyard: red streaks that developed small blisters, some now weeping. Itch is 8/10 and worst at night, disturbing sleep. New patches appeared on his forearms on day 3. An over-the-counter hydrocortisone cream gave little relief. Denies fever, facial or eye swelling, rash in the groin and trouble breathing. No new medications, soaps or laundry products. A similar rash after hiking 3 years ago resolved in 2 weeks. No known drug allergies.
Elements: all eight. Why it works: the exposure and its timing are the key context, and the negatives cover both serious spread and other causes.
Weak vs strong HPIs: three rewrites
Rewrite 1: vague
Weak: "Pt c/o abd pain x few days. Some nausea. No other complaints."
Strong: "45-year-old man with upper abdominal pain for 3 days. Burning pain in the upper middle abdomen, 5/10, worst 1 to 2 hours after meals and at night; eased briefly by antacids. Associated nausea without vomiting. Has taken ibuprofen twice daily for 2 weeks for a shoulder strain. Denies black or bloody stools, vomiting blood, weight loss, fever and difficulty swallowing."
What changed: a duration, a location and quality, the context (two weeks of ibuprofen), and the negatives that would change urgency.
Rewrite 2: the assessment and exam creep in
Weak: "Patient with likely viral gastroenteritis. Vomiting and diarrhea. ROS negative x 14 systems. Abdomen soft, non-tender."
Strong: "32-year-old woman with vomiting and diarrhea for 1 day. Began 6 hours after a restaurant meal; her partner, who ate the same food, has similar symptoms. Vomited 4 times, none in the last 6 hours; 6 watery stools, no blood. Mild crampy pain around the navel, 3/10, eased after each stool. Keeping small sips of water down. Urinated twice today. Denies fever, severe or constant pain, and dizziness on standing."
What changed: the diagnosis moved to the assessment, the exam finding to Objective, and "ROS negative" became the negatives that matter: blood, fever, severe pain, dehydration.
Rewrite 3: labels and copied-forward text
Weak: "Known diabetic, non-compliant, sugars poorly controlled as before. Here for f/u."
Strong: "58-year-old man with type 2 diabetes here for follow-up. Fasting home glucose 180 to 220 mg/dL over the past month. Takes his evening medication about 3 days a week; says the cost of the new prescription is the main reason, and that he forgets when working late shifts. Denies increased thirst, frequent urination, foot sores and vision changes."
What changed: "non-compliant" became what he does and why, which the plan can act on, and "as before" became this month's data. Patients often read their notes, so neutral wording serves both readers.
HPI template (copy and paste)
Paste this into your notes, a smart phrase or your EHR's free-text field. Use the prompts that apply and delete the rest; the result should read as a paragraph, not a form.
HISTORY OF PRESENT ILLNESS
Source and reliability: (patient, parent, family member, interpreter, records)
Opening line: [age] [sex] with [relevant history] presenting with
[chief complaint, patient's words] for [duration].
Onset: when and how it started (sudden / gradual), what they
were doing (context)
Course: better, worse or unchanged since; episodes and their
frequency; anything like this before
Location: where; radiation
Quality: what it feels like, in the patient's words
Severity: 0-10 and its effect on function (work, sleep, walking)
Timing: constant or intermittent; time of day; duration of episodes
Modifying: what makes it better or worse; treatments tried and effect
Associated: related symptoms present
Pertinent neg.: symptoms asked about and absent that matter here
Relevant PFSH: only the history, medications and risk factors that
change how this complaint is read
Patient's view: what they think it is, what worries them, what they want
from today
Chronic conditions (follow-up visits): for each condition, status since
the last visit, home readings, adherence as reported, side effects.
Need the whole note, not just the history? The free SOAP note template has primary care, physical therapy and counseling versions to download as Word or PDF; the HPI goes in its Subjective section.
How to write an HPI, step by step
- Open with one orienting line: age, the history that matters here, the chief complaint and its duration.
- Tell it in time order, from onset (or the last visit) forward.
- Characterize the symptom with the elements that apply; location, quality, severity and timing are rarely optional.
- Ask for context and associated symptoms deliberately. OLDCARTS and OPQRST skip them, and they often hold the diagnosis.
- Record the pertinent negatives you actually asked, chosen to rule dangerous causes in or out.
- Include only background that changes the reading (medications, risk factors, prior episodes); the rest goes in the past, family and social history (PFSH).
- Name the source and any concern about reliability.
- Keep the patient's words where they matter, and what they are worried about or hoping for.
- Keep the assessment out. "Consistent with migraine" belongs in the assessment.
- Reread it as the next clinician. Is every left and right, number and medication correct?
Most outpatient HPIs run from three sentences to a short paragraph; admissions and complex new problems run longer.
Brief vs extended HPI, and what changed in 2021
The original definitions. Under the CMS 1995 and 1997 guidelines, a brief HPI describes one to three elements and an extended HPI at least four. The 1995 guidelines also accept "associated comorbidities" for an extended HPI; the 1997 guidelines accept "the status of at least three chronic or inactive conditions" instead, which is why a chronic disease follow-up like example 2 can be a complete HPI without a new symptom. The urinary example at the top is extended; "burning with urination for 2 days" alone would be brief.
What changed. Since January 1, 2021, office and outpatient E/M visits are leveled by medical decision making (MDM) or total time on the date of the encounter, and the history and exam only need to be "medically appropriate", as the AMA's summary of the CPT E/M revisions explains. CMS's Evaluation and Management Services booklet extends this to most E/M visit families as of January 1, 2023 (some visit types, such as emergency department visits, use only one of the two) and states that "the extent of history and physical examination isn't an element in selection of the level" of those services.
What this means in practice:
- Don't pad the HPI to hit a count. For most E/M visits a fourth element no longer raises the level.
- The HPI still matters. It supports the problems and risk in your MDM and is what the next clinician, or a reviewer, reads first.
- Counts haven't vanished everywhere. Some payer policies and internal audits still use them; check with compliance before deleting a field billing relies on.
Dictating the history and reviewing the drafted note
Writing up every history at the end of a long session is where detail gets lost: the exact words, which side, the day the medication ran out. Dictating right after the visit keeps it. Speak in the order of the template above: who and why, the story from onset, the elements and negatives you asked, relevant medications and risks, the source and the patient's concerns.
Sondeas turns that dictation, or a recording of the visit made with the patient's agreement, into a structured draft. It asks for consent for each visit, and an objection blocks recording. The built-in History and physical template has a History of presenting complaint section (onset, course and associated symptoms); the SOAP template puts the history in Subjective; or build your own with an HPI section laid out your way. Built-in templates are told to document only what was said and never to fill in normal findings.
Then you review the draft, which is where the mistakes in the rewrites above get caught:
- Every sentence links to the second of the recording it came from, and "Not in recording" marks a sentence with no support in what was said.
- History written as exam is flagged, and so are exam findings that were never spoken.
- Medications, doses, allergies, left and right, sex and identity are checked against the recording and the patient record; "Possibly missing" surfaces relevant things that were said but no sentence covers.
- Fix it by typing, by voice or by chat ("change left to right"), with the change shown as a diff first. Then sign: the note locks, and later changes are amendments with a reason.
- Copy it into your EHR section by section; a copy made before signing is marked as a draft.
More on the dictation side in turning dictation into a SOAP note, and on the workflow in how to finish clinical notes faster.
Sondeas is documentation support, not a medical device: it doesn't diagnose, code or choose treatment, and the history, assessment and plan stay yours.
Frequently asked questions
What does HPI stand for, and what are its elements?
HPI stands for history of present illness; in the UK the same section is usually called the history of presenting complaint (HPC). The eight elements in the CMS documentation guidelines are location, quality, severity, duration, timing, context, modifying factors, and associated signs and symptoms. OLDCARTS, OPQRST and SOCRATES are memory aids that cover most of them.
What is the difference between the chief complaint and the HPI?
The chief complaint is the reason for the visit in a short phrase, ideally in the patient's words ("my knee gave way"). The HPI is the full chronological story of that complaint, with its elements, associated symptoms and pertinent negatives.
Where does the HPI go in a SOAP note?
In Subjective, because it records what the patient or another historian reports. Exam findings, vital signs and test results go in Objective, even when they confirm the history. Our SOAP note examples show complete notes in five settings.
What is the difference between the HPI and the ROS?
The HPI tells the story of the presenting problem, including the negatives that characterize it ("no shortness of breath" in a chest pain history). The review of systems (ROS) is a separate, system-by-system inventory, so "no rash" in that chest pain note belongs there. Either way, record only what you actually asked.
How long should an HPI be?
As long as the problem needs: two or three sentences for a simple follow-up, several paragraphs for a complex admission. For most E/M visits the element count no longer sets the level, so don't pad.
Can a nurse, medical assistant or scribe document the HPI?
It depends on your organization and payers. The CMS booklet says the care team may collect information and the patient may supply it through a portal or questionnaire, reviewed by the reporting clinician. Review whatever someone else drafts before you sign.
Can AI write an HPI?
AI can draft one from a dictation or a recorded visit, but the clinician must review and sign it. Look for a tool that shows where each sentence came from, and check your organization's rules before using any tool with patient information. If you are in the US and your organization requires a business associate agreement (BAA), note that Sondeas does not offer one.
Keep the history, skip the typing
A good HPI is short, chronological and specific. Taking the history is your job; typing it up for every patient doesn't have to be. With Sondeas you speak it after the visit, review a draft where every sentence links back to the recording and risky details are flagged, then sign and copy it into your record.
The Clinician plan includes the clinical templates, review checks, sign and lock, and 25 fast hours of audio a month plus unlimited standard transcription, for $49 a month or $39 a month billed yearly. While the founding offer is open, it is $29 a month, locked for life. It starts with 7 days free (card required, cancel any time), and the first payment has a 14-day money-back guarantee. Pay-as-you-go packs ($3 an hour of audio, never expire) suit occasional transcripts; the clinical review workspace is part of the Clinician plan. Compare every plan on the pricing page.
Dictate your next history and review the draft
Sources and further reading
- CMS: 1997 Documentation Guidelines for Evaluation and Management Services: definitions of the chief complaint, HPI elements, brief and extended HPI, ROS and PFSH
- CMS: 1995 Documentation Guidelines for Evaluation and Management Services: the earlier definitions of brief and extended HPI
- CMS MLN: Evaluation and Management Services booklet: current rules for choosing the visit level by MDM or time, and the "medically appropriate" history and exam
- AMA: CPT Evaluation and Management: the 2021 office visit revisions


