Merge branch 'dev' into feat/move-kai-ui-to-sidebar-195

This commit is contained in:
Muhammad Hasyim Chaidir Ali
2025-12-04 11:53:23 +07:00
committed by GitHub
76 changed files with 2860 additions and 819 deletions

No files matched your search

+13 -1
View File
@@ -51,6 +51,7 @@ const KfrListAsync = defineAsyncComponent(() => import('~/components/content/kfr
const PrbListAsync = defineAsyncComponent(() => import('~/components/content/prb/list.vue'))
const SurgeryReportListAsync = defineAsyncComponent(() => import('~/components/content/surgery-report/list.vue'))
const VaccineDataListAsync = defineAsyncComponent(() => import('~/components/content/vaccine-data/list.vue'))
const InitialNursingStudyAsync = defineAsyncComponent(() => import('~/components/content/initial-nursing/entry.vue'))
const defaultKeys: Record<string, any> = {
status: {
@@ -225,7 +226,7 @@ const defaultKeys: Record<string, any> = {
title: 'PRB',
classCode: ['ambulatory', 'emergency', 'inpatient'],
unit: 'all',
},
},
screening: {
id: 'screening',
title: 'Skrinning MPP',
@@ -256,6 +257,12 @@ const defaultKeys: Record<string, any> = {
classCode: ['ambulatory', 'emergency', 'inpatient'],
unit: 'all',
},
initialNursingStudy: {
id: 'initial-nursing-study',
title: 'Kajian Awal Keperawatan',
classCode: ['ambulatory', 'emergency', 'inpatient'],
unit: 'all',
},
}
export function getItemsByClassCode(classCode: string, items: EncounterItem[]) {
@@ -432,6 +439,11 @@ export function injectComponents(id: string | number, data: EncounterListData, m
currentKeys.priceList['props'] = { encounter_id: id }
}
if (currentKeys?.initialNursingStudy) {
currentKeys.initialNursingStudy['component'] = InitialNursingStudyAsync
currentKeys.initialNursingStudy['props'] = { encounter: data?.encounter }
}
return currentKeys
}