formanitor 0.3.16 → 0.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BiometryIolWorkupWidget-6YG5TGSV.mjs → BiometryIolWorkupWidget-FXEBCNOL.mjs} +36 -12
- package/dist/BiometryIolWorkupWidget-FXEBCNOL.mjs.map +1 -0
- package/dist/{BiometryIolWorkupWidget-R6K2OHUI.cjs → BiometryIolWorkupWidget-IYNC7LLO.cjs} +35 -11
- package/dist/BiometryIolWorkupWidget-IYNC7LLO.cjs.map +1 -0
- package/dist/FunctionalImpairmentScoreWidget-6PONZX4E.cjs +136 -0
- package/dist/FunctionalImpairmentScoreWidget-6PONZX4E.cjs.map +1 -0
- package/dist/FunctionalImpairmentScoreWidget-UL3VL7EH.mjs +134 -0
- package/dist/FunctionalImpairmentScoreWidget-UL3VL7EH.mjs.map +1 -0
- package/dist/LensAssessmentWidget-A63PHGPK.mjs +301 -0
- package/dist/LensAssessmentWidget-A63PHGPK.mjs.map +1 -0
- package/dist/LensAssessmentWidget-UIWGQS5G.cjs +303 -0
- package/dist/LensAssessmentWidget-UIWGQS5G.cjs.map +1 -0
- package/dist/OphthalDiagnosisWidget-EWJLDTD3.cjs +121 -0
- package/dist/OphthalDiagnosisWidget-EWJLDTD3.cjs.map +1 -0
- package/dist/OphthalDiagnosisWidget-QVCX7RJZ.mjs +119 -0
- package/dist/OphthalDiagnosisWidget-QVCX7RJZ.mjs.map +1 -0
- package/dist/{OphthalmologyWidget-VAIXSMIY.cjs → OphthalmologyWidget-BNHHQFYC.cjs} +285 -243
- package/dist/OphthalmologyWidget-BNHHQFYC.cjs.map +1 -0
- package/dist/{OphthalmologyWidget-RJNNF6NB.mjs → OphthalmologyWidget-PH3I23QD.mjs} +286 -244
- package/dist/OphthalmologyWidget-PH3I23QD.mjs.map +1 -0
- package/dist/{SurgicalRiskFlagsWidget-5TBENG4V.mjs → SurgicalRiskFlagsWidget-BO2QX2N5.mjs} +49 -24
- package/dist/SurgicalRiskFlagsWidget-BO2QX2N5.mjs.map +1 -0
- package/dist/{SurgicalRiskFlagsWidget-RPFRMDNB.cjs → SurgicalRiskFlagsWidget-QRRU4SDH.cjs} +48 -23
- package/dist/SurgicalRiskFlagsWidget-QRRU4SDH.cjs.map +1 -0
- package/dist/index.cjs +6 -6
- package/dist/index.mjs +6 -6
- package/package.json +1 -1
- package/dist/BiometryIolWorkupWidget-6YG5TGSV.mjs.map +0 -1
- package/dist/BiometryIolWorkupWidget-R6K2OHUI.cjs.map +0 -1
- package/dist/FunctionalImpairmentScoreWidget-6VTYJZN7.mjs +0 -91
- package/dist/FunctionalImpairmentScoreWidget-6VTYJZN7.mjs.map +0 -1
- package/dist/FunctionalImpairmentScoreWidget-TPVMRRFK.cjs +0 -93
- package/dist/FunctionalImpairmentScoreWidget-TPVMRRFK.cjs.map +0 -1
- package/dist/LensAssessmentWidget-CXSAHD72.mjs +0 -232
- package/dist/LensAssessmentWidget-CXSAHD72.mjs.map +0 -1
- package/dist/LensAssessmentWidget-LQN24WKD.cjs +0 -234
- package/dist/LensAssessmentWidget-LQN24WKD.cjs.map +0 -1
- package/dist/OphthalDiagnosisWidget-JQOK55U3.cjs +0 -91
- package/dist/OphthalDiagnosisWidget-JQOK55U3.cjs.map +0 -1
- package/dist/OphthalDiagnosisWidget-KASYVVWS.mjs +0 -89
- package/dist/OphthalDiagnosisWidget-KASYVVWS.mjs.map +0 -1
- package/dist/OphthalmologyWidget-RJNNF6NB.mjs.map +0 -1
- package/dist/OphthalmologyWidget-VAIXSMIY.cjs.map +0 -1
- package/dist/SurgicalRiskFlagsWidget-5TBENG4V.mjs.map +0 -1
- package/dist/SurgicalRiskFlagsWidget-RPFRMDNB.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Textarea } from './chunk-5DN3WWVH.mjs';
|
|
2
2
|
import { Input } from './chunk-BGHIYCQZ.mjs';
|
|
3
|
-
import { useField } from './chunk-ZLBAYYSO.mjs';
|
|
3
|
+
import { useField, useFormUiSkin } from './chunk-ZLBAYYSO.mjs';
|
|
4
4
|
import { cn } from './chunk-VPU66PI6.mjs';
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
6
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -104,23 +104,65 @@ function ensureValue(raw) {
|
|
|
104
104
|
notes: v.notes ?? ""
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
107
|
+
function getOphthalmologyClasses(isV2) {
|
|
108
|
+
if (!isV2) {
|
|
109
|
+
return {
|
|
110
|
+
title: "text-base font-semibold text-slate-800",
|
|
111
|
+
fieldLabel: "text-xs font-medium text-slate-700",
|
|
112
|
+
sectionWrapper: "rounded-md overflow-hidden flex flex-col border border-[#D0D0D0] bg-white",
|
|
113
|
+
sectionHeader: "rounded-t-md bg-[#FEE8EC] px-3 py-1 text-sm shrink-0 z-[1] text-slate-600 font-medium",
|
|
114
|
+
sectionHeaderTitle: "",
|
|
115
|
+
sectionBody: "rounded-b-md border-t border-[#D0D0D0] bg-white p-3 space-y-3",
|
|
116
|
+
table: "w-full border-collapse text-xs",
|
|
117
|
+
tableHeaderCell: "border border-[#E0E0E0] bg-[#F7F7F7] px-2 py-1 text-center font-semibold",
|
|
118
|
+
tableCell: "border border-[#E0E0E0] px-1.5 py-1 text-center align-middle",
|
|
119
|
+
select: "w-full border border-[#D0D0D0] rounded-md bg-white px-2 py-1 text-xs focus-visible:outline-none focus-visible:ring-0",
|
|
120
|
+
numberInput: "w-full border border-[#D0D0D0] rounded-md bg-white px-2 py-1 text-xs text-right focus-visible:outline-none focus-visible:ring-0",
|
|
121
|
+
textInput: "w-full border border-[#D0D0D0] rounded-md bg-white px-2 py-1 text-xs focus-visible:outline-none focus-visible:ring-0",
|
|
122
|
+
textarea: "min-h-[100px] text-xs",
|
|
123
|
+
refractionTable: "w-full table-fixed border-collapse text-xs",
|
|
124
|
+
refractionHeaderCell: "border border-[#E0E0E0] bg-[#F7F7F7] px-1 py-1 text-center font-semibold text-[11px]",
|
|
125
|
+
refractionDataCell: "border border-[#E0E0E0] p-0 text-center align-middle min-w-0",
|
|
126
|
+
refractionLabelCell: "border border-[#E0E0E0] px-2 py-1 text-left align-middle font-semibold whitespace-nowrap",
|
|
127
|
+
refractionInput: "h-7 w-full min-w-0 border-0 rounded-none bg-transparent px-1 py-0.5 text-xs text-right shadow-none ring-0 focus-visible:ring-0 focus-visible:ring-offset-0 disabled:opacity-50",
|
|
128
|
+
refractionSelect: "box-border h-7 w-full min-w-0 max-w-full cursor-pointer border-0 rounded-none bg-transparent px-1 py-0.5 pr-6 text-xs shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:opacity-50"
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
title: "text-sm font-semibold text-foreground",
|
|
133
|
+
fieldLabel: "text-[11px] font-medium uppercase tracking-wide text-muted-foreground",
|
|
134
|
+
// Each section is a white card with a thin solid border — same treatment
|
|
135
|
+
// as the Medications card (`rounded-xl border border-border bg-card`) —
|
|
136
|
+
// not a grey fill, so the (also-white) nested inputs don't disappear.
|
|
137
|
+
sectionWrapper: "w-full min-w-0 space-y-1.5",
|
|
138
|
+
sectionHeader: "",
|
|
139
|
+
sectionHeaderTitle: "text-[11px] font-medium uppercase tracking-wide text-muted-foreground",
|
|
140
|
+
sectionBody: "rounded-xl border border-border bg-card p-3 space-y-3",
|
|
141
|
+
table: "w-full border-collapse text-xs",
|
|
142
|
+
tableHeaderCell: "px-2 py-1.5 text-center text-[11px] font-medium uppercase tracking-wide text-muted-foreground",
|
|
143
|
+
tableCell: "border-t border-border px-1.5 py-1.5 text-center align-middle",
|
|
144
|
+
// Standalone fields (Method, Time, Patient Information, Notes) get the
|
|
145
|
+
// same grey-fill/no-border treatment as every other v2 text field
|
|
146
|
+
// (e.g. Allergies) so they read as editable against the white card.
|
|
147
|
+
select: "w-full rounded-xl border-0 bg-neutral-100 px-2 py-1.5 text-xs shadow-none focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[#8b7cf8]/50 focus-visible:ring-offset-0",
|
|
148
|
+
numberInput: "w-full rounded-xl border-0 bg-neutral-100 px-2 py-1.5 text-xs text-right shadow-none placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[#8b7cf8]/50 focus-visible:ring-offset-0",
|
|
149
|
+
textInput: "w-full rounded-xl border-0 bg-neutral-100 px-2 py-1.5 text-xs shadow-none placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[#8b7cf8]/50 focus-visible:ring-offset-0",
|
|
150
|
+
textarea: "min-h-[100px] rounded-xl border-0 bg-neutral-100 text-xs shadow-none placeholder:text-muted-foreground focus-visible:ring-1 focus-visible:ring-[#8b7cf8]/50 focus-visible:ring-offset-0",
|
|
151
|
+
// Dense grid tables: each cell gets its own small grey-filled pill (same
|
|
152
|
+
// bg-neutral-100 as every other v2 input) inset from the row divider, so
|
|
153
|
+
// it reads as an editable field instead of flush transparent text.
|
|
154
|
+
refractionTable: "w-full table-fixed border-collapse text-xs",
|
|
155
|
+
refractionHeaderCell: "px-1 py-1.5 text-center text-[11px] font-medium uppercase tracking-wide text-muted-foreground",
|
|
156
|
+
refractionDataCell: "border-t border-border p-1 text-center align-middle min-w-0",
|
|
157
|
+
refractionLabelCell: "border-t border-border px-2 py-1 text-left align-middle font-semibold whitespace-nowrap text-foreground",
|
|
158
|
+
refractionInput: "h-7 w-full min-w-0 rounded-lg border-0 bg-neutral-100 px-1.5 py-0.5 text-xs text-right shadow-none ring-0 placeholder:text-muted-foreground focus-visible:ring-1 focus-visible:ring-[#8b7cf8]/50 focus-visible:ring-offset-0 disabled:opacity-50",
|
|
159
|
+
refractionSelect: "box-border h-7 w-full min-w-0 max-w-full cursor-pointer rounded-lg border-0 bg-neutral-100 px-1.5 py-0.5 pr-6 text-xs shadow-none focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[#8b7cf8]/50 disabled:opacity-50"
|
|
160
|
+
};
|
|
161
|
+
}
|
|
122
162
|
var OphthalmologyWidget = ({ fieldId }) => {
|
|
123
163
|
const { fieldDef, value, setValue, disabled } = useField(fieldId);
|
|
164
|
+
const uiSkin = useFormUiSkin();
|
|
165
|
+
const classes = useMemo(() => getOphthalmologyClasses(uiSkin === "v2"), [uiSkin]);
|
|
124
166
|
const safe = useMemo(() => ensureValue(value), [value]);
|
|
125
167
|
const label = fieldDef?.label || "";
|
|
126
168
|
const update = (updater) => {
|
|
@@ -216,18 +258,18 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
216
258
|
}));
|
|
217
259
|
};
|
|
218
260
|
return /* @__PURE__ */ jsxs("div", { className: cn("space-y-4", disabled && "opacity-70 pointer-events-none"), children: [
|
|
219
|
-
/* @__PURE__ */ jsx("h3", { className:
|
|
220
|
-
/* @__PURE__ */ jsxs("section", { className:
|
|
221
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
222
|
-
/* @__PURE__ */ jsxs("div", { className: cn(
|
|
261
|
+
/* @__PURE__ */ jsx("h3", { className: classes.title, children: label }),
|
|
262
|
+
/* @__PURE__ */ jsxs("section", { className: classes.sectionWrapper, children: [
|
|
263
|
+
/* @__PURE__ */ jsx("div", { className: classes.sectionHeader, children: /* @__PURE__ */ jsx("span", { className: classes.sectionHeaderTitle, children: "Patient Information" }) }),
|
|
264
|
+
/* @__PURE__ */ jsxs("div", { className: cn(classes.sectionBody, "grid gap-3 md:grid-cols-3"), children: [
|
|
223
265
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
224
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
266
|
+
/* @__PURE__ */ jsx("span", { className: classes.fieldLabel, children: "Systemic History" }),
|
|
225
267
|
/* @__PURE__ */ jsx(
|
|
226
268
|
Textarea,
|
|
227
269
|
{
|
|
228
270
|
disabled,
|
|
229
271
|
rows: 4,
|
|
230
|
-
className:
|
|
272
|
+
className: classes.textarea,
|
|
231
273
|
value: safe.patient_information.systemic_history,
|
|
232
274
|
onChange: (e) => setPatientInfo("systemic_history", e.target.value),
|
|
233
275
|
placeholder: "Enter systemic history..."
|
|
@@ -235,13 +277,13 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
235
277
|
)
|
|
236
278
|
] }),
|
|
237
279
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
238
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
280
|
+
/* @__PURE__ */ jsx("span", { className: classes.fieldLabel, children: "Ocular History" }),
|
|
239
281
|
/* @__PURE__ */ jsx(
|
|
240
282
|
Textarea,
|
|
241
283
|
{
|
|
242
284
|
disabled,
|
|
243
285
|
rows: 4,
|
|
244
|
-
className:
|
|
286
|
+
className: classes.textarea,
|
|
245
287
|
value: safe.patient_information.ocular_history,
|
|
246
288
|
onChange: (e) => setPatientInfo("ocular_history", e.target.value),
|
|
247
289
|
placeholder: "Enter ocular history..."
|
|
@@ -249,13 +291,13 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
249
291
|
)
|
|
250
292
|
] }),
|
|
251
293
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
252
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
294
|
+
/* @__PURE__ */ jsx("span", { className: classes.fieldLabel, children: "Chief Complaints" }),
|
|
253
295
|
/* @__PURE__ */ jsx(
|
|
254
296
|
Textarea,
|
|
255
297
|
{
|
|
256
298
|
disabled,
|
|
257
299
|
rows: 4,
|
|
258
|
-
className:
|
|
300
|
+
className: classes.textarea,
|
|
259
301
|
value: safe.patient_information.chief_complaints,
|
|
260
302
|
onChange: (e) => setPatientInfo("chief_complaints", e.target.value),
|
|
261
303
|
placeholder: "Enter chief complaints..."
|
|
@@ -264,82 +306,82 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
264
306
|
] })
|
|
265
307
|
] })
|
|
266
308
|
] }),
|
|
267
|
-
/* @__PURE__ */ jsxs("section", { className:
|
|
268
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
269
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
309
|
+
/* @__PURE__ */ jsxs("section", { className: classes.sectionWrapper, children: [
|
|
310
|
+
/* @__PURE__ */ jsx("div", { className: classes.sectionHeader, children: /* @__PURE__ */ jsx("span", { className: classes.sectionHeaderTitle, children: "Unaided Visual Acuity" }) }),
|
|
311
|
+
/* @__PURE__ */ jsx("div", { className: classes.sectionBody, children: /* @__PURE__ */ jsxs("table", { className: classes.table, children: [
|
|
270
312
|
/* @__PURE__ */ jsxs("thead", { children: [
|
|
271
313
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
272
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
273
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
274
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
314
|
+
/* @__PURE__ */ jsx("th", { className: classes.tableHeaderCell }),
|
|
315
|
+
/* @__PURE__ */ jsx("th", { className: classes.tableHeaderCell, colSpan: 3, children: "Right Eye" }),
|
|
316
|
+
/* @__PURE__ */ jsx("th", { className: classes.tableHeaderCell, colSpan: 3, children: "Left Eye" })
|
|
275
317
|
] }),
|
|
276
318
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
277
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
278
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
279
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
280
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
281
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
282
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
283
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
319
|
+
/* @__PURE__ */ jsx("th", { className: classes.tableHeaderCell }),
|
|
320
|
+
/* @__PURE__ */ jsx("th", { className: classes.tableHeaderCell, children: "UCVA" }),
|
|
321
|
+
/* @__PURE__ */ jsx("th", { className: classes.tableHeaderCell, children: "Pinhole V/A" }),
|
|
322
|
+
/* @__PURE__ */ jsx("th", { className: classes.tableHeaderCell, children: "N/V" }),
|
|
323
|
+
/* @__PURE__ */ jsx("th", { className: classes.tableHeaderCell, children: "UCVA" }),
|
|
324
|
+
/* @__PURE__ */ jsx("th", { className: classes.tableHeaderCell, children: "Pinhole V/A" }),
|
|
325
|
+
/* @__PURE__ */ jsx("th", { className: classes.tableHeaderCell, children: "N/V" })
|
|
284
326
|
] })
|
|
285
327
|
] }),
|
|
286
328
|
/* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
287
|
-
/* @__PURE__ */ jsx("td", { className: cn(
|
|
288
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
329
|
+
/* @__PURE__ */ jsx("td", { className: cn(classes.tableCell, "font-semibold text-left px-2"), children: "Unaided" }),
|
|
330
|
+
/* @__PURE__ */ jsx("td", { className: classes.tableCell, children: /* @__PURE__ */ jsx(
|
|
289
331
|
"select",
|
|
290
332
|
{
|
|
291
333
|
disabled,
|
|
292
|
-
className:
|
|
334
|
+
className: classes.select,
|
|
293
335
|
value: safe.unaided_visual_acuity.right_eye.ucva,
|
|
294
336
|
onChange: (e) => setUnaided("right_eye", "ucva", e.target.value),
|
|
295
337
|
children: UCVA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
|
|
296
338
|
}
|
|
297
339
|
) }),
|
|
298
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
340
|
+
/* @__PURE__ */ jsx("td", { className: classes.tableCell, children: /* @__PURE__ */ jsx(
|
|
299
341
|
"select",
|
|
300
342
|
{
|
|
301
343
|
disabled,
|
|
302
|
-
className:
|
|
344
|
+
className: classes.select,
|
|
303
345
|
value: safe.unaided_visual_acuity.right_eye.pinhole_va,
|
|
304
346
|
onChange: (e) => setUnaided("right_eye", "pinhole_va", e.target.value),
|
|
305
347
|
children: PINHOLE_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
|
|
306
348
|
}
|
|
307
349
|
) }),
|
|
308
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
350
|
+
/* @__PURE__ */ jsx("td", { className: classes.tableCell, children: /* @__PURE__ */ jsx(
|
|
309
351
|
"select",
|
|
310
352
|
{
|
|
311
353
|
disabled,
|
|
312
|
-
className:
|
|
354
|
+
className: classes.select,
|
|
313
355
|
value: safe.unaided_visual_acuity.right_eye.nv,
|
|
314
356
|
onChange: (e) => setUnaided("right_eye", "nv", e.target.value),
|
|
315
357
|
children: NEAR_VA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
|
|
316
358
|
}
|
|
317
359
|
) }),
|
|
318
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
360
|
+
/* @__PURE__ */ jsx("td", { className: classes.tableCell, children: /* @__PURE__ */ jsx(
|
|
319
361
|
"select",
|
|
320
362
|
{
|
|
321
363
|
disabled,
|
|
322
|
-
className:
|
|
364
|
+
className: classes.select,
|
|
323
365
|
value: safe.unaided_visual_acuity.left_eye.ucva,
|
|
324
366
|
onChange: (e) => setUnaided("left_eye", "ucva", e.target.value),
|
|
325
367
|
children: UCVA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
|
|
326
368
|
}
|
|
327
369
|
) }),
|
|
328
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
370
|
+
/* @__PURE__ */ jsx("td", { className: classes.tableCell, children: /* @__PURE__ */ jsx(
|
|
329
371
|
"select",
|
|
330
372
|
{
|
|
331
373
|
disabled,
|
|
332
|
-
className:
|
|
374
|
+
className: classes.select,
|
|
333
375
|
value: safe.unaided_visual_acuity.left_eye.pinhole_va,
|
|
334
376
|
onChange: (e) => setUnaided("left_eye", "pinhole_va", e.target.value),
|
|
335
377
|
children: PINHOLE_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
|
|
336
378
|
}
|
|
337
379
|
) }),
|
|
338
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
380
|
+
/* @__PURE__ */ jsx("td", { className: classes.tableCell, children: /* @__PURE__ */ jsx(
|
|
339
381
|
"select",
|
|
340
382
|
{
|
|
341
383
|
disabled,
|
|
342
|
-
className:
|
|
384
|
+
className: classes.select,
|
|
343
385
|
value: safe.unaided_visual_acuity.left_eye.nv,
|
|
344
386
|
onChange: (e) => setUnaided("left_eye", "nv", e.target.value),
|
|
345
387
|
children: NEAR_VA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
|
|
@@ -348,9 +390,9 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
348
390
|
] }) })
|
|
349
391
|
] }) })
|
|
350
392
|
] }),
|
|
351
|
-
/* @__PURE__ */ jsxs("section", { className:
|
|
352
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
353
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
393
|
+
/* @__PURE__ */ jsxs("section", { className: classes.sectionWrapper, children: [
|
|
394
|
+
/* @__PURE__ */ jsx("div", { className: classes.sectionHeader, children: /* @__PURE__ */ jsx("span", { className: classes.sectionHeaderTitle, children: "Current Glass Prescription" }) }),
|
|
395
|
+
/* @__PURE__ */ jsx("div", { className: classes.sectionBody, children: /* @__PURE__ */ jsxs("table", { className: classes.refractionTable, children: [
|
|
354
396
|
/* @__PURE__ */ jsxs("colgroup", { children: [
|
|
355
397
|
/* @__PURE__ */ jsx("col", { className: "w-[10%]" }),
|
|
356
398
|
/* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
|
|
@@ -364,35 +406,35 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
364
406
|
] }),
|
|
365
407
|
/* @__PURE__ */ jsxs("thead", { children: [
|
|
366
408
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
367
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
368
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
369
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
409
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell }),
|
|
410
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, colSpan: 4, children: "Right Eye" }),
|
|
411
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, colSpan: 4, children: "Left Eye" })
|
|
370
412
|
] }),
|
|
371
413
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
372
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
373
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
374
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
375
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
376
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
377
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
378
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
379
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
380
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
414
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell }),
|
|
415
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Sph" }),
|
|
416
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Cyl" }),
|
|
417
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Axis" }),
|
|
418
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "V/A" }),
|
|
419
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Sph" }),
|
|
420
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Cyl" }),
|
|
421
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Axis" }),
|
|
422
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "V/A" })
|
|
381
423
|
] })
|
|
382
424
|
] }),
|
|
383
425
|
/* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
384
|
-
/* @__PURE__ */ jsx("td", { className: `${
|
|
426
|
+
/* @__PURE__ */ jsx("td", { className: `${classes.refractionLabelCell} whitespace-normal`, children: /* @__PURE__ */ jsxs("span", { className: "block leading-tight", children: [
|
|
385
427
|
"Current",
|
|
386
428
|
/* @__PURE__ */ jsx("br", {}),
|
|
387
429
|
"Glass"
|
|
388
430
|
] }) }),
|
|
389
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
431
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
390
432
|
Input,
|
|
391
433
|
{
|
|
392
434
|
disabled,
|
|
393
435
|
type: "number",
|
|
394
436
|
step: "0.25",
|
|
395
|
-
className:
|
|
437
|
+
className: classes.refractionInput,
|
|
396
438
|
value: safe.current_glass_prescription.right_eye.sph ?? "",
|
|
397
439
|
onChange: (e) => setRefractionField(
|
|
398
440
|
"current_glass_prescription",
|
|
@@ -403,13 +445,13 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
403
445
|
)
|
|
404
446
|
}
|
|
405
447
|
) }),
|
|
406
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
448
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
407
449
|
Input,
|
|
408
450
|
{
|
|
409
451
|
disabled,
|
|
410
452
|
type: "number",
|
|
411
453
|
step: "0.25",
|
|
412
|
-
className:
|
|
454
|
+
className: classes.refractionInput,
|
|
413
455
|
value: safe.current_glass_prescription.right_eye.cyl ?? "",
|
|
414
456
|
onChange: (e) => setRefractionField(
|
|
415
457
|
"current_glass_prescription",
|
|
@@ -420,12 +462,12 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
420
462
|
)
|
|
421
463
|
}
|
|
422
464
|
) }),
|
|
423
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
465
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
424
466
|
Input,
|
|
425
467
|
{
|
|
426
468
|
disabled,
|
|
427
469
|
type: "number",
|
|
428
|
-
className:
|
|
470
|
+
className: classes.refractionInput,
|
|
429
471
|
value: safe.current_glass_prescription.right_eye.axis ?? "",
|
|
430
472
|
onChange: (e) => setRefractionField(
|
|
431
473
|
"current_glass_prescription",
|
|
@@ -436,11 +478,11 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
436
478
|
)
|
|
437
479
|
}
|
|
438
480
|
) }),
|
|
439
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
481
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
440
482
|
"select",
|
|
441
483
|
{
|
|
442
484
|
disabled,
|
|
443
|
-
className:
|
|
485
|
+
className: classes.refractionSelect,
|
|
444
486
|
value: safe.current_glass_prescription.right_eye.va,
|
|
445
487
|
onChange: (e) => setRefractionField(
|
|
446
488
|
"current_glass_prescription",
|
|
@@ -452,13 +494,13 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
452
494
|
children: VA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
|
|
453
495
|
}
|
|
454
496
|
) }),
|
|
455
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
497
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
456
498
|
Input,
|
|
457
499
|
{
|
|
458
500
|
disabled,
|
|
459
501
|
type: "number",
|
|
460
502
|
step: "0.25",
|
|
461
|
-
className:
|
|
503
|
+
className: classes.refractionInput,
|
|
462
504
|
value: safe.current_glass_prescription.left_eye.sph ?? "",
|
|
463
505
|
onChange: (e) => setRefractionField(
|
|
464
506
|
"current_glass_prescription",
|
|
@@ -469,13 +511,13 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
469
511
|
)
|
|
470
512
|
}
|
|
471
513
|
) }),
|
|
472
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
514
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
473
515
|
Input,
|
|
474
516
|
{
|
|
475
517
|
disabled,
|
|
476
518
|
type: "number",
|
|
477
519
|
step: "0.25",
|
|
478
|
-
className:
|
|
520
|
+
className: classes.refractionInput,
|
|
479
521
|
value: safe.current_glass_prescription.left_eye.cyl ?? "",
|
|
480
522
|
onChange: (e) => setRefractionField(
|
|
481
523
|
"current_glass_prescription",
|
|
@@ -486,12 +528,12 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
486
528
|
)
|
|
487
529
|
}
|
|
488
530
|
) }),
|
|
489
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
531
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
490
532
|
Input,
|
|
491
533
|
{
|
|
492
534
|
disabled,
|
|
493
535
|
type: "number",
|
|
494
|
-
className:
|
|
536
|
+
className: classes.refractionInput,
|
|
495
537
|
value: safe.current_glass_prescription.left_eye.axis ?? "",
|
|
496
538
|
onChange: (e) => setRefractionField(
|
|
497
539
|
"current_glass_prescription",
|
|
@@ -502,11 +544,11 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
502
544
|
)
|
|
503
545
|
}
|
|
504
546
|
) }),
|
|
505
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
547
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
506
548
|
"select",
|
|
507
549
|
{
|
|
508
550
|
disabled,
|
|
509
|
-
className:
|
|
551
|
+
className: classes.refractionSelect,
|
|
510
552
|
value: safe.current_glass_prescription.left_eye.va,
|
|
511
553
|
onChange: (e) => setRefractionField(
|
|
512
554
|
"current_glass_prescription",
|
|
@@ -521,17 +563,17 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
521
563
|
] }) })
|
|
522
564
|
] }) })
|
|
523
565
|
] }),
|
|
524
|
-
/* @__PURE__ */ jsxs("section", { className:
|
|
525
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
526
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
566
|
+
/* @__PURE__ */ jsxs("section", { className: classes.sectionWrapper, children: [
|
|
567
|
+
/* @__PURE__ */ jsx("div", { className: classes.sectionHeader, children: /* @__PURE__ */ jsx("span", { className: classes.sectionHeaderTitle, children: "IOP / Pachy / CCT Detail" }) }),
|
|
568
|
+
/* @__PURE__ */ jsxs("div", { className: classes.sectionBody, children: [
|
|
527
569
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-3 md:grid-cols-[2fr,1fr] mb-3", children: [
|
|
528
570
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
529
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
571
|
+
/* @__PURE__ */ jsx("span", { className: classes.fieldLabel, children: "Method" }),
|
|
530
572
|
/* @__PURE__ */ jsx(
|
|
531
573
|
"select",
|
|
532
574
|
{
|
|
533
575
|
disabled,
|
|
534
|
-
className:
|
|
576
|
+
className: classes.select,
|
|
535
577
|
value: safe.iop_pachy_cct.method,
|
|
536
578
|
onChange: (e) => setIopMeta("method", e.target.value),
|
|
537
579
|
children: IOP_METHOD_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt || "Select Method" }, opt || "blank"))
|
|
@@ -539,72 +581,72 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
539
581
|
)
|
|
540
582
|
] }),
|
|
541
583
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
542
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
584
|
+
/* @__PURE__ */ jsx("span", { className: classes.fieldLabel, children: "Time" }),
|
|
543
585
|
/* @__PURE__ */ jsx(
|
|
544
586
|
Input,
|
|
545
587
|
{
|
|
546
588
|
disabled,
|
|
547
589
|
placeholder: "HH:MM",
|
|
548
|
-
className:
|
|
590
|
+
className: classes.textInput,
|
|
549
591
|
value: safe.iop_pachy_cct.time,
|
|
550
592
|
onChange: (e) => setIopMeta("time", e.target.value)
|
|
551
593
|
}
|
|
552
594
|
)
|
|
553
595
|
] })
|
|
554
596
|
] }),
|
|
555
|
-
/* @__PURE__ */ jsxs("table", { className:
|
|
597
|
+
/* @__PURE__ */ jsxs("table", { className: classes.table, children: [
|
|
556
598
|
/* @__PURE__ */ jsxs("thead", { children: [
|
|
557
599
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
558
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
559
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
560
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
600
|
+
/* @__PURE__ */ jsx("th", { className: classes.tableHeaderCell }),
|
|
601
|
+
/* @__PURE__ */ jsx("th", { className: classes.tableHeaderCell, colSpan: 2, children: "Right Eye" }),
|
|
602
|
+
/* @__PURE__ */ jsx("th", { className: classes.tableHeaderCell, colSpan: 2, children: "Left Eye" })
|
|
561
603
|
] }),
|
|
562
604
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
563
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
564
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
565
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
566
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
567
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
605
|
+
/* @__PURE__ */ jsx("th", { className: classes.tableHeaderCell }),
|
|
606
|
+
/* @__PURE__ */ jsx("th", { className: classes.tableHeaderCell, children: "IOP" }),
|
|
607
|
+
/* @__PURE__ */ jsx("th", { className: classes.tableHeaderCell, children: "CCT" }),
|
|
608
|
+
/* @__PURE__ */ jsx("th", { className: classes.tableHeaderCell, children: "IOP" }),
|
|
609
|
+
/* @__PURE__ */ jsx("th", { className: classes.tableHeaderCell, children: "CCT" })
|
|
568
610
|
] })
|
|
569
611
|
] }),
|
|
570
612
|
/* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
571
|
-
/* @__PURE__ */ jsx("td", { className: cn(
|
|
572
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
613
|
+
/* @__PURE__ */ jsx("td", { className: cn(classes.tableCell, "font-semibold text-left px-2"), children: "Values" }),
|
|
614
|
+
/* @__PURE__ */ jsx("td", { className: classes.tableCell, children: /* @__PURE__ */ jsx(
|
|
573
615
|
Input,
|
|
574
616
|
{
|
|
575
617
|
disabled,
|
|
576
618
|
type: "number",
|
|
577
|
-
className:
|
|
619
|
+
className: classes.numberInput,
|
|
578
620
|
value: safe.iop_pachy_cct.right_eye.iop ?? "",
|
|
579
621
|
onChange: (e) => setIopField("right_eye", "iop", e.target.value)
|
|
580
622
|
}
|
|
581
623
|
) }),
|
|
582
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
624
|
+
/* @__PURE__ */ jsx("td", { className: classes.tableCell, children: /* @__PURE__ */ jsx(
|
|
583
625
|
Input,
|
|
584
626
|
{
|
|
585
627
|
disabled,
|
|
586
628
|
type: "number",
|
|
587
|
-
className:
|
|
629
|
+
className: classes.numberInput,
|
|
588
630
|
value: safe.iop_pachy_cct.right_eye.cct ?? "",
|
|
589
631
|
onChange: (e) => setIopField("right_eye", "cct", e.target.value)
|
|
590
632
|
}
|
|
591
633
|
) }),
|
|
592
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
634
|
+
/* @__PURE__ */ jsx("td", { className: classes.tableCell, children: /* @__PURE__ */ jsx(
|
|
593
635
|
Input,
|
|
594
636
|
{
|
|
595
637
|
disabled,
|
|
596
638
|
type: "number",
|
|
597
|
-
className:
|
|
639
|
+
className: classes.numberInput,
|
|
598
640
|
value: safe.iop_pachy_cct.left_eye.iop ?? "",
|
|
599
641
|
onChange: (e) => setIopField("left_eye", "iop", e.target.value)
|
|
600
642
|
}
|
|
601
643
|
) }),
|
|
602
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
644
|
+
/* @__PURE__ */ jsx("td", { className: classes.tableCell, children: /* @__PURE__ */ jsx(
|
|
603
645
|
Input,
|
|
604
646
|
{
|
|
605
647
|
disabled,
|
|
606
648
|
type: "number",
|
|
607
|
-
className:
|
|
649
|
+
className: classes.numberInput,
|
|
608
650
|
value: safe.iop_pachy_cct.left_eye.cct ?? "",
|
|
609
651
|
onChange: (e) => setIopField("left_eye", "cct", e.target.value)
|
|
610
652
|
}
|
|
@@ -613,9 +655,9 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
613
655
|
] })
|
|
614
656
|
] })
|
|
615
657
|
] }),
|
|
616
|
-
/* @__PURE__ */ jsxs("section", { className:
|
|
617
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
618
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
658
|
+
/* @__PURE__ */ jsxs("section", { className: classes.sectionWrapper, children: [
|
|
659
|
+
/* @__PURE__ */ jsx("div", { className: classes.sectionHeader, children: /* @__PURE__ */ jsx("span", { className: classes.sectionHeaderTitle, children: "Refraction (Distance)" }) }),
|
|
660
|
+
/* @__PURE__ */ jsx("div", { className: classes.sectionBody, children: /* @__PURE__ */ jsxs("table", { className: classes.refractionTable, children: [
|
|
619
661
|
/* @__PURE__ */ jsxs("colgroup", { children: [
|
|
620
662
|
/* @__PURE__ */ jsx("col", { className: "w-[10%]" }),
|
|
621
663
|
/* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
|
|
@@ -631,34 +673,34 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
631
673
|
] }),
|
|
632
674
|
/* @__PURE__ */ jsxs("thead", { children: [
|
|
633
675
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
634
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
635
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
636
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
676
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell }),
|
|
677
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, colSpan: 5, children: "Right Eye" }),
|
|
678
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, colSpan: 5, children: "Left Eye" })
|
|
637
679
|
] }),
|
|
638
680
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
639
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
640
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
641
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
642
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
643
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
644
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
645
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
646
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
647
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
648
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
649
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
681
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell }),
|
|
682
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Sph" }),
|
|
683
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Cyl" }),
|
|
684
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Axis" }),
|
|
685
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "BCVA" }),
|
|
686
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "P/D" }),
|
|
687
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Sph" }),
|
|
688
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Cyl" }),
|
|
689
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Axis" }),
|
|
690
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "BCVA" }),
|
|
691
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "P/D" })
|
|
650
692
|
] })
|
|
651
693
|
] }),
|
|
652
694
|
/* @__PURE__ */ jsxs("tbody", { children: [
|
|
653
695
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
654
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
655
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
696
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionLabelCell, children: "Distance" }),
|
|
697
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
656
698
|
Input,
|
|
657
699
|
{
|
|
658
700
|
disabled,
|
|
659
701
|
type: "number",
|
|
660
702
|
step: "0.25",
|
|
661
|
-
className:
|
|
703
|
+
className: classes.refractionInput,
|
|
662
704
|
value: safe.refraction.right_eye.sph ?? "",
|
|
663
705
|
onChange: (e) => setRefractionField(
|
|
664
706
|
"refraction",
|
|
@@ -669,13 +711,13 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
669
711
|
)
|
|
670
712
|
}
|
|
671
713
|
) }),
|
|
672
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
714
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
673
715
|
Input,
|
|
674
716
|
{
|
|
675
717
|
disabled,
|
|
676
718
|
type: "number",
|
|
677
719
|
step: "0.25",
|
|
678
|
-
className:
|
|
720
|
+
className: classes.refractionInput,
|
|
679
721
|
value: safe.refraction.right_eye.cyl ?? "",
|
|
680
722
|
onChange: (e) => setRefractionField(
|
|
681
723
|
"refraction",
|
|
@@ -686,12 +728,12 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
686
728
|
)
|
|
687
729
|
}
|
|
688
730
|
) }),
|
|
689
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
731
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
690
732
|
Input,
|
|
691
733
|
{
|
|
692
734
|
disabled,
|
|
693
735
|
type: "number",
|
|
694
|
-
className:
|
|
736
|
+
className: classes.refractionInput,
|
|
695
737
|
value: safe.refraction.right_eye.axis ?? "",
|
|
696
738
|
onChange: (e) => setRefractionField(
|
|
697
739
|
"refraction",
|
|
@@ -702,11 +744,11 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
702
744
|
)
|
|
703
745
|
}
|
|
704
746
|
) }),
|
|
705
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
747
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
706
748
|
"select",
|
|
707
749
|
{
|
|
708
750
|
disabled,
|
|
709
|
-
className:
|
|
751
|
+
className: classes.refractionSelect,
|
|
710
752
|
value: safe.refraction.right_eye.va,
|
|
711
753
|
onChange: (e) => setRefractionField(
|
|
712
754
|
"refraction",
|
|
@@ -718,7 +760,7 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
718
760
|
children: VA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
|
|
719
761
|
}
|
|
720
762
|
) }),
|
|
721
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
763
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
722
764
|
Input,
|
|
723
765
|
{
|
|
724
766
|
disabled,
|
|
@@ -726,18 +768,18 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
726
768
|
min: 10,
|
|
727
769
|
max: 45,
|
|
728
770
|
step: "1",
|
|
729
|
-
className:
|
|
771
|
+
className: classes.refractionInput,
|
|
730
772
|
value: safe.refraction.right_eye.pd ?? "",
|
|
731
773
|
onChange: (e) => setRefractionField("refraction", "right_eye", "pd", e.target.value, "int")
|
|
732
774
|
}
|
|
733
775
|
) }),
|
|
734
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
776
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
735
777
|
Input,
|
|
736
778
|
{
|
|
737
779
|
disabled,
|
|
738
780
|
type: "number",
|
|
739
781
|
step: "0.25",
|
|
740
|
-
className:
|
|
782
|
+
className: classes.refractionInput,
|
|
741
783
|
value: safe.refraction.left_eye.sph ?? "",
|
|
742
784
|
onChange: (e) => setRefractionField(
|
|
743
785
|
"refraction",
|
|
@@ -748,13 +790,13 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
748
790
|
)
|
|
749
791
|
}
|
|
750
792
|
) }),
|
|
751
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
793
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
752
794
|
Input,
|
|
753
795
|
{
|
|
754
796
|
disabled,
|
|
755
797
|
type: "number",
|
|
756
798
|
step: "0.25",
|
|
757
|
-
className:
|
|
799
|
+
className: classes.refractionInput,
|
|
758
800
|
value: safe.refraction.left_eye.cyl ?? "",
|
|
759
801
|
onChange: (e) => setRefractionField(
|
|
760
802
|
"refraction",
|
|
@@ -765,12 +807,12 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
765
807
|
)
|
|
766
808
|
}
|
|
767
809
|
) }),
|
|
768
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
810
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
769
811
|
Input,
|
|
770
812
|
{
|
|
771
813
|
disabled,
|
|
772
814
|
type: "number",
|
|
773
|
-
className:
|
|
815
|
+
className: classes.refractionInput,
|
|
774
816
|
value: safe.refraction.left_eye.axis ?? "",
|
|
775
817
|
onChange: (e) => setRefractionField(
|
|
776
818
|
"refraction",
|
|
@@ -781,11 +823,11 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
781
823
|
)
|
|
782
824
|
}
|
|
783
825
|
) }),
|
|
784
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
826
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
785
827
|
"select",
|
|
786
828
|
{
|
|
787
829
|
disabled,
|
|
788
|
-
className:
|
|
830
|
+
className: classes.refractionSelect,
|
|
789
831
|
value: safe.refraction.left_eye.va,
|
|
790
832
|
onChange: (e) => setRefractionField(
|
|
791
833
|
"refraction",
|
|
@@ -797,7 +839,7 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
797
839
|
children: VA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
|
|
798
840
|
}
|
|
799
841
|
) }),
|
|
800
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
842
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
801
843
|
Input,
|
|
802
844
|
{
|
|
803
845
|
disabled,
|
|
@@ -805,32 +847,32 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
805
847
|
min: 10,
|
|
806
848
|
max: 45,
|
|
807
849
|
step: "1",
|
|
808
|
-
className:
|
|
850
|
+
className: classes.refractionInput,
|
|
809
851
|
value: safe.refraction.left_eye.pd ?? "",
|
|
810
852
|
onChange: (e) => setRefractionField("refraction", "left_eye", "pd", e.target.value, "int")
|
|
811
853
|
}
|
|
812
854
|
) })
|
|
813
855
|
] }),
|
|
814
856
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
815
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
816
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
857
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionLabelCell, children: "Add" }),
|
|
858
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, colSpan: 5, children: /* @__PURE__ */ jsx(
|
|
817
859
|
Input,
|
|
818
860
|
{
|
|
819
861
|
disabled,
|
|
820
862
|
type: "number",
|
|
821
863
|
step: "0.25",
|
|
822
|
-
className:
|
|
864
|
+
className: classes.refractionInput,
|
|
823
865
|
value: safe.refraction.add.right ?? "",
|
|
824
866
|
onChange: (e) => setRefractionAdd("refraction", "right", e.target.value)
|
|
825
867
|
}
|
|
826
868
|
) }),
|
|
827
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
869
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, colSpan: 5, children: /* @__PURE__ */ jsx(
|
|
828
870
|
Input,
|
|
829
871
|
{
|
|
830
872
|
disabled,
|
|
831
873
|
type: "number",
|
|
832
874
|
step: "0.25",
|
|
833
|
-
className:
|
|
875
|
+
className: classes.refractionInput,
|
|
834
876
|
value: safe.refraction.add.left ?? "",
|
|
835
877
|
onChange: (e) => setRefractionAdd("refraction", "left", e.target.value)
|
|
836
878
|
}
|
|
@@ -839,9 +881,9 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
839
881
|
] })
|
|
840
882
|
] }) })
|
|
841
883
|
] }),
|
|
842
|
-
/* @__PURE__ */ jsxs("section", { className:
|
|
843
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
844
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
884
|
+
/* @__PURE__ */ jsxs("section", { className: classes.sectionWrapper, children: [
|
|
885
|
+
/* @__PURE__ */ jsx("div", { className: classes.sectionHeader, children: /* @__PURE__ */ jsx("span", { className: classes.sectionHeaderTitle, children: "Dilated Refraction" }) }),
|
|
886
|
+
/* @__PURE__ */ jsx("div", { className: classes.sectionBody, children: /* @__PURE__ */ jsxs("table", { className: classes.refractionTable, children: [
|
|
845
887
|
/* @__PURE__ */ jsxs("colgroup", { children: [
|
|
846
888
|
/* @__PURE__ */ jsx("col", { className: "w-[10%]" }),
|
|
847
889
|
/* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
|
|
@@ -857,34 +899,34 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
857
899
|
] }),
|
|
858
900
|
/* @__PURE__ */ jsxs("thead", { children: [
|
|
859
901
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
860
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
861
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
862
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
902
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell }),
|
|
903
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, colSpan: 5, children: "Right Eye" }),
|
|
904
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, colSpan: 5, children: "Left Eye" })
|
|
863
905
|
] }),
|
|
864
906
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
865
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
866
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
867
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
868
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
869
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
870
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
871
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
872
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
873
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
874
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
875
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
907
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell }),
|
|
908
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Sph" }),
|
|
909
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Cyl" }),
|
|
910
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Axis" }),
|
|
911
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Prism" }),
|
|
912
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "V/A" }),
|
|
913
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Sph" }),
|
|
914
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Cyl" }),
|
|
915
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Axis" }),
|
|
916
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Prism" }),
|
|
917
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "V/A" })
|
|
876
918
|
] })
|
|
877
919
|
] }),
|
|
878
920
|
/* @__PURE__ */ jsxs("tbody", { children: [
|
|
879
921
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
880
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
881
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
922
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionLabelCell, children: "Dilated" }),
|
|
923
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
882
924
|
Input,
|
|
883
925
|
{
|
|
884
926
|
disabled,
|
|
885
927
|
type: "number",
|
|
886
928
|
step: "0.25",
|
|
887
|
-
className:
|
|
929
|
+
className: classes.refractionInput,
|
|
888
930
|
value: safe.dilated_refraction.right_eye.sph ?? "",
|
|
889
931
|
onChange: (e) => setRefractionField(
|
|
890
932
|
"dilated_refraction",
|
|
@@ -895,13 +937,13 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
895
937
|
)
|
|
896
938
|
}
|
|
897
939
|
) }),
|
|
898
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
940
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
899
941
|
Input,
|
|
900
942
|
{
|
|
901
943
|
disabled,
|
|
902
944
|
type: "number",
|
|
903
945
|
step: "0.25",
|
|
904
|
-
className:
|
|
946
|
+
className: classes.refractionInput,
|
|
905
947
|
value: safe.dilated_refraction.right_eye.cyl ?? "",
|
|
906
948
|
onChange: (e) => setRefractionField(
|
|
907
949
|
"dilated_refraction",
|
|
@@ -912,12 +954,12 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
912
954
|
)
|
|
913
955
|
}
|
|
914
956
|
) }),
|
|
915
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
957
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
916
958
|
Input,
|
|
917
959
|
{
|
|
918
960
|
disabled,
|
|
919
961
|
type: "number",
|
|
920
|
-
className:
|
|
962
|
+
className: classes.refractionInput,
|
|
921
963
|
value: safe.dilated_refraction.right_eye.axis ?? "",
|
|
922
964
|
onChange: (e) => setRefractionField(
|
|
923
965
|
"dilated_refraction",
|
|
@@ -928,13 +970,13 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
928
970
|
)
|
|
929
971
|
}
|
|
930
972
|
) }),
|
|
931
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
973
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
932
974
|
Input,
|
|
933
975
|
{
|
|
934
976
|
disabled,
|
|
935
977
|
type: "number",
|
|
936
978
|
step: "0.25",
|
|
937
|
-
className:
|
|
979
|
+
className: classes.refractionInput,
|
|
938
980
|
value: safe.dilated_refraction.right_eye.prism ?? "",
|
|
939
981
|
onChange: (e) => setRefractionField(
|
|
940
982
|
"dilated_refraction",
|
|
@@ -945,11 +987,11 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
945
987
|
)
|
|
946
988
|
}
|
|
947
989
|
) }),
|
|
948
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
990
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
949
991
|
"select",
|
|
950
992
|
{
|
|
951
993
|
disabled,
|
|
952
|
-
className:
|
|
994
|
+
className: classes.refractionSelect,
|
|
953
995
|
value: safe.dilated_refraction.right_eye.va,
|
|
954
996
|
onChange: (e) => setRefractionField(
|
|
955
997
|
"dilated_refraction",
|
|
@@ -961,13 +1003,13 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
961
1003
|
children: VA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
|
|
962
1004
|
}
|
|
963
1005
|
) }),
|
|
964
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1006
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
965
1007
|
Input,
|
|
966
1008
|
{
|
|
967
1009
|
disabled,
|
|
968
1010
|
type: "number",
|
|
969
1011
|
step: "0.25",
|
|
970
|
-
className:
|
|
1012
|
+
className: classes.refractionInput,
|
|
971
1013
|
value: safe.dilated_refraction.left_eye.sph ?? "",
|
|
972
1014
|
onChange: (e) => setRefractionField(
|
|
973
1015
|
"dilated_refraction",
|
|
@@ -978,13 +1020,13 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
978
1020
|
)
|
|
979
1021
|
}
|
|
980
1022
|
) }),
|
|
981
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1023
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
982
1024
|
Input,
|
|
983
1025
|
{
|
|
984
1026
|
disabled,
|
|
985
1027
|
type: "number",
|
|
986
1028
|
step: "0.25",
|
|
987
|
-
className:
|
|
1029
|
+
className: classes.refractionInput,
|
|
988
1030
|
value: safe.dilated_refraction.left_eye.cyl ?? "",
|
|
989
1031
|
onChange: (e) => setRefractionField(
|
|
990
1032
|
"dilated_refraction",
|
|
@@ -995,12 +1037,12 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
995
1037
|
)
|
|
996
1038
|
}
|
|
997
1039
|
) }),
|
|
998
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1040
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
999
1041
|
Input,
|
|
1000
1042
|
{
|
|
1001
1043
|
disabled,
|
|
1002
1044
|
type: "number",
|
|
1003
|
-
className:
|
|
1045
|
+
className: classes.refractionInput,
|
|
1004
1046
|
value: safe.dilated_refraction.left_eye.axis ?? "",
|
|
1005
1047
|
onChange: (e) => setRefractionField(
|
|
1006
1048
|
"dilated_refraction",
|
|
@@ -1011,13 +1053,13 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
1011
1053
|
)
|
|
1012
1054
|
}
|
|
1013
1055
|
) }),
|
|
1014
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1056
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
1015
1057
|
Input,
|
|
1016
1058
|
{
|
|
1017
1059
|
disabled,
|
|
1018
1060
|
type: "number",
|
|
1019
1061
|
step: "0.25",
|
|
1020
|
-
className:
|
|
1062
|
+
className: classes.refractionInput,
|
|
1021
1063
|
value: safe.dilated_refraction.left_eye.prism ?? "",
|
|
1022
1064
|
onChange: (e) => setRefractionField(
|
|
1023
1065
|
"dilated_refraction",
|
|
@@ -1028,11 +1070,11 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
1028
1070
|
)
|
|
1029
1071
|
}
|
|
1030
1072
|
) }),
|
|
1031
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1073
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
1032
1074
|
"select",
|
|
1033
1075
|
{
|
|
1034
1076
|
disabled,
|
|
1035
|
-
className:
|
|
1077
|
+
className: classes.refractionSelect,
|
|
1036
1078
|
value: safe.dilated_refraction.left_eye.va,
|
|
1037
1079
|
onChange: (e) => setRefractionField(
|
|
1038
1080
|
"dilated_refraction",
|
|
@@ -1046,25 +1088,25 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
1046
1088
|
) })
|
|
1047
1089
|
] }),
|
|
1048
1090
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
1049
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1050
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1091
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionLabelCell, children: "Add" }),
|
|
1092
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, colSpan: 5, children: /* @__PURE__ */ jsx(
|
|
1051
1093
|
Input,
|
|
1052
1094
|
{
|
|
1053
1095
|
disabled,
|
|
1054
1096
|
type: "number",
|
|
1055
1097
|
step: "0.25",
|
|
1056
|
-
className:
|
|
1098
|
+
className: classes.refractionInput,
|
|
1057
1099
|
value: safe.dilated_refraction.add.right ?? "",
|
|
1058
1100
|
onChange: (e) => setRefractionAdd("dilated_refraction", "right", e.target.value)
|
|
1059
1101
|
}
|
|
1060
1102
|
) }),
|
|
1061
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1103
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, colSpan: 5, children: /* @__PURE__ */ jsx(
|
|
1062
1104
|
Input,
|
|
1063
1105
|
{
|
|
1064
1106
|
disabled,
|
|
1065
1107
|
type: "number",
|
|
1066
1108
|
step: "0.25",
|
|
1067
|
-
className:
|
|
1109
|
+
className: classes.refractionInput,
|
|
1068
1110
|
value: safe.dilated_refraction.add.left ?? "",
|
|
1069
1111
|
onChange: (e) => setRefractionAdd("dilated_refraction", "left", e.target.value)
|
|
1070
1112
|
}
|
|
@@ -1073,9 +1115,9 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
1073
1115
|
] })
|
|
1074
1116
|
] }) })
|
|
1075
1117
|
] }),
|
|
1076
|
-
/* @__PURE__ */ jsxs("section", { className:
|
|
1077
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
1078
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
1118
|
+
/* @__PURE__ */ jsxs("section", { className: classes.sectionWrapper, children: [
|
|
1119
|
+
/* @__PURE__ */ jsx("div", { className: classes.sectionHeader, children: /* @__PURE__ */ jsx("span", { className: classes.sectionHeaderTitle, children: "Glass Power Prescription" }) }),
|
|
1120
|
+
/* @__PURE__ */ jsx("div", { className: classes.sectionBody, children: /* @__PURE__ */ jsxs("table", { className: classes.refractionTable, children: [
|
|
1079
1121
|
/* @__PURE__ */ jsxs("colgroup", { children: [
|
|
1080
1122
|
/* @__PURE__ */ jsx("col", { className: "w-[10%]" }),
|
|
1081
1123
|
/* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
|
|
@@ -1091,34 +1133,34 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
1091
1133
|
] }),
|
|
1092
1134
|
/* @__PURE__ */ jsxs("thead", { children: [
|
|
1093
1135
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
1094
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
1095
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
1096
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
1136
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell }),
|
|
1137
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, colSpan: 5, children: "Right Eye" }),
|
|
1138
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, colSpan: 5, children: "Left Eye" })
|
|
1097
1139
|
] }),
|
|
1098
1140
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
1099
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
1100
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
1101
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
1102
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
1103
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
1104
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
1105
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
1106
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
1107
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
1108
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
1109
|
-
/* @__PURE__ */ jsx("th", { className:
|
|
1141
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell }),
|
|
1142
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Sph" }),
|
|
1143
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Cyl" }),
|
|
1144
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Axis" }),
|
|
1145
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Prism" }),
|
|
1146
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "V/A" }),
|
|
1147
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Sph" }),
|
|
1148
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Cyl" }),
|
|
1149
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Axis" }),
|
|
1150
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "Prism" }),
|
|
1151
|
+
/* @__PURE__ */ jsx("th", { className: classes.refractionHeaderCell, children: "V/A" })
|
|
1110
1152
|
] })
|
|
1111
1153
|
] }),
|
|
1112
1154
|
/* @__PURE__ */ jsxs("tbody", { children: [
|
|
1113
1155
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
1114
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1115
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1156
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionLabelCell, children: "Glass Power" }),
|
|
1157
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
1116
1158
|
Input,
|
|
1117
1159
|
{
|
|
1118
1160
|
disabled,
|
|
1119
1161
|
type: "number",
|
|
1120
1162
|
step: "0.25",
|
|
1121
|
-
className:
|
|
1163
|
+
className: classes.refractionInput,
|
|
1122
1164
|
value: safe.glass_power_prescription.right_eye.sph ?? "",
|
|
1123
1165
|
onChange: (e) => setRefractionField(
|
|
1124
1166
|
"glass_power_prescription",
|
|
@@ -1129,13 +1171,13 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
1129
1171
|
)
|
|
1130
1172
|
}
|
|
1131
1173
|
) }),
|
|
1132
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1174
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
1133
1175
|
Input,
|
|
1134
1176
|
{
|
|
1135
1177
|
disabled,
|
|
1136
1178
|
type: "number",
|
|
1137
1179
|
step: "0.25",
|
|
1138
|
-
className:
|
|
1180
|
+
className: classes.refractionInput,
|
|
1139
1181
|
value: safe.glass_power_prescription.right_eye.cyl ?? "",
|
|
1140
1182
|
onChange: (e) => setRefractionField(
|
|
1141
1183
|
"glass_power_prescription",
|
|
@@ -1146,12 +1188,12 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
1146
1188
|
)
|
|
1147
1189
|
}
|
|
1148
1190
|
) }),
|
|
1149
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1191
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
1150
1192
|
Input,
|
|
1151
1193
|
{
|
|
1152
1194
|
disabled,
|
|
1153
1195
|
type: "number",
|
|
1154
|
-
className:
|
|
1196
|
+
className: classes.refractionInput,
|
|
1155
1197
|
value: safe.glass_power_prescription.right_eye.axis ?? "",
|
|
1156
1198
|
onChange: (e) => setRefractionField(
|
|
1157
1199
|
"glass_power_prescription",
|
|
@@ -1162,13 +1204,13 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
1162
1204
|
)
|
|
1163
1205
|
}
|
|
1164
1206
|
) }),
|
|
1165
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1207
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
1166
1208
|
Input,
|
|
1167
1209
|
{
|
|
1168
1210
|
disabled,
|
|
1169
1211
|
type: "number",
|
|
1170
1212
|
step: "0.25",
|
|
1171
|
-
className:
|
|
1213
|
+
className: classes.refractionInput,
|
|
1172
1214
|
value: safe.glass_power_prescription.right_eye.prism ?? "",
|
|
1173
1215
|
onChange: (e) => setRefractionField(
|
|
1174
1216
|
"glass_power_prescription",
|
|
@@ -1179,11 +1221,11 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
1179
1221
|
)
|
|
1180
1222
|
}
|
|
1181
1223
|
) }),
|
|
1182
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1224
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
1183
1225
|
"select",
|
|
1184
1226
|
{
|
|
1185
1227
|
disabled,
|
|
1186
|
-
className:
|
|
1228
|
+
className: classes.refractionSelect,
|
|
1187
1229
|
value: safe.glass_power_prescription.right_eye.va,
|
|
1188
1230
|
onChange: (e) => setRefractionField(
|
|
1189
1231
|
"glass_power_prescription",
|
|
@@ -1195,13 +1237,13 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
1195
1237
|
children: VA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
|
|
1196
1238
|
}
|
|
1197
1239
|
) }),
|
|
1198
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1240
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
1199
1241
|
Input,
|
|
1200
1242
|
{
|
|
1201
1243
|
disabled,
|
|
1202
1244
|
type: "number",
|
|
1203
1245
|
step: "0.25",
|
|
1204
|
-
className:
|
|
1246
|
+
className: classes.refractionInput,
|
|
1205
1247
|
value: safe.glass_power_prescription.left_eye.sph ?? "",
|
|
1206
1248
|
onChange: (e) => setRefractionField(
|
|
1207
1249
|
"glass_power_prescription",
|
|
@@ -1212,13 +1254,13 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
1212
1254
|
)
|
|
1213
1255
|
}
|
|
1214
1256
|
) }),
|
|
1215
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1257
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
1216
1258
|
Input,
|
|
1217
1259
|
{
|
|
1218
1260
|
disabled,
|
|
1219
1261
|
type: "number",
|
|
1220
1262
|
step: "0.25",
|
|
1221
|
-
className:
|
|
1263
|
+
className: classes.refractionInput,
|
|
1222
1264
|
value: safe.glass_power_prescription.left_eye.cyl ?? "",
|
|
1223
1265
|
onChange: (e) => setRefractionField(
|
|
1224
1266
|
"glass_power_prescription",
|
|
@@ -1229,12 +1271,12 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
1229
1271
|
)
|
|
1230
1272
|
}
|
|
1231
1273
|
) }),
|
|
1232
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1274
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
1233
1275
|
Input,
|
|
1234
1276
|
{
|
|
1235
1277
|
disabled,
|
|
1236
1278
|
type: "number",
|
|
1237
|
-
className:
|
|
1279
|
+
className: classes.refractionInput,
|
|
1238
1280
|
value: safe.glass_power_prescription.left_eye.axis ?? "",
|
|
1239
1281
|
onChange: (e) => setRefractionField(
|
|
1240
1282
|
"glass_power_prescription",
|
|
@@ -1245,13 +1287,13 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
1245
1287
|
)
|
|
1246
1288
|
}
|
|
1247
1289
|
) }),
|
|
1248
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1290
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
1249
1291
|
Input,
|
|
1250
1292
|
{
|
|
1251
1293
|
disabled,
|
|
1252
1294
|
type: "number",
|
|
1253
1295
|
step: "0.25",
|
|
1254
|
-
className:
|
|
1296
|
+
className: classes.refractionInput,
|
|
1255
1297
|
value: safe.glass_power_prescription.left_eye.prism ?? "",
|
|
1256
1298
|
onChange: (e) => setRefractionField(
|
|
1257
1299
|
"glass_power_prescription",
|
|
@@ -1262,11 +1304,11 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
1262
1304
|
)
|
|
1263
1305
|
}
|
|
1264
1306
|
) }),
|
|
1265
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1307
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, children: /* @__PURE__ */ jsx(
|
|
1266
1308
|
"select",
|
|
1267
1309
|
{
|
|
1268
1310
|
disabled,
|
|
1269
|
-
className:
|
|
1311
|
+
className: classes.refractionSelect,
|
|
1270
1312
|
value: safe.glass_power_prescription.left_eye.va,
|
|
1271
1313
|
onChange: (e) => setRefractionField(
|
|
1272
1314
|
"glass_power_prescription",
|
|
@@ -1280,25 +1322,25 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
1280
1322
|
) })
|
|
1281
1323
|
] }),
|
|
1282
1324
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
1283
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1284
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1325
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionLabelCell, children: "Add" }),
|
|
1326
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, colSpan: 5, children: /* @__PURE__ */ jsx(
|
|
1285
1327
|
Input,
|
|
1286
1328
|
{
|
|
1287
1329
|
disabled,
|
|
1288
1330
|
type: "number",
|
|
1289
1331
|
step: "0.25",
|
|
1290
|
-
className:
|
|
1332
|
+
className: classes.refractionInput,
|
|
1291
1333
|
value: safe.glass_power_prescription.add.right ?? "",
|
|
1292
1334
|
onChange: (e) => setRefractionAdd("glass_power_prescription", "right", e.target.value)
|
|
1293
1335
|
}
|
|
1294
1336
|
) }),
|
|
1295
|
-
/* @__PURE__ */ jsx("td", { className:
|
|
1337
|
+
/* @__PURE__ */ jsx("td", { className: classes.refractionDataCell, colSpan: 5, children: /* @__PURE__ */ jsx(
|
|
1296
1338
|
Input,
|
|
1297
1339
|
{
|
|
1298
1340
|
disabled,
|
|
1299
1341
|
type: "number",
|
|
1300
1342
|
step: "0.25",
|
|
1301
|
-
className:
|
|
1343
|
+
className: classes.refractionInput,
|
|
1302
1344
|
value: safe.glass_power_prescription.add.left ?? "",
|
|
1303
1345
|
onChange: (e) => setRefractionAdd("glass_power_prescription", "left", e.target.value)
|
|
1304
1346
|
}
|
|
@@ -1307,14 +1349,14 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
1307
1349
|
] })
|
|
1308
1350
|
] }) })
|
|
1309
1351
|
] }),
|
|
1310
|
-
/* @__PURE__ */ jsxs("section", { className:
|
|
1311
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
1312
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
1352
|
+
/* @__PURE__ */ jsxs("section", { className: classes.sectionWrapper, children: [
|
|
1353
|
+
/* @__PURE__ */ jsx("div", { className: classes.sectionHeader, children: /* @__PURE__ */ jsx("span", { className: classes.sectionHeaderTitle, children: "Notes" }) }),
|
|
1354
|
+
/* @__PURE__ */ jsx("div", { className: classes.sectionBody, children: /* @__PURE__ */ jsx(
|
|
1313
1355
|
Textarea,
|
|
1314
1356
|
{
|
|
1315
1357
|
disabled,
|
|
1316
1358
|
rows: 4,
|
|
1317
|
-
className:
|
|
1359
|
+
className: classes.textarea,
|
|
1318
1360
|
placeholder: "Enter additional notes...",
|
|
1319
1361
|
value: safe.notes,
|
|
1320
1362
|
onChange: (e) => setNotes(e.target.value)
|
|
@@ -1325,5 +1367,5 @@ var OphthalmologyWidget = ({ fieldId }) => {
|
|
|
1325
1367
|
};
|
|
1326
1368
|
|
|
1327
1369
|
export { OphthalmologyWidget };
|
|
1328
|
-
//# sourceMappingURL=OphthalmologyWidget-
|
|
1329
|
-
//# sourceMappingURL=OphthalmologyWidget-
|
|
1370
|
+
//# sourceMappingURL=OphthalmologyWidget-PH3I23QD.mjs.map
|
|
1371
|
+
//# sourceMappingURL=OphthalmologyWidget-PH3I23QD.mjs.map
|