feat/ap-lab-order-52: wip

This commit is contained in:
avsky0095
2025-12-08 08:05:39 +07:00
parent 2f257e6c8d
commit 122b9c5fa5
9 changed files with 1099 additions and 7 deletions
+7 -6
View File
@@ -42,6 +42,7 @@ const PrescriptionAsync = defineAsyncComponent(() => import('~/components/conten
const CpLabOrderAsync = defineAsyncComponent(() => import('~/components/content/cp-lab-order/main.vue'))
const ProcedureRoomOrderAsync = defineAsyncComponent(() => import('~/components/content/procedure-room-order/main.vue'))
const MicroLabOrderAsync = defineAsyncComponent(() => import('~/components/content/micro-lab-order/main.vue'))
const ApLabOrderAsync = defineAsyncComponent(() => import('~/components/content/ap-lab-order/main.vue'))
const CprjAsync = defineAsyncComponent(() => import('~/components/content/cprj/entry.vue'))
const RadiologyAsync = defineAsyncComponent(() => import('~/components/content/radiology-order/main.vue'))
const ConsultationAsync = defineAsyncComponent(() => import('~/components/content/consultation/list.vue'))
@@ -173,8 +174,8 @@ const defaultKeys: Record<string, any> = {
classCode: ['ambulatory', 'emergency', 'inpatient'],
unit: 'all',
},
paLabOrder: {
id: 'pa-lab-order',
apLabOrder: {
id: 'ap-lab-order',
title: 'Order Lab PA',
classCode: ['ambulatory', 'emergency', 'inpatient'],
unit: 'all',
@@ -392,10 +393,10 @@ export function injectComponents(id: string | number, data: EncounterListData, m
currentKeys.microLabOrder['component'] = MicroLabOrderAsync
currentKeys.microLabOrder['props'] = { encounter_id: id }
}
if (currentKeys?.paLabOrder) {
// TODO: add component for paLabOrder
currentKeys.paLabOrder['component'] = null
currentKeys.paLabOrder['props'] = { encounter_id: id }
if (currentKeys?.apLabOrder) {
// TODO: add component for apLabOrder
currentKeys.apLabOrder['component'] = ApLabOrderAsync
currentKeys.apLabOrder['props'] = { encounter_id: id }
}
if (currentKeys?.procedureRoomOrder) {
currentKeys.procedureRoomOrder['component'] = ProcedureRoomOrderAsync