Open jmcameron opened 3 years ago
@jmcameron thanks for bringing up this discussion. You are right, ideally, we would like to use the GTIN information for ease of data entry.
We haven't made any progress on this front because I can't figure out if anyone uses GTIN in country. I'm sure they are used for international shipping, but it is not clear to me if 100% of the drugs entered have GTIN numbers. They may be used to move drugs to the CDR level (HQ -> CDR), but we currently don't have anyone at the CDR to do the scanning/tracking on reception of drugs. We can prioritize finding that out.
Ideally, we would like to get the lot name/label, expiration date, and GTIN from the barcodes on the lots themselves. Most of the machinery is in place now. However, we will need to add a GTIN decoding library to do this as part of the normal lot entry process. These 1-D barcodes look like this:
or
We may need to update the lot data to save some of this information that is not currently in the 'lot' table.
One such library is https://www.npmjs.com/package/gs1-barcode-parser-mod. This functionality may require 2D barcode scanners in some cases.