NINS_CODE/bahmni_config/openmrs/apps/registration/oldRegistrationForm1/print.html

86 lines
3.6 KiB
HTML
Raw Permalink Normal View History

2024-12-12 22:37:39 +06:00
<link rel="stylesheet" href="/bahmni_config/openmrs/apps/registration/reprint/css/print.css"/>
<style>
.common-padding {
padding-top: 4.4cm;
padding-left: 2.7cm;
font-weight: bold;
}
.container {
margin: 0 auto;
width: 100%;
}
.left-column {
float: left;
width: 60%;
}
.right-column {
float: left;
width: 40%;
}
</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="45"
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.33cm;" 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.78cm;" class="container">
<div class="left-column">{{patient.givenName + (patient.middleName ? (" " + patient.middleName) : "") + (patient.familyName ? (" " + patient.familyName) : "") | uppercase}}</div>
<div class="right-column">Date: {{patient.registrationDate | date}}(<span
style="font-size: 12px;">প্রিন্ট:</span>
<script>document.write(new Date().toLocaleDateString("en", {
year: "numeric",
month: "short",
day: "2-digit"
}));</script>)</div>
</div>
<div class="container" style="padding-top: 1.5cm;">
<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.years != 0 ? patient.age.years + ' Y ': ''}} {{patient.age.months != 0 ? patient.age.months + ' M ': ''}} {{patient.age.days != 0 ? patient.age.days + ' D ': ''}} </span> <br>
<span style="font-weight: bold">Contact Number: {{patient.phoneNumber}}</span>
</div>
</div>
<div style="padding-top: 2.0cm;">
<span>
{{observations[2].complexData.data.name}}
</span>
</div>
</div>
</div>
<div class="mujib_borso" style="position: fixed; top: 5px; right: 0; width: 150px; height:90px; margin-right: 5px; margin-top: 3px">
<img src="/bahmni_config/openmrs/apps/registration/oldRegistrationForm1/images/mlogo.png" width="100%" height="90%"/>
</div>
<script type="text/javascript" src="/bahmni_config/openmrs/apps/JsBarcode.all.min.js"></script>
<script>
(function () {
JsBarcode("#barcode").init();
})();
</script>