| 1 | {"ast":null,"code":"import apiClient from './api';\nconst ENDPOINT = '/medical-records';\nexport const medicalRecordService = {\n getMedicalRecordById: id => apiClient.get(`${ENDPOINT}/${id}`),\n getMedicalRecordByPatientId: patientId => apiClient.get(`${ENDPOINT}/patient/${patientId}`),\n searchMedicalRecords: params => apiClient.get(`${ENDPOINT}/search`, {\n params\n }),\n getAllergiesForMedicalRecord: medicalRecordId => apiClient.get(`${ENDPOINT}/${medicalRecordId}/allergies`),\n getSymptomsForMedicalRecord: medicalRecordId => apiClient.get(`${ENDPOINT}/${medicalRecordId}/symptoms`)\n};","map":{"version":3,"names":["apiClient","ENDPOINT","medicalRecordService","getMedicalRecordById","id","get","getMedicalRecordByPatientId","patientId","searchMedicalRecords","params","getAllergiesForMedicalRecord","medicalRecordId","getSymptomsForMedicalRecord"],"sources":["C:/Users/User/Downloads/medora5/frontend/src/services/medicalRecordService.js"],"sourcesContent":["import apiClient from './api';\n\nconst ENDPOINT = '/medical-records';\n\nexport const medicalRecordService = {\n getMedicalRecordById: (id) => apiClient.get(`${ENDPOINT}/${id}`),\n\n getMedicalRecordByPatientId: (patientId) => apiClient.get(`${ENDPOINT}/patient/${patientId}`),\n\n searchMedicalRecords: (params) => apiClient.get(`${ENDPOINT}/search`, { params }),\n\n getAllergiesForMedicalRecord: (medicalRecordId) => apiClient.get(`${ENDPOINT}/${medicalRecordId}/allergies`),\n\n getSymptomsForMedicalRecord: (medicalRecordId) => apiClient.get(`${ENDPOINT}/${medicalRecordId}/symptoms`),\n};\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,OAAO;AAE7B,MAAMC,QAAQ,GAAG,kBAAkB;AAEnC,OAAO,MAAMC,oBAAoB,GAAG;EAClCC,oBAAoB,EAAGC,EAAE,IAAKJ,SAAS,CAACK,GAAG,CAAC,GAAGJ,QAAQ,IAAIG,EAAE,EAAE,CAAC;EAEhEE,2BAA2B,EAAGC,SAAS,IAAKP,SAAS,CAACK,GAAG,CAAC,GAAGJ,QAAQ,YAAYM,SAAS,EAAE,CAAC;EAE7FC,oBAAoB,EAAGC,MAAM,IAAKT,SAAS,CAACK,GAAG,CAAC,GAAGJ,QAAQ,SAAS,EAAE;IAAEQ;EAAO,CAAC,CAAC;EAEjFC,4BAA4B,EAAGC,eAAe,IAAKX,SAAS,CAACK,GAAG,CAAC,GAAGJ,QAAQ,IAAIU,eAAe,YAAY,CAAC;EAE5GC,2BAA2B,EAAGD,eAAe,IAAKX,SAAS,CAACK,GAAG,CAAC,GAAGJ,QAAQ,IAAIU,eAAe,WAAW;AAC3G,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |
|---|