84 lines
3.3 KiB
HTML
84 lines
3.3 KiB
HTML
![]() |
<link rel="stylesheet" href="/bahmni_config/openmrs/apps/registration/reprint/css/print.css"/>
|
||
|
<style>
|
||
|
.common-padding {
|
||
|
padding-top: 4.75cm;
|
||
|
padding-left: 4cm;
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
.container {
|
||
|
margin: 0 auto;
|
||
|
width: 100%;
|
||
|
}
|
||
|
.left-column {
|
||
|
float: left;
|
||
|
width: 58%;
|
||
|
}
|
||
|
.right-column {
|
||
|
float: left;
|
||
|
width: 42%;
|
||
|
}
|
||
|
|
||
|
</style>
|
||
|
<div class="common-padding">
|
||
|
<div>
|
||
|
<span style="float:right; padding-right: 0.5cm">
|
||
|
<img id="barcode"
|
||
|
jsbarcode-value="{{patient.primaryIdentifier.identifier}}"
|
||
|
jsbarcode-width="2"
|
||
|
jsbarcode-height="50"
|
||
|
jsbarcode-margin="0"
|
||
|
jsbarcode-displayValue="false"
|
||
|
jsbarcode-textAlign="left"
|
||
|
jsbarcode-textMargin="0"
|
||
|
jsbarcode-fontSize="10"
|
||
|
|
||
|
/>
|
||
|
</span>
|
||
|
</div>
|
||
|
<div style="padding-top: 2cm">
|
||
|
<div style="padding-top: 0.2cm;" class="container">
|
||
|
<div class="left-column"><span>{{patient.primaryIdentifier.identifier}}</span></div>
|
||
|
<div class="right-column"><span>Patient Type: {{obs['Patient Visit Type'][0].shortName}}</span></div>
|
||
|
</div>
|
||
|
<div style="padding-top: 0.65cm;" class="container">
|
||
|
<div class="left-column">{{patient.givenName + (patient.middleName ? (" " + patient.middleName) : "") + (patient.familyName ? (" " + patient.familyName) : "")}}</div>
|
||
|
<div class="right-column"> {{observations[0].observationDateTime | bahmniDate}}</div>
|
||
|
</div>
|
||
|
<div class="container" style="padding-top: 1.2cm;">
|
||
|
<div class="left-column">
|
||
|
{{patient.address.address1 ? patient.address.address1 + "," : ""}}
|
||
|
{{patient.address.address2 ? patient.address.address2 + "," : ""}}
|
||
|
{{patient.address.address3 ? patient.address.address3 + "," : ""}}
|
||
|
<br>
|
||
|
{{patient.address.address4 ? patient.address.address4 + "," : ""}}
|
||
|
{{patient.address.address5 ? patient.address.address5 + "," : ""}}
|
||
|
{{patient.address.countyDistrict ? patient.address.countyDistrict + "," : ""}}
|
||
|
{{patient.address.stateProvince}}
|
||
|
</div>
|
||
|
<div class="right-column">
|
||
|
<span style="font-weight: bold">Gender: {{patient.gender}} Age: {{patient.age | age}}</span> <br>
|
||
|
<span style="font-weight: bold">Contact Number: {{patient.phoneNumber}}</span>
|
||
|
<span style="font-weight: bold">Category: {{obs['Registration Patient Category'][0].shortName}}</span>
|
||
|
<span style="font-weight: bold" ng-if="patient.occupation">, Occupation: {{patient.occupation.value}}</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div ng-if="patient.occupation" style="padding-top: 2.2cm;">
|
||
|
<span>
|
||
|
{{observations[2].complexData.data.name}}
|
||
|
</span>
|
||
|
</div>
|
||
|
<div ng-if="!patient.occupation" style="padding-top: 2.3cm;">
|
||
|
<span>
|
||
|
{{observations[2].complexData.data.name}}
|
||
|
</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<script type="text/javascript" src="/bahmni_config/openmrs/apps/JsBarcode.all.min.js"></script>
|
||
|
<script>
|
||
|
(function () {
|
||
|
JsBarcode("#barcode").init();
|
||
|
})();
|
||
|
</script>
|