From 3969d0dc86c850aa4589193d6a1375f94b59a7da Mon Sep 17 00:00:00 2001 From: pedrogomes5913 Date: Tue, 30 Sep 2025 21:53:36 -0300 Subject: [PATCH] fix: mostra arquivo anexado no laudo, exporta laudo completo em PDF --- susconecta/app/profissional/page.tsx | 66 ++++++++++++---------------- 1 file changed, 29 insertions(+), 37 deletions(-) diff --git a/susconecta/app/profissional/page.tsx b/susconecta/app/profissional/page.tsx index 72e03d5..102526a 100644 --- a/susconecta/app/profissional/page.tsx +++ b/susconecta/app/profissional/page.tsx @@ -1626,7 +1626,7 @@ const ProfissionalPage = () => { ); -// --- LaudoEditor COMPONENT --- + function LaudoEditor() { const [showHistorico, setShowHistorico] = useState(false); const [file, setFile] = useState(null); @@ -1648,7 +1648,7 @@ function LaudoEditor() { const [laudos, setLaudos] = useState([]); const [preview, setPreview] = useState(false); - // Função para selecionar paciente e preencher dados automaticamente + function handleSelectPaciente(p: { nome: string; cpf: string; idade: string; sexo?: string }) { setPaciente(p.nome); setCpf(p.cpf); @@ -1680,7 +1680,7 @@ function LaudoEditor() { return (
- {/* Se ainda não selecionou paciente, mostra seleção */} + {!paciente ? (
@@ -1725,7 +1725,7 @@ function LaudoEditor() {
) : ( - // Após selecionar paciente, mostra o editor de laudo completo +
@@ -1742,7 +1742,7 @@ function LaudoEditor() { Trocar paciente
- {/* Campo de CID */} +
- {/* Editor de laudo */} +