Hibc

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

Namespace: Com\Tecnick\Barcode\Type

File: Hibc.php line 43

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.

Tags

Constants

CHARSET

File: Hibc.php line 51

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

Methods

checkCharacter()

File: Hibc.php line 166

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 153

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