Third-Culture-Software / bhima

A hospital information management application for rural Congolese hospitals
https://docs.bhi.ma/
GNU General Public License v2.0
220 stars 105 forks source link

Add barcode support/decoding to Stock Entry #5382

Open jmcameron opened 3 years ago

jmcameron commented 3 years ago

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: GTIN-BARCODE

or

image

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.

jniles commented 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.