Training MAR (Simulated)
Select a patient
Choose from the list to view the MAR.
Pass view:
Shift:
Medication Order / Directions Due / Document
Alerts & Reminders (training)
Flags are simulated and generated from the sample data.
Administration Log
Document an admin from the MAR to populate this log.
Simulated Patient Profile
Training-only demographics & clinical context
`; const w = window.open("", "_blank"); w.document.open(); w.document.write(html); w.document.close(); }); exportJson.addEventListener("click", ()=>{ const payload = { exportedAt: new Date().toISOString(), facility: sampleData.facility, selectedPatientId, state }; const blob = new Blob([JSON.stringify(payload,null,2)], {type:"application/json"}); const url = URL.createObjectURL(blob); const a = document.createElement("a"); a.href = url; a.download = "training_mar_export.json"; document.body.appendChild(a); a.click(); a.remove(); URL.revokeObjectURL(url); }); // ---------- Init ---------- function init(){ renderPatients(); // pick first patient by default for convenience selectPatient(sampleData.patients[0].id); // default view passPreset.value = "today"; shiftSel.value = "all"; viewDate = formatDate(new Date()); shiftFilter = "all"; renderMAR(); } init();