TreatmentType and ProsthesisType database shcema and data updated. Lab dispatch wired through new data.
This commit is contained in:
13
frontend/src/lib/api/prosthesis-catalog.ts
Normal file
13
frontend/src/lib/api/prosthesis-catalog.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { apiClient } from './client';
|
||||
import type { ProsthesisCatalogEntry } from '@/types/treatment-catalog';
|
||||
|
||||
export const prosthesisCatalogApi = {
|
||||
list: async (
|
||||
labOrganizationId?: string,
|
||||
): Promise<{ success: boolean; data: ProsthesisCatalogEntry[] }> => {
|
||||
const response = await apiClient.get('/prosthesis-catalog', {
|
||||
params: labOrganizationId ? { labOrganizationId } : undefined,
|
||||
});
|
||||
return response.data;
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user