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

103 lines
4.1 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.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="48"
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) : "") | uppercase}}
</div>
<div class="right-column">&nbsp; &nbsp; &nbsp; &nbsp;{{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.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.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>
<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>
<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>