|
|
|
|
@ -97,7 +97,7 @@ public function getMainDetail()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$barcodeContent = $value->patient_type == 0 ? substr($value->episodeid, -10) : $value->app_num;
|
|
|
|
|
$barcodeContent = $value->patient_type == 0 ? substr($value->episodeid, -10) : $value->reg_num;
|
|
|
|
|
$generator = new \Picqer\Barcode\BarcodeGeneratorPNG();
|
|
|
|
|
$barcodePng = $generator->getBarcode($barcodeContent, $generator::TYPE_CODE_128, 2, 40);
|
|
|
|
|
$value->barcode = base64_encode($barcodePng);
|
|
|
|
|
|