2.2.0.7falseAcquisition (Details) (USD $)0603 - Disclosure - Acquisition (Details)truefalseShare data in Millions, except Per Share data, unless otherwise specifiedfalsefalse1USDfalsefalseUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170PureStandardhttp://www.xbrl.org/2003/instancepurexbrli0SharesStandardhttp://www.xbrl.org/2003/instancesharesxbrli0USDEPSDividehttp://www.xbrl.org/2003/iso4217USDiso4217http://www.xbrl.org/2003/instancesharesxbrli0$false2USDfalsefalseUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170$false3USDfalsefalseUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170SharesStandardhttp://www.xbrl.org/2003/instancesharesxbrli0USDEPSDividehttp://www.xbrl.org/2003/iso4217USDiso4217http://www.xbrl.org/2003/instancesharesxbrli0$false4USDfalsefalseUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170PureStandardhttp://www.xbrl.org/2003/instancepurexbrli0SharesStandardhttp://www.xbrl.org/2003/instancesharesxbrli0USDEPSDividehttp://www.xbrl.org/2003/iso4217USDiso4217http://www.xbrl.org/2003/instancesharesxbrli0$false5USDfalsefalseUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170SharesStandardhttp://www.xbrl.org/2003/instancesharesxbrli0USDEPSDividehttp://www.xbrl.org/2003/iso4217USDiso4217http://www.xbrl.org/2003/instancesharesxbrli0PureStandardhttp://www.xbrl.org/2003/instancepurexbrli0$false6USDfalsefalsePureStandardhttp://www.xbrl.org/2003/instancepurexbrli0USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170$false7USDfalsefalseUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170$31us-gaap_BusinessAcquisitionProFormaInformationAbstractus-gaaptruenadurationNo definition available.falsefalsefalsefalsefalsetruefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsefalsefalsefalse00falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:stringItemTypestringNo definition available.false42us-gaap_BusinessAcquisitionProFormaRevenueus-gaaptruedebitdurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1truetruefalsefalse1125180000011251800000falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3truetruefalsefalse94571000009457100000falsefalsefalse4truetruefalsefalse3367900000033679000000falsefalsefalse5truetruefalsefalse2826460000028264600000falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryThe pro forma revenue for a period as if the business combination or combinations had been completed at the beginning of the periodReference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141R
-Paragraph 68
-Subparagraph r(2, 3)
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 54
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 55
false52us-gaap_BusinessAcquisitionProFormaIncomeLossFromContinuingOperationsBeforeChangesInAccountingAndExtraordinaryItemsNetOfTaxus-gaaptruedebitdurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsetruefalsefalse307100000307100000falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsetruefalsefalse256500000256500000falsefalsefalse4falsetruefalsefalse875000000875000000falsefalsefalse5falsetruefalsefalse745300000745300000falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryThe pro forma income from continuing operations before changes in accounting and extraordinary items, net of tax effect, for the period as if the business combination or combinations had been completed at the beginning of a periodReference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141R
-Paragraph 68
-Subparagraph r(2, 3)
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 54
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 55
false62us-gaap_BusinessAcquisitionProFormaIncomeLossFromContinuingOperationsBeforeChangesInAccountingAndExtraordinaryItemsNetOfTaxPerShareBasicus-gaaptruenadurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabeltrue1truetruefalsefalse0.580.58falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3truetruefalsefalse0.470.47falsefalsefalse4truetruefalsefalse1.611.61falsefalsefalse5truetruefalsefalse1.361.36falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalseus-types:perShareItemTypedecimalThe pro forma income from continuing operations before changes in accounting and extraordinary items, net of tax effect per basic share of common stock for a period as if the business combination or combinations had been completed at the beginning of a periodReference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141R
-Paragraph 68
-Subparagraph r(2, 3)
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 54
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 55
false72us-gaap_BusinessAcquisitionProFormaIncomeLossFromContinuingOperationsBeforeChangesInAccountingAndExtraordinaryItemsNetOfTaxPerShareDilutedus-gaaptruenadurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabeltrue1truetruefalsefalse0.570.57falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3truetruefalsefalse0.470.47falsefalsefalse4truetruefalsefalse1.61.6falsefalsefalse5truetruefalsefalse1.351.35falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalseus-types:perShareItemTypedecimalThe pro forma income from continuing operations before changes in accounting and extraordinary items, net of tax effect, per diluted share of common stock for a period as if the business combination or combinations had been completed at the beginning of a periodReference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141R
-Paragraph 68
-Subparagraph r(2, 3)
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 54
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 55
false81us-gaap_BusinessAcquisitionPurchasePriceAllocationAbstractus-gaaptruenadurationNo definition available.falsefalsefalsefalsefalsetruefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsefalsefalsefalse00falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:stringItemTypestringNo definition available.false92us-gaap_BusinessAcquisitionPurchasePriceAllocationCurrentAssetsus-gaaptruedebitinstantNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsetruefalsefalse937000000937000000falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsetruefalsefalse937000000937000000falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryThe amount of acquisition cost of a business combination allocated to current assets.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 51
-Subparagraph e
false102us-gaap_BusinessAcquisitionPurchasePriceAllocationPropertyPlantAndEquipmentus-gaaptruedebitinstantNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsetruefalsefalse4270000042700000falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsetruefalsefalse4270000042700000falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryThe amount of acquisition cost of a business combination allocated to property, plant and equipment to be used in ongoing operations.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 51
-Subparagraph e
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 37
-Subparagraph d
false112us-gaap_BusinessAcquisitionPurchasePriceAllocationAmortizableIntangibleAssetsus-gaaptruedebitinstantNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseterselabelfalse1falsetruefalsefalse15850000001585000000falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsetruefalsefalse15850000001585000000falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryThe amount of acquisition cost of a business combination allocated to an identifiable intangible asset that will be amortized.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 52
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 51
-Subparagraph e
false122us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillAmountus-gaaptruedebitinstantNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseterselabelfalse1falsetruefalsefalse26799000002679900000falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsetruefalsefalse26799000002679900000falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of goodwill arising from a business combination, which is the excess of the cost of the acquired entity over the amounts assigned to assets acquired and liabilities assumed.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 52
-Subparagraph c
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 53
-Subparagraph d
false132us-gaap_BusinessAcquisitionPurchasePriceAllocationLiabilitiesAssumedus-gaaptruecreditinstantNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsetruenegatedtotalfalse1falsetruefalsefalse-577900000-577900000falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsetruefalsefalse-577900000-577900000falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryThe amount of acquisition cost of a business combination allocated to liabilities assumed.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 37
-Subparagraph g
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Emerging Issues Task Force (EITF)
-Number 98-1
true142us-gaap_BusinessAcquisitionPurchasePriceAllocationAssetsAcquiredLiabilitiesAssumedNetus-gaaptruedebitinstantNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalsetotallabelfalse1falsetruefalsefalse46667000004666700000falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsetruefalsefalse46667000004666700000falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryThe total purchase price of the acquired entity. This includes cash paid to equity interest holders of the acquired entity, fair value of debt and equity securities issued to equity holders of the acquired entity, and transaction costs paid to third parties to consummate the acquisition.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 51
-Subparagraph d
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 35
true151esrx_AcquisitionTextualsAbstractesrxfalsenadurationAcquisition.falsefalsefalsefalsefalsetruefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsefalsefalsefalse00falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:stringItemTypestringAcquisition.false162esrx_CompletedSharePurchaseOfAcquisitionInPercentesrxfalsenainstantCompleted Share purchase of WellPoint subsidiaries acquisition, in percent.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsefalsefalsefalse00falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsetruefalsefalse11falsefalsefalse7falsefalsefalsefalse00falsefalsefalseus-types:percentItemTypepureCompleted Share purchase of WellPoint subsidiaries acquisition, in percent.No authoritative reference available.false172us-gaap_BusinessAcquisitionCostOfAcquiredEntityCashPaidus-gaaptruedebitinstantNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsefalsefalsefalse00falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsetruefalsefalse46750000004675000000falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of cash paid to acquire the entity.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141R
-Paragraph 68
-Subparagraph f(1)
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 51
-Subparagraph d
false182us-gaap_BusinessAcquisitionCostOfAcquiredEntityPurchasePriceus-gaaptruedebitinstantNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsefalsefalsefalse00falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsetruefalsefalse46670000004667000000falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryThe total cost of the acquired entity including the cash paid to shareholders of acquired entities, fair value of debt and equity securities issued to shareholders of acquired entities, the fair value of the liabilities assumed, and direct costs of the acquisition.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 51
-Subparagraph d
false192esrx_PurchasePriceAdjustmentForWorkingCapitalesrxfalsedebitdurationPurchase price adjustment for working capital.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsetruefalsefalse83000008300000falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsetruefalsefalse83000008300000falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryPurchase price adjustment for working capital.No authoritative reference available.false202esrx_PublicOfferingOfSeniorNotesGrossesrxfalsedebitinstantPublic Offering Of Senior Notes Gross.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsefalsefalsefalse00falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsetruefalsefalse25000000002500000000falsefalsefalsexbrli:monetaryItemTypemonetaryPublic Offering Of Senior Notes Gross.No authoritative reference available.false212us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebtus-gaaptruedebitdurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsefalsefalsefalse00falsefalsefalse5falsetruefalsefalse24783000002478300000falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryThe cash inflow from a borrowing with the highest claim on the assets of the entity in case of bankruptcy or liquidation (with maturities initially due after one year or beyond the operating cycle, if longer).Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 95
-Paragraph 18
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 95
-Paragraph 19
-Subparagraph b
false222us-gaap_StockIssuedDuringPeriodSharesNewIssuesus-gaaptruenadurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsefalsefalsefalse00falsefalsefalse5falsetruefalsefalse5290000052.9falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:sharesItemTypesharesNumber of new stock issued during the period.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher AICPA
-Name Accounting Principles Board Opinion (APB)
-Number 12
-Paragraph 10
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Regulation S-X (SX)
-Number 210
-Section 04
-Article 3
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Regulation S-X (SX)
-Number 210
-Section 02
-Paragraph 29, 30
-Article 5
false232us-gaap_ProceedsFromIssuanceOfCommonStockus-gaaptruedebitdurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseterselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsefalsefalsefalse00falsefalsefalse5falsetruefalsefalse15691000001569100000falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryThe cash inflow from the additional capital contribution to the entity.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 95
-Paragraph 18
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 95
-Paragraph 19
-Subparagraph a
false242esrx_PeriodOfTaxDeductionForGoodwillGeneratedesrxfalsenadurationPeriod of Tax deduction for goodwill generated.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsetruefalsefalse1515falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:integerItemTypeintegerPeriod of Tax deduction for goodwill generated.No authoritative reference available.false252esrx_EstimatedValueOfSection338H10ElectionMinimumesrxfalsenadurationEstimated value of Section 338(h)(10) election, Minimum.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsetruefalsefalse800000000800000000falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryEstimated value of Section 338(h)(10) election, Minimum.No authoritative reference available.false262esrx_EstimatedValueOfSection338H10ElectionMaximumesrxfalsenadurationEstimated value of section 338(h)(10) election, Maximum.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsetruefalsefalse12000000001200000000falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryEstimated value of section 338(h)(10) election, Maximum.No authoritative reference available.false272esrx_TaxBenefitRealizedPeriodesrxfalsenadurationTax Benefit realized period.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsetruefalsefalse1515falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:integerItemTypeintegerTax Benefit realized period.No authoritative reference available.false282esrx_PeriodOfContractesrxfalsenadurationPeriod of contract.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsetruefalsefalse1010falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:decimalItemTypedecimalPeriod of contract.No authoritative reference available.false292esrx_MeasurementPeriodesrxfalsenadurationMeasurement period.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsefalsefalsefalse00One year from the date of acquisitionOne year from the date of acquisitionfalsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:stringItemTypestringMeasurement period.No authoritative reference available.false302us-gaap_BusinessAcquisitionPurchasePriceAllocationCurrentAssetsus-gaaptruedebitinstantNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseterselabelfalse1falsetruefalsefalse937000000937000000falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsetruefalsefalse937000000937000000falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryThe amount of acquisition cost of a business combination allocated to current assets.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 51
-Subparagraph e
false312us-gaap_BusinessAcquisitionPurchasePriceAllocationLiabilitiesAssumedus-gaaptruecreditinstantNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsetruefalsefalse577900000577900000falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsetruefalsefalse577900000577900000falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryThe amount of acquisition cost of a business combination allocated to liabilities assumed.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 37
-Subparagraph g
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Emerging Issues Task Force (EITF)
-Number 98-1
false322us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillAmountus-gaaptruedebitinstantNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsetruefalsefalse26799000002679900000falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsetruefalsefalse26799000002679900000falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of goodwill arising from a business combination, which is the excess of the cost of the acquired entity over the amounts assigned to assets acquired and liabilities assumed.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 52
-Subparagraph c
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 53
-Subparagraph d
false332us-gaap_BusinessAcquisitionPurchasePriceAllocationAmortizableIntangibleAssetsus-gaaptruedebitinstantNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsetruefalsefalse15850000001585000000falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsetruefalsefalse15850000001585000000falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryThe amount of acquisition cost of a business combination allocated to an identifiable intangible asset that will be amortized.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 52
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 141
-Paragraph 51
-Subparagraph e
false342esrx_BenefitsRelatedToAmendmentOfClientContractesrxfalsecreditdurationBenefits related to amendment of client contract.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2truetruefalsefalse3000000030000000falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsefalsefalsefalse00falsefalsefalse5falsefalsefalsefalse00falsefalsefalse6falsefalsefalsefalse00falsefalsefalse7falsefalsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryBenefits related to amendment of client contract.No authoritative reference available.false732falseNoRoundingHundredThousandsNoRoundingtruetrue