feat: pre-fill doctor name with default NPI provider in Lab RX popup

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-07-02 23:55:23 -04:00
parent 75ecd7cc20
commit ce2e03e505

View File

@@ -175,7 +175,7 @@ export function LabRxModal({ open, onClose, patient }: Props) {
const openRx = (t: LabRxTemplate) => {
if (renamingId !== null) return;
setRxTemplate(t);
setRx(EMPTY_RX);
setRx({ ...EMPTY_RX, doctorName: providers[0]?.providerName ?? "" });
};
const startRename = (e: React.MouseEvent, t: LabRxTemplate) => {