path = the path of the downloaded file (JSBarcode.all.min.js). One can choose different files from https://github.com/lindell/JsBarcode depending on the configurations
Create an image tag with parameter jsbarcode-value which holds the value that can be used to generate the barcode.
In above code snippet,patient.identifier will hold the identifier of the patient. This identifier which is alphanumeric (most cases) is used to generate the barcode.