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
| Name | Type | Description |
|---|---|---|
barcode | string | number | the 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
| Name | Type | Default value | Description |
|---|---|---|---|
barcode | string | number | undefined | the barcode of the sample |
isAltID? | boolean | false | a 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
Updated about 5 hours ago