Kernel 8.0 APIs Banner [skip navigation]
Office of Information & Technology (OIT) Banner

$$CHKDGT^XUSNPI(): Validate NPI Format

Reference Type: Controlled Subscription, Category: National Provider Identifier (NPI), Integration Agreement: 4532

Description

This extrinsic function validates the format of a National Provider Identifier (NPI) number. It checks the following:

This API was added with Kernel Patch XU*8.0*410.

Format

  $$CHKDGT^XUSNPI(xusnpi)

Input Parameters

xusnpi:

(required) The 10-digit National Provider Identifier (NPI) number to validate. No default.

Output

returns:

Returns:

  • 1—If check digit is valid. The NPI number must be 10-digits long

  • 0—If check digit is not valid.

Example 1

The following example shows the result when checking a valid NPI:

>W $$CHKDGT^XUSNPI(1234567893)
1

Example 2

The following example shows the result when checking an invalid NPI (not 10 digits):

>W $$CHKDGT^XUSNPI(123456789)
0

 


VA (Internet) / VA(Intranet) / OI / PD / Site Map / Terms of Use / VA Privacy Policy / Accessibility

Reviewed/Updated: August 26, 2011

If you have questions, need more information, or are having accessibility problems with this website, please contact us by E-Mail: Webmasters, Phone: 510-768-6800, or FAX: 510-768-6850.