feat: enhance encounter process with user data logging and component integration

This commit is contained in:
riefive
2025-11-24 14:47:00 +07:00
parent 1053d794a0
commit 3a2ad11a0e
2 changed files with 16 additions and 8 deletions
@@ -40,12 +40,12 @@ const id = typeof route.params.id == 'string' ? parseInt(route.params.id) : 0
const data = ref<any>(null)
const isShowPatient = computed(() => data.value && data.value?.patient?.person)
console.log(user)
if (activePosition.value === 'none') { // if user position is none, redirect to home page
router.push('/')
}
console.log(JSON.stringify(user, null, 4))
// Dummy rows for ProtocolList (matches keys expected by list-cfg.protocol)
const protocolRows = [
{
@@ -82,7 +82,7 @@ function handleClick(type: string) {
}
function initMenus() {
menus.value = getMenuItems(id, props, user, activePosition.value, {
menus.value = getMenuItems(id, props, user, {
status: data.value,
medicalAssessment: data.value,
medicalAssessmentRehab: data.value,