JsBarcode icon indicating copy to clipboard operation
JsBarcode copied to clipboard

why set the max of ‘ pharmacode’ to 131070?

Open rookieLink opened this issue 3 years ago • 2 comments

I read the why set the max limit of ‘ pharmacode’ to 131070?I changed the source code and try to set bigger than 131070, but my scanning machine can't identify the code

rookieLink avatar Jan 12 '21 06:01 rookieLink

That's because 131070 is the maximum value stored in the Pharmacode. This has nothing to do with the JsBarcode library but the Pharmacode barcode standard: https://en.wikipedia.org/wiki/Pharmacode. If you modify the source code to allow bigger values the output barcode won't be a valid Pharmacode thus won't be recognized by any scanning machine.

Hmmm... this generator says different: https://www.tec-it.com/en/support/knowbase/barcode-overview/linear2/Default.aspx#One-Track%20Pharmacode It says it can have any length and is even able to generate longer codes for greater numbers.

However, the official spec says 131070 too. JsBarcode could support 2-track pharmacode though?

pke avatar Jun 01 '22 15:06 pke