File size: 24,256 Bytes
0c20164
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1b30143
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Patient Information Form</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <style>
        .form-section {
            transition: all 0.3s ease;
        }
        .form-section:hover {
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }
        .dropdown-arrow {
            transition: transform 0.2s ease;
        }
        .dropdown-toggle:focus + .dropdown-arrow {
            transform: rotate(180deg);
        }
        input:focus, select:focus, textarea:focus {
            outline: none;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
        }
    </style>
</head>
<body class="bg-gray-50 font-inter">
    <div class="container mx-auto px-4 py-8 max-w-6xl">
        <div class="bg-white rounded-lg shadow-md overflow-hidden mb-8">
            <div class="bg-blue-600 px-6 py-4">
                <h1 class="text-2xl font-bold text-white flex items-center">
                    <i data-feather="user" class="mr-2"></i>
                    Patient Information Form
                </h1>
            </div>

            <form class="p-6 space-y-8">
                <!-- Personal Information Section -->
                <div class="form-section bg-white border border-gray-200 rounded-lg p-6">
                    <div class="flex items-center justify-between mb-4">
                        <h2 class="text-lg font-semibold text-gray-800">Personal Information</h2>
                        <i data-feather="chevron-down" class="text-gray-500 dropdown-arrow"></i>
                    </div>

                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Patient ID</label>
                            <select class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500">
                                <option value="">Select Patient ID</option>
                                <!-- Dropdown options would be populated here -->
                            </select>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Last Name</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">First Name</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Middle Name</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Preferred Name</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Suffix</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Birthdate</label>
                            <input type="date" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Account Number</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Customer Type</label>
                            <select class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                                <option value="">Select Type</option>
                                <option value="facility_master">Facility Master</option>
                                <option value="facility_resident">Facility Resident</option>
                                <option value="patient">Patient</option>
                            </select>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Prior System Key</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Facility</label>
                            <div class="relative">
                                <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm" placeholder="Search facility...">
                                <i data-feather="search" class="absolute right-3 top-2.5 text-gray-400"></i>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Billing Address Section -->
                <div class="form-section bg-white border border-gray-200 rounded-lg p-6">
                    <div class="flex items-center justify-between mb-4">
                        <h2 class="text-lg font-semibold text-gray-800">Billing Address</h2>
                        <i data-feather="chevron-down" class="text-gray-500 dropdown-arrow"></i>
                    </div>

                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div class="col-span-2">
                            <label class="block text-sm font-medium text-gray-700 mb-1">Address</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div class="col-span-2">
                            <label class="block text-sm font-medium text-gray-700 mb-1">Address 2</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">City</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">State</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">County</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Country</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Postal Code</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm" placeholder="_____-____">
                        </div>
                    </div>
                </div>

                <!-- Campaign Information Section -->
                <div class="form-section bg-white border border-gray-200 rounded-lg p-6">
                    <div class="flex items-center justify-between mb-4">
                        <h2 class="text-lg font-semibold text-gray-800">Campaign Information</h2>
                        <i data-feather="chevron-down" class="text-gray-500 dropdown-arrow"></i>
                    </div>

                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Incont Campaign</label>
                            <select class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                                <option value="">Select Status</option>
                                <option value="successful">Successful</option>
                                <option value="unsuccessful">Unsuccessful</option>
                            </select>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Compress Campaign</label>
                            <select class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                                <option value="">Select Status</option>
                                <option value="successful">Successful</option>
                                <option value="unsuccessful">Unsuccessful</option>
                            </select>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Mailer - Incont Campaign</label>
                            <select class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                                <option value="">Select Status</option>
                                <option value="successful">Successful</option>
                                <option value="unsuccessful">Unsuccessful</option>
                            </select>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Clamp On Rail Campaign</label>
                            <select class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                                <option value="">Select Status</option>
                                <option value="successful">Successful</option>
                                <option value="unsuccessful">Unsuccessful</option>
                            </select>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">BP Machines Campaign</label>
                            <select class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                                <option value="">Select Status</option>
                                <option value="successful">Successful</option>
                                <option value="unsuccessful">Unsuccessful</option>
                            </select>
                        </div>
                    </div>
                </div>

                <!-- Extended Information Section -->
                <div class="form-section bg-white border border-gray-200 rounded-lg p-6">
                    <div class="flex items-center justify-between mb-4">
                        <h2 class="text-lg font-semibold text-gray-800">Extended Information</h2>
                        <i data-feather="chevron-down" class="text-gray-500 dropdown-arrow"></i>
                    </div>

                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                        <div class="flex items-center space-x-2">
                            <input type="checkbox" id="holdAccount" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
                            <label for="holdAccount" class="text-sm font-medium text-gray-700">Hold Account</label>
                        </div>
                        
                        <div class="flex items-center space-x-2">
                            <input type="checkbox" id="holdBilling" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
                            <label for="holdBilling" class="text-sm font-medium text-gray-700">Hold Billing Statements</label>
                        </div>
                        
                        <div class="flex items-center space-x-2">
                            <input type="checkbox" id="hipaa" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
                            <label for="hipaa" class="text-sm font-medium text-gray-700">HIPAA Signature on file</label>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Discount Percent</label>
                            <div class="relative">
                                <input type="number" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm" placeholder="%">
                                <span class="absolute right-3 top-2.5 text-gray-500">%</span>
                            </div>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Tax Zone</label>
                            <div class="relative">
                                <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm" placeholder="Search tax zone...">
                                <i data-feather="search" class="absolute right-3 top-2.5 text-gray-400"></i>
                            </div>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Branch Office</label>
                            <select class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                                <option value="">Select Branch</option>
                                <option value="nhms">New Hampshire Medical Supply</option>
                                <option value="nhms_bra">NHMS BRA</option>
                                <option value="nhms_bsc">NHMS BSC</option>
                            </select>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Account Group</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm" placeholder="1-9 A-Z">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">PT Security Group</label>
                            <select class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                                <option value="">Select PCA</option>
                                <!-- PCA options would be populated here -->
                            </select>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">User 1</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Patient Hub Email Address</label>
                            <select class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                                <option value="not_invited">Not Invited</option>
                                <!-- Other options would be here -->
                            </select>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Place of Service</label>
                            <select class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                                <option value="">Select Place</option>
                                <option value="12">12 Home</option>
                                <option value="17">17 Walkin Retail clinic</option>
                                <!-- Other options would be here -->
                            </select>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Date of Admission</label>
                            <input type="date" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Date of Discharge</label>
                            <input type="date" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                    </div>
                </div>

                <!-- Delivery Addresses Section -->
                <div class="form-section bg-white border border-gray-200 rounded-lg p-6">
                    <div class="flex items-center justify-between mb-4">
                        <h2 class="text-lg font-semibold text-gray-800">Delivery Addresses</h2>
                        <i data-feather="chevron-down" class="text-gray-500 dropdown-arrow"></i>
                    </div>

                    <div class="flex items-center mb-4">
                        <input type="checkbox" id="activeOnly" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
                        <label for="activeOnly" class="ml-2 text-sm font-medium text-gray-700">Active Addresses Only</label>
                    </div>

                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div class="col-span-2">
                            <label class="block text-sm font-medium text-gray-700 mb-1">Address</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">City</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">State</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">County</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Country</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Postal Code</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm" placeholder="_____-____">
                        </div>
                        
                        <div class="col-span-2">
                            <label class="block text-sm font-medium text-gray-700 mb-1">Description</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Phone</label>
                            <input type="tel" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm" placeholder="(___) ___-____">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Zone</label>
                            <select class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
                                <option value="">None</option>
                                <!-- Zone options would be populated here -->
                            </select>
                        </div>
                    </div>
                </div>

                <!-- Form Actions -->
                <div class="flex justify-end space-x-4 pt-6">
                    <button type="button" class="px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
                        Cancel
                    </button>
                    <button type="submit" class="px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
                        Save Patient
                    </button>
                </div>
            </form>
        </div>
    </div>

    <script>
        feather.replace();
        
        // Add interactivity to dropdown sections
        document.querySelectorAll('.form-section').forEach(section => {
            const header = section.querySelector('.flex.items-center.justify-between');
            const content = section.querySelectorAll('div:not(.flex.items-center.justify-between)');
            const arrow = section.querySelector('.dropdown-arrow');
            
            header.addEventListener('click', () => {
                content.forEach(el => {
                    el.classList.toggle('hidden');
                });
                arrow.classList.toggle('rotate-180');
            });
        });
    </script>
</body>
</html>