Barcodes in Print
Steps to generate Barcode in the Print
Download JsBarcode.all.min.js and include in the html script tag
<script src="{{path}}/JsBarcode.all.min.js"></script>Create an image tag with parameter jsbarcode-value which holds the value that can be used to generate the barcode.
<img id="barcode"
jsbarcode-value="{{patient.primaryIdentifier.identifier}}"
</img>Initialize the barcode generation by adding below mentioned script tag
<script>
(function() {
JsBarcode("#barcode").init();
})();
</script>원문 정보
원문 보기 ↗Bahmni Wiki · CC BY-SA 4.0