Skip to main content
Version: v0.0.9

Variable: KNOWN_SCRIPT_VERSIONS

const KNOWN_SCRIPT_VERSIONS: readonly ["2017071", "2023011"]

SCRIPT versions this parser explicitly supports. Both are XML-era releases routed through Surescripts.

The pair is grounded in US federal regulation, which is public law and therefore the license-clean source for a version identifier (the standard itself is paywalled). Two sections carry it:

  • 45 CFR 170.205(b) adopts exactly these two SCRIPT Implementation Guide versions for electronic prescribing, at (b)(1) and (b)(2). It also states that the Secretary's adoption of 2017071 expires on January 1, 2028, after which 2023011 is the only SCRIPT version that paragraph adopts.
  • 42 CFR 423.160 (Medicare Part D electronic prescribing) requires at (b)(1) that a prescription or prescription-related information comply with a standard in 45 CFR 170.205(b), and incorporates both guides by reference at (c)(2) and (c)(3).

Scope, because the list is narrower than it looks. This is the set those two sections adopt, not the set of SCRIPT versions NCPDP has ever published. A version outside it may well be real; nothing public that this package can cite would establish that, so it is not written down here. Narrowing the list never refuses a message: a present-but-unrecognized stamp is still parsed best-effort and reported as tolerated, per classifyVersion.

Example

import { KNOWN_SCRIPT_VERSIONS } from "@cosyte/ncpdp/script";
KNOWN_SCRIPT_VERSIONS.includes("2023011"); // true