<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Matt O&#39;Neill on Medium]]></title>
        <description><![CDATA[Stories by Matt O&#39;Neill on Medium]]></description>
        <link>https://medium.com/@matt.j.oneill?source=rss-1269696f9075------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YrdqVv5oJqCaFQ47rq_ZFw.jpeg</url>
            <title>Stories by Matt O&amp;#39;Neill on Medium</title>
            <link>https://medium.com/@matt.j.oneill?source=rss-1269696f9075------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:10:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@matt.j.oneill/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Build a Demand Forecast]]></title>
            <link>https://medium.com/trilliant-health/how-to-build-a-demand-forecast-fd7c7f1ce780?source=rss-1269696f9075------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd7c7f1ce780</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[healthtech]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[forecasting]]></category>
            <category><![CDATA[healthcare]]></category>
            <dc:creator><![CDATA[Matt O'Neill]]></dc:creator>
            <pubDate>Thu, 14 Sep 2023 20:16:56 GMT</pubDate>
            <atom:updated>2023-09-18T18:01:31.672Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sUuWsJEzSXCp7ip4.png" /><figcaption>image by Midjourney —”a futuristic line drawing of doctors using a magic 8 ball to predict the future”</figcaption></figure><p>Forecasts (or projections) of future demand for specific healthcare services are a critical component of any healthcare organization’s strategic planning process. Unfortunately, these projections are inherently difficult to produce; they require a <em>lot</em> of data, the dimensionality is vast, and the input data is generally <em>extremely</em> noisy. Futhermore, there is no real consensus on a “best” way to produce a forecast; there are simply some entrenched methods that have been in use for decades, and a reluctance to shift away from those methods due to fear and inertia. <a href="https://en.wikipedia.org/wiki/Fear,_uncertainty,_and_doubt">Nobody ever got fired for buying IBM</a>… until they did.</p><p>In this article, we will describe the demand forecasts we produce at Trilliant Health, why we think our approach makes the most sense, and what we <em>don’t</em> attempt to forecast. There is a little surprise for the reader at the end that should make the whole thing worth the read (Hey! no skipping ahead 😉).</p><h3>What is a demand forecast?</h3><p>You would think the answer is somewhat self-evident, but the real question is “demand for what?” In broad strokes, the general answer is “demand for healthcare services,” but the details matter. Once you start to dive into any specific use case, you soon realize that the forecast must account for:</p><ul><li>patient age;</li><li>patient gender;</li><li>specific services (procedures);</li><li>specific diagnoses;</li><li>setting of care; and</li><li>geography.</li></ul><p>Including all these dimensions results in numerous forecast permutations, depending on how you break them out. Unless you only need a national model, geography is a real doozy. There are, of course, 50 states in the US, as well as 927 CBSAs, 3,143 counties, and ~40,000 zip codes (not all of which have people living in them).</p><p>After you have decided on the dimensionality of your projection, you have to decide what you’re trying to predict! In other words, how do you actually plan on measuring demand? Is it procedures performed? Visits? Patients with a certain diagnosis? New patients seen? Readmissions? The options are almost as variable as the <a href="https://www.icd10data.com/search?s=watercraft">ICD-10 catalog of watercraft injuries</a>.</p><h3>So… you <em>must</em> choose something, right? What exactly are we predicting?</h3><p>Correct; life is about making decisions. After many philosophical conversations, model iterations, and arguments with our CFO about cloud spending, we’ve concluded that the <em>incident rate</em> (IR) of a specific procedure or diagnosis is the most useful metric to forecast. The IR is simply the number of times a specific procedure or diagnosis occurs in a specified population. We forecast it as ‘the rate of X per 10,000 people’. There are several advantages to predicting a rate, but a primary one is that a rate is <em>normalized by population</em>, and therefore <em>comparable across geographies</em>. If you want to compare the IR of joint replacements for 75-year-old men in Nashville to the IR of joint replacements for 75-year-old men in New York City, you can do that. If you want to compare the IR of hip procedures to the IR of knee procedures in Nashville, you could do that too.</p><h4>You mentioned geography was a doozy. How do you handle that?</h4><p>We think it is self-evident that healthcare utilization differs according to location. Obviously demographic and population health differences can exist across geographic areas, <em>but even holding those constant</em>, geography can determine your healthcare utilization. Ask someone who suffers from seasonal allergies if there is a difference between Nashville, TN, and Denver, CO. Or ask someone in Flint, MI what they think about their drinking water. We build forecasts at multiple levels of the geographical hierarchy — nation, state, CBSA, and zip code. This is not trivial! We generate tens of thousands of <a href="https://en.wikipedia.org/wiki/Generalized_linear_mixed_model">GLMMs</a> to project a rate for all the permutations of service utilization, demographics, and locations.</p><h4>Huh?</h4><p>Skip this section if you’d like. For each “slice” of the dataset we would like to produce (say, hip procedures for 70–79-year-old men in an inpatient setting) we build a model that takes <em>all</em> geographic areas into account. We take advantage of the fact that while an IR <em>should</em> differ between zip codes, we do expect the IR for individual zip codes to be correlated. The GLMM learns the distribution of intercepts and slopes for all zip codes nationally and uses that distribution as a prior for an individual zip code. Similarly, we learn the distributions of all states which are used as priors for each of the state forecasts. The result of this is that geographies with incidence rates at the extremes (due to outliers or data scarcity) tend to get regularized towards the mean distribution.</p><h4>What is a distribution?</h4><p>This is important! We are not generating a <em>point prediction</em>, but instead a <a href="https://en.wikipedia.org/wiki/Probability_distribution"><em>probability distribution</em></a>. We are not stating “there will be 100 hip procedures performed in 37212 in 2029;” instead, we are stating “there is a 75% chance between 80 and 120 hip procedures will be performed in 37212 in 2029”. That is, we are generating a <em>credible interval</em> that allows us to say: “<em>given the observed data, the effect has X% probability of falling within this range</em>.” Queue the jokes concerning frequentist and Bayesian statistics.</p><figure><img alt="https://xkcd.com/1132/" src="https://cdn-images-1.medium.com/max/468/0*j75d5_EbtUw_yeEa.png" /><figcaption><a href="https://xkcd.com/1132/">https://xkcd.com/1132/</a></figcaption></figure><h3>Where does all this data come from?</h3><p>I’ll assume you have read An Introduction to Claims Data <a href="https://medium.com/@matt.j.oneill/an-introduction-to-claims-data-e123d68bbe39">Part 1</a> and <a href="https://medium.com/trilliant-health/an-introduction-to-claims-data-pt-2-where-the-wild-things-are-6f769e579d3e">Part 2</a>, right? The short answer is that we buy national datasets from multiple sources, resulting in a claims dataset that is over 100b+ rows, covering the lives of 300m+ patients (CMS and commercial, clearinghouse and payer-direct). If you have not made the investment in acquiring and cleaning the raw data, your options are fairly limited. Many existing demand forecasts simply purchase data from a single vendor (which is typically constrained to a single geographic area) and extrapolate those observed IRs out to a national forecast. For a lot of reasons, we think this is a <em>terrible</em> idea.</p><h3>So what can I do with this data?</h3><p>Well, the easiest thing to do is show you. Below are plots for the projected national rates for Orthopedic, Heart / Vascular, Neuro / Spine, and Digestive surgical service lines. Included on those plots are the actual observed values through 2022.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdatawrapper.dwcdn.net%2F98SHP%2F3%2F&amp;display_name=Datawrapper&amp;url=http%3A%2F%2Fdatawrapper.dwcdn.net%2F98SHP%2F3%2F&amp;image=https%3A%2F%2Fdatawrapper.dwcdn.net%2F98SHP%2Fplain-s.png%3Fv%3D3&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=dwcdn" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/c9de201e14e1823495f73b428c53cac9/href">https://medium.com/media/c9de201e14e1823495f73b428c53cac9/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdatawrapper.dwcdn.net%2FdP8yy%2F1%2F&amp;display_name=Datawrapper&amp;url=https%3A%2F%2Fdatawrapper.dwcdn.net%2FdP8yy%2F1%2F&amp;image=https%3A%2F%2Fdatawrapper.dwcdn.net%2FdP8yy%2Fplain-s.png%3Fv%3D1&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=dwcdn" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/a41f0489a2ebc0facd7d3ed023a5c210/href">https://medium.com/media/a41f0489a2ebc0facd7d3ed023a5c210/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdatawrapper.dwcdn.net%2F9uSNZ%2F2%2F&amp;display_name=Datawrapper&amp;url=https%3A%2F%2Fdatawrapper.dwcdn.net%2F9uSNZ%2F2%2F&amp;image=https%3A%2F%2Fdatawrapper.dwcdn.net%2F9uSNZ%2Fplain-s.png%3Fv%3D2&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=dwcdn" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0f452ff824820778ff920bc91e0e0d23/href">https://medium.com/media/0f452ff824820778ff920bc91e0e0d23/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdatawrapper.dwcdn.net%2Fuh03Q%2F1%2F&amp;display_name=Datawrapper&amp;url=https%3A%2F%2Fdatawrapper.dwcdn.net%2Fuh03Q%2F1%2F&amp;image=https%3A%2F%2Fdatawrapper.dwcdn.net%2Fuh03Q%2Fplain-s.png%3Fv%3D1&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=dwcdn" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/bde52e7dc10dcd8f7cc9f7f7178611a4/href">https://medium.com/media/bde52e7dc10dcd8f7cc9f7f7178611a4/href</a></iframe><p>The above plots have all been generated with data directly output from our demand forecast, with no tweaking or fussing.</p><h3>Aren’t there other factors to consider besides a change in utilization rate?</h3><p>Yes. One of the most important and obvious factors is population change. We leverage public and 3rd party datasets to track forecasted changes in both the <em>numeric</em> and <em>demographic</em> changes of the population of a specific geography. That way we can align a specific forecasted incidence rate with a specific forecasted demographic population in a specific geographic area.</p><p>Are there any other factors? Absolutely. These “impact factors” can include technological innovation, drug development, economic and social conditions, policy changes, and many others. We are data scientists, not political scientists or futurists or wizards, so we don’t attempt to guess at <em>any </em>of them, because it is a fool’s errand to do so. Who predicted Keytruda 10 years ahead of time? Or Chat GPT-4, COVID-19, Amazon’s acquisition of One Medical, or the <a href="https://www.cms.gov/newsroom/fact-sheets/transparency-coverage-final-rule-fact-sheet-cms-9915-f">TiC rule</a>? Each of the aforementioned has had, or will have, significant effects on the delivery of healthcare.</p><p>The <em>probability</em> that something will happen is not the same as thinking or believing that something will happen. So, if you “trust your gut” about the long-term implications of a change — like Michael Burry did about mortgages in 2007 — then you can tailor a <em>probability</em> to fit your world view. For example, if you believe that changes in CMS policy will result in a specific surgery moving to the outpatient setting by 5% over the next ten years, then take the incidence rate for 2033 and multiply it by 1.05. It is simple math that everyone can perform, and we don’t believe in asking people to pay us to regurgitate their own opinions back to them. Perhaps we should, because it is what the market has been conditioned to expect over the last 40 years; it seems to give people a warm and fuzzy feeling inside…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*Bz5RhS4336sylBy-1HMkoQ.gif" /><figcaption>image showing typical validation of “impact factors”</figcaption></figure><p>We believe in providing our users with data that is based in evidence, not conjecture. And we believe in educating our users on <em>how to use that data</em>, as opposed to <a href="https://youtu.be/xr1k0_a7b4A?si=lWCLXaNQbX7TGFvy&amp;t=6">treating them like mushrooms</a>.</p><h3>One last thing..</h3><p>At the top of the article I promised a surprise if you made it to the end. Well here it is: <a href="https://www.trillianthealth.com/press-releases/trilliant-health-adds-national-demand-forecast-to-its-open-access-api-offerings">Trilliant Health Adds National Demand Forecast to its Open-Access API Offerings</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BLDcLobbTlSd8H-1oWEDpw.png" /></figure><p>We’ve decided to provide API access to our <em>national</em> demand forecast <em>for free</em>. Head on over to our website to read about it, or go directly to our <a href="https://portal.api.trillianthealth.com/">developer portal</a> to create an account and access it directly. Let us know if you have any questions!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd7c7f1ce780" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trilliant-health/how-to-build-a-demand-forecast-fd7c7f1ce780">How to Build a Demand Forecast</a> was originally published in <a href="https://medium.com/trilliant-health">The Trilliant Health Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Introduction to Claims Data (part 2): Where the Wild Things Are]]></title>
            <link>https://medium.com/trilliant-health/an-introduction-to-claims-data-pt-2-where-the-wild-things-are-6f769e579d3e?source=rss-1269696f9075------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f769e579d3e</guid>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Matt O'Neill]]></dc:creator>
            <pubDate>Wed, 28 Jun 2023 19:15:41 GMT</pubDate>
            <atom:updated>2023-06-28T19:58:09.260Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*bMu03nxv3bkz5poXiwermQ.png" /><figcaption>image generated by Midjourney — a computer analyst line drawing in the style of Maurice Sendak</figcaption></figure><p>If you haven’t read <a href="https://medium.com/trilliant-health/an-introduction-to-claims-data-e123d68bbe39"><em>part 1</em></a> of our introduction to claims data, please take the time to peruse it; I promise that what follows will make a lot more sense. And before we dive into a specific use case, let’s take a moment to review some nuances common to this sort of data. As <a href="https://twitter.com/rlmcelreath">Richard McElreath</a> said, <a href="https://elevanth.org/blog/2021/06/15/regression-fire-and-dangerous-things-1-3/">“It isn’t my job to disappoint people, but I’m good at it.”</a> While we would all love a dataset that is complete, consistent, and error-free, that is <em>not, </em>unfortunately, what a claims dataset is.</p><p>Keep the following in mind as you read:</p><ol><li>The discussion below is operating under the same principles as your high school physics class, i.e., “For the purposes of this problem, assume a perfect vacuum, no friction, and no other environmental variables exist.” We will cover core concepts that are general truths, but the devil is in the details of any specific analysis.</li><li>YMMV (your mileage may vary). It is worthwhile to maintain a skeptic’s view of your results. Just because your query returned an answer doesn’t mean the answer makes any sense. Compare your answer to macro-economic trends, other public datasources, and any other set you have to attempt to verify it. An analysis that works swimmingly for one entity may not work at all for another, due to the vagaries in claims submission and data collection (again, see <a href="https://medium.com/trilliant-health/an-introduction-to-claims-data-e123d68bbe39">part 1</a>).</li><li>Even after all this reading, your journey has only begun. If you remember the discussion of NPPES from the <a href="https://medium.com/trilliant-health/healthcare-datasets-213fcc022a1a"><em>Care and Feeding of Healthcare Datasets</em></a> article, you know that most of the information about entities and providers isn’t reported on a claim, usually only the NPI. We will cover the importance of a Provider Directory in a future article.</li></ol><h3>Core Concepts for Claims Datasets</h3><h4>Referring Providers</h4><ol><li>The “referring provider” field would be valuable if it were always filled in, but the raw “fill rate” is ~30%. While its presence <em>can</em> be indicative of a referral, its absence is <em>not</em> indicative of an absence of a referral.</li><li>Not only is the “fill rate” low for referring NPI, it may not be what it appears when it is filled in. Sometimes it is a Type 1, and sometimes it is a Type 2. While CMS guidance heavily <em>implies</em> that 17, 17.a and 17.b (<a href="https://medium.com/trilliant-health/cms-1500-claim-form-reference-80df8c54f586">specifics here</a>) are meant to be a Type 1 provider (not an entity), your mileage may vary 🤷. If there are multiple claims filed for the same patient within a system or provider group, often the referring provider is simply the <em>last provider who treated the patient</em>.</li></ol><h4>Address Standardization and Normalization</h4><p>Addresses are a difficult problem. Fundamentally, it is important to remember that at some point a <em>person</em> is inputting an address onto the claim. As you would expect, the inconsistency of input is reflective of that fact. The following street addresses are effectively the same:</p><pre>* 123 N 15th Ave.<br>* 123 North 15th Avenue<br>* 123 15th Ave. N<br>* 123 N Fifteenth Ave.</pre><p>If your analysis centers around finding volumes at a specific location, and you’re searching for 123 N 15th Ave., you will miss out on a significant amount of data where the address varies slightly. Further compounding this issue is the use of &quot;vanity&quot; addresses. It can be difficult to find official documentation on how &quot;vanity&quot; and &quot;preferred&quot; addresses come into existence, but it is not uncommon. Apple&#39;s headquarters in Cupertino is located at &quot;1 Infinite Loop&quot;. Similarly, there are plenty of hospitals with an address that looks something like &quot;1 Medical Center Drive&quot;; however, not every supplier, provider and payer is necessarily going to use the &quot;vanity&quot; address. Even more confusing (and sometimes amusing) are &quot;preferred&quot; city names. For example: 5025 HARDING PIKE BELLE MEADE TN 37205-2801 is a valid address in Nashville, TN, and mail will be delivered correctly whether Belle Meade or Nashville is specified as the city. Here is a good reference on <a href="https://anchorcomputersoftware.com/index.php/resources/articles/5-vanity-and-prestige-city-names">preferred city names</a>. USPS actually <a href="https://pe.usps.com/text/pub28/28c3_003.htm?q=preferred&amp;h=prefer&amp;t=H&amp;s=R&amp;p=1&amp;c=Pub28">calls this out as a problem</a> within their own systems.</p><h4>Is the Address Supplied Relevant?</h4><p>In short, maybe. Remember our study of the 1500 form above? Field 32.a (<a href="https://medium.com/trilliant-health/cms-1500-claim-form-reference-80df8c54f586">specifics here</a>) <em>is only filled out if the service facility NPI is different than the billing provider NPI</em>. Pragmatically, this means that for the vast majority of <em>professional</em> claims the provider simply enters the billing address and the billing NPI, which is often <em>not</em> where the service was actually rendered. To give an example - a surgeon employed by an orthopedic group renders service at a local hospital. Someone who works for that surgeon is going to file a claim, which may or may not list the billing address and billing NPI of the orthopedic group instead of the facility address. Why, you may ask? The reality is that over the years providers have learned to include the minimal amount of information that will result in the claim being paid. If that information is incorrect but the claim is paid, there is simply no benefit to the orthopedic group to provide that information — just cost. This can be an even more pernicious problem with the “remote” procedures, labs, image interpretation, etc.</p><h4>Provider / Entity specific volume</h4><p>OK. We’ve established that <em>overall</em> claims “completeness” is difficult to judge (see <a href="https://medium.com/trilliant-health/an-introduction-to-claims-data-e123d68bbe39">part 1</a>). Let’s say, however, that you’re fairly confident that you have enough volume to be representative. You can just count procedures for specific NPIs, right? I think you know where this is going… No! Remember that claims are a reimbursement for services rendered, and can be more representative of the transaction of services than care delivered. For example: if I want to know how many patients are being seen at an imaging center, I might be tempted to simply count the number of procedures per day. This might give a misleading result, though: often times different “views” during imaging are billed as separate procedures, as are body parts (usually noted with modifiers). If you do a simple sum of procedures, you’ll end up with a much higher count than you are looking for.</p><h4>Dates of Service</h4><p>Dates of Service on a claim are <em>very</em> important in almost any analysis. Generally, the dates of service that are recorded in 24.a (<a href="https://medium.com/trilliant-health/cms-1500-claim-form-reference-80df8c54f586">specifics here</a>) are the most reliable. However, remember that it is a date <em>range</em> that is recorded. So if you have a procedure tied to a date range, there is very little to tell you on what date that procedure was actually performed. This isn&#39;t a huge problem — usually it&#39;s safe to just use the earlier date in the range.</p><h4>Place of Service Codes</h4><p>These are <em>notoriously</em> unreliable, to the point where I would advise caution relying on them for almost any analysis. <a href="https://oig.hhs.gov/oas/reports/region10/11000516.pdf">This report from 2009 details the issue</a>, and little has changed since then. The summary of findings has been copied below (emphasis mine):</p><blockquote><em>“Physicians did not always correctly code nonfacility places of service on Part B claims submitted to and paid by Medicare contractors. </em><strong>Physicians correctly coded the claims for 17 of the 100 services that we sampled</strong><em>. However, physicians incorrectly coded the claims for 83 sampled services by using nonfacility place-of-service codes for services that were actually performed in hospital outpatient departments or ASCs. The incorrect coding resulted in overpayments totaling $2,979.”</em></blockquote><h4>Evaluation and Management Procedure Codes</h4><p>E&amp;M codes are not specific to a service line. Let’s say you want to gain some insight into office visits for your surgeon group compared to other surgeon groups in your market. Sometimes those office visits might take place at a standalone building, but often they take place in either a multi-office building or a medical center. You look up the CPT codes for evaluation and management (99202 - 99499), and start querying your dataset. Oh no! Turns out most service lines use that same range of CPT codes for E&amp;M visits, so your numbers don&#39;t make any sense at all. This is a very common use case and can be somewhat difficult to solve depending on the analysis. If you have a finite set of NPIs, perfect - you can also filter by the rendering provider.</p><h3>Finally! Let’s analyze!</h3><p>Now that we’ve covered some things you can’t necessarily rely on in claims data, let’s pivot to an analysis you <em>CAN</em> reliably perform. The preceding paragraphs aren’t meant to dissuade you from claims data. Like everything in healthcare, it’s complicated; as long as you understand the nature of the dataset you’re using, you can still extract an incredible amount of value.</p><p><a href="https://lemhiventures.com/tony-miller/">Tony Miller</a> (founder of Lemhi Ventures, Surest, etc.) would always say “Whenever we have an interaction with a customer, I want to know what they did five minutes before that interaction, and five minutes after that interaction”. If we take that advice to heart, one very useful way to leverage a claims dataset is to look at <em>longitudinal</em> claims for a patient or cohort of patients. That is, we look at what happened <em>before</em> they arrived at our facility, and we look at what happened <em>after</em> they left our facility.</p><p>The key in this sort of analysis is constructing the cohort of patients carefully. Maybe you are working with an orthopedics group, and they are trying to determine the percentage of patients that have already had physical therapy <em>before</em> arriving at your group. If you are confident in the set NPIs for your organization, you can collect a distinct list of patients that have had an interaction with your group, and the first date of service amongst those claims (per patient). You then can “look back” 60 or 90 days for specific physical therapy procedure evaluation codes CPTs: 97161–97163 for each patient. If you were doing this in SQL, it might look something like this:</p><pre>-- create a table of patients that have had an interaction with <br>-- the specified list of providers in 2022, <br>-- and the date of first interaction <br>CREATE TABLE patient_cohort AS <br>SELECT<br>  patient_id,<br>  MIN(date_of_service) AS first_dos,<br>  MAX(date_of_service) AS last_dos <br>  -- we&#39;ll use the MAX date in a little bit, <br>  -- but it is useful to collect it now<br>FROM<br>  claims<br>WHERE<br>    rendering_physician_npi IN (1234567890, 0987654321, 1357913579, ...)<br>    AND date_part(&#39;YEAR&#39;, date_of_service) = 2022<br>GROUP BY<br>  patient_id;<br><br><br>-- for every patient in patient_cohort, <br>-- collect all claims that occurred between 90 and 1 days <br>-- prior to first_dos<br>CREATE TABLE patient_cohort_prior_pt_claims AS <br>SELECT<br>    c.*<br>FROM<br>  claims c<br>  INNER JOIN patient_cohort pc ON c.patient_id = pc.patient_id <br>WHERE<br>    c.date_of_service BETWEEN dateadd(day, pc.first_dos, -90) <br>    AND dateadd(day, pc.first_dos, - 1)<br>    AND procedure_code in (97161, 97162, 97163)</pre><p>Now we’re getting somewhere! We have a table that has physical therapy claims for patients <em>before</em> they arrived at our orthopedic group. We could mine this table for different things, but let’s just calculate the share of patients that have had physical therapy versus those that haven’t.</p><pre>-- this will return the number of distinct patients in the cohort<br>SELECT <br>    count(distinct patient_id) as total_patients<br>FROM<br>    patient_cohort<br><br><br>-- this will return the number of distinct patients who had PT evals<br>SELECT <br>    count(distinct patient_id) as total_pt_patients<br>FROM<br>    patient_cohort_prior_pt_claims<br><br>-- total_pt_patients / total_patients = % of patients that had PT evals<br></pre><p>Excellent! With that information in hand, we can compare our orthopedic group’s interactions with patients who <em>did</em> have prior physical therapy versus that who <em>did not</em>.</p><p>Now that we’ve gleaned some information about what is happening <em>before</em> patients arrive, let’s see what is happening <em>after</em> our interaction. Is there opportunity for better outcomes? Let’s look for patients in our cohort that had an emergency department visit within 30 days of their <em>last</em> interaction with us. CPT codes 99281-99285 represent the 5 levels of emergency department visits. Remember when we calculated the max(date_of_service) as last_dosearlier? We’ll use that now.</p><pre>-- for every patient in patient_cohort, <br>-- collect all claims that occurred between 1 and 30 days <br>-- after the last_dos<br>CREATE TABLE patient_cohort_future_ed_claims AS <br>SELECT<br>    c.*<br>FROM<br>  claims c<br>  INNER JOIN patient_cohort pc ON c.patient_id = pc.patient_id <br>WHERE<br>    (c.date_of_service BETWEEN dateadd(day, pc.last_dos, 1)<br>    AND dateadd(day, pc.last_dos, 30))<br>    AND procedure_code in (99281, 99282, 99283, 99284, 99285)</pre><p>Now we can focus on the group of patients that were admitted to an emergency department (ED) within 30 days of seeing our orthopedic group. You might be thinking, “So what?! What if they were involved with a <a href="https://www.icd10data.com/ICD10CM/Codes/V00-Y99/V90-V94/V90-/V90.27">burning jet-ski accident (V90.27)</a> that had nothing to do with their knee replacement?” Well, your suspicions would be well founded. However, there isn’t a link in claims data that says “this claim is related to that other one”, so it is up to you to decide how to make that determination. Perhaps you know of common diagnoses that result in an ED admission after an orthopedic surgery and look for those specifically.</p><p>Let’s summarize what we just did.</p><ol><li>Find the cohort of patients that our orthopedic group saw in 2022.</li><li>From that cohort, find all the patients that had physical therapy <em>before </em>coming to see our orthopedic group.</li><li>From that cohort, find all the patients that admitted to an ED within 30 days <em>after</em> seeing our orthopedic group.</li></ol><h3>Summary</h3><p>Your head is probably swimming a bit from all the possibilities combined with all the caveats. That’s OK! Claims data is complex, and it takes time to get comfortable with it. The key is to understand the limitations of the data and to be careful about the conclusions you draw from it. In upcoming articles, we’ll explore what we do at Trilliant Health to systemically reduce the caveats and complexity in the data. Next up we’ll talk about the importance of a Provider Directory.</p><p>Happy analyzing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f769e579d3e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trilliant-health/an-introduction-to-claims-data-pt-2-where-the-wild-things-are-6f769e579d3e">An Introduction to Claims Data (part 2): Where the Wild Things Are</a> was originally published in <a href="https://medium.com/trilliant-health">The Trilliant Health Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Introduction to Claims Data]]></title>
            <link>https://medium.com/trilliant-health/an-introduction-to-claims-data-e123d68bbe39?source=rss-1269696f9075------2</link>
            <guid isPermaLink="false">https://medium.com/p/e123d68bbe39</guid>
            <dc:creator><![CDATA[Matt O'Neill]]></dc:creator>
            <pubDate>Thu, 08 Jun 2023 15:41:18 GMT</pubDate>
            <atom:updated>2023-06-09T14:25:04.631Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to a foundational, if lengthy, discussion of the essentials of healthcare claims data. The exchange of goods and services for payment is at the core of any economy, and claims are the glue that holds our healthcare system together. The entire health economy, from healthcare services, software, business models, insurance and so much more are <em>all</em> shaped and influenced by the concept of claims and the infrastructure surrounding them. Much like automobiles are intrinsically reflective of the infrastructure that supports them (roads, gas stations, etc), the healthcare economy is intrinsically reflective of the infrastructure that supports it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*__xxiui1YZb0O3D4rVQmXQ.png" /><figcaption>image generated by Midjourney — “watercolor of an onslaught of paper documents overwhelming doctors”</figcaption></figure><p>This may seem like an unglamorous and somewhat low-level topic of discussion, but I promise to keep things interesting. I will start with a brief history, then review some of the infrastructure that enables claims exchange, followed by a review of the data that is actually available. In our next article I will cover some difficulties that are common in datasets this large and then share a few use cases.</p><p>Let’s dive in…</p><h3>What, exactly, is a claim in the first place?</h3><p>A claim is a request for payment for services rendered. This definition applies broadly to the insurance industry, whether automotive insurance, life insurance, travel insurance, pet insurance… The list goes on. In health insurance, you, the insured party (also referred to as “beneficiary”, “enrollee”, “member”, “patient”, etc), receive a service from a provider (also referred to as “doctor”, “physician”, “hospital”, “clinic”, etc), and then either you or the provider submit a claim to the insurance company (also referred to as “payer”, “health plan”, “insurance carrier”, etc) for payment. These days, it is almost <em>always</em> the provider that submits the claim. The insurance company then adjudicates the submitted claim, and either pays the provider (the requested amount, or some portion of it), or denies the claim.</p><h3>When was this practice started?</h3><p>Insurance, abstractly, is just another form of gambling, which has been around as long as humans have. One party is taking a bet that something bad will happen, and the other party is taking a bet that it won’t.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*5wE5qzprbVKRDYYUpUN8Tw.jpeg" /><figcaption>Gary Larson’s “The Far Side”</figcaption></figure><p>There are records of insurance-like practices dating back to the 3rd and 2nd millennia BC, mostly around maritime shipping; the first insurer in America was Benjamin Franklin, who formed a fire insurance company in Philadelphia in 1752. <a href="https://account.ache.org/iweb/upload/Morrisey2253_Chapter_1-3b5f4e08.pdf">Here is a link</a> to the first chapter of “Health Insurance, 2nd Edition” by Michael A. Morrisey, which provides a nice summary of the history of health insurance in America. If you are interested in the background, I highly recommend reading the book (or at least the first chapter).</p><p>For our purposes, the current landscape of claims data really “started” on August 21, 1996, when the Health Insurance Portability and Accountability Act (HIPAA) was signed into law. While HIPAA is most commonly known for its privacy and security rules, it also established a set of standards for electronic healthcare transactions, including the electronic submission of claims. Before 1996, almost all claims submissions were performed via paper on either the <a href="https://medium.com/@matt.j.oneill/cms-1500-claim-form-reference-80df8c54f586">CMS form 1500</a> for professional claims, or the <a href="https://bluecare.bcbst.com/forms/5.cms1450-ub04.pdf">CMS form UB-04 </a>for institutional claims (we’ll talk about institutional vs professional in a moment).</p><p>The deadline for providers to transition from submitting paper to electronic claims was October 16, 2003, but most providers had already adopted electronic claims submission by 2000.</p><p>Notably, the deadline applied to CMS claim submissions, but not commercial claims submissions. The transition to electronic claims submission for commercial payers was much slower and is still ongoing today. Pragmatically, that means that <em>most</em> claims datasets have fairly poor coverage of commercial data prior to 2017. When examining claims data pre-2017, changes in dataset volumes tend to have more to do with the shift to electronic submission than changes in utilization.</p><h3>What does “claims submission” look like? How do you know if you’re capturing all of the data?</h3><p>You <em>don’t</em> know! We get that question all the time. There is no known denominator to calculate the percentage of claims that are in a dataset versus all the claims that have been submitted. Like cloud computing, healthcare delivery is massively distributed, with thousands of payers, millions of providers, and hundreds of millions of patients. Additionally, there are hundreds of software systems built to manage the exchange of claims, many dozens of clearinghouses to move them along their electronic journey, and all sorts of “custom” integrations that route data one way or another.</p><h3>Wait, what’s a clearinghouse? How do you actually get this data?</h3><p>When CMS mandated the switch to electronic claim submission in 2003, clearinghouses stepped in to fill the void of “delivery” of those electronic records (as opposed to the USPS). The issue for providers is that there are <em>thousands</em> of payers, and providers do not reasonably have the capability to adhere to each payer’s specific requirements around the submission. Clearinghouses solve that for the providers by acting as a “hub” for claim submissions; providers send all their claims to one place (the clearinghouse), and the clearinghouse will route the claim to the appropriate payer according to that payer’s specification. I’ll recommend reading <a href="https://www.trillianthealth.com/hubfs/Clearinghouses.pdf">this excellent summary</a> written by JM Sculley from <a href="http://www.clearinghouses.org/">clearinghouses.org</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dIM6vORVK85qgKyWRwW3cQ.png" /><figcaption>image generated by Midjourney — “a doctor trying to row a boat through an endless sea of paper in the style of Georgia O’Keeffe”</figcaption></figure><p>Clearinghouses provide additional value beyond claims routing: eligibility verification, electronic remittance advice, and rejection analysis are just a few. These are all compelling incentives to use a clearinghouse, despite the service fees that clearinghouses charge. <em>However</em>, not all providers use clearinghouses, and even within a single hospital system or a provider group, they may bifurcate their handling of claims based on the destination. For example, many large providers submit claims to CMS directly, while smaller ones might leverage a clearinghouse to do so. Similarly, if a hospital system has a large enough volume with a particular payer, they may arrange to submit to that payer directly, while using a clearinghouse for everything else.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d4Md7eQiw9jfv7TIxBpuug.png" /><figcaption>claims flow from patients -&gt; payers</figcaption></figure><p>Having aggregated <em>billions</em> of claims transactions, clearinghouses can generate additional revenue by licensing the aggregated datasets they have assembled, as can health plans. Additionally, several companies aggregate claims data from multiple clearinghouses, payers, and provider groups, normalize the data as best they can, and license it to other health economy stakeholders.</p><p>This is how big, national, many-billion-row claims datasets come into existence. They are not exhaustive, they are not perfect, and their “completeness” depends largely on clearinghouses’ and payers’ willingness to license access to the web of claims that flow between the providers, clearinghouses, and payers. Pragmatically, what this means is that a dataset might have an <em>excellent</em> representation of a specific hospital but a provider across the street might be completely absent. Or, even within a single facility, a particular service line or payer might be missing while the rest of the claims are present in totality.</p><p>Hopefully, this has cleared up some of the mystery surrounding where these massive datasets come from. Now that we’ve established where these massive, <em>de-identified</em> datasets come from, let’s dive into the data itself.</p><h3>Wait — what do you mean, de-identified?</h3><p>The datasets that we work with, and large claims datasets generally, are <em>de-identified</em>. This means that the datasets have been stripped of any information that could be used to identify a patient. We touched on this in the <a href="https://medium.com/trilliant-health/healthcare-datasets-213fcc022a1a">Care and Feeding of Healthcare Datasets</a> article, but let’s explore it in a little more depth.</p><p>First — there are two methods of de-identifying health information that comply with HIPAA: “Safe Harbor” and “Expert Determination”.</p><h4>Safe Harbor</h4><p>This method is quite comprehensive, guaranteed and deterministic. Detailed <a href="https://www.hhs.gov/hipaa/for-professionals/privacy/special-topics/de-identification/index.html#safeharborguidance">here</a>, it is essentially a list of redactions that must be made to the data that will result in no (or extremely low) risk of identification. One requirement of this method is especially burdensome for those of us who are leveraging these datasets for analytics.</p><blockquote><em>“All elements of dates (except year) for dates that are directly related to an individual, including birth date, admission date, discharge date, death date, and all ages over 89 and all elements of dates (including year) indicative of such age, except that such ages and elements may be aggregated into a single category of age 90 or older.”</em></blockquote><p>Obviously, the date of service is a critical piece of information for any analysis. The age requirements are less onerous but do manifest as “weird” age distributions in the data.</p><h4>Expert Determination</h4><p>This method is more complex, less clear, and based on statistical assessment rather than enumerated rules. The guidance is detailed <a href="https://www.hhs.gov/hipaa/for-professionals/privacy/special-topics/de-identification/index.html#guidancedetermination">here</a>. Essentially, a statistician will examine a dataset and redact data fields until there is a “very small risk” that any individual could be identified. While there is certainly more effort in de-identifying a dataset through expert determination, you will generally end up with a much <em>richer</em> dataset (including dates!) than if you follow the safe harbor method.</p><h4>Patient Tokenization</h4><p>This brings us to <em>patient tokenization</em>. Even if you’ve chosen to de-identify a dataset through expert determination, you will still have to redact certain fields to achieve a level of risk of re-identification that qualifies as “very small”. Name, date of birth, gender and street address are among those that almost certainly must be masked. <em>However</em>, maybe there is a way we can have our cake and still eat it? Yes! We can concatenate a patient’s information into a long sentence, run that through an <a href="https://en.wikipedia.org/wiki/Secure_Hash_Algorithms">irreversible hashing mechanism</a>, and now we have an identifier that is both <em>statistically unique</em> and <em>deterministically generated</em>.</p><p>What that means in plain English is that if both Big Clearing House A, and Bigger Clearing House B have data for Matthew ONeill, born 1/1/1896, they can both generate the <em>same patient identifier</em>, so that the datasets can be both de-identified <em>and</em> linked. This is a critical step in the process of aggregating claims data from multiple sources.</p><pre>var token1 = &quot;Matthew&quot; + &quot;ONeill&quot; + &quot;18960101&quot; + &quot;M&quot;;<br>// output: &quot;MatthewONeill18960101M&quot;<br><br>HASH(token1, key)<br>// output: 5f4dcc3b5aa765d61d8327deb882cf99</pre><p>What must be coordinated between the two parties hashing the token, however, is the “key” that is passed to the hashing mechanism. The current dominant player in this space is <a href="https://www.datavant.com/">Datavant</a>, whose business is organized around this concept. They have a <a href="https://www.trillianthealth.com/hubfs/Datavant_Matching-Accuracy-Whitepaper.pdf">good white paper</a> that goes into the detail of tokenization a bit more.</p><p>One thing their paper doesn’t address is the problem of “splits” in the patient space. To illustrate this problem, imagine how many variations my last name can be misspelled (ONeil, O”Neill, Neill, Neil, ONeal). I have experienced all these variations, and quite a few more. Because the patient’s last name is a component of the token, if two hospitals spell my name differently (and they will) then two different tokens will be generated! This is a problem that is not easily solved and is often a source of frustration for those of us who work with these datasets extensively. The reality, however, is that the claims volume associated with these “splits” is comparatively small, making it a manageable problem once you are aware of it.</p><h3>Now that we know where claims come from, what is on them?</h3><p>Perhaps counterintuitively, the easiest way to walk through the available data on a claim is through the lens of the paper form. The X12 837 specification is complex, and it is easy to get lost in the detail of loops, segments, and elements. The paper form, pictured below, is far more intuitive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*Hofodl_5gHtp7pnfPyJtaw.png" /><figcaption>CMS 1500 Claim Form</figcaption></figure><p>If want to know more, I have included a field-by-field overview of the CMS 1500 form <a href="https://medium.com/trilliant-health/cms-1500-claim-form-reference-80df8c54f586">here</a>. If you are new to claims data, I suggest skimming through it for a sense of what is available.</p><p>At a high level, a claim contains the following:</p><ul><li>Patient demographics</li><li>Patient diagnoses</li><li>Rendering, referring, and billing provider information</li><li>Procedures that were performed</li><li>A site of service address</li><li>A billing address</li></ul><h3>OK, but the paper form has largely been deprecated; what is the electronic format?</h3><p>Claims are submitted in ANSI ASC X12N 837 format. What does that mean? Let’s break it down:</p><ul><li>ANSI: American National Standards Institute</li><li>ASC: Accredited Standards Committee</li><li>X12N: Insurance section of ASC X12 for the health insurance industry’s administrative transactions</li><li>837: Standard format for transmitting health care claims electronically</li></ul><p>There are oceans of ink spilled on the electronic specification; here are a few useful links:</p><ul><li><a href="http://www.stedi.com/">Stedi</a> provides a very useful <a href="https://www.stedi.com/edi/x12/transaction-set/837">reference</a> and <a href="https://www.stedi.com/edi/inspector">EDI inspector</a> (registration required).</li><li><a href="https://www.cms.gov/files/document/837p-cms-1500pdf">CMS overview of the relationship between the 837 and the CMS 1500</a></li><li><a href="http://www.nucc.org/images/stories/PDF/1500_claim_form_map_to_837P_2012_02.pdf">NUCC mapping from the 1500 form to 837 format</a></li></ul><p>There are three types of 837 transactions: 837P, 837I, and 837D. The “P” stands for “professional”, the “I” stands for “institutional”, and the “D” stands for “dental”. We’ll focus on the “P” and “I” transactions, as they are the most common and most relevant to our work.</p><p>Whether an 837P or 837I is submitted is determined by the <em>organization type</em>, not by the <em>service provided</em>. If the organization or individual is a physician, practitioner, or supplier, they should submit an 837P. If the organization is an institutional provider, it should submit an 837I.</p><p>On page three of CMS’s <a href="https://www.cms.gov/files/document/837I-Form-CMS-1450-MLN006926.pdf">837I fact sheet</a> is a list of institutional provider types that <em>should</em> be submitting an 837I.</p><p>That list is replicated here for convenience:</p><ul><li>Hospitals</li><li>Skilled Nursing Facilities (SNFs)</li><li>ESRD providers</li><li>Home Health Agencies (HHAs)</li><li>Hospice Organizations</li><li>Outpatient Physical Therapy/Occupational Therapy/Speech Pathology Services</li><li>Comprehensive Outpatient Rehabilitation Facilities (CORFs)</li><li>Community Mental Health Centers (CMHCs)</li><li>Critical Access Hospitals (CAHs)</li><li>Federally Qualified Health Centers (FQHCs)</li><li>Histocompatibility Laboratories</li><li>Indian Health Service (IHS) Facilities</li><li>Organ Procurement Organizations</li><li>Religious Non-Medical Health Care Institutions (RNHCIs)</li><li>Rural Health Clinics (RHCs)</li></ul><p>Now, you may be wondering about ASCs (ambulatory surgery centers), FSEDs (free-standing emergency departments), and UCCs (urgent care centers). They are all somewhat of a special case, from which claims are often submitted as an 837P, even though they are technically institutional providers. The reason is that these facilities are often owned by physicians and frequently billed as if they were physician offices. This is a bit of a grey area, and you’ll see different payers handle this differently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cvTLFPfiRmsihUtBjwkUKA.png" /><figcaption>image generated by Midjourney — “a surrealist paper claims form”</figcaption></figure><h3>OK — we know what a claim looks like and where they come from. What can we do with them?</h3><p>A <em>lot</em>. There are an almost endless number of different analyses that are enabled through claims data, especially if you are viewing this data through the lens of a healthcare provider, payer, or working in life sciences. Having an understanding of <em>how</em> and <em>why</em> a dataset comes into existence is important when thinking through what insights you can glean from it.</p><p>Your head might be swimming with all the possibilities, and that’s OK! This is a lot to digest, so in the next article we’ll cover data caveats and some introductory use cases.</p><p>Happy analyzing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e123d68bbe39" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trilliant-health/an-introduction-to-claims-data-e123d68bbe39">An Introduction to Claims Data</a> was originally published in <a href="https://medium.com/trilliant-health">The Trilliant Health Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CMS 1500 Claim Form Reference]]></title>
            <link>https://medium.com/trilliant-health/cms-1500-claim-form-reference-80df8c54f586?source=rss-1269696f9075------2</link>
            <guid isPermaLink="false">https://medium.com/p/80df8c54f586</guid>
            <dc:creator><![CDATA[Matt O'Neill]]></dc:creator>
            <pubDate>Thu, 08 Jun 2023 15:38:42 GMT</pubDate>
            <atom:updated>2023-06-08T16:34:00.443Z</atom:updated>
            <content:encoded><![CDATA[<p>The <a href="https://www.trillianthealth.com/hubfs/Sample-1500_2012_02.pdf">CMS 1500 form</a> is the standard form used by healthcare providers to submit claims to insurance companies for reimbursement. Most of what is described below is available in NUCC’s <a href="https://www.nucc.org/images/stories/PDF/1500_claim_form_instruction_manual_2022_07-v10a.pdf"><em>1500 Health Insurance Claim Form Reference Instruction Manual</em></a>, but we’ve attempted to make it a bit more digestible and relevant to analytics (vs claims submission). While most claims are now submitted electronically, it is easier to understand the dataset when viewed through the lens of the traditional paper form.</p><h3>Insured Information</h3><p>These fields provide information about the insured party (and the patient, if the patient is the insured party). We’ll refer to the “insured party” as the “member” going forward.</p><p>Field 1 and 1a provide the type of health insurance coverage and the member&#39;s identification number, if available. Typically, the vast majority of claims will be Medicare, Medicaid, or Group Health Plan. Tricare and CHAMPVA are military health insurance programs. Black Lung is a federal program that provides coverage for miners with black lung disease. Other is a catch-all for other types of insurance.</p><p>Field 4 is the member&#39;s name, field 7 is the member&#39;s address, and field 11 is the policy group (the group number on your insurance card).</p><p>Field 11.a is the member&#39;s date of birth, 11.c is the insurance plan name, and 11.d is whether the member has other health insurance coverage (typically a Medicare supplement plan).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pcgEbSg_KtOwpo6m4fPW7A.png" /></figure><h3>Patient Information</h3><p>Field 2 is the patient&#39;s name, field 3 is the patient&#39;s date of birth and sex, and field 5 is the patient&#39;s address. Field 6 is the patient&#39;s relationship to the insured member.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wUTvqzQlaxwNq2DFr7Bt6g.png" /></figure><h3>Cause of Injury</h3><p>This section is relatively straightforward, and identifies the setting of the accident which might determine ultimate responsibility for payment (worker’s compensation for an injury related to employment, or another driver&#39;s insurance in the case of an automobile accident). Field 10.a is whether the injury was related to employment, field 10.b is whether the injury was related to an automobile accident, and if so what state it took place in, and field 10.c is the catch-all &quot;other accident&quot; category.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*6zrRI8ESB9b0fD0k__l71w.png" /></figure><h3>Other Insurance</h3><p>If field 11.d (&quot;Is there another health benefit plan?&quot;) was answered in the affirmative, then this section is used to provide information about that plan. Field 9 is the supplemental plan&#39;s member name, and fields 9.a and 9.d are the supplemental plan&#39;s group number, and plan name, respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*aUSIgZv_dWu1JBNgffphKA.png" /></figure><h3>Signatures</h3><p>Fields 12 and 13 are signatures from the patient and insured member (we certainly don&#39;t receive these on the electronic version)!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oCoG9H_EtEobuC4x-4eO4A.png" /></figure><h3>Encounter Level Information</h3><p>Now that we’re past the <em>who is the patient</em> and <em>who is going to pay for it</em> questions, we get into the meat of the claim. This section describes “header” level information, such as referrals and various dates associated with the claim.</p><p>Field 14 describes the first date <em>of the current illness</em>. NOT the date of service, but the day reported by the patient as the start of the illness.</p><p>Field 15 is an opportunity to document some other date related to the illness, and has a qualifier associated with it.</p><p>Applicable qualifiers are reproduced below for convenience:</p><pre>* 454 - Initial Treatment<br>* 304 - Latest Visit or Consultation<br>* 453 - Acute Manifestation of a Chronic Condition<br>* 439 - Accident<br>* 455 - Last X-ray<br>* 471 - Prescription<br>* 090 - Report Start (Assumed Care Date)<br>* 091 - Report End (Relinquished Care Date)<br>* 444 - First Visit or Consultation</pre><p>Field 16 is filled in if the patient is employed and unable to work in their current condition. If this is filled in, it is usually indicative of a worker&#39;s compensation claim.</p><p>Field 17 is where we find referring provider information. There is a qualifier associated with this field:</p><pre>* DN - Referring Provider<br>* DK - Ordering Provider<br>* DQ - Supervising Provider</pre><p>Field 17.a is reserved for an &quot;other&quot; identifier, with a qualifier to describe what that identifier is:</p><pre>* 0B - State License Number<br>* 1G - Provider UPIN Number<br>* G2 - Provider Commercial Number<br>* LU - Location Number (This qualifier is used for Supervising Provider only.)</pre><p>Field 17.b is the NPI of the provider specified in field 17.</p><p>Field 18 is the hospitalization date range, if applicable. These dates are also referred to as the &quot;admit and discharge&quot; dates, and their presence indicates that the claim is for an inpatient stay.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pr0eaLdIY3WujkXknboZgA.png" /></figure><h3>Diagnosis Information</h3><p>Field 19 is for &quot;additional claim information&quot;. There is a long section in the NUCC manual about what information <em>could</em> show up in this field, and it can be somewhat tantalizing to think about the possibilities. In practice, this field is rarely used.</p><p>Field 20 is filled out if services were provided by an entity <em>other</em> than the billing provider. If Yes is selected, the charge section must be filled in as well.</p><p>Field 21 is the diagnosis list. You specify the ICD version either 9 or 10 in the ICD Ind. section. This is a list of up to 12 diagnosis codes; interestingly enough, there is no guidance from NUCC as to the <em>order</em> of the codes in this list. In practice, the first code is usually the primary diagnosis, and the rest are secondary diagnoses, and this order can affect the level of reimbursement for the claim.</p><p>Field 22 is for resubmitted claims. The resubmission code should be either 7 - Replacement of prior claim or 8 - Void/cancel of prior claim. The original claim number should be provided in the Original Ref. No. field.</p><p>Field 23 is for prior authorization numbers, if the payer has already authorized the procedures being performed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UxiVRke6x_SDkcyYSDBEqA.png" /></figure><h3>Procedure Level Information</h3><p>Finally, we have the meat of the claim. Field 24 collects dates of service, place of service, procedure codes, charges, and rendering provider information.<br>Let&#39;s look at each part in detail.</p><p>Field 24.a is the date(s) of service. Often a single date, but can be a range of dates.</p><p>Field 24.b contains the place of service code set, which is a list of 2-digit codes that describe the setting in which the service was performed. The full list of codes is available <a href="https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set.html">here</a>.</p><p>Field 24.c identifies if the procedure was an &quot;emergency&quot;. The definition of &quot;emergency&quot; can differ by payer contract or state and federal regulation.</p><p>Field 24.d is for the procedure code and any corresponding modifiers.</p><p>Field 24.e is the diagnosis pointer for the procedure listed in 24.d. It relates the procedure performed to one or more diagnoses listed in field 21.</p><p>Field 24.f is the charge for the procedure listed in 24.d. Remember this is the <em>charge</em> amount, not the <em>reimbursed</em> amount. The charge amount, frankly, is often so different from the reimbursed amount as to be almost meaningless.</p><p>Field 24.g is the number of days or units for the procedure listed in 24.d. If it is days being listed, the number of days <em>should</em> match the date range in field 24.a.</p><p>Field 24.h is utilized if there is a requirement to report the service as part of a family planning service; otherwise, it is left blank.</p><p>Field 24.i is a qualifier for field 24.j, which is a rendering provider identifier. The qualifier can be one of the following:</p><pre>* 0B - State License Number<br>* 1G - Provider UPIN Number<br>* G2 - Provider Commercial Number<br>* LU - Location Number<br>* ZZ - Provider Taxonomy</pre><p>Field 24.j also contains the rendering provider&#39;s NPI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LIz3nygHWKnvSen2mWs0Bg.png" /></figure><h3>Provider and Site of Service Information</h3><p>Here we wrap up the claim with a few very important pieces of information.</p><p>Field 25 is the tax number of the billing provider, usually an EIN but sometimes an SSN for a sole proprietor.</p><p>Field 26 is the patient&#39;s account number with the billing provider. This is usually the patient&#39;s medical record number.</p><p>Field 27 is the acceptance of assignment indicator. This is a Y or N field that indicates if the provider accepts assignment for the claim. If Y is selected, the provider agrees to accept the payment from the payer as payment in full. If N is selected, the provider may bill the patient for any amount not paid by the payer.</p><p>Field 28 contains the sum of all charges from field 24.f.</p><p>Field 29 is the amount the patient has already paid for services described in field 24.</p><p>Fields 30 and 31 are reserved for NUCC use, and the provider signature, respectively.</p><p>Field 32 is a crucially important field - the site of service where services were rendered. The address where the procedures took place should be entered in field 32; if the Service Location NPI is <em>different from the Billing Provider NPI</em>, then the Service Location NPI should be entered in field 32.a. Field 32.b provides an opportunity for another, non-NPI identifier for the service location.</p><p>Field 33 collects the billing provider&#39;s address; similar to field 32, 33.a holds the billing provider&#39;s NPI, and 33.b is for an additional identifier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZiuAdzG1i6RXuMbZDGVXdQ.png" /></figure><h3>Summary</h3><p>The CMS 1500 form is complex, and it’s easy to see how errors can be made during submission! However, it contains a wealth of data that can be used for an endless variety of analyses. Please take a look at our <a href="https://medium.com/p/74a2c000a0f5">article on using claims data</a> for more insight.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80df8c54f586" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trilliant-health/cms-1500-claim-form-reference-80df8c54f586">CMS 1500 Claim Form Reference</a> was originally published in <a href="https://medium.com/trilliant-health">The Trilliant Health Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Healthcare Data Glossary]]></title>
            <link>https://medium.com/trilliant-health/healthcare-data-glossary-61c93aff6e71?source=rss-1269696f9075------2</link>
            <guid isPermaLink="false">https://medium.com/p/61c93aff6e71</guid>
            <dc:creator><![CDATA[Matt O'Neill]]></dc:creator>
            <pubDate>Thu, 08 Jun 2023 15:38:23 GMT</pubDate>
            <atom:updated>2023-06-08T16:32:24.500Z</atom:updated>
            <content:encoded><![CDATA[<h3>Centers for Medicare and Medicaid Services (CMS)</h3><p>CMS is the federal agency that administers the Medicare program, works with state governments to administer Medicaid, and is responsible for establishing standards for the Healthcare Industry.</p><h3>Coding</h3><p>In medicine, coding refers to the translation of medical diagnoses, procedures, and equipment into universally-understood alphanumeric codes.</p><h3>Electronic Medical Record (EMR)</h3><p>An EMR is the digitized version of an individual’s health records. It includes a history of interactions between an individual and their healthcare providers, and is used by the healthcare providers to have a holistic view of an individual’s health.</p><h3>Health Insurance Portability and Accountability Act (HIPAA)</h3><p>HIPAA is a 1996 Federal Act that sets rules on how personally identifiable medical information is handled by entities in the healthcare field.</p><h3>National Provider Identifier (NPI)</h3><p>A unique identifier assigned to a provider by CMS. This number must be used by all healthcare providers and all payers. There are two types of NPIs:</p><h4>1) Type I NPI</h4><p>A Type I NPI represents an individual. This can be a doctor, dentist, pharmacist, therapist, among others.</p><h4>2) Type II NPI</h4><p>A Type II NPI represents an organization. This can be a hospital, laboratory, home health agency, ambulance company, among others.</p><h3>Payer</h3><p>The organization who pays the bill for the healthcare of a covered individual. We typically think of a payer as a commercial insurance company, but it can also be Medicare, Veterans Affairs, Worker’s Compensation, among others.</p><h3>Taxonomy</h3><p>A taxonomy is an alphanumeric code that describes the specialty of a provider.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61c93aff6e71" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trilliant-health/healthcare-data-glossary-61c93aff6e71">Healthcare Data Glossary</a> was originally published in <a href="https://medium.com/trilliant-health">The Trilliant Health Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Healthcare Datasets]]></title>
            <link>https://medium.com/trilliant-health/healthcare-datasets-213fcc022a1a?source=rss-1269696f9075------2</link>
            <guid isPermaLink="false">https://medium.com/p/213fcc022a1a</guid>
            <category><![CDATA[healthcare-analytics]]></category>
            <category><![CDATA[healthcare-data]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[healthcare-technology]]></category>
            <category><![CDATA[healthcare]]></category>
            <dc:creator><![CDATA[Matt O'Neill]]></dc:creator>
            <pubDate>Tue, 16 May 2023 14:46:50 GMT</pubDate>
            <atom:updated>2023-05-16T15:07:09.985Z</atom:updated>
            <content:encoded><![CDATA[<h3>Care and Feeding of Healthcare Datasets</h3><p>Healthcare data sources are so varied and diffuse that the first question to ask has nothing to do with the data at all; instead, it is vital that we understand the <em>problem</em> we are trying to solve. Only then can we begin to assemble a dataset that will enable us to answer the questions we may have. At Trilliant Health, our questions are fundamental: <em>who</em> is doing <em>what</em> to <em>whom</em>, <em>where</em> did it happen and <em>how much</em> did it cost?</p><figure><img alt="image generated by Midjourney — “a watercolor of a person looking at a field of databases”" src="https://cdn-images-1.medium.com/max/1004/1*8J6HZpZs3fKal8ubVlOtoA.png" /><figcaption>image generated by Midjourney — “a watercolor of a person looking at a field of databases”</figcaption></figure><p>That is a question that is simultaneously specific and broad: how can I track a patient’s total cost of care, analyze a specific physician’s referrals, or determine procedure volumes at a single facility? At the same time, how can I find the median cost of care for a <em>cohort</em> of patients, or analyze network patterns for a <em>group</em> of physicians, or determine procedure volumes for <em>all</em> facilities in a market?</p><p>There are fundamentally two different sets of data that can be used to answer these questions: clinical data and claims data. It is important to note that both of these datasets are not the activity itself; instead, they are <em>evidence</em> that the activity happened. They should be viewed as a sort of fossil record or exhaust of the healthcare engine.</p><p>Clinical data is generated by an EMR system, generally at the point of care. The clinical dataset might have physician and nurse notes, lab results, imaging interpretations and other information generated by the provider. It likely has procedure codes and diagnosis codes related to a patient as well, but not necessarily billing or remittance information. Most importantly, we should understand that the clinical dataset is likely limited to a single facility or at best a large hospital system. While you may have complete visibility of what happened at that particular location, there is still no visibility into that patient’s activity at another facility or a surgeon’s case volume at another hospital.</p><blockquote>… claims data almost always leaves the four walls of the facility, because the provider wants to be reimbursed for the care they provided.</blockquote><p>Claims data, instead of being a by-product of the patient/provider interaction, is a by-product of the billing process: claims are submitted from a provider to a payer and remitted from the payer back to the provider. Setting aside the content variation between claims and clinical data, the fundamental difference between the two is that <em>claims data almost always leaves the four walls of the facility, because the provider wants to be reimbursed for the care they provided</em>. Because claims data has to flow from a provider -&gt; payer -&gt; provider, the datasets are not segregated by facility but are instead available at a market level.</p><figure><img alt="Comparison of data attributes in claims and clinical datasets" src="https://cdn-images-1.medium.com/max/694/1*oaAzWOqRieX_axM2c6S8WQ.png" /><figcaption>Comparison of data attributes in claims and clinical datasets</figcaption></figure><p>We’ll take a much deeper dive into claims data, where it can be sourced, and the nuances of it in a later article: “What, exactly, is Claims Data?”. For now, suffice it to say that claims data helps us answer a few of our fundamental questions: <em>who</em> is doing <em>what</em> to <em>whom</em>, and <em>where</em> did it happen (we’ll talk about the “<em>how much did it cost?</em>” part in a later article when we get to Health Plan Price Transparency data). Claims data can help us answer those questions because providers want to be paid for the services they render. To receive payment, a provider must submit a claim to a payer, and the payer will almost always require at least four key pieces of information:</p><ul><li>who is the beneficiary (the patient on the claim),</li><li>who provided the service (a type 1 NPI or type 2, hopefully, both),</li><li>what service was provided (CPT, HCPCS, ICD, etc.) and</li><li>when the service was provided (date of service).</li></ul><p>If we’re lucky, there is more information available as well, such as a billing address, facility address, diagnosis codes, place of service codes and much more. But we can almost always rely on those four pieces of information to be present, because the provider wants to be reimbursed.</p><p>At Trilliant Health, the vast majority of our products are built using claims datasets. We strive to understand market and population level analyses; we want to answer questions about healthcare economics and strategy – this requires datasets that cross the boundaries of facilities and health systems.</p><p>Now that we’ve established why we use claims data, and that claims data almost always has a core set of data, let’s talk about how we can use those pieces of information to answer our fundamental questions.</p><h3><strong>Who did it?</strong></h3><p>This question is answered by NPIs present on a claim. NPI stands for <em>National Provider Identifier</em> and is a unique identifier assigned to a provider by CMS. This became the standard in 2004, with the passage of HIPAA.</p><p>CMS provides an <a href="https://www.cms.gov/Outreach-and-Education/Medicare-Learning-Network-MLN/MLNProducts/downloads/NPI-What-You-Need-To-Know.pdf">NPI FAQ</a> that I would encourage you to read, but the important pieces of information are summarized below:</p><ol><li><em>All healthcare providers who are HIPAA-covered entities, whether individuals or organizations, must get an NPI.</em></li><li><em>Covered healthcare providers, all health plans and healthcare clearinghouses must use NPIs in their administrative and financial transactions.</em></li></ol><p>So – every provider <em>must</em> have an NPI, and those NPIs <em>must</em> be used in administrative and financial transactions (i.e., claims data). Great! So now that we have an NPI, how do we translate that into a person or an organization? CMS manages the issuance and dissemination of NPIs through <em>NPPES</em>, the “National Plan and Provider Enumeration System”. This system allows you to search individual NPIs (<a href="https://npiregistry.cms.hhs.gov/search">search here</a>), or to download a dataset of all NPIs (<a href="https://download.cms.gov/nppes/NPI_Files.html">here</a>).</p><p>There are two categories of providers in the NPI enumeration system. <br><em>Type 1</em> (Individual) and <em>Type 2</em> (Organization). Generally, you can think of a Type 1 NPI as a person: a physician, nurse, pharmacist, or physical therapist, for example. However, a Type 1 NPI could also represent an entity formed as a Sole Proprietor, which can cause confusion at times.</p><figure><img alt="Examples of Type 1 and Type 2 NPIs" src="https://cdn-images-1.medium.com/max/1024/1*FNU9vC8gZ6mKTvC15VaIhw.png" /><figcaption><em>Examples of Type 1 and Type 2 NPIs</em></figcaption></figure><p>Similarly, you can think of a Type 2 NPI as an organization. An organization could have a single employee (an incorporated individual) or thousands. To make things a little more complex, an organization can have “subparts”, which aren’t legal entities themselves but may conduct transactions on their own. These subparts will be assigned their own NPI. Finally, we all know that corporate structure can be as simple or complex as the corporation desires. A large, national hospital chain may end up with many separate legal entities, with many subparts within each entity. This is how you end up with a single “entity” that the general public views as a monolith (HCA, UHS, etc.) having hundreds or <em>thousands</em> of Type 2 NPIs associated with it. We’ll dive into this topic much deeper when we talk about the need for a Provider Directory.</p><p>So, NPPES can help us translate an NPI into a person or organization; it can also provide other pieces of information:</p><ol><li>a <a href="https://taxonomy.nucc.org/">Taxonomy</a> (in short, the provider’s specialty) for that Type 1 or Type 2 NPI.</li><li>a practicing status (active or inactive).</li><li>a primary and secondary practice address.</li><li>a <em>last updated date</em>.</li></ol><p>Let’s take a look at that last item, no. 4. If you read the <a href="https://www.cms.gov/Outreach-and-Education/Medicare-Learning-Network-MLN/MLNProducts/downloads/NPI-What-You-Need-To-Know.pdf">NPI FAQ</a> (you did, didn’t you?), you might have noticed that it was <em>never</em> specified that a provider or entity must update their information on a specific frequency, <em>or at all</em>.</p><p>For example, let’s select a random provider: Dr. Nicole S Gunasekera, NPI: 1457889909. If you take a look at <a href="https://npiregistry.cms.hhs.gov/provider-view/1457889909">her NPPES record</a>, it hasn’t been updated since <em>2017</em>. <em>Maybe</em> that taxonomy is still correct, and <em>maybe</em> Dr. Gunasekera still practices at the listed primary or secondary practice addresses, but I wouldn’t put much faith in it. In fact, I would put very little faith in it — a quick Google search shows that Dr. Gunasekera is now a Dermatologist practicing at Brigham Dermatology Associates; she completed her internship at Beth Israel Deaconess (which happens to be the address listed in her NPPES record), and she certainly does <em>not</em> have a primary taxonomy of “Student in an Organized Health Care Education” anymore.</p><figure><img alt="Dr. Nicole Gunasekera’s entry in NPPES" src="https://cdn-images-1.medium.com/max/1024/1*iYZ4wqJmHrOgQBTWWvzyCQ.png" /><figcaption>Dr. Nicole Gunasekera’s entry in NPPES</figcaption></figure><p>Again, we’ll talk about this more in our Provider Directory article in the future. So, now that we can gather some information about <em>who</em> provided care (both the individual and the organization), let’s move on to <em>what did they do</em>?</p><h3><strong>What did they do?</strong></h3><p>This question is answered by the procedure codes that are included on the claim submission. There are a few different datasets for “procedure” codes, and the likelihood of seeing a particular set depends on the type of service provided and the setting of care.</p><figure><img alt="created by Midjourney — “a naturalist illustration of a healthcare database”" src="https://cdn-images-1.medium.com/max/1024/1*AA1wBxrWmqAv-uJ7bvlIMg.png" /><figcaption>image created by Midjourney — “a naturalist illustration of a healthcare database”</figcaption></figure><p><strong>CPT</strong></p><p><a href="https://www.aapc.com/resources/medical-coding/cpt.aspx">Current Procedural Technology</a> (CPT) codes describe outpatient procedures. CPT and its contents are trademarked by the American Medical Association (AMA). The AMA publishes data files on a quarterly basis. The data files include codes with their respective long, medium and short descriptions. If you are interested in a deeper dive, the AAPC provides a great overview of CPT at the link above; meanwhile, we’ll cover the highlights.</p><p>There are three categories of CPT codes, however, the <em>vast</em> majority of codes you encounter in the wild will be category 1.</p><ul><li>Category I: commonly used by providers to report their services and procedures.</li><li>Category II: supplemental tracking codes used for performance management.</li><li>Category III: temporary codes used to report emerging and experimental services and procedures.</li></ul><p>CPT codes are bucketed into <em>ranges</em> based on the type of service provided, as opposed to hierarchical levels like ICD-10 codes (which we’ll talk about in a minute).</p><ol><li>Evaluation &amp; Management (99202–99499)</li><li>Anesthesia (00100–01999)</li><li>Surgery (10021–69990)</li><li>Radiology Procedures (70010–79999)</li><li>Pathology and Laboratory Procedures (80047–89398)</li><li>Medicine Services and Procedures (90281–99607)</li></ol><p>Temporary codes show up in category III and are depicted with four numbers and the letter “T” (e.g., <em>0001T</em>). This is where you should be looking for new procedures that are being introduced into the market, and they can live as a temporary code for a number of years before the AMA moves them (or not) into a permanent category.</p><p>CPT codes are assigned (naturally) at the procedure level, not the claim level, so you will often see multiple CPT codes on a single claim.</p><p><strong>DRGs</strong></p><p>DRG stands for Diagnosis Related Groups. DRG is a system of classifying a patient’s hospital stay into various groups in order to facilitate payment of services. DRG codes come from two systems, Medicare Severity (MS-DRG, managed by CMS <a href="https://www.cms.gov/Medicare/Medicare-Fee-for-Service-Payment/AcuteInpatientPPS/MS-DRG-Classifications-and-Software">here</a>), and All Patient Refined (APR-DRG, managed by 3M <a href="https://apps.3mhis.com/docs/Groupers/All_Patient_Refined_DRG/apr390_DRG_descriptions.txt">here</a>). MS-DRG codes are 3-digit. APR-DRG codes are 4-digit, with the first 3 digits corresponding to diagnoses/procedures (like a normal DRG code) and the final digit signifying severity in the range of 1–4 (1 = least severe, 4 = most severe). DRGs from either system are likely to show up on institutional claims only, and are assigned at the claim level, not the procedure level.</p><p><strong>ICD-10-PCS</strong></p><p><a href="https://www.cms.gov/medicare/icd-10/2023-icd-10-pcs">ICD-10-PCS</a> is a classification system that is used for coding procedures and services provided in the inpatient setting of hospitals. Not to be confused with ICD-10-CM diagnosis codes, these are procedure codes. The presence of an ICD-10-PCS code instead of, or in combination with, a DRG code is largely driven by the contracts between the payer and the provider, and what the payer wants to see on the claim. ICD-10-PCS codes are only used in inpatient and hospital settings.</p><p><strong>Revenue Codes</strong></p><p>Revenue codes (managed by the National Uniform Billing Committee, or <a href="https://www.nubc.org/">NUBC</a>, reference <a href="https://med.noridianmedicare.com/web/jea/topics/claim-submission/revenue-codes">here</a>), are also used almost exclusively in inpatient and hospital settings. These codes are used to indicate the department or place in which a procedure or treatment is performed — an emergency room, operating room, or some other department. This information can be useful when trying to determine if the claim is related to an inpatient stay, for example.</p><p><strong>HCPCS</strong></p><p><a href="https://hcpcs.codes/">HCPCS</a> codes classify outpatient medical supplies, equipment, medications and services not included in CPT. <a href="https://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets/Alpha-Numeric-HCPCS">HCPCS data files</a> come from the Centers for Medicare &amp; Medicaid Services (CMS) on an annual basis. The data files include long/short descriptions along with internal (sub-)categories.</p><h3><strong>Who did they do it to?</strong></h3><p>The <em>who</em> of a claim is determined by a patient’s demographic information (name, date of birth, address, etc.). However, we deal exclusively with claims data that has been de-identified through the expert determination method defined <a href="https://www.hhs.gov/hipaa/for-professionals/privacy/special-topics/de-identification/index.html#guidancedetermination">here</a>. If we redact that information, how can we link claims within a patient? We generate an irreversible hash (a token, or identifier) for each patient <em>from</em> their demographic information, and we use that. We’ll talk about that process in more detail in the “<em>What is Claims Data?</em>” article; for now, rest assured we have an identifier that is <em>generally</em> unique to a patient, so while we don’t know who a patient is, we <em>can</em> track their longitudinal care across providers and organizations.</p><p>Some other information that exists on the claim can give us clues about the “<em>who</em>”: the claim filing indicator code and the diagnosis codes.</p><p><strong>Claim Filing Indicator Codes</strong></p><p>These codes can give us an idea of the type of coverage a patient has, which can give some context surrounding the claim. There aren’t many of these codes, so we’ll just list them here:</p><pre>+----+-----------------------------------------------------+<br>|            Claim Filing Indicator Codes                  |<br>+----+-----------------------------------------------------+<br>| 09 | Self-pay                                            |<br>| 11 | Other Non-Federal Programs                          |<br>| 12 | Preferred Provider Organization (PPO)               |<br>| 14 | Exclusive Provider Organization (EPO)               |<br>| 15 | Indemnity Insurance                                 |<br>| 16 | Health Maintenance Organization (HMO) Medicare Risk |<br>| BL | Blue Cross/Blue Shield                              |<br>| CH | CHAMPUS                                             |<br>| CI | Commercial Insurance Co.                            |<br>| HM | Health Maintenance Organization                     |<br>| MA | Medicare Part A                                     |<br>| MB | Medicare Part B                                     |<br>| MC | Medicaid                                            |<br>| OF | Other Federal Program                               |<br>| VA | Veterans Affairs Plan                               |<br>| WC | Workers Compensation Health Claim                   |<br>+----+-----------------------------------------------------+</pre><p><strong>ICD-10-CM codes</strong></p><p>ICD-10-CM is the 10th version of the International Classification of Diseases, which is a medical classification list developed by the CDC under the authorization of the World Health Organization (WHO). Here is a great FAQ on ICD-10-CM from the WHO <a href="https://www.who.int/classifications/icd/faq/en/">here</a>. What is important from a dataset perspective is that ICD-10-CM is a classification of a patient’s <em>condition</em> or <em>diagnosis</em>, and not of a procedure performed on them. ICD-10-CM codes are assigned at the claim level, not the procedure level and generally are listed in order of importance, with the first code being the primary diagnosis, the second code being the secondary diagnosis and so on.</p><h3><strong>Where did they do it?</strong></h3><p>Finally, we have the “<em>where</em>” of a claim, which can be determined in a number of ways. If we are lucky, the claim will have both a site of service address (also called a “facility” address) <em>and</em> a billing address.</p><figure><img alt="created by Midjourney — “an ambulance at a hospital with a doctor in the style of monet”" src="https://cdn-images-1.medium.com/max/1024/1*6Lt1cvygFwUQgDfPqS-VOw.png" /><figcaption>image created by Midjourney — “an ambulance at a hospital with a doctor in the style of Monet”</figcaption></figure><p>However, even if we have both of those, we cannot always trust them. Depending on the type of claim, the procedure and administrative practices, both of those addresses may be “correct”, but misleading. For example, a professional bill from a surgeon may simply list an administrative office in both address fields, but not the hospital address where the procedure was performed (you could expect that on the institutional bill). Another example is a radiologist performing a remote interpretation of a CT scan; the “site of service” might be an office location a thousand miles away from where the scan took place, but the patient was never physically there! If you ignore these complications completely, you still have issues where the address provided may be a hospital campus or a multi-office building, which can be hard to know specifically which entity to attribute volume for that claim to.</p><p>There are, however, a number of fields on a claim that can give you some clues:</p><p><strong>NPIs, NPPES and Addresses</strong></p><p>Didn’t we already talk about NPIs and an upcoming Provider Directory article? Yes, we did, but we’re going to talk about them again here because they are so important. However, what we want to point out is that in this case, <em>using the NPI to connect a claim to an address from NPPES will guarantee you a bad time</em>. There are two primary reasons why:</p><ol><li>NPPES records can be <em>incredibly</em> out of date.</li><li>Providers can <em>work at multiple locations</em>.</li></ol><p>Even if NPPES records were <em>100%</em> up to date, you still cannot map from a claim to an address using an NPI, because providers often work at multiple locations. Let me state it a third time: providers change jobs as often as any other profession, and a single entity often has <em>many</em> locations at which a provider will see patients. Are there ways to solve this? Yes -– see the (upcoming) Provider Directory article.</p><p><strong>Place of Service Codes</strong></p><p>Place of service codes are a great way to get a sense of where a service was rendered. These are managed by CMS, and there is a reference <a href="https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set">here</a>. POS codes can be very useful in determining the setting of care (inpatient, telehealth, etc.) when other methods are inconclusive. Fair warning though: POS codes are not always present, and when they are, they are not always accurate. You will often see POS codes that are inconsistent with other information on the claim.</p><p><strong>Census data</strong></p><p>While not technically a healthcare dataset, we would be remiss if we didn’t mention the use of census data to give geographic-based insights on both the patient location and the setting of care. The <a href="https://www.census.gov/programs-surveys/decennial-census/decade/2020/2020-census-main.html">2020 Census</a> has a wealth of information on the demographics of the US population and can be linked to healthcare datasets through the <a href="https://www2.census.gov/geo/pdfs/reference/geodiagram.pdf">geographic hierarchy</a>. One thing to note: Postal codes <em>do not equal</em> Zip Code Tabulation Areas! There are lots of commercial datasets that do a good job of mapping one to the other, but a postal code is a <em>route</em> that a mail carrier will take. The census geographies are MECE (mutually exclusive, collectively exhaustive); for example, a single postal code can cross county or state boundaries, but a ZCTA will not.</p><h3>Summary</h3><p>Whew! That is a <em>lot</em> of different datasets and acronyms to wrap our heads around. Don’t worry — we’ll frequently dive into more details over this entire series of articles, so feel free to come back to this article to remind yourself of a definition or to find a link. Below is a summary of which datasets tend to lend themselves to what uses:</p><figure><img alt="Categories of information for different data sources" src="https://cdn-images-1.medium.com/max/1024/1*COmb9mB7RCWSw63Xniowdw.png" /><figcaption>Categories of information for different data sources</figcaption></figure><p>Thank you for reading! Our next article is a deeper dive into a healthcare claim, so stick around if you’re interested in learning more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=213fcc022a1a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trilliant-health/healthcare-datasets-213fcc022a1a">Healthcare Datasets</a> was originally published in <a href="https://medium.com/trilliant-health">The Trilliant Health Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[All you need to know about Healthcare Data & Analytics]]></title>
            <link>https://medium.com/trilliant-health/healthcare-data-analytics-37357dd81dd2?source=rss-1269696f9075------2</link>
            <guid isPermaLink="false">https://medium.com/p/37357dd81dd2</guid>
            <category><![CDATA[healthcare-data]]></category>
            <category><![CDATA[healthcare-analytics]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Matt O'Neill]]></dc:creator>
            <pubDate>Tue, 16 May 2023 14:43:46 GMT</pubDate>
            <atom:updated>2023-09-14T20:18:01.470Z</atom:updated>
            <content:encoded><![CDATA[<p>Healthcare data, and by extension healthcare analytics, can be a confusing and somewhat opaque space (to put it mildly). There are many datasets available, both public and private, for a researcher, data scientist, or strategist to leverage. It can be very difficult to understand the nuances of each of those datasets, how to extract value from them and how to combine them so that the whole is more than the sum of its parts.</p><figure><img alt="image created by Midjourney — “vibrant healthcare database ecosytem”" src="https://cdn-images-1.medium.com/max/1024/0*ygy9WBi32ob94HcV.png" /><figcaption>image created by Midjourney — “vibrant healthcare database ecosystem”</figcaption></figure><p>At Trilliant Health we have spent years sifting through datasets: organizing and re-organizing, appending and culling, joining and normalizing, all to generate <em>useable</em> and <em>useful</em> analytics through which our clients can make informed decisions. Our mission is to provide data and expertise to the healthcare economy such that organizations can maximize their ability to deliver care to patients. While this isn’t a new concept, some of the capabilities to successfully deliver it <em>are</em>: the advent of powerful distributed-compute systems in the last decade, the digitization of health care records and claims data and new laws that have made private datasets public.</p><p>If it were as simple as having access to the best data and technology, this problem would have already been solved by big tech companies like Google or Amazon. Healthcare delivery in the United States is <em>complex</em>, and even the most brilliant engineers &amp; data scientists in the world (which we think we’ve got a few of) can’t deliver value without understanding how source data is generated or resultant datasets will be used. Our experts in healthcare strategy, economy, coding and operations contribute as much value to our products as our technical teams; it is through their insights that we are able to provide such value to our clients. The intersection of technical expertise and healthcare expertise is core to our function as a business; without it, we would simply be offering query-based access to a rather large database.</p><p>In a series of upcoming articles, we will explain what we do, how we do it and why we’ve chosen to frame and approach the problems in the manner presented. We’ve learned many lessons along the way and hope to share some of those so that others don’t have to struggle through the same mire.</p><p>We hope to publish a new article regularly, so stay tuned if we haven’t covered your favorite topic yet; chances are we will!</p><p><strong>Series Outline</strong></p><ol><li><a href="https://medium.com/trilliant-health/healthcare-datasets-213fcc022a1a">Care and feeding of Healthcare Datasets: common sources, reference datasets and pitfalls therein.</a></li><li><a href="https://medium.com/@matt.j.oneill/an-introduction-to-claims-data-e123d68bbe39">An introduction to claims data</a>. (part 1)</li><li><a href="https://medium.com/trilliant-health/an-introduction-to-claims-data-pt-2-where-the-wild-things-are-6f769e579d3e">An introduction to claims data: where the wild things are</a>. (part 2)</li><li>What is a visit?</li><li>Why do I need a Provider Directory?</li><li><a href="https://medium.com/@matt.j.oneill/how-to-build-a-demand-forecast-fd7c7f1ce780">How to build a Demand Forecast.</a></li><li>Health Plan Price Transparency (things will get <em>really</em> interesting)…</li></ol><p>We also have a few supplementary references:</p><ol><li><a href="https://medium.com/@matt.j.oneill/healthcare-data-glossary-61c93aff6e71">Healthcare Data Glossary</a></li><li><a href="https://medium.com/@matt.j.oneill/cms-1500-claim-form-reference-80df8c54f586">CMS 1500 Claim Form Reference</a></li></ol><p>If you have any comments, suggestions for future topics or other questions, please let me know!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37357dd81dd2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trilliant-health/healthcare-data-analytics-37357dd81dd2">All you need to know about Healthcare Data &amp; Analytics</a> was originally published in <a href="https://medium.com/trilliant-health">The Trilliant Health Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>