|
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:
587 bytes
|
| Line | |
|---|
| 1 | import apiClient from './api';
|
|---|
| 2 |
|
|---|
| 3 | const ENDPOINT = '/medical-records';
|
|---|
| 4 |
|
|---|
| 5 | export const medicalRecordService = {
|
|---|
| 6 | getMedicalRecordById: (id) => apiClient.get(`${ENDPOINT}/${id}`),
|
|---|
| 7 |
|
|---|
| 8 | getMedicalRecordByPatientId: (patientId) => apiClient.get(`${ENDPOINT}/patient/${patientId}`),
|
|---|
| 9 |
|
|---|
| 10 | searchMedicalRecords: (params) => apiClient.get(`${ENDPOINT}/search`, { params }),
|
|---|
| 11 |
|
|---|
| 12 | getAllergiesForMedicalRecord: (medicalRecordId) => apiClient.get(`${ENDPOINT}/${medicalRecordId}/allergies`),
|
|---|
| 13 |
|
|---|
| 14 | getSymptomsForMedicalRecord: (medicalRecordId) => apiClient.get(`${ENDPOINT}/${medicalRecordId}/symptoms`),
|
|---|
| 15 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.