|
Last change
on this file since d30d820 was d30d820, checked in by MBK <marija.karapandzova@…>, 4 months ago |
|
Add pages and routing for medical recors, medical reports and referrals with api services
|
-
Property mode
set to
100644
|
|
File size:
538 bytes
|
| Rev | Line | |
|---|
| [d30d820] | 1 | import apiClient from './api';
|
|---|
| 2 |
|
|---|
| 3 | const ENDPOINT = '/medical-reports';
|
|---|
| 4 |
|
|---|
| 5 | export const medicalReportService = {
|
|---|
| 6 | createReport: (reportData) => apiClient.post(ENDPOINT, reportData),
|
|---|
| 7 | getReportById: (reportId) => apiClient.get(`${ENDPOINT}/${reportId}`),
|
|---|
| 8 | getReportsForMedicalRecord: (medicalRecordId) => apiClient.get(`${ENDPOINT}/record/${medicalRecordId}`),
|
|---|
| 9 | updateReport: (reportId, description) => apiClient.put(`${ENDPOINT}/${reportId}`, { description }),
|
|---|
| 10 | deleteReport: (reportId) => apiClient.delete(`${ENDPOINT}/${reportId}`),
|
|---|
| 11 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.