-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPatient-label-generator-v1.5.html
More file actions
129 lines (125 loc) · 5.8 KB
/
Patient-label-generator-v1.5.html
File metadata and controls
129 lines (125 loc) · 5.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Data Entry</title>
<style>
@page {
size: A4;
margin: 0;
}
body {
font-family: Calibri, sans-serif;
font-size: 10.5pt;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.input-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 20px;
}
.container {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(10, 1fr);
width: 210mm;
height: 297mm;
padding: 0;
box-sizing: border-box;
margin: 0;
}
.cell {
width: 52.5mm;
height: 29.7mm;
box-sizing: border-box;
padding: 2.4mm;
font-size: 10.5pt;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
border: 0.05px dotted #000;
}
.input-field {
width: 60mm;
height: 30mm;
box-sizing: border-box;
padding: 10px;
font-size: 16px;
font-family: Calibri, sans-serif;
margin-bottom: 20px;
}
.button {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
margin-bottom: 10px;
}
.heading {
font-size: 9pt;
font-weight: bold;
text-align: center;
margin-bottom: 10px;
}
@media print {
body, .container {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
.input-container, .heading {
display: none;
}
.cell {
border: 0.05px dotted #000;
}
}
</style>
</head>
<body>
<div class="heading">
Desktop application for patient label printing, v 1.5, release date 12 Jul 2024,<br>
License: GNU GPL v3. Copyright: Prof. Jyotirmay Kirtania, Department of Anesthesiology, Critical Care & Pain,<br>
MPMMCC & HBCH (Tata Memorial Centre) Varanasi
<br>Label paper specifications & print settings: WxH 198 x 112 p, (52.5 mm x 29.7 mm, 40 in A4, Calibri 12, cell padding 0.35 mm, single sided print to paper size A4, print actual size)<br/>
</div>
<div class="input-container">
<textarea class="input-field" id="dataInput" placeholder="Paste your data here..."></textarea>
<button class="button" onclick="populateCells()">Generate Labels</button>
<button class="button" onclick="window.print()">Print</button>
</div>
<div class="container" id="gridContainer">
</div>
<script>
function populateCells() {
const inputCellValue = document.getElementById('dataInput').value;
for (let i = 0; i < 40; i++) {
document.getElementById(`cell${i}`).innerText = inputCellValue;
}
}
// Initialize the grid cells
document.addEventListener('DOMContentLoaded', (event) => {
const container = document.getElementById('gridContainer');
for (let i = 0; i < 40; i++) {
const cellDiv = document.createElement('div');
cellDiv.className = 'cell';
cellDiv.id = `cell${i}`;
container.appendChild(cellDiv);
}
});
</script>
<details>
<summary class="hint">License and Medical Disclaimer</summary>
<section class="card">
<body><small>Software License: GNU GPL v3. Copyright (C) [2024] [Prof. Jyotirmay Kirtania]. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Medical Disclaimer (Cognitive Assist & Record Keeping). IMPORTANT: PLEASE READ CAREFULLY BEFORE USE. NOT A MEDICAL DEVICE: This tool is a Clinical Decision Support System (CDSS) intended for educational and cognitive assistance purposes only. It has not been cleared or approved by the FDA, EMA, or any other regulatory body for use as a primary medical device. NO SUBSTITUTE FOR CLINICAL JUDGMENT: This tool is designed to assist, not replace, the clinical judgment of qualified healthcare professionals. All calculations and logic must be independently verified against institutional standards before clinical application. DATA PRIVACY: This tool is designed to run locally on the user's device. No data is transmitted to external servers by the software. The user is solely responsible for ensuring that the use of this tool complies with local patient data privacy laws (e.g., HIPAA, GDPR) and institutional IT policies. LIMITATION OF LIABILITY: In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.</small>
</body>
</html>