fix: change items encounter for roles
This commit is contained in:
@@ -149,6 +149,7 @@ onMounted(() => {
|
||||
<DialogFooter class="mt-6 flex justify-end gap-3">
|
||||
<Button variant="outline" class="border-green-600 text-green-600 hover:bg-green-50" @click="() => {
|
||||
recId = 0
|
||||
recAction = ''
|
||||
open = false
|
||||
}">
|
||||
<X class="mr-1 h-4 w-4" />
|
||||
|
||||
@@ -47,12 +47,14 @@ export const defaultItems: EncounterItem[] = [
|
||||
title: 'Protokol Kemoterapi',
|
||||
classCode: ['ambulatory'],
|
||||
unit: 'chemo',
|
||||
afterId: 'early-medical-assessment',
|
||||
},
|
||||
{
|
||||
id: 'chemotherapy-medicine',
|
||||
title: 'Protokol Obat Kemoterapi',
|
||||
classCode: ['ambulatory'],
|
||||
unit: 'chemo',
|
||||
afterId: 'chemotherapy-protocol',
|
||||
},
|
||||
{
|
||||
id: 'report',
|
||||
@@ -216,7 +218,12 @@ export const getItemsAll = (classCode: string, unit: string, items: EncounterIte
|
||||
|
||||
const listItemsForOutpatientRehab = mergeArrayAt(
|
||||
getItemsAll('ambulatory', 'all', defaultItems),
|
||||
getItemsByIds(['rehab-medical-assessment', 'function-assessment', 'therapy-protocol'], defaultItems),
|
||||
getItemsAll('ambulatory', 'rehab', defaultItems),
|
||||
)
|
||||
|
||||
const listItemsForOutpatientChemo = mergeArrayAt(
|
||||
getItemsAll('ambulatory', 'all', defaultItems),
|
||||
getItemsAll('ambulatory', 'chemo', defaultItems),
|
||||
)
|
||||
|
||||
export const listItems = {
|
||||
@@ -225,6 +232,10 @@ export const listItems = {
|
||||
'items': listItemsForOutpatientRehab,
|
||||
'roles': medicalPositions,
|
||||
},
|
||||
'unit|chemo': {
|
||||
'items': listItemsForOutpatientChemo,
|
||||
'roles': medicalPositions,
|
||||
},
|
||||
'all': getItemsAll('ambulatory', 'all', defaultItems),
|
||||
},
|
||||
'installation|emergency': {
|
||||
|
||||
@@ -249,6 +249,7 @@ export function useIntegrationSepList() {
|
||||
})
|
||||
} finally {
|
||||
recId.value = 0
|
||||
recAction.value = ''
|
||||
open.value = false
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
export const medicalPositions = ['emp|doc', 'emp|nur', 'emp|nut', 'emp|mid', 'emp|lab', 'emp|reg', 'emp|pha', 'emp|pay', 'emp|mng']
|
||||
export const medicalPositions = ['emp|doc', 'emp|lab', 'emp|mid', 'emp|nur', 'emp|nut', 'emp|pha', 'emp|reg']
|
||||
const verificatorRole = 'verificator'
|
||||
|
||||
export function getPositionAs(roleAccess: string): string {
|
||||
|
||||
Reference in New Issue
Block a user