Skip to content
barcoder

Standards/ppn-code

PPN Code

TypeDataMatrix Healthcare
Completeness72%high

Overview

The PPN-Code is the Data Matrix symbol that German medicine packs carry under the IFA coding system. It holds the Pharmacy Product Number (PPN) together with the pack's serial number, batch number and expiry date, each tagged with an ASC MH10 Data Identifier (9N, S, 1T, D) inside an ISO/IEC 15434 format 06 message 1712. IFA GmbH (Informationsstelle für Arzneispezialitäten), which assigns the German PZN, also defines the PPN: a two-digit Product Registration Agency (PRA) code, then a national product number, then two check digits computed modulo 97 12. With PRA code 11 the national number is the 8-digit PZN, so a PPN turns the PZN into a number that is unique worldwide 15.

Under the EU Falsified Medicines Directive and Delegated Regulation (EU) 2016/161, every prescription-medicine pack sold in Germany needs a unique identifier in a Data Matrix. Manufacturers may encode it either in the IFA format (PPN, Data Identifiers, format 06) or in the GS1 format (NTIN, Application Identifiers, FNC1), or in both. The German verification system, securPharm, accepts either 78.

History

The PZN behind the PPN (1968–2020). IFA's specification says the PZN has identified German pharmacy articles since 1968. The Healthcare Reform Act (GRG) of 20 December 1988 required it to be machine-readable and set Code 39 as the symbology 1. The PZN went from 7 to 8 digits in 2013: existing numbers gained a leading zero. Since 1 January 2020 only packs with the 8-digit PZN may be marketed 1.

The PPN-Code specification (2012–2023). IFA's document maintenance table dates the first release of the PPN-Code Specification for Retail Packaging to 5 January 2012. Version 2.00 (18 February 2013) aligned it with the newly published securPharm coding rules. Version 3.01 (1 January 2019) followed securPharm's coding rules version 2.04. Later versions added PRA code 24 (version 3.05, 29 November 2022) and PRA code MA (version 3.06, 6 November 2023) 1. No public source names the people who designed the PPN or its check-digit scheme.

Data Identifier 9N. ANSI MH10.8.2 lists 9N as the "Pharmacy Product Number maintained by IFA". Its revision log shows the entry's text was rewritten on 13 April 2022 to spell out the form DI PRAC PR CC 11. The same standard once registered the hyphen - as a system identifier for the PZN, controlled by IFA-ABDATA. That registration expired on 1 July 2016 and was "Replaced by '9N'" 11.

Falsified Medicines Directive (2016–2019). Commission Delegated Regulation (EU) 2016/161 is dated 2 October 2015. It applies from 9 February 2019, with a later deadline of 9 February 2025 for some Member States named in Directive 2011/62/EU 9. Since 9 February 2019, the German legal supply chain has had to meet it, and securPharm e.V. runs the German system 723.

Technical specification

Structure of the PPN

Part Length German PZN example Meaning
PRA code 2 characters 11 Agency whose numbering system follows; 11 = IFA, German PZN
Product reference PZN: 8 digits 03752864 The unmodified national number, leading zero kept
Check digits 2 digits 14 Modulo 97 over PRA code + product reference

Sources: 12.

The complete PPN in IFA's worked example is 110375286414 2. The specifications use a second example, PZN 12345678 → PPN 111234567842 17. MH10.8.2 gives the 9N data format as an2+an11…28, and shows an alphanumeric example with PRA code 13: 9N1312345MEDDEVICE1245678900CC 11. IFA's own table allows 11 to 28 characters, digits and capital letters only, no special characters, no lower case 1.

Check digits. Each character of the PRA code and product reference is replaced by its ASCII code (digit 1 = 49). The weights start at 2 on the left and go up by 1. The sum of the products is divided by 97, and the remainder, padded to two digits, is the check number. So the check digits are always digits, even for alphanumeric references 2. For PZN 03752864 the sum is 3409, and 3409 / 97 = 35 remainder 14 2. A local re-implementation reproduces both published examples (…14 and …42).

The PZN has its own single check digit, modulo 11 with weights 1 to 7. If the remainder is 10, that digit sequence is not used as a PZN 2. The PPN therefore protects the PZN twice.

PRA codes

IFA assigns the PRA codes, one for each national numbering system in the pharmaceutical sector 5:

PRA code Assigned to Used for
00–09 reserved —
10 reserved for GS1 Germany GTIN / NTIN
11 IFA, Germany PZN: medicinal and other pharmacy products
12 EUROCODE IBLS Registered Blood Product Number
13 IFA, Germany HPC (Health Product Code), administered by companies
14 reserved for Association Pharmaceutique Belge (APB) CNK code
15 reserved for Italian Ministry of Health AIC code
16 reserved for Austrian Association of Pharmacists PZN-Austria
17 reserved for INFARMED Portuguese medicine presentation number
18 reserved for Z-Index, Netherlands Z-Index
19 NENSI d.o.o., Slovenia NENSI code
20–24 CIP / ACL, France CIP, ACL and UCD codes
MA IFA, Germany Master UDI-DI for medical devices

Source: 3. Codes 25–99 and AA–ZZ have no entry.

Data elements and identifiers

The IFA format uses Data Identifiers from ISO/IEC 15418, which refers to ANSI MH10.8.2. The GS1 format uses Application Identifiers. The order of elements in the symbol is free 17.

Element DI (IFA) AI (GS1) Type and length Example from the specifications
Product code 9N (PPN) 01 (NTIN) PPN 11–28 alphanumeric; NTIN 14 digits 9N110375286414
Serial number S 21 1–20, numeric or alphanumeric S12345ABCDEF98765
Batch number 1T 10 1–20, numeric or alphanumeric 1T12345ABCD
Expiry date D 17 YYMMDD; DD = 00 for month only D210630
Additional GTIN/NTIN (multi-market packs) 8P — 14 digits 8P03400912345676
Date of manufacture 16D 11 YYYYMMDD (DI) / YYMMDD (AI) —
URL (optional) 33L 8200 URL 33Lhttp://Example.com

Sources: 17. Delegated Regulation 2016/161 limits the serial number to 20 numeric or alphanumeric characters, generated so that the chance of guessing one is below 1 in 10,000 9. IFA excludes the characters #, $, @, [, \, ], ^, `, {, |, }, ~, all control characters and anything above ASCII 127 from serial and batch numbers. The rest matches GS1's "character set 82". IFA recommends a hyphen, underscore or full stop as a separator inside a batch number 1.

The format 06 message

A PPN-Code is a complete ISO/IEC 15434 message. IFA's UDI specification draws the data string as follows, with RS, GS and EOT for ASCII 30, 29 and 4 6:

[)>  RS  06  GS  9N111234567842  GS  1TA123  RS  EOT

The header [)> RS starts the message, 06 names the format (ASC Data Identifiers), GS separates the data elements, and RS EOT ends it. IFA states that "the data elements are not separated by spaces"; the spaces above are only for readability 6. In Data Matrix, the header [)>RS06GS and the trailer RSEOT can be replaced by a single Macro 06 codeword. IFA writes this as Mac06 in its examples 16. ISO/IEC 16022 decoders put the header and trailer back when they read that codeword (codeword 237 in ZXing and zxing-cpp) 1918.

The GS1 alternative starts with FNC1 and uses Application Identifiers; it does not use the 15434 envelope 1.

Symbol, size and print quality

  • Symbology: Data Matrix ECC 200 to ISO/IEC 16022 (Data Matrix). ECC 000–140 must not be used. Rectangular DMRE symbols to ISO/IEC 21471 (DMRE) are also allowed 1. Delegated Regulation 2016/161 requires a Data Matrix with error correction at least equal to ECC200 9.
  • Matrix size: typically no larger than 26 × 26 or 26 × 48 modules. IFA's table lists, for example, 22 × 22 (60 digits or 43 alphanumeric characters), 26 × 26 (88 / 64) and 32 × 32 (124 / 91) 1.
  • Module size: typically 0.35 mm, minimum 0.25 mm, maximum 0.99 mm. The quiet zone is at least 3 modules 17.
  • Print quality: under Article 6(4) of the Regulation, a grade of at least 1.5 in ISO/IEC 15415 is presumed sufficient. IFA requires measurement under 660 nm red light with an 80% synthetic aperture 19.
  • Emblem: the letters PPN in OCR-B next to the code. They mark which code to scan when a pack carries several, and are not encoded in the symbol 120.
  • Clear text: the product code is printed with the prefix PC: and the serial number with SN: . Both may be left off when the sum of the two longest pack dimensions is 10 cm or less 1.

Use cases

  • Prescription medicines in Germany (FMD). The Data Matrix holds the unique identifier: product code, serial number, batch and expiry, plus a national number on some multi-market packs 7. The manufacturer uploads the pack data through the EMVO's EU Hub to the MAH System run by ACS PharmaProtect GmbH. Pharmacies verify each pack through the pharmacy system (the "Concentrator") run by NGDA before dispensing 7. A pack may carry more than one Data Matrix. The one marked PPN is the one the pharmacy system reads, and it ignores the others 4.
  • Non-prescription medicines and other pharmacy products. For packs outside the FMD, the Data Matrix is optional. It must hold at least the product code (PPN or NTIN) and may add batch and expiry, but no serial number 4.
  • Statutory health-insurance billing. Under the § 131 SGB V framework agreement, the PZN must be on the pack in the Data Matrix and in clear text labelled PZN: since 9 February 2019 4. Software can derive the PZN from the PPN, or the PPN from the PZN 1.
  • Medical devices (UDI). Commission Implementing Decision (EU) 2019/939 designated IFA GmbH as a UDI issuing entity, alongside GS1, HIBCC and ICCBBA 10. In the IFA system the PPN is the UDI-DI. IFA issues a PPN with every PZN, and PRA code 13 (HPC) lets manufacturers use their own product references in PPN form 46.
  • Multi-market packs. In the IFA format the product code is 9N and each additional national GTIN/NTIN goes in its own 8P element 1.

The PRA code table reserves codes for Belgian, Italian, Austrian, Portuguese, Dutch, Slovenian and French numbering systems 3. No source found shows packs in those countries carrying a PPN with those codes.

Implementations

Library Language Stars Last active PPN support
bwipp/postscriptbarcode PostScript 504 Oct 2026 Dedicated ppncode encoder, added in the 2026-10-18 release; generic datamatrix compresses format 05/06 messages to a Macro codeword 121314
metafloor/bwip-js JavaScript 2,431 Aug 2026 datamatrix with parse for control characters; no ppncode yet (latest release 4.11.4, 19 Aug 2026) 15
zint/zint C 828 Oct 2026 No PPN symbology; BARCODE_DATAMATRIX with escape sequences \R, \G, \E and automatic Macro 05/06 1617
zxing/zxing Java 34,186 Nov 2026 Decoder; expands Macro 06 to [)>RS06GS … RSEOT 19
zxing-cpp/zxing-cpp C++ 2,095 Nov 2026 Decoder; expands Macro 06 and reports content type ISO15434 for messages starting [)>RS + two digits 18
Ashafix/ppn_parser Python 0 Oct 2020 Small parser based on the IFA specification 22

Star counts and activity were read from the GitHub API on 9 November 2026.

BWIPP ppncode. The encoder takes the data elements joined by GS and adds the envelope itself. It requires 9N and checks the PPN check digits; for PRA code 11 it also checks the PZN check digit. It validates S, 1T (up to 20 characters of character set 82), D (YYMMDD, day 00 allowed) and repeatable 8P. Other Data Identifiers pass through 12.

Commercial tools. Seagull Scientific's barcode guide (BarTender) describes PPN as a Data Matrix variant with Data Identifier 9N and mod 97 check digits 20. Neodynamic lists PPN among its .NET barcode products 21.

About the Try-it encoder. The panel renders bwip-js datamatrix with the data [)>06 9N110375286414 1T12345ABCD D271231 S12345ABCDEF98765:

  • The values are valid. 110375286414 is IFA's own published check-digit example (PZN 03752864, check digits 14) 2. The PZN's own check digit, 4, is also correct (local check). S12345ABCDEF98765 and 1T12345ABCD are the example serial and batch from the IFA and securPharm specifications 17. D271231 is a well-formed expiry date (31 December 2027).
  • The message is not a conforming format 06 message. The specifications require RS after [)>, GS after 06 and between elements, and RS EOT at the end, with no spaces 6. The playground string uses spaces instead, so a reader returns it as plain text. When decoded with zxing-wasm, the playground symbol came back as plain Text. The same data with real separators (bwip-js parse, ^030, ^029, ^004) came back as content type ISO15434. Both render as 26 × 26 (local check).
  • The PZN behind the example. No public source found shows PZN 03752864 on a marketed product. IFA's product database is not public, so this could not be ruled out.

Comparison

PPN-Code (IFA) NTIN in GS1 DataMatrix HIBC
Product code PPN: PRA code + national number + 2 check digits (mod 97) NTIN: 0 + 4150 + PZN + 1 check digit HIBC Labeler and product code
Data tagging ASC MH10 Data Identifiers (9N, S, 1T, D) GS1 Application Identifiers (01, 21, 10, 17) HIBC data structures
Envelope ISO/IEC 15434 format 06 (Macro 06 in Data Matrix) FNC1 in first position HIBC flag character
Issuing body IFA (ISO/IEC 15459-2 issuing agency) GS1 Germany HIBCC
Licence Free of charge GS1 Germany licence terms —

Sources: 171011.

For the German market the two product codes carry the same PZN. securPharm lets the manufacturer choose either, or use both 7. The NTIN is a full GTIN in which the national body assigns the item number. A GTIN assigned by the manufacturer is not permitted as the German product code 1. A multi-market pack in GS1 format can instead use the manufacturer's GTIN and add the PZN with AI 710 1. The pharma-specific GS1 variant is described under GS1 DataMatrix Pharma.

Fun facts

  • D alone in ANSI MH10.8.2 is just "Date", and the standard's own expiry identifier is 14D (YYYYMMDD). In the PPN-Code, D is "necessarily the expiry date", in six-digit form 111.
  • The emblem rules have drifted. IFA's 2023 specification and FAQ say the PPN emblem must appear next to the code. securPharm's September 2025 coding rules call it optional, and mandatory only when the pack carries a second 2D code 147. Both keep the letters "PPN" even when the code holds an NTIN, "until another uniform identifier is established at international level" 7.

Status

Active and mandatory where it is chosen. securPharm's coding rules of 10 September 2025 still allow the PPN (IFA format) or the NTIN (GS1 format) for prescription medicines on the German market 78. IFA's UDI specification version 2.5 (1 April 2026) uses the same format 06 structure for medical devices 6. IFA's PPN specification is at version 3.06 (6 November 2023) 1. BWIPP added a dedicated encoder in October 2026 14. No successor format has been announced.

Sources

Deployments

No country reports mention this standard by name.

Regions / aggregations not mapped to a single country

  • Universal
source · content/standards/ppn-code/index.md