🩺

PediSalud

Dr. Martín Medina Moncada

Pediatría y Neumología Pediátrica

PediSalud v1.0 © 2026

🩺 PediSalud — Receta Médica

Paciente: ${r.first_name} ${r.last_name} | Expediente: ${r.expediente}

Fecha: ${formatDate(r.prescription_date)} | Doctor: ${r.doctor_name}


Medicamentos:

${(r.medications || []).map(m => `
${m.nombre} — ${m.presentacion}
Dosis: ${m.dosis}
${m.instrucciones ? `Instrucciones: ${m.instrucciones}` : ''}
`).join('')} ${r.general_instructions ? `

Indicaciones generales: ${r.general_instructions}

` : ''} `); win.document.close(); win.print(); api('PATCH', `/prescriptions/${id}/printed`, {}); }); } // ============================================================ // INICIO // ============================================================ window.addEventListener('DOMContentLoaded', () => { if (TOKEN && USER) { initApp(); } // Cerrar sidebar al hacer click fuera en mobile document.addEventListener('click', (e) => { if (window.innerWidth <= 768 && !e.target.closest('.sidebar') && !e.target.closest('.hamburger')) { closeSidebar(); } }); });