Merge branch 'dev' into feat/consultation-82
This commit is contained in:
@@ -49,7 +49,7 @@ const refSearchNav: RefSearchNav = {
|
||||
|
||||
async function getPatientList() {
|
||||
isLoading.isTableLoading = true
|
||||
const resp = await xfetch('/api/v1/encounter')
|
||||
const resp = await xfetch('/api/v1/encounter?includes=patient,patient-person')
|
||||
if (resp.success) {
|
||||
data.value = (resp.body as Record<string, any>).data
|
||||
}
|
||||
|
||||
@@ -30,7 +30,9 @@ const activeTab = computed({
|
||||
})
|
||||
|
||||
const id = typeof route.params.id == 'string' ? parseInt(route.params.id) : 0
|
||||
const encounter = ref<Encounter>((await getDetail(id)) as Encounter)
|
||||
const encounterRes = await getDetail(id)
|
||||
const encounterResBody = encounterRes.body ?? null
|
||||
const encounter = encounterResBody?.data ?? null
|
||||
|
||||
const data = {
|
||||
noRm: 'RM21123',
|
||||
@@ -46,7 +48,7 @@ const data = {
|
||||
}
|
||||
|
||||
const tabs: TabItem[] = [
|
||||
{ value: 'status', label: 'Status Masuk/Keluar', component: Status },
|
||||
{ value: 'status', label: 'Status Masuk/Keluar', component: Status, props: { encounter } },
|
||||
{ value: 'early-medical-assessment', label: 'Pengkajian Awal Medis', component: EarlyMedicalAssesmentList },
|
||||
{
|
||||
value: 'rehab-medical-assessment',
|
||||
|
||||
Reference in New Issue
Block a user