47 lines
1.6 KiB
HTML
47 lines
1.6 KiB
HTML
![]() |
<style>
|
||
|
#barcode {
|
||
|
width: 2.2cm;
|
||
|
height: 18px;
|
||
|
margin-top: 5px;
|
||
|
padding-left: 0px;
|
||
|
padding-right: 0px;
|
||
|
margin-left: 3px;
|
||
|
margin-right: 0px;
|
||
|
float: right;
|
||
|
}
|
||
|
/* @media print {
|
||
|
.container {
|
||
|
margin: 0 20px
|
||
|
}
|
||
|
} */
|
||
|
</style>
|
||
|
<div class="container placeholder-text "
|
||
|
style="background-color: gainsboro;height: 30px; line-height: 30px; font-size: 11px;">
|
||
|
<b>Name: </b><span style="text-transform: uppercase;">{{patient.name}}</span> |
|
||
|
<span><b>Patient ID:</b> {{patient.identifier}}</span> |
|
||
|
<span><b>Gender:</b><!-- {{patient.gender}} | -->
|
||
|
<span ng-if="patient.gender == 'M' ">Male | </span>
|
||
|
<span ng-if="patient.gender == 'F' ">Female | </span>
|
||
|
<span ng-if="patient.gender == 'O' ">Other | </span>
|
||
|
</span>
|
||
|
<span><b>Age:</b> {{patient.age}} Years | </span>
|
||
|
<span><b>Mobile:</b> {{patient.phoneNumber.value}}</span>
|
||
|
<span><img id="barcode"
|
||
|
jsbarcode-displayValue="false"
|
||
|
jsbarcode-fontSize="4"
|
||
|
jsbarcode-height="35"
|
||
|
jsbarcode-margin="0"
|
||
|
jsbarcode-textAlign="left"
|
||
|
jsbarcode-textMargin="0"
|
||
|
jsbarcode-value="{{patient.identifier}}"
|
||
|
jsbarcode-width="2"
|
||
|
/></span>
|
||
|
<br><br>
|
||
|
</div>
|
||
|
|
||
|
<script src="/bahmni_config/openmrs/apps/JsBarcode.all.min.js" type="text/javascript"></script>
|
||
|
<script>
|
||
|
(function () {
|
||
|
JsBarcode("#barcode").init();
|
||
|
})();
|
||
|
</script>
|