The health industry data structure, drawn as a CODE 39 symbol. It opens with +, then the Labeler Identification Code that HIBCC assigns, the product number, the unit of measure, and optionally a secondary structure carrying lot, serial or expiry.
The structure is independent of the symbology that carries it, so the same payload also encodes as HIBC128, HIBCDM, HIBCQR or HIBCAZ. The modulo 43 check character is appended for you.
Type Token
| Item | Value |
|---|---|
| Type token | HIBC39 |
| Enum case | BarcodeType::HIBC39 |
| Family | Linear |
| Standard | ANSI/HIBC 2.6, ANSI/HIBC 1.3 |
| Class | \Com\Tecnick\Barcode\Type\Linear\HibcThreeNine |
Input
| Item | Value |
|---|---|
| Character set | 0-9, A-Z, -, ., space, $, /, +, % |
| Length | a primary structure of 6 to 23 characters, with an optional secondary structure |
| Check | modulo 43, appended by the library |
| Extra parameters | none |
Examples
A primary data structure
<?php
require_once __DIR__ . '/vendor/autoload.php';
$barcode = new \Com\Tecnick\Barcode\Barcode();
$bobj = $barcode->getBarcodeObj(
type: 'HIBC39',
code: '+A123BJC5D6E71',
width: -3,
height: -30,
color: 'black',
padding: [0, 0, 0, 0],
)->setBackgroundColor('white');
echo $bobj->getInlineSvgCode();
Errors
These payloads raise \Com\Tecnick\Barcode\Exception:
| Payload | Message |
|---|---|
A123BJC5D6E71 | A HIBC data structure starts with the flag character “+”: A123BJC5D6E71 |
+ | The flag character must be followed by “/”, a letter, a digit or “$”: + |
See Also
- tc-lib-barcode : the library overview.
- Rendering Options : size, colour, padding.
- Output Formats : every renderer.
- HIBC in CODE 128 : the same structure in CODE 128.
- HIBC in Datamatrix : the same structure in Datamatrix.
- CODE 39 : the underlying symbology.
- API reference : the generated class documentation.