feat (soapi): display encounter class code in soapi list

This commit is contained in:
Abizrh
2025-11-21 16:00:52 +07:00
parent 4f8407f978
commit 6e42bb5283
3 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -20,7 +20,7 @@ export const config: Config = {
],
],
keys: ['time', 'employee_id', 'main_complaint', 'encounter_id', 'diagnose', 'status', 'action'],
keys: ['time', 'employee_id', 'main_complaint', 'encounter', 'diagnose', 'status', 'action'],
delKeyNames: [
{ key: 'code', label: 'Kode' },
@@ -44,6 +44,10 @@ export const config: Config = {
return '-'
}
},
encounter(rec: any) {
const data = rec?.encounter ?? {}
return data?.class_code || '-'
},
diagnose(rec: any) {
const { value } = rec ?? {}