Description of Business and Summary of Significant Accounting Policies | Description of Business and Summary of Significant Accounting Policies Nature of operations Health Catalyst, Inc. (Health Catalyst) was incorporated under the laws of Delaware in September 2011. We are a leading provider of data and analytics technology and services to healthcare organizations. Our Solution comprises a cloud-based data platform, analytics software, and professional services expertise. Our customers, which are primarily healthcare providers, use our Solution to manage their data, derive analytical insights to operate their organizations, and produce measurable clinical, financial, and operational improvements. Basis of presentation The accompanying consolidated financial statements have been prepared in accordance with U.S. generally accepted accounting principles (GAAP). We have reclassified certain prior period amounts to conform to the current period presentation. Initial Public Offering On July 29, 2019, we closed our initial public offering of common stock (IPO) in which we issued and sold 8,050,000 shares (inclusive of the underwriters' over-allotment option to purchase 1,050,000 shares) of common stock at $26.00 per share. We received net proceeds of $194.6 million after deducting underwriting discounts and commissions and before deducting offering costs of $4.6 million . Upon the closing of our IPO, all shares of our outstanding redeemable convertible preferred stock converted into 23,151,481 shares of common stock on a one-for-one basis. Stock Split On July 10, 2019, we effected a 1 -for- 2 reverse stock split of our capital stock. We have adjusted all references to share and per share amounts in the accompanying consolidated financial statements and notes to reflect the reverse stock split. Principles of consolidation The consolidated financial statements include the accounts of Health Catalyst and its wholly-owned subsidiaries. Intercompany balances and transactions have been eliminated. Use of estimates The preparation of financial statements in conformity with accounting principles generally accepted in the United States requires us to make estimates and assumptions that affect the reported amounts of assets and liabilities and disclosure of contingent assets and liabilities at the date of the financial statements and the reported amounts of revenues and expenses during the reporting period. On an on-going basis, we evaluate our estimates, including those related to revenue recognition, provisions for doubtful accounts, useful lives of property and equipment, capitalization and estimated useful life of internal-use software and other intangible assets, fair value of financial instruments, deferred tax assets, redeemable convertible preferred stock accretion, stock-based compensation, and tax uncertainties. Actual results could differ from those estimates. Segment reporting Operating segments are identified as components of an enterprise about which separate discrete financial information is evaluated by the chief operating decision maker (the CODM) in assessing performance and making decisions regarding resource allocation. We operate our business in two operating segments that also represent our reportable segments. Our segments are (1) technology and (2) professional services. The CODM, the Chief Executive Officer, uses Adjusted Gross Profit (defined as revenue less cost of revenue that excludes depreciation, amortization, stock-based compensation expense, and certain other operating expenses) as the measure of our profit. Net loss per share Basic net loss per share is calculated by dividing net loss attributable to common stockholders by the weighted average number of shares of common stock outstanding. Net loss attributable to common stockholders is computed as net loss less accretion of redeemable convertible preferred stock. Diluted net loss per share attributable to common stockholders is calculated by giving effect to all potentially dilutive common stock equivalents outstanding for the period. For purposes of this calculation, stock options, restricted stock units (RSUs), purchase rights committed under the employee stock purchase plan, and warrants to purchase common stock are considered to be common stock equivalents but have been excluded from the calculation of diluted net loss per share attributable to common stockholders as the effect is antidilutive. Prior to our IPO, we computed basic and diluted net loss per share in conformity with the two-class method required for participating securities. The two-class method is an earnings allocation formula that treats a participating security as having rights to earnings that otherwise would have been available to holders of common stock. Redeemable convertible preferred stock and common stock were considered participating securities for purposes of this calculation. However, the two-class method did not impact the net loss per common share attributable to common stockholders as we were in a loss position for each of the periods presented and the redeemable convertible preferred stockholders did not have a contractual obligation to participate in losses. Revenue recognition We recognize revenue in accordance with Accounting Standards Codification Topic 606, Revenue from Contracts with Customers (Topic 606). We derive our revenues primarily from technology subscriptions and professional services. We determine revenue recognition by applying the following steps: • Identification of the contract, or contracts, with a customer; • Identification of the performance obligations in the contract; • Determination of the transaction price; • Allocation of the transaction price to the performance obligations in the contract; and • Recognition of revenue when, or as, we satisfy the performance obligation. We recognize revenue net of any taxes collected from customers and subsequently remitted to governmental authorities. Technology revenue Technology revenue primarily consists of subscription fees charged to customers for access to use our technology. We provide customers access to our technology through either an all-access or limited-access, modular subscription. The majority of our subscription arrangements are cloud-based and do not provide customers the right to take possession of the technology or contain a significant penalty if the customer were to take possession of the technology. Revenue from cloud-based subscriptions is recognized ratably over the contract term beginning on the date that the service is made available to the customer. Most of our subscription contracts have up to a three-year term, of which the vast majority are terminable after one year upon 90 days' notice. Subscriptions that allow the customer to take software on-premise without significant penalty are treated as time-based licenses. These arrangements generally include access to technology, access to unspecified future products and maintenance and support. Revenue for upfront access to our technology library is recognized at a point in time when the technology is made available to the customer. Revenue for access to unspecified future products included in time-based license subscriptions is recognized ratably over the contract term beginning on the date that the access is made available to the customer. We also have certain perpetual license arrangements. Revenue from these arrangements is recognized at a point in time upon delivery of the software. Technology revenue also includes maintenance and support revenue which generally includes bug fixes, updates, and support services. Revenue related to maintenance and support is recognized over the contract term beginning on the date that the service is made available to the customer. Professional services revenue Professional services revenue primarily includes data and analytics services, domain expertise services, outsourcing services, and implementation services. Professional services arrangements typically include a fee for making full-time equivalent (FTE) services available to our customers on a monthly basis. FTE services generally consist of a blend of analytic engineers, analysts, and data scientists based on the domain expertise needed to best serve our customers. Professional services are typically considered distinct from the technology offerings and revenue is generally recognized as the service is provided using the “right to invoice” practical expedient. Contracts with multiple performance obligations Many of our contracts include multiple performance obligations. We account for performance obligations separately if they are capable of being distinct within the context of the contract. In these circumstances, the transaction price is allocated to separate performance obligations on a relative standalone selling price basis. We determine standalone selling prices based on the observable price a good or service is sold for separately when available. In cases where standalone selling prices are not directly observable, based on information available, we utilize the expected cost plus a margin, adjusted market assessment, or residual estimation method. We consider all information available including our overall pricing objectives, market conditions, and other factors, which may include customer demographics and the types of users. Standalone selling prices are not directly observable for our all-access and limited-access technology arrangements, which are composed of cloud-based subscriptions, time-based licenses, and perpetual licenses. For these technology arrangements, we use the residual estimation method due to a limited number of standalone transactions and/or prices that are highly variable. Variable consideration We have also entered into at-risk and shared savings arrangements with certain customers whereby we receive variable consideration based on the achievement of measurable improvements which may include cost savings or performance against metrics. For these arrangements, we estimate revenue using the most likely amount that we will receive. Estimates are based on our historical experience and best judgment at the time to the extent it is probable that a significant reversal of revenue recognized will not occur. Due to the nature of our arrangements, certain estimates may be constrained until the uncertainty is further resolved. Contract balances Contract assets resulting from services performed prior to invoicing customers are recorded as unbilled accounts receivable and are presented on the consolidated balance sheets in aggregate with accounts receivable. Unbilled accounts receivable generally become billable at contractually specified dates or upon the attainment of contractually defined milestones. As of December 31, 2019 , 2018 , and 2017 , the unbilled accounts receivable included in accounts receivable on our consolidated balance sheets was $2.9 million , $3.4 million and $2.8 million , respectively. We record contract liabilities as deferred revenue when cash payments are received or due in advance of performance. Deferred revenue primarily relates to the advance consideration received from the customer. As of December 31, 2019 , 2018 , and 2017 , the total of current and non-current deferred revenue on our consolidated balance sheets was $32.1 million , $32.0 million , and $10.7 million , respectively. Cost of revenue, excluding depreciation and amortization Cost of technology revenue primarily consists of costs associated with hosting and supporting our technology, including third-party cloud computing and hosting costs, contractor costs, and salary and related personnel costs for our cloud services and support teams. Cost of professional services revenue primarily consists of salary and related personnel costs, travel-related costs, and independent contractor costs. Cost of revenue excludes costs related to depreciation and amortization. We defer certain costs to fulfill a contract when the costs are expected to be recovered, are directly related to in-process contracts and enhance resources that will be used in satisfying performance obligations in the future. These deferred fulfillment costs primarily consist of employee compensation incurred as part of the implementation of new contracts. As of December 31, 2019 and 2018 , we had deferred contract fulfillment costs of $0.9 million and $0.6 million , respectively. Cash and cash equivalents We consider all highly liquid investments purchased with a remaining maturity of three months or less at the time of acquisition to be cash equivalents. Short-term investments Our investment policy limits investments to highly-rated instruments that mature in less than 12 months. We classify our short-term investments as available for sale. Accounts receivable Accounts receivable are non-interest bearing and are recorded at the original invoiced amount less an allowance for doubtful accounts based on the probability of future collections. When we become aware of circumstances that may decrease the likelihood of collections, we record a specific allowance against amounts due, which reduces the receivable amount to the amount reasonably believed to be collected. For all other customers, we determine and periodically adjust the allowance based on historical loss patterns and current receivables aging. As of December 31, 2019 and 2018 , we had an allowance for doubtful accounts of $0.4 million and $0.5 million , respectively. Property and equipment Property and equipment are stated at historical cost less accumulated depreciation. Repairs and maintenance costs that do not extend the useful life or improve the related assets are expensed as incurred. Depreciation is computed using the straight-line method over the estimated useful lives of the assets. The estimated useful life of each asset category is as follows: Computer equipment 2-3 years Furniture and fixtures 3 years Leasehold improvements Lesser of lease term or estimated useful life Computer software 2-3 years Capitalized internal-use software costs 3 years When there are indicators of potential impairment, we evaluate the recoverability of the carrying values by comparing the carrying amount of the applicable asset group to the estimated undiscounted future cash flows expected to be generated by the asset group over the remaining useful life of the primary asset in the asset group. If the carrying amount of the asset group exceeds its estimated undiscounted future net cash flows, an impairment charge is recognized based on the amount by which the carrying value of the long-lived assets exceeds the fair value of the assets. We did not incur any long-lived impairment charges for the years ended December 31, 2019 , 2018 , and 2017 . Intangible assets Intangible assets include developed technologies, customer relationships, customer contracts, and trademarks that were acquired in business combinations and asset acquisitions. Intangible assets also include the purchase of third-party computer software. The intangible assets are amortized using the straight-line method over the assets’ estimated useful lives. The estimated useful life of each asset category is as follows: Developed technologies 2-10 years Customer relationships and contracts 6 years Computer software licenses 2-5 years Trademarks 2 years Goodwill We record goodwill as the difference between the aggregate consideration paid for a business combination and the fair value of the identifiable net tangible and intangible assets acquired. Goodwill is assessed for impairment annually or more frequently if indicators of impairment are present or circumstances suggest that impairment may exist. The first step of the goodwill impairment test compares the fair value of the reporting unit with its carrying amount, including goodwill. If the fair value of the reporting unit exceeds its carrying amount, the goodwill of the reporting unit is not considered impaired. If the carrying amount of the reporting unit exceeds its fair value, the second step of the goodwill impairment test is performed to measure the amount of impairment loss, if any. The second step of the goodwill impairment test compares the implied fair value of the affected reporting unit’s goodwill with the carrying value of that goodwill. There was no impairment of goodwill for the years ended December 31, 2019 , 2018 , and 2017 . Deferred offering costs Deferred offering costs, which consist of legal, consulting, banking, and accounting fees directly attributable to the IPO, were capitalized and then offset against proceeds upon the consummation of the IPO. During the year ended December 31, 2019 , we reclassified $4.6 million of offering costs into stockholders’ equity as a reduction of the net proceeds received from the IPO. Common stock warrants We account for freestanding warrants to purchase shares of our common stock that are not considered indexed to our own stock as warrant liabilities on our consolidated balance sheets until the point in time that they qualify for equity classification. We record liability-classified common stock warrants at their estimated fair value because they are free standing and the number of shares exercisable increases as we make advances on our credit facility. At the end of each reporting period, we record the change in the estimated fair value of the warrants to purchase common stock as a change in fair value of warrant liability within interest and other expense, net in our consolidated statements of operations. We reclassify the warrants from liability-classified to equity-classified as exercise contingencies related to the warrants become resolved. In October 2018, all remaining contingencies were resolved and the remaining common stock warrant liability balance was marked to market and recorded in stockholders’ equity (deficit). During the year ended December 31, 2019 , all outstanding warrants were exercised through a cashless exercise. Business combinations We account for an acquisition as a business combination if we obtain control of a business. Assets and liabilities acquired in a business combination generally are recorded at fair value and any associated acquisition costs are expensed as incurred in general and administrative expenses. Advertising costs All advertising costs are expensed as incurred. For the years ended December 31, 2019 , 2018 , and 2017 , we incurred $4.9 million , $5.0 million , and $5.9 million in advertising costs, respectively. Development costs and internal-use software Our technology products are generally developed to be sold externally. We determined that technological feasibility for our technology products to be sold externally is reached shortly before the products are ready for general release. Any costs associated with software development between the time technological feasibility is reached and general release are inconsequential. We capitalize certain development costs incurred in connection with our internal-use software. These capitalized costs are primarily related to the software platforms that are hosted by us and accessed by our customers on a subscription basis. Costs incurred in the preliminary stages of development are expensed as incurred as research and development costs. Once an application has reached the development stage, internal and external costs, if direct and incremental, are capitalized until the software is substantially complete and ready for its intended use. We also capitalize costs related to specific upgrades and enhancements when it is probable the expenditures will result in additional functionality. Capitalized costs are recorded as part of property and equipment. Maintenance and training costs are expensed as incurred. Internal-use software is amortized on a straight-line basis over its estimated useful life. Stock-based compensation Stock-based awards, including stock options and RSUs, are measured and recognized in the consolidated financial statements based on the fair value of the award on the grant date. For awards subject to performance conditions, we record expense when the performance condition becomes probable. We record forfeitures of stock-based awards as the actual forfeitures occur. We estimate the fair value of stock option awards on the grant date using the Black-Scholes option pricing model. We have issued two types of employee stock-based awards, standard and two-tier. Our standard stock-based awards vest solely on a service-based condition. For these awards, we recognize stock-based compensation expense on a straight-line basis over the vesting period. Two-tier employee stock-based awards contain both a service-based condition and performance condition, defined as the earlier of (i) an acquisition or change in control of the company or (ii) upon the occurrence of an initial public offering by the Company. A change in control event and effective registration event are not deemed probable until consummated; accordingly, no expense is recorded related to two-tier stock options until the performance condition becomes probable of occurring. Awards that contain both service-based and performance conditions are recognized using the accelerated attribution method once the performance condition is probable of occurring. The service-based condition is generally a service period of four years . Upon closing our IPO, we recorded cumulative share-based compensation expense of approximately $6.0 million using the accumulated attribution method for two-tier employee stock-based awards for which the service condition had been satisfied at that date. The compensation expense for non-employees is recognized, without changes in the fair value of the award, in the same period and in the same manner as though we had paid cash for the services, which is typically the vesting period of the respective award. The impact on our consolidated financial statements was immaterial. Stock-based compensation expense related to purchase rights issued under the 2019 Health Catalyst Employee Stock Purchase Plan (ESPP) is based on the Black-Scholes option-pricing model fair value of the estimated number of awards as of the beginning of the offering period. Stock-based compensation expense is recognized using the straight-line method over the offering period. Concentrations of credit risk Financial instruments that potentially subject us to a concentration of credit risk consist principally of cash and cash equivalents, short-term investments, and accounts receivable. We deposit cash with high credit quality financial institutions which at times may exceed federally insured amounts. We have not experienced any losses on our deposits. We perform ongoing credit evaluations of our customers’ financial condition and require no collateral from customers. We review the expected collectability of accounts receivable and record an allowance for doubtful accounts for amounts that we determine are not collectible. The following table depicts the largest customers’ outstanding net accounts receivable balance as a percentage of the total outstanding net accounts receivable balance: As of December 31, 2019 2018 Customer A less than 10% 13% There were no other customers with outstanding net accounts receivable balances as a percentage of total outstanding net accounts receivable balance greater than 10% as of December 31, 2019 and 2018 . We had one customer that accounted for 12% of our total revenues in 2017 . There were no other customers with revenue as a percentage of total revenue greater than 10% for the years ended December 31, 2019 , 2018 , and 2017 . Income taxes Deferred income tax balances are accounted for using the liability method and reflect the effects of temporary differences between the financial reporting and tax bases of our assets and liabilities using enacted tax rates expected to apply when taxes are actually paid or recovered. In addition, deferred tax assets and liabilities are recorded for net operating loss (NOL) and credit carryforwards. On December 22, 2017, the 2017 Tax Cuts and Jobs Act (Tax Act) was enacted into law and the new legislation contains several key tax provisions that affect us, including the reduction of the corporate income tax rate to 21%, effective January 1, 2018. We were required to recognize the effect of the tax law changes in the period of enactment. As such, we remeasured our consolidated deferred tax assets and liabilities as of December 31, 2017 to reflect the lower rate and also reassessed the net realizability of those deferred tax assets and liabilities. A valuation allowance is provided against deferred tax assets unless it is more likely than not that they will be realized based on all available positive and negative evidence. Such evidence includes, but is not limited to, recent cumulative earnings or losses, expectations of future taxable income by taxing jurisdiction, and the carry-forward periods available for the utilization of deferred tax assets. We use a two-step approach to recognize and measure uncertain income tax positions. The first step is to evaluate the tax position for recognition by determining if the weight of available evidence indicates it is more likely than not that the position will be sustained upon audit. The second step is to measure the tax benefit as the largest amount, which is more than 50% likely of being realized upon ultimate settlement. We do not accrue interest and penalties related to unrecognized tax benefits within the provision for income taxes because we have net operating loss carryforwards. Significant judgment is required to evaluate uncertain tax positions. Although we believe that we have adequately reserved for our uncertain tax positions, we can provide no assurance that the final tax outcome of these matters will not be materially different. We evaluate our uncertain tax positions on a regular basis and evaluations are based on a number of factors, including changes in facts and circumstances, changes in tax law, such as the Tax Act, correspondence with tax authorities during the course of an audit, and effective settlement of audit issues. To the extent that the final tax outcome of these matters is different than the amounts recorded, such differences will affect the provision for income taxes in the period in which such determination is made and could have a material impact on our financial condition and results of operations. Fair value of financial instruments The carrying amounts reported in the consolidated balance sheets for cash, receivables, accounts payable, and current accrued expenses approximate fair values because of the immediate or short-term maturity of these financial instruments. The carrying value of acquisition-related consideration payable, operating lease liabilities, and long-term debt approximate fair value based on interest rates available for debt with similar terms at December 31, 2019 and 2018 . Money market funds and short-term investments are measured at fair value on a recurring basis. Fair value is estimated by applying the following hierarchy, which prioritizes the inputs used to measure fair value into three levels and bases the categorization within the hierarchy upon the lowest level of input that is available and significant to the fair value measurement: • Level 1- Quoted prices in active markets for identical assets or liabilities. • Level 2- Observable inputs other than quoted prices in active markets for identical assets and liabilities, quoted prices for identical or similar assets or liabilities in inactive markets, or other inputs that are observable or can be corroborated by observable market data for substantially the full term of the assets or liabilities. • Level 3- Inputs that are generally unobservable and typically reflect management’s estimate of assumptions that market participants would use in pricing the asset or liability. Leases We account for our leases in accordance with Accounting Standards Codification Topic 842, Leases . We determine if an arrangement is a lease at inception. Operating leases are included in operating lease right-of-use (ROU) assets, operating lease liabilities, and operating lease liabilities, net of current portion in our consolidated balance sheets. We have adopted the short-term lease recognition exemption policy. All of our leasing commitments are classified either as operating leases or otherwise qualify as short-term leases with lease terms of 12 months or less. ROU assets represent our right to use an underlying asset for the lease term and lease liabilities represent our obligation to make lease payments arising from the lease. Operating lease ROU assets and liabilities are recognized at commencement date based on the present value of lease payments over the lease term. As our lease contracts do not provide an implicit rate, we use our incremental borrowing rate based on the information available at commencement date to determine the present value of lease payments. The operating lease ROU asset also includes any lease payments made and excludes lease executory costs. Our lease terms may include options to extend or terminate the lease when it is reasonably certain that we will exercise the applicable option. Lease expense for lease payments is recognized on a straight-line basis over the lease term. We do not have lease agreements that contain non-lease components, which generally would be accounted for separately. Foreign Currency The functional currency of our international subsidiaries is generally their local currency. We translate these subsidiaries’ financial statements into U.S. dollars using month-end exchange rates for assets and liabilities and average exchange rates for revenue and expenses. We record translation gains and losses in accumulated other comprehensive loss in stockholders’ equity (deficit). We record foreign exchange gains and losses in interest and other expense, net. Our net foreign exchange gains and losses were not material for the periods presented. Accounting pronouncements adopted In June 2018, the FASB issued ASU 2018-07, Improvements to Nonemployee Share-Based Payment Accounting (ASU 2018-07) . ASU 2018-07 simplifies the accounting for share-based payments to nonemployees by aligning it with the accounting for share-based payments to employees, with certain exceptions. The new standard became effective for fiscal years beginning after December 15, 2018, and interim periods within those annual periods. We adopted ASU 2018-07 as of January 1, 2019 and applied the standard prospectively. The adoption of this standard did not have a material impact on our consolidated financial statements. Recent accounting pronouncements In June 2016, FASB issued ASU 2016-13, Financial Instruments - Credit Losses (Topic 326) , which requires the measurement and recognition of expected credit losses for certain financial instruments, which includes our accounts receivable and available-for-sale debt securities. ASU 2016-13 replaces the existing incurred loss impairment model with an expected loss model which requires the use of forward-looking information to calculate credit loss estimates. These changes will result in earlier recognition of credit losses. We will adopt ASU 2016-13 effective January 1, 2020. We are currently evaluating new credit loss models and updating our processes and controls in connection with the adoption of ASU 2016-13. Based on the current composition of our investment portfolio, current market conditions, and historical credit loss activity, we expect that the initial adoption of this ASU will not have a material impact on our consolidated financial statements and related disclosures. In January 2017, FASB issued ASU 2017-04, Intangibles-Goodwill and Other - Simplifying the Test for Goodwill Impairment (Topic 350) , that simplifies how an entity is required to test goodwill for impairment by eliminating the second step of the impairment test. The second step measures a goodwill impairment loss by comparing the fair value of a reporting unit to the carrying amount. Under the new standard, if the carrying amount of the reporting unit exceeds its fair value, the carrying amount of goodwill is reduced by the excess reporting unit carrying amount up to the carrying amount of the goodwill. We will adopt ASU 2017-04 for annual or interim goodwill impairment tests in reporting periods beginning after December 15, 2019. This ASU will apply to our reporting requirements in performing goodwill impairment testing; however, we expect that the initial adoption of this ASU will not have a material impact on our consolidated financial statements. In August 2018, the FASB issued ASU 2018-13, F |