Templates HPI template and history of present illness examples

HPI template and history of present illness examples

HPI is the medical abbreviation for history of present illness: the part of the note that tells the story of the patient’s chief complaint, from onset to today.

These 10 HPI templates cover the OLD CARTS format, the eight elements, a narrative HPI, and chest pain, abdominal pain, headache, cough, chronic condition, psychiatric, and injury visits, with four HPI examples.

Copy any template free, or save it in TextExpander and insert it in your EHR with a short abbreviation.

Updated December 02, 2026

Hi, we're TextExpander 👋

Let us be your shortcut to more efficient typing.
Use TextExpander everywhere you work, customized to speed up email response.

Start for free

Free forever. No credit card required.

What does HPI mean in medical terms?

HPI is the medical abbreviation for history of present illness. In medical terms, the HPI is the section of a clinical note that describes the patient’s chief complaint in detail, as a chronological narrative from the first symptom to the day of the visit. It records the patient’s symptoms: when they started, where they are, what they feel like, how severe they are, what makes them better or worse, and any associated symptoms, in the patient’s own words where that helps.

The HPI sits near the top of the subjective part of a note, right after the chief complaint, and it is usually the most important part of the history. A thorough HPI gives other healthcare providers the relevant context they need for an accurate diagnosis, a sensible differential diagnosis, and a treatment plan that fits the patient’s current medical condition. In the field, EMS crews write a short HPI in the H line of an EMS narrative.

Key elements of an HPI form

OLD CARTS is a mnemonic for onset, location, duration, character, aggravating and relieving factors, timing, and severity. Some versions use the A for alleviating factors and add radiation. To ensure all key elements are noted, utilize the OLD CARTS mnemonic for structuring patient interviews. It ensures that all critical aspects of the patient’s condition are covered systematically:

  • Onset: When did the symptoms start?
  • Location: Where are the symptoms located?
  • Duration: How long have the symptoms been present?
  • Character: What is the nature of the symptoms (e.g., sharp, dull, throbbing)?
  • Aggravating factors: What makes the symptoms worse?
  • Relieving factors: What alleviates the symptoms?
  • Timing: Are the symptoms constant or intermittent?
  • Severity: How severe are the symptoms on a scale of 1 to 10?

This mnemonic helps create a concise yet comprehensive overview of the patient’s current illness, ensuring no critical detail is overlooked.

The eight elements of an HPI

Many clinicians also use the HPI elements from the 1995 and 1997 CMS documentation guidelines: location, quality, severity, duration, timing, context, modifying factors, and associated signs and symptoms. They overlap with OLD CARTS. Quality is the same as character, context is what the patient was doing when the symptoms began, and modifying factors cover anything that changes the symptoms. The ;hpi8 template below follows these HPI elements one line at a time.

HPI template structure with five numbered parts: chief complaint and onset, location and character, severity, duration, and timing, modifying factors, and associated symptoms and pertinent negatives.

Why use an HPI template for every visit

An HPI template is crucial in healthcare as it ensures a systematic and thorough approach to documenting patient information. Without this history, important aspects of the patient’s health journey may be lost or inferred incorrectly by other providers, resulting in inferior care for the patient.

  • Consistency: Ensures uniformity in documenting patient information across different healthcare providers.
  • Efficiency: Saves time by providing a structured format, reducing the need for redundant questioning.
  • Accuracy: Minimizes the risk of omitting critical information, thereby improving diagnostic accuracy.
  • Training: Serves as an educational tool for new healthcare professionals, providing them with a clear guide for patient interviews.
  • Communication: Enhances clarity and continuity of care by standardizing the documentation process, making it easier for different practitioners to understand and follow a patient’s medical history.

A complete HPI also helps with preventing diagnostic errors. Most diagnostic errors start with a missing detail, like the chest pain that radiates to the left arm, the headache with a sudden onset, or the medication the patient stopped last week. A template prompts for those details every time, so your HPI documentation is the same quality on a quiet morning as it is at the end of a long clinic day.

By adopting a standardized HPI template, medical teams can improve their diagnostic accuracy and overall patient outcomes. General practitioners, primary care teams, urgent care, emergency, and specialty clinics all use the same core HPI elements, so one shared set of HPI templates works across a medical practice.

HPI vs chief complaint, review of systems, and past medical history

The HPI is one part of the patient history, and together the parts make up a comprehensive history. The HPI focuses on the patient’s current complaint. Each part has its own job, and keeping them separate makes the note easier to read and the medical decision making easier to follow.

  • Chief complaint (CC): the reason for the visit, in a few words, ideally as the patient says it. For example, “chest pain for 2 hours.”
  • History of present illness (HPI): the story of the chief complaint, with onset, location, character, severity, timing, modifying factors, associated symptoms, and pertinent negatives.
  • Review of systems (ROS): a broader review of symptoms by body system, asked as a checklist. Use a review of systems template to document it.
  • Past medical history (PMH): the patient’s medical conditions, surgeries, current medications, and allergies.
  • Family history and social history: conditions in close relatives, and lifestyle factors such as smoking, alcohol, work, and living situation.
  • Physical exam: the objective findings, which go in the next section of the note, not the HPI.

Symptoms that relate directly to the chief complaint belong in the HPI, even if you also ask about them in the ROS. If a patient with a cough denies fever, that pertinent negative goes in the HPI, because it changes the differential. Symptoms in other areas belong in the ROS. PMH, family history, and social history can go in the HPI too, but only when they bear on the current complaint, like a history of myocardial infarction in a patient with new chest pain. The HPI and ROS together make up most of the subjective section of a SOAP note.

How to write an HPI step by step

This step by step guide works for any complaint. A strong HPI is short, specific, and in logical order, so the reader can follow the patient’s illness from start to finish.

  1. Open with the patient. Start with age, sex, and the relevant history, followed by the reason for the visit. For example, “58-year-old male with hypertension and hyperlipidemia presents with chest pain.”
  2. Describe the symptom onset. When it started, whether it began suddenly or had a gradual onset, and what the patient was doing at the time.
  3. Work through the HPI elements. Location, character, radiation (for example, to the left arm), severity, duration, and timing. Use the patient’s own words for the character of the symptom when they’re vivid.
  4. Add modifying factors. What makes it better or worse, and anything the patient has tried, such as medicines, rest, or heat.
  5. List associated symptoms and pertinent negatives. The other symptoms that come with it, and the important symptoms the patient denies.
  6. Close with the time course. Whether it is getting better or worse, prior similar episodes, and why the patient is seeking care today.

Write the HPI in the past tense for events and the present tense for current symptoms, keep it in chronological order, and leave your assessment and next steps for the assessment and plan. The HPI tells what happened. Your clinical reasoning comes later in the note.

Brief HPI vs extended HPI and E/M levels

Under the 1995 and 1997 CMS documentation guidelines, a brief HPI includes one to three HPI elements, and an extended HPI includes four or more elements, or the status of three or more chronic conditions. An extended HPI is a more detailed HPI, and those levels were used to support a detailed history for an E/M visit level.

Since 2021 for office and outpatient visits, and 2023 for most other E/M settings, the AMA CPT guidelines ask for a medically appropriate history and exam, and the visit level is based on medical decision making or total time. Many clinicians still use brief and extended HPI as a simple way to think about how complete a note is. Follow your organization’s coding guidance for billing questions.

  • Brief example: “Sore throat for 2 days, worse with swallowing.”
  • Extended example: “Sore throat for 2 days, constant, 6/10, worse with swallowing, better with ibuprofen, with fever to 101.2 F. Denies cough or rash.”

HPI template

Here’s a basic template for documenting the History of Present Illness. The HPI templates after it cover a narrative HPI, the eight elements, and the most common complaints. Fill-in fields use [Square Brackets], and optional lines are marked [Optional: …], so you can leave out what doesn’t apply. Each template is a TextExpander Snippet: use Copy content to paste it anywhere, or Add to TextExpander to save it with fill-in fields and pop-up menus.

Best for a structured HPI in the OLD CARTS format, one line per element. It’s the original template on this page.

Show template as text
Patient Name: [Full Name] Age: [Patient's Age] Date of Visit: [MM/DD/YYYY] Chief Complaint (CC): [Patient's primary concern] History of Present Illness (HPI): - Onset: [When did the symptoms start?] - Location: [Where are the symptoms located?] - Duration: [How long have the symptoms been present?] - Character: [What is the nature of the symptoms?] - Aggravating factors: [What makes the symptoms worse?] - Relieving factors: [What alleviates the symptoms?] - Timing: [Are the symptoms constant or intermittent?] - Severity: [How severe are the symptoms on a scale of 1 to 10?]

Narrative HPI template

Best for a complete narrative HPI for any chief complaint, with optional lines for episode length, pertinent negatives, and treatment tried.

Show template as text
[Age]-year-old [male / female / patient] with a history of [Relevant medical history] presents with [Chief complaint] that began [Onset]. The [Symptom] is located in the [Location] and is described as [Character]. It has been [constant / intermittent / worsening / improving], [Optional: with episodes lasting [Episode length]]. Severity is [Severity]/10. It is worse with [Aggravating factors] and better with [Relieving factors]. Associated symptoms include [Associated symptoms]. [Optional: Denies [Pertinent negatives].] [Optional: The patient has tried [Treatment tried] with [no relief / partial relief / full relief].]

HPI template with the 8 elements

Best for documenting each element (location, quality, severity, duration, timing, context, modifying factors, and associated signs and symptoms) on its own line, with an optional pertinent negatives line.

Show template as text
History of present illness Chief complaint: [Chief complaint] Location: [Location] Quality: [Quality] Severity: [Severity] Duration: [Duration] Timing: [Timing] Context: [Context] Modifying factors: [Modifying factors] Associated signs and symptoms: [Associated signs and symptoms] [Optional: Pertinent negatives: [Pertinent negatives]]

Chest pain HPI template

Best for chest pain visits, with menus for location and character, and optional radiation, episodes, pertinent negatives, risk factors, and prior episodes.

Show template as text
[Age]-year-old [male / female / patient] presents with chest pain that began [Onset] while [Activity at onset]. Pain is [substernal / left-sided / right-sided / epigastric] and described as [pressure-like / sharp / burning / tightness / a dull ache], [Optional: radiating to the [Radiation]]. Severity [Severity]/10. Duration [Duration], [constant / intermittent], [Optional: with [Number of episodes] episodes lasting [Episode length]]. Worse with [Aggravating factors]. Better with [Relieving factors]. Associated symptoms: [Associated symptoms]. [Optional: Denies [Pertinent negatives].] [Optional: Risk factors: [Risk factors].] [Optional: Prior similar episodes: [Prior episodes].]

Abdominal pain HPI template

Best for abdominal pain with a quadrant menu and optional radiation, last menstrual period, and pertinent negatives.

Show template as text
[Age]-year-old [male / female / patient] presents with abdominal pain for [Duration]. Onset was [sudden / gradual], [Onset]. Pain is located in the [right upper quadrant / left upper quadrant / right lower quadrant / left lower quadrant / epigastric region / periumbilical region / diffuse abdomen] and described as [Character], [Optional: radiating to the [Radiation]]. Severity [Severity]/10, [constant / intermittent / colicky]. Worse with [Aggravating factors]. Better with [Relieving factors]. Associated symptoms: [Associated symptoms]. Last bowel movement: [Last bowel movement]. [Optional: LMP: [Last menstrual period].] [Optional: Denies [Pertinent negatives].]

Headache HPI template

Best for headache visits, with menus for onset, location, and character, prior episodes, and optional pertinent negatives and medications tried.

Show template as text
[Age]-year-old [male / female / patient] presents with a headache that began [Onset], with [sudden / gradual] onset. Location: [bilateral / frontal / temporal / occipital / unilateral]. Character: [throbbing / pressure / sharp / dull]. Severity [Severity]/10. Duration [Duration], [constant / intermittent]. Aggravating factors: [Aggravating factors]. Relieving factors: [Relieving factors]. Associated symptoms: [Associated symptoms]. Prior similar episodes: [Prior similar episodes]. [Optional: Denies [Pertinent negatives].] [Optional: Medications tried: [Medications tried].]

Cough and shortness of breath HPI template

Best for respiratory complaints, with optional sections for cough, sputum, and shortness of breath, plus exposures, smoking history, and treatments tried.

Show template as text
[Age]-year-old [male / female / patient] presents with [cough / shortness of breath / cough and shortness of breath] for [Duration]. Onset was [sudden / gradual]. [Optional: Cough is [dry / productive].] [Optional: Sputum: [Sputum description].] [Optional: Shortness of breath occurs [at rest / with exertion / when lying flat / at night].] Associated symptoms: [Associated symptoms]. Exposures: [Exposures]. Smoking history: [Smoking history]. Treatments tried: [Treatments tried]. [Optional: Denies [Pertinent negatives].]

Chronic condition follow-up HPI template

Best for follow-up visits for up to three chronic conditions, with a status menu for each and an optional line for new concerns.

Show template as text
[Age]-year-old [male / female / patient] presents for follow-up of [Chronic conditions]. - [Condition 1]: [stable / improving / worsening / not at goal]. [Condition 1 details] - [Condition 2]: [stable / improving / worsening / not at goal]. [Condition 2 details] [Optional: - [Condition 3]: [stable / improving / worsening / not at goal]. [Condition 3 details]] Medication adherence: [Medication adherence]. Side effects: [Side effects]. [Optional: New concerns today: [New concerns]]

Psychiatric HPI template

Best for initial evaluations and follow-up visits, covering the presenting concern, course, stressors, sleep, appetite, functioning, a safety assessment summary, and optional substance use.

Show template as text
[Age]-year-old [male / female / patient] presents for [an initial psychiatric evaluation / a follow-up visit] for [Presenting concern]. Symptoms began [Onset] and include [Symptoms]. Course: [improving / unchanged / worsening]. Stressors: [Stressors]. Sleep: [Sleep]. Appetite: [Appetite]. Functioning at work, school, or home: [Functioning]. Safety: [Safety assessment summary]. Current treatment: [Current treatment]. [Optional: Substance use: [Substance use].]

Injury HPI template

Best for acute injuries, with the mechanism and date of injury, weight bearing, treatment so far, and an optional prior injury line.

Show template as text
[Age]-year-old [male / female / patient] presents with [Body part] [pain / swelling / pain and swelling] after [Mechanism of injury] on [Date of injury]. [Pain began immediately. / Pain developed gradually.] Pain is [Character], [Severity]/10, worse with [Aggravating factors] and better with [Relieving factors]. [Able to bear weight. / Unable to bear weight. / Weight bearing not applicable.] Associated symptoms: [Associated symptoms]. [Optional: Prior injury to the same area: [Prior injury].] Treatment so far: [Treatment so far]. [Optional: Denies [Pertinent negatives].]

History of present illness examples

These HPI examples use fictional patients. The first three are structured HPI examples in the OLD CARTS format, and the fourth shows the same information written as a narrative, which is how most HPI notes read in practice.

HPI Example 1

Age: 45

Chief complaint: Severe headache

History of Present Illness (HPI):

Onset: Began three days ago
Location: Bilateral temples
Duration: Persistent
Character: Throbbing pain
Aggravating factors: Bright lights and loud noises
Relieving factors: Rest in a dark, quiet room
Timing: Constant, worsens in the evening
Severity: 7/10

HPI Example 2

Age: 30

Chief complaint: Abdominal pain

History of Present Illness (HPI):

Onset: Started one week ago
Location: Lower right quadrant
Duration: Intermittent
Character: Sharp, stabbing pain
Aggravating factors: Eating fatty foods
Relieving factors: Lying down
Timing: Occurs after meals
Severity: 6/10

HPI Example 3

Age: 52

Chief complaint: Cough

History of Present Illness (HPI):

Onset: Two weeks ago
Location: Chest and throat
Duration: Persistent, worse at night
Character: Dry, hacking cough
Aggravating factors: Cold air, talking
Relieving factors: Warm drinks
Timing: Intermittent, worse at night
Severity: 5/10

HPI Example 4: chest pain (narrative)

58-year-old male with hypertension and hyperlipidemia presents with substernal chest pressure that began suddenly 2 hours ago while climbing stairs. He describes it as “like an elephant sitting on my chest,” radiating to the left arm and jaw. Severity is 8/10. He has had two episodes, and each episode lasts about 10 minutes. The pain is worse with exertion and better with rest. Associated symptoms include diaphoresis and mild nausea. Denies shortness of breath, palpitations, or sharp pain with deep breathing. Prior similar episodes: none. Risk factors: smokes 10 cigarettes daily and drinks alcohol occasionally. Family history of myocardial infarction in his father at age 55.

For acute chest pain radiating to the left jaw and arm, an HPI like this one gives the reader everything needed to consider suspected myocardial infarction early: the pressure-like character, the exertional trigger, the associated symptoms, and the potential risk factors. In severe chest pain, these key details shape the next steps in the first few minutes. The pertinent negatives, like no pain with deep breathing, help narrow the differential too.

Tips for writing a strong, thorough HPI

An effective HPI tells the reader why the patient is here and what matters most, in a paragraph or two. These practical tips for HPI documentation work with any of the HPI templates above and the step by step guide, whether you write notes in primary care, urgent care, or a specialty clinic.

When a patient presents with a new complaint, a thorough HPI does most of the work toward an accurate diagnosis. It gives a complete picture of the illness, so the treatment plan follows from the history instead of from guesswork.

Before you sign the note

  • Start with the reason for the visit. One line with age, sex, relevant history, and the reason for the visit, before any detail.
  • Keep it chronological. Tell the illness in order, from the start to today, so the timeline is clear.
  • Cover every element. Onset, location, character, severity, timing, and modifying factors. Missing one is the most common gap.
  • Add pertinent negatives. Name the important symptoms the patient denies, especially the ones that would change your thinking.
  • Use the patient’s own words. Quote a vivid description of the symptom, like “tearing” or “the worst headache of my life.”
  • Check the other symptoms. Ask about other symptoms that often come with the complaint, such as fever with a cough or nausea with abdominal pain.

Common HPI mistakes to avoid

  • Copying forward. Last visit’s HPI pasted into today’s note is a common finding in medical documentation audits. Update the time course every visit.
  • Mixing in the ROS. A long list of unrelated negatives belongs in the ROS, which gives a broader review. Keep the HPI focused on the complaint.
  • Diagnosing in the HPI. Write what the patient reports, not “angina” or “pneumonia.” Save the assessment for later in the note.
  • Vague timing. “A while ago” doesn’t help the next reader. Use hours ago, days ago, or a date.
  • Unedited AI scribe output. If you use an AI scribe, read the generated HPI before you sign it, and fix anything it got wrong or left out.
  • Too much detail. An effective HPI is a paragraph or two. Move unrelated history to the rest of the history.

How to document pertinent negatives in an HPI

Pertinent negatives are symptoms the patient does not have that matter for this complaint. For chest pain, that might be “denies diaphoresis, palpitations, or pain when lying down.” For a headache, it might be “denies fever, neck stiffness, blurred vision or other visual changes, or weakness.” Most of the new templates on this page have an optional pertinent negatives line, so you can add them in one step and skip them when they don’t apply.

Pick pertinent negatives that rule out the serious causes on your differential, and write them in one sentence. A short, focused list is more useful to the next reader than a long checklist.

How HPI templates work with an AI scribe

Many clinics now use AI documentation tools to draft the HPI from the visit conversation. A scribe still needs a clear structure to follow and a clinician to check its work. Use an HPI template as the standard your team reviews against: if the draft is missing the onset, the severity, or the pertinent negatives, add them before you sign. Digital tools like AI scribes and text expansion work well together, with the scribe drafting the narrative and your templates filling in the exact wording.

Write HPI documentation faster with TextExpander

Medical professionals write dozens of HPIs a day as part of their medical documentation, and most of the words are the same each time. Typing them from scratch takes time away from patient care, diagnosis and treatment, and copying old notes brings forward details that are no longer true.

TextExpander saves your HPI templates as Snippets and inserts them wherever you type, including your EHR, a web portal, or a document, when you type a short abbreviation like ;hpichest. Fill in the fields, choose from the menus, and include the optional lines you need. Teams can share one set of HPI templates, so every provider documents the same complaint the same way and critical patient information is never left out. To see how other teams speed up charting, read how to write medical progress notes faster, SmartPhrase vs SmartText for Epic users, and these eClinicalWorks shortcuts.

  • Fill-in fields: prompt for the age, onset, location, severity, and every other HPI element.
  • Pop-up menus: choose the sex, the character of the pain, the quadrant, or the status of a chronic condition.
  • Optional sections: add pertinent negatives, radiation, risk factors, or treatment tried only when they apply.
  • Shared Snippet groups: give your clinical team one reviewed library of HPI templates for consistent HPI documentation, and update it once for everyone.

Keep patient details out of saved Snippets. A Snippet holds the template, and you type the patient-specific details into the note itself each time.

It’s just available no matter where you are.

Dr. Tasha Kalra, Associate Medical Director, Allara

See how healthcare teams use TextExpander, or start with the free plan, with no time limit or credit card.

TextExpander Snippet editor showing a shared HPI templates group for a clinic team, with the ;hpichest HPI template and its fill-in fields and optional sections.

How an HPI template Snippet works in your EHR

Type the abbreviation, fill in the details, and save the note.

HPI template example in two steps: typing ;hpinarr and filling in age, sex, history, chief complaint, onset, and severity, then saving the finished narrative HPI in the clinical note.

The ;hpinarr Snippet fills in the age, history, complaint, onset, and severity, sets the sex from a menu, and adds pertinent negatives only when you check them.

What is TextExpander

With TextExpander, you can store and quickly expand full email templates, Slack messages, and more anywhere you type. That means no more misspellings, no need to memorize complex instructions, or type the same things over and over again. See for yourself here:

Not able to play the video? Click here to watch the video

Work smarter.

With TextExpander, you can store and quickly expand snippets anywhere you type. That means you\'ll never have to misspell, memorize, or type the same things over and over, ever again.

Our customers love us. We think you will, too.

4.8 out of 5 stars on G2
Copied