ICD-10 Coding for History of Migraine: What Actually Works

Most coders I see stumble over Z86.6 because they treat it like a straightforward "history of" code when it's actually more specific than that. Here's how it plays out in real claims. The code for personal history of migraine in ICD-10-CM is Z86.6, found under Chapter 21 (Factors Influencing Health Status). It captures patients who previously had migraine but don't have active symptoms at the time of the encounter. You use it when the migraine itself is no longer the reason for the visit—like a routine annual physical where the chart notes say "history of migraines" and there's nothing acute going on.

History Of Migraine Icd 10

Let me give you a specific scenario I ran into recently that almost got denied. A patient came in for a follow-up on hypertension. Her chart had "migraine history" documented in the past medical problem list but nowhere in the current encounter note. She wasn't complaining of headaches. I initially tried to include Z86.6 as a secondary code because it was in her chronic conditions list. The auditor questioned it because there was no explicit mention of migraine in the context of this specific visit. The fix was straightforward: I contacted the provider and had them add a brief sentence in the HPI or assessment clarifying that the patient's history of migraine was being reviewed as part of her chronic condition management during this visit. Once that link was documented, Z86.6 went on cleanly as a secondary code. Without that provider documentation, the code was considered unsupported for this encounter. That's the real issue with Z86.6. It's not enough for the code to exist in the patient's record. It has to be clinically relevant to the current encounter, or at minimum documented as being addressed or reviewed during that visit. This trips up a lot of people who assume "it's in the problem list so it goes on every claim." It doesn't work that way. There's also a common mistake around the active versus historical distinction. If the patient is currently being treated for an active migraine attack—say they come in with headache, photophobia, and nausea—you code the active migraine under G43 (G43.909 for migraine without aura, unspecified, or whichever specific G43 subcode fits). You do NOT use Z86.6 in that same encounter unless there's a separate qualifying reason. Z86.6 is for when the migraine is in the rearview mirror, not the dashboard light that's currently flashing.

Another counter-intuitive thing: Z86.6 can be used as a primary code in certain situations. If a patient comes in specifically for a follow-up or monitoring visit related to their resolved migraine condition—maybe they're being monitored for medication side effects from a discontinued prophylactic—the history code can take the primary position. It depends on what the encounter is for, not just what's in the chart generally. The practical reality is that Z86.6 gets underutilized because documentation is often sloppy. Doctors write "Hx migraines" on a problem list and consider it done. But payers and auditors increasingly want to see that history code tied to actual clinical reasoning for the encounter. I've found that the cleanest workflow is to ask providers to explicitly document whether the history of migraine is being actively managed, reviewed, or simply noted during each encounter. That one sentence makes or breaks the code's validity. One more edge case that catches people out: if a patient has both a history of migraine and is currently being treated for something else entirely—like a broken leg—Z86.6 shouldn't ride along just because it's in the record. It needs a purpose. If the migraine history is relevant to the treatment decision (for example, avoiding certain pain medications due to migraine interactions), then it belongs on the claim. If it's completely unrelated to the reason for the visit, it shouldn't be coded at all, regardless of what the problem list says.

Get the Full Details

Headache ICD 10 with All History of Codes - HealthPulls
Headache ICD 10 with All History of Codes - HealthPulls

The ICD-10-CM guidelines themselves are relatively sparse on Z86.6 specifics. They confirm it's for personal history of certain other diseases and that it can be used when a condition no longer exists but its aftereffects or the need for continued monitoring remain. Migraine fits that description when the attacks have stopped but the patient is still under some form of follow-up or surveillance. That's the nuance most quick-reference guides miss. From a documentation standpoint, the code itself is simple. The hard part is making sure every claim that includes it can survive a post-payment audit. That means every instance needs a clear paper trail linking the code to the encounter's purpose.