FHIR Chat · 10-digit vs 11-digit NDC codes · CARIN IG for Blue Button®

Stream: CARIN IG for Blue Button®

Topic: 10-digit vs 11-digit NDC codes


view this post on Zulip Lee Surprenant (May 06 2021 at 15:54):

While reviewing the CARIN for BB refresh with my partner in crime @Bryan Briegel, we noticed a potential issue wrt NDC codes for Pharmacy claims.

Specifically, our understanding is that 11-digit NDC codes (with no hyphens) are the norm in billing / financial data.
This is backed up by the "EOB Pharmacy" tab of the informative CPCDStoFHIRProfilesMapping spreadsheet.
Specifically, row 301, column M of this spreadsheet lists the following:

ExplanationOfBenefit    item    detail  productOrService            1..1    CodeableConcept Billing, service, product, or drug code 38  National drug code
"[1..1] CHAR(11)
Industry standard code"

The required binding for this field links to a valuset with "all codes defined in http://hl7.org/fhir/sid/ndc".
But then we also stumbled onto https://www.hl7.org/fhir/ndc.html which says that this system is for

The 10 digit NDC code, with "-" included. Note that different NDC codes have different positions for the "-": 1234-5678-90, 12345-6789-0, or 12345-678-90. The "-" must be correct for each NDC code

view this post on Zulip Lee Surprenant (May 06 2021 at 15:56):

Does this system allow for either the 10-digit (with hyphens) or the 11-digit (no hyphens) variety?
Is either/or acceptable for C4BB?

view this post on Zulip Lee Surprenant (May 06 2021 at 16:19):

It looks like maybe there was a separate code system defined for the 11-digit variety under https://jira.hl7.org/browse/HTA-12 ?
But I don't see it at https://terminology.hl7.org/codesystems.html so maybe its still work-in-progress?
@Rob Hausam can you shed any light on this one?

view this post on Zulip Rob Hausam (May 06 2021 at 17:10):

@Lee Surprenant Yes, I can shed some light (at least a little). We had considerable discussion of this in Vocab (I can try to locate the threads later) and came to a solution for how to manage it. The consensus was that NDC is a single code system, but it's one with two different sets of identifiers (the 10 and 11 digit codes) for each concept. So there will be only a single 'system' url for it in FHIR, with both identifiers available in the code system, along with code system properties that allow defining the needed value sets, such as ones with only the 11 digit or only the 10 digit codes. But in the FHIR model each concept can only have a single code (not multiple ones). So in FHIR, to have both the 10 and 11 digit codes we have to create duplicate concepts for each NDC, and then to declare that both the 10 and 11 digit concepts are equivalent in meaning we will provide a ConceptMap that shows that and provides the way to translate from one to the other (10 to 11 digit, or vice versa). I know that sounds pretty complicated, and it is (much more so than usual), but probably it won't be that bad to actually use in practice - once it's available. That gets to the next part, which is how to implement this on the tx.fhir.org terminology server. It turns out that in Grahame's server architecture (which is the base for tx.fhir.org), the NDC code system is based on a database representation (not all of them are - many of the smaller ones, particularly, use FHIR CodeSystem resources, but some of them, like NDC, do not). So all of the needed data is already in the database (at least it will be once we've updated to a more recent version), but Pascal code needs to be written to transform from the database representation and expose the content via the FHIR API as the ValueSet resources and their associated expansions, with the correct 10 and/or 11 digit codes being returned as described above. So that's where it stands presently, waiting for that code to be written. I'm hoping to be able to get to that and get it done fairly soon (unless Grahame tackles it, but I'm not sure that he's going to be able to do that any time in the very near future).

view this post on Zulip Lee Surprenant (May 06 2021 at 17:38):

Thanks Rob!
Can you confirm that the 10-digit variety will include the hyphens and that the 11-digit variety will not?

Do you know if there's a plan for updating http://build.fhir.org/ndc.html to indicate that this system includes both the 10-digit (with hyphens) and 11-digit (no hyphens) varieties?

view this post on Zulip Lee Surprenant (May 06 2021 at 17:38):

And maybe some guidance on when to use which?

view this post on Zulip Josh Mandel (May 06 2021 at 18:31):

Re: concept maps, is the idea that this will be mapping between concepts in two different "systems" (both consistent with source NDC codes, but partitioned by length)? So looking at the system URLs, we'd see one representing the official NDC system and one representing some kind of Shadow system for the "dispreferred" partition?

view this post on Zulip Rob Hausam (May 06 2021 at 19:03):

@Lee Surprenant Yes, that's correct about the hyphens. I don't there's an actual plan (yet), but there is an intent that this will be described in the "Using NDC and NHRIC Codes with FHIR" page. Most of these "Using XXX with FHIR" pages likely will be moving to terminology.hl7.org - but I'm not sure when that will happen. I agree that we should add some guidance that describes which one to choose and when to do it (and how to go from one to the other when you need to).

view this post on Zulip Rob Hausam (May 06 2021 at 19:20):

@Josh Mandel This concept map will be between two codes in the same code system (the same 'system' url of http://hl7.org/fhir/sid/ndc for both), and in both directions. So there wouldn't be any "shadow" system, or any notion of one being "preferred" and the other "dispreferred". You could (and we did) argue, though, whether that is correct. Because NDC is only officially published with the 10-digit (with hyphens) codes, and it's the drug database providers and NCPDP who have come up with and use the 11-digit codes. But I would describe the conclusion, which led to deciding that NDC with both 10 and 11 digit codes for concepts is actually a single code system, as that even though the "official" publication is only of the 10-digit codes, the use of the 11-digit code format is also expected and at least implicitly sanctioned by the FDA as the code system publisher (we may have used some different wording to describe it, but that's the idea).

view this post on Zulip Lee Surprenant (May 07 2021 at 14:08):

Circling back around to what this means to CARIN for BlueButton. Are we comfortable saying either the 10-digit code (with hyphens) OR the 11-digit code are allowed at this point? Is it worth providiing any guidance on which to use?

view this post on Zulip Josh Mandel (May 07 2021 at 14:13):

That sounds like the right decision to me, although of course I would like to see RX Norm codes propagated alongside :-)

view this post on Zulip Josh Mandel (May 07 2021 at 14:14):

Trying to provide more granular requirements on how to use NDC is an uphill battle. Clients that want to work with NDC codes should do their best to understand the full set of NDC codes.

view this post on Zulip Josh Mandel (May 07 2021 at 14:14):

If there's consensus on more granular guidance , that would probably be worth including so that systems making a choice for the first time could take it into account.

view this post on Zulip MaryKay McDaniel (May 12 2021 at 15:17):

@Pat Taylor
Pat can correct me, but the intent was to always use the 11 digit NCD code. The administrative side of the system uses the 11-digit. We've been waiting on guidance from vocabulary as to how to correctly indicate that. I thought there was some guidance added to the guide by Pat Tayor indicating 11 digit was needed.

view this post on Zulip Pat Taylor (May 20 2021 at 12:50):

@MaryKay McDaniel @Lee Surprenant The intent is to use the 11 digit NDC code. To Mary Kay's point, the administrative side of the system uses 11 digits. Guidance is not specifically provided in the IG although it is called out by implication based on the mapping document. Jira FHIR-32660 was defined requesting the clarification be added to the profile notes @Amol Vyas @Mark Roberts @Corey Spears

view this post on Zulip Rob Hausam (Jun 17 2021 at 12:52):

This is an FYI to let everyone know that tx.fhir.org does have partial support now for both the 10 and 11 digit NDC codes. By partial support, I mean that you can do a CodeSystem $lookup using both code variations (e.g., 0409-3718-01 and 00409371801) and that will be successful (also $validate-code and other operations should work). What is not yet available on tx.fhir.org is a 'code-type' (or similar name) property and filter that can be used to define something like an "NDC 11-digit only" value set. That should be coming, though (although I can't say exactly when it will be there). Some resource examples that show how that is expected to work are posted on this topic (on June 15th).

view this post on Zulip Rob Hausam (Jun 17 2021 at 12:56):

The current version of NDC on tx.fhir.org is outdated (20190321). That should be updated soon (I expect within the next 48 hours).

view this post on Zulip Rob Hausam (Jun 25 2021 at 15:26):

Here's a further FYI that the additional implmentation for the NDC 10 and 11 digit codes has now been done on tx.fhir.org. Here's an example: http://tx.fhir.org/r4/CodeSystem/$lookup?system=http://hl7.org/fhir/sid/ndc&code=00409371801. You should now be able to create value sets that contain only 11-digit or 10-digit codes, using the code-type property. The NDC content is still out of date (I wasn't able to get to that within 48 hours), but I'm hoping to take care of that today.

view this post on Zulip Kate Dech (Jun 25 2021 at 19:37):

Just want to confirm that an 11 digit NDC with hyphens would not be considered valid? "49483-0604-50" vs. "49483060450"**

** - that is an NDC11 for the biggest package and strongest dose of ibuprofen which we probably all collectively could use. ;-)

view this post on Zulip Rob Hausam (Jun 30 2021 at 21:15):

@Kate Dech Yes, the NDC11 codes should be without dashes. To say that they are "not valid" is slightly difficult, because the 11-digit codes aren't actually published as part of the NDC source in the first place. But the 11-digit codes are "semi-officially" recognized and have important usage in some particular contexts, and in every case that I'm aware of they are represented without the dashes.

view this post on Zulip Rob Hausam (Jun 30 2021 at 21:16):

And I can also report that the NDC content on tx.fhir.org has now been updated to be current as of 2021-06-27.


Last updated: Apr 12 2022 at 19:14 UTC