Repository navigation
feat(sentrapedia): add active encounter checklist - #29
Conversation
Publish the Sentrapedia workspace refactor, inline clinical report view, active encounter task checklist and local demo launcher through the public-only export. Keep the launcher packaging assertion in sync with the existing demo mode. Co-Authored-By: OpenAI Codex <codex@openai.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Devin Review found 4 potential issues.
2 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
| export const taskDraftFrom = (result: AadiResult): string => result.nextBestActions.map(action => `${actionVerb[action.kind]}: ${action.item}`).join("\n"); | ||
| export const actionVerb = { question: "Tanyakan", exam: "Periksa", test: "Pemeriksaan penunjang" } as const; | ||
| // Each engine action stays a single suggestion, including when the item spans multiple lines. | ||
| export const taskSuggestionsFrom = (result: AadiResult): string[] => result.nextBestActions.map(action => `${actionVerb[action.kind]}: ${action.item.trim()}`); |
There was a problem hiding this comment.
🔴 Tugas pemeriksaan kehilangan syarat klinis
Saat dokter menambahkan pemeriksaan bersyarat, taskSuggestionsFrom tidak menyertakan indikasinya. Checklist dan Antrean kerja menampilkan pemeriksaan tanpa syarat yang tercantum di laporan.
Learn more
AADI mengirim nama pemeriksaan dan indikasinya sebagai kolom terpisah (kontrak tindakan). Laporan klinis menampilkan keduanya. EncounterOverview menyimpan teks saran apa adanya saat dokter menekan Tambah. QueueCard hanya menampilkan teks tersimpan, sehingga syarat tidak ikut terbawa ke antrean.
Example: Jika nama pemeriksaannya “USG abdomen” dan indikasinya “Bila nyeri kanan bawah menetap”, tugas yang tersimpan hanya berbunyi “Pemeriksaan penunjang: USG abdomen”.
Recommended fix: Sertakan indikasi yang tidak kosong di saran dan pertahankan saat menyimpan tugas. Pastikan representasi yang dipilih tetap lolos batas panjang tugas tanpa memotong syarat, dan uji tampilan tugas tersimpan di checklist serta Antrean kerja.
Was this helpful? React with 👍 or 👎 to provide feedback.
| <Section number="05" title="Tanda Bahaya dan Keselamatan Klinis"> | ||
| <h4>Kondisi yang perlu disaring</h4> | ||
| {priorities.length ? <Lines items={priorities.map((item) => `${item.label} (${item.icd10})`)}/> : <p>{unavailable}</p>} | ||
| <p><strong>Disposisi:</strong> {therapy?.disposition || unavailable}</p> |
There was a problem hiding this comment.
🟡 Urgensi hilang dari ringkasan keselamatan
Saat AADI mengembalikan kondisi untuk skrining segera dan bersyarat, AnalysisDocument menampilkan keduanya tanpa status di bagian Tanda Bahaya. Dokter harus membuka bagian Penalaran Diagnostik untuk membedakannya.
Learn more
analysisView menyertakan status tiap kandidat dari hasil AADI. Status ini membedakan kondisi yang perlu disaring segera dengan kondisi yang hanya perlu disaring bila ada indikasi. Bagian Penalaran Diagnostik menampilkan status itu, tetapi ringkasan Tanda Bahaya tidak.
Example: Satu kondisi berstatus screenNow dan kondisi lain berstatus screenIfIndicated tampil dengan format yang sama di bagian Tanda Bahaya.
Recommended fix: Tampilkan item.status pada tiap kondisi di bagian Tanda Bahaya dan tambahkan uji yang membedakan kedua status.
| <Section number="05" title="Tanda Bahaya dan Keselamatan Klinis"> | |
| <h4>Kondisi yang perlu disaring</h4> | |
| {priorities.length ? <Lines items={priorities.map((item) => `${item.label} (${item.icd10})`)}/> : <p>{unavailable}</p>} | |
| <p><strong>Disposisi:</strong> {therapy?.disposition || unavailable}</p> | |
| {priorities.length ? <Lines items={priorities.map((item) => `${item.label} (${item.icd10}) · ${item.status}`)}/> : <p>{unavailable}</p>} |
Was this helpful? React with 👍 or 👎 to provide feedback.
| <li>Status: <span className="guideline-citation-tag">Terverifikasi</span></li> | ||
| <li>Relevansi: {referenceNotes[item.id]?.relevance ?? "Lihat kutipan sumber."}</li> | ||
| </ul> | ||
| <details><summary>Kutipan sumber</summary><p className="guideline-citation-text">{item.text}</p></details> |
There was a problem hiding this comment.
🟡 Kutipan sumber hilang saat dicetak
Saat dokter langsung mencetak laporan, GuidelineCitations menyembunyikan kutipan di bagian yang tertutup. printDocument mencetak panel tanpa membukanya, sehingga hasil cetak memuat judul referensi tanpa kutipannya.
Learn more
Cetak mencetak panel laporan yang aktif. printDocument hanya menandai panel untuk dicetak, dan aturan cetak tidak membuka bagian yang terlipat. Sebelumnya, teks dari dua referensi pertama langsung tampil dan ikut tercetak.
Example: Buka laporan yang memiliki dua referensi, lalu tekan Cetak tanpa membuka Kutipan sumber. Hasil cetak memuat judul dan ID referensi, tetapi tidak memuat teks kutipannya.
Recommended fix: Tampilkan teks kutipan yang sudah dirender pada media cetak, tanpa mengubah kondisi lipatan di layar. Uji cetak laporan dengan dua kutipan yang masih tertutup.
Was this helpful? React with 👍 or 👎 to provide feedback.
| const hasTasks = Boolean(encounter?.tasks?.length); | ||
| const hasMessages = Boolean(encounter?.messages.length) || hasTasks || pendingQuestion !== null; |
There was a problem hiding this comment.
🟡 Ekspor kosong untuk encounter berisi tugas
Setelah dokter menambah tugas sebelum mengirim pesan, WorkspaceState menampilkan Ekspor. Ekspor hanya membaca pesan, sehingga file unduhan kosong.
Learn more
Pembuatan pasien langsung membuat encounter tanpa pesan. Antrean kerja tetap menampilkan encounter tersebut, dan QueueCard mengizinkan penambahan tugas. Setelah ada tugas, WorkspaceHeader menampilkan Ekspor, tetapi handler ekspor hanya menulis pesan ke Markdown.
Example: Buat pasien, tambahkan “Hubungi pasien” melalui Antrean kerja, buka encounter itu, lalu tekan Ekspor sebelum mengirim pesan. File Markdown kosong.
Recommended fix: Pisahkan kondisi untuk membuka tampilan encounter dari kondisi untuk menampilkan Ekspor. Jika ekspor tetap khusus percakapan, tampilkan tombol hanya ketika ada pesan tersimpan. Jika cakupannya mencakup checklist, sertakan tugas dan status centangnya di Markdown.
Was this helpful? React with 👍 or 👎 to provide feedback.
Executive Summary
The active encounter now shows a follow-up checklist beside the conversation. This public export also carries the preceding workspace refactor, inline clinical report navigation, and local demo launcher.
Changes Implemented
Impact Assessment
The checklist affects clinician navigation and task tracking in the workspace. The release uses the existing encounter task records and ships the sample catalogue and sample ICD-10 data. The demo launcher is for loopback testing.
Verification
Local verification ran on public commit
6f5fc543.npm ci,npm run lint, andnpm run typecheckexited 0. Lint reported three warnings.npm testexited 0. Vitest reported 948 passed, 24 skipped, and one expected failure. The site suite passed 77 tests.npm run test:systemexited 0 with 72 passed and seven skipped after dependency installation.npm run test:aadiexited 0 with 210 passed, 29 skipped, and one warning.Risks & Rollback
The release changes report navigation and task presentation. Revert the merge commit in a follow-up PR if rollback is required. Merging into the production branch triggers the linked Vercel project.
Governance & Approval
BLOCKED for merge at the product owner's direction.