Chapter 15 of ICD-10-CM gives O codes sequencing priority over codes from every other chapter. That rule is easy to remember when a pregnant patient has one problem. It gets harder when she has three: chronic hypertension, a previous cesarean scar and gestational diabetes — and the visit today is mainly about her blood pressure.
This article walks through how to sequence multiple O codes, when an O code can be secondary, and which Z codes belong alongside them. For a full category reference, see our ICD-10 O codes and sequencing guide.
The rules in one place
The ICD-10-CM Official Guidelines for Chapter 15 boil down to a handful of principles:
- O codes come first. Chapter 15 codes are sequenced before codes from other chapters. Other-chapter codes can be added to provide more detail.
- The reason for the encounter leads. Among several O codes, the condition that is the main reason for the visit or admission is sequenced first.
- Equal reasons, either order. If two complications are equally responsible, either can go first.
- Report all the O codes that apply. Every condition that complicates the pregnancy and is relevant to the encounter should be coded — not just the first one.
- Pregnancy is assumed to be affected unless the provider documents otherwise. If the provider states the condition isn't affecting the pregnancy, code the condition first and add
Z33.1. - Z codes support, not lead.
Z3A(weeks of gestation) andZ37(outcome of delivery) are secondary.Z34normal-pregnancy supervision is never combined with O codes. - Delivery encounters list the main circumstance or complication of the delivery first; for a cesarean, generally the condition that led to the cesarean.
Now let's apply those rules.
Example 1: Prenatal visit with three conditions
Scenario: 34 weeks. The patient has pre-existing essential hypertension and a prior low transverse cesarean. She also has gestational diabetes controlled by diet. Today's visit is mainly to adjust her antihypertensive medication; her glucose log is also reviewed.
O10.013— pre-existing essential hypertension complicating pregnancy, third trimester (main reason for visit)O24.410— gestational diabetes mellitus in pregnancy, diet controlledO34.211— maternal care for low transverse scar from previous cesarean deliveryZ3A.34— 34 weeks gestation
Why: Hypertension is the main reason for the encounter, so it leads. The diabetes and scar are relevant conditions affecting the pregnancy. Note that O10.01- codes include the hypertension, so a separate I10 isn't added; the O10 category instructions tell you when an additional code is needed for associated conditions such as hypertensive heart or kidney disease.
Example 2: Same patient, different focus
Scenario: Two weeks later the visit is mainly about rising glucose readings and starting insulin.
O24.414— gestational diabetes mellitus in pregnancy, insulin controlledO10.013— pre-existing essential hypertension, third trimesterO34.211— low transverse scar from previous cesareanZ3A.36— 36 weeks gestation
Why: The diagnoses didn't change, but the reason for the visit did, so the order changes. Also note: don't add Z79.4 (long-term insulin use) with O24.4- gestational diabetes codes — the control method is already captured in the O code.
Example 3: Repeat cesarean delivery
Scenario: A patient with a previous classical (vertical) cesarean scar is admitted at 39 weeks for a planned repeat cesarean. She delivers a single liveborn infant without complications.
O34.212— maternal care for vertical scar from previous cesarean deliveryZ3A.39— 39 weeks gestationZ37.0— single live birth
Why: The previous vertical scar is the reason for the cesarean, so it's the principal diagnosis. O80 can't be used — it's only for uncomplicated vaginal deliveries. And because the scar type affects both clinical management and coding, "unspecified" (O34.219) should be avoided when the operative or prenatal record states the type.
Example 4: Twins with preterm labor
Scenario: A patient with dichorionic/diamniotic twins is admitted at 33 weeks in preterm labor and delivers both babies vaginally.
O60.14X0— preterm labor third trimester with preterm delivery third trimester (seventh character0— the condition isn't specific to one fetus)O30.043— twin pregnancy, dichorionic/diamniotic, third trimesterZ3A.33— 33 weeks gestationZ37.2— twins, both liveborn
Why: Preterm labor is the main circumstance of the delivery. The twin pregnancy code adds essential context, and Z37.2 reports the outcome. If a complication affected only one twin — for example malpresentation of the second twin — the code would carry a seventh character identifying that fetus (1, 2, and so on).
Example 5: An infection during pregnancy
Scenario: At 22 weeks, the patient is seen for acute cystitis due to E. coli.
O23.12— infections of bladder in pregnancy, second trimesterB96.20— unspecified Escherichia coli as the cause of diseases classified elsewhereZ3A.22— 22 weeks gestation
Why: The O code leads and the organism code from Chapter 1 adds specificity, as instructed by the "use additional code" note at O23.
Example 6: When the pregnancy is incidental
Scenario: A patient at 18 weeks is seen for an ankle sprain after a fall. The provider documents that the injury is not affecting the pregnancy.
S93.401A— sprain of unspecified ligament of right ankle, initial encounter (code the actual side and ligament when documented)Z33.1— pregnant state, incidental- External cause codes as required by payer or state policy
Why: This is the main exception to O-code priority. Because the provider explicitly documented that the condition is not affecting the pregnancy, the condition is first-listed and Z33.1 notes the pregnancy. Without that documentation, the default assumption is that the condition does affect the pregnancy and an O code would be used.
Example 7: Substance use and obesity
Scenario: At 12 weeks, a patient's routine high-risk supervision visit addresses ongoing cigarette smoking and class 2 obesity. She is also an elderly multigravida.
O09.521— supervision of elderly multigravida, first trimesterO99.331— smoking (tobacco) complicating pregnancy, first trimesterF17.210— nicotine dependence, cigarettes, uncomplicatedO99.211— obesity complicating pregnancy, first trimesterE66.812— obesity, class 2 (use the obesity code that matches the documentation)Z3A.12— 12 weeks gestation
Why: For routine prenatal visits of a high-risk patient, the O09 supervision code is first-listed, with other O codes as secondary. The Chapter 15 codes for smoking and obesity are followed by the other-chapter codes that specify the condition, as their instructional notes require.
The most common sequencing mistakes
- Leading with a Z code.
Z3A,Z37andZ33.1are secondary in obstetric encounters (with the incidental-pregnancy exception putting the condition first, notZ33.1). - Combining
Z34with O codes. Normal-pregnancy supervision can't coexist with a complication code. - Reporting only one O code. Leaving out relevant conditions understates the complexity of the encounter, which matters even more once prenatal visits are billed by E/M level in 2027.
- Static diagnosis lists. Copying the same problem list in the same order to every visit, regardless of what was addressed.
- Wrong trimester character. Trimester is based on gestational age on the date of service — 14 weeks 0 days starts the second trimester, 28 weeks 0 days the third.
- Missing seventh characters for multiple gestations in categories that require fetus identification.
Why sequencing matters more in 2027
Through 2026, most routine prenatal care is billed inside a global package, and the diagnosis set on individual visits gets less scrutiny. Starting January 1, 2027, the global package ends: prenatal visits are reported per encounter with E/M codes, and payers can identify pregnancy-related claims by their Z34 or O-code diagnoses. Accurate, well-sequenced O codes will support the E/M level, medical necessity, and correct routing of maternity claims. Read our 2027 maternity transition guide for the full picture.
Quick sequencing decision tree
- Is the patient pregnant (or postpartum) and is the condition related to or affecting the pregnancy? No / documented as not affecting → code the condition first, add
Z33.1. Yes → continue. - Is this a delivery encounter? Yes → principal = main circumstance/complication of delivery (or the reason for cesarean), then other O codes,
Z3A,Z37. No → continue. - Is this a routine prenatal visit with no complications? Yes →
Z34.-+Z3A. High risk? →O09.-first, then other O codes +Z3A. - Is the visit for a complication? → the complication that's the main reason first, then other relevant O codes, other-chapter detail codes, and
Z3A.
Get help with OB diagnosis coding
Diagnosis errors are a quiet but steady source of obstetric denials and rejections. Our global maternity billing team reviews the diagnosis set on every OB claim before submission, and our coding audits can check your current O-code patterns by provider. Questions? Send us a WhatsApp message — quick answers are free.
Examples are illustrative and based on the ICD-10-CM Official Guidelines for Coding and Reporting. Always code from the actual documentation and the current year's code set.
Related service
Global Maternity Billing
Global OB packages, split care, insurance changes mid-pregnancy and the 2027 maternity code transition.
Learn moreRevenue leakage calculator
Estimate your net collection rate and the cost of denials in two minutes.
Frequently asked questions
Can you report more than one O code on a claim?
Yes. Report every Chapter 15 code that describes a condition affecting the pregnancy and addressed or relevant at the encounter. The code for the main reason for the encounter is sequenced first.
Can an O code ever be secondary?
Generally O codes are sequenced before codes from other chapters. The main exception is when the provider documents that the pregnancy is incidental to the encounter — then the condition is listed first with Z33.1 (pregnant state, incidental), and no O code is used for that condition.
Where does Z3A go?
Z3A weeks-of-gestation codes are secondary codes reported with Chapter 15 codes on the maternal record. They are never the first-listed diagnosis.
What if two complications are equally responsible for the visit?
When two or more complications are equally the reason for the encounter, either may be sequenced first.
Disclaimer:This article is for general educational purposes and reflects coding rules and payer policies as we understand them on the date shown. Always confirm against the current CPT and ICD-10-CM code sets and your payers' published policies.