medicine-verification-qr-code-parser
Reactive icon

Medicine Verification QR Code Parser

icon_trusted
Stable version 1.0.2 (Compatible with OutSystems 11)
Uploaded
 on 15 January 2022
 by 
Team Nexllence
5.0
 (2 ratings)
medicine-verification-qr-code-parser

Medicine Verification QR Code Parser

Documentation
1.0.2

This component parses a QR Code used by the the Pharmaceutical industry on some critical medicines.

It can be used to validate the medicine, through parsing this QR Code on its individual components, and therefore be able to validate them accordingly.

The QR Code rules are as follows:

  • Always starts with an asterisc (*)
  • Always ends with an asterisc (*)
  • GTIN - starts after the prefix 01 and has 14 digits
  • Lot Number - starts after the prefix 21 and has up to 20 characters, ending with an asterisc (*)
  • Expiration Date - starts after the prefix 17 and has 6 digits (format YYMMDD)
  • Serial Number - starts after the prefix 21 and has up to 20 characters, ending with an asterisc (*)
  • National Code - starts after the prefix 71 and has variable lengthm ending with an asterisc (*)


The parsing routine forces the day of the Expiration Date to be the last day of the month for the date, if it's parsed as 00.

An example of a QR Code:

*01098765432109822112345AZRQF1234567890*10A1C2E3G4I5*1718053171AAAAAAA*

For more information, please refer to the European Medicines Verification Organization website:

https://emvo-medicines.eu/