eLabSDK2.Utilities.Barcode

Hierarchy

  • default

    Barcode

Methods

generateSampleBarcode

Static generateSampleBarcode(barcode): string

This function generates a barcode for a sample by adding extending the given barcode to 15 characters long and adding 005 as prefix.

Parameters

NameTypeDescription
barcodestring | numberthe barcode of the sample you want to generate a sampleBarcode for

Returns

string

the new generated barcode


generateSampleBarcodeURL

Static generateSampleBarcodeURL(barcode, isAltID?): string

This function generates the barcode url for a sample

Parameters

NameTypeDefault valueDescription
barcodestring | numberundefinedthe barcode of the sample
isAltID?booleanfalsea boolean that is used to when the given barcode is form an altID, meaning that we dont have to add extra prefix here

Returns

string

the generated url


© 2023 eLabNext