🐛 fix (encounter): fetch encounter data instead of patient data
This commit is contained in:
@@ -49,8 +49,7 @@ const refSearchNav: RefSearchNav = {
|
|||||||
|
|
||||||
async function getPatientList() {
|
async function getPatientList() {
|
||||||
isLoading.isTableLoading = true
|
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) {
|
if (resp.success) {
|
||||||
data.value = (resp.body as Record<string, any>).data
|
data.value = (resp.body as Record<string, any>).data
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user