🐛 fix (encounter): fetch encounter data instead of patient data

This commit is contained in:
Abizrh
2025-10-22 17:20:06 +07:00
parent a6f1abb20f
commit fe08643c0e
+1 -2
View File
@@ -49,8 +49,7 @@ const refSearchNav: RefSearchNav = {
async function getPatientList() {
isLoading.isTableLoading = true
const resp = await xfetch('/api/v1/patient')
// const resp = await xfetch('/api/v1/encounter?includes=patient,patient-person')
const resp = await xfetch('/api/v1/encounter?includes=patient,patient-person')
if (resp.success) {
data.value = (resp.body as Record<string, any>).data
}