fix(encounter): change params resource value
This commit is contained in:
@@ -67,7 +67,7 @@ function toNavigateSep(values: any) {
|
||||
delete values['subSpecialistCode']
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Object.keys(values).forEach((field) => {
|
||||
if (values[field]) {
|
||||
queryParams.append(toKebabCase(field), values[field])
|
||||
@@ -86,7 +86,12 @@ function handleEvent(menu: string, value?: any) {
|
||||
navigateTo('/client/patient/add')
|
||||
} else if (menu === 'add-sep') {
|
||||
recSelectId.value = null
|
||||
toNavigateSep({ sourcePath: route.path, resource: 'encounter', isService: 'false', ...value })
|
||||
toNavigateSep({
|
||||
isService: 'false',
|
||||
sourcePath: route.path,
|
||||
resource: `${props.classCode}-${props.subClassCode}`,
|
||||
...value,
|
||||
})
|
||||
} else if (menu === 'save') {
|
||||
console.log('Save encounter:', value)
|
||||
} else if (menu === 'cancel') {
|
||||
@@ -133,7 +138,7 @@ async function handleFetchDoctors(subSpecialistId: string | null = null) {
|
||||
try {
|
||||
// Build filter based on selection type
|
||||
const filterParams: any = { 'page-size': 100, includes: 'employee-Person' }
|
||||
|
||||
|
||||
if (!subSpecialistId) {
|
||||
const doctors = await getDoctorValueLabelList(filterParams)
|
||||
doctorsList.value = doctors
|
||||
|
||||
Reference in New Issue
Block a user