Hibc

Hibc data structure class HIBC (Health Industry Bar Code) data structures

Namespace: Com\Tecnick\Barcode\Type

File: Hibc.php line 46

Hibc data structure class HIBC (Health Industry Bar Code) data structures

Validates a data structure of the Supplier Labeling Standard (ANSI/HIBC 2.6) or of the Provider Applications Standard (ANSI/HIBC 1.3) and appends the modulo 43 check character. The data structure is independent of the symbology that carries it, so the same string is handed unchanged to CODE 39, CODE 128, Data Matrix, QR Code or Aztec Code.

HIBC and HIBCC are trademarks of the Health Industry Business Communications Council.

Tags

Constants

CHARSET

File: Hibc.php line 54

public string CHARSET = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%'

Methods

checkCharacter()

File: Hibc.php line 169

public checkCharacter(string $code) : string

It is the character whose value is the remainder of the division by 43 of the sum of the values of all the characters of the message.

Parameters

  • $code : string: Data structure without the check character.

Return values

string

format()

File: Hibc.php line 156

public format(string $code) : string

Parameters

  • $code : string: Data structure, including the leading flag character and without the check character.

Tags

  • throws: Exception if the data structure is malformed

Return values

string