{"ast":null,"code":"import apiClient from './api';\nconst ENDPOINT = '/patients';\nexport const patientService = {\n  getAllPatients: () => apiClient.get(ENDPOINT),\n  getPatientById: id => apiClient.get(`${ENDPOINT}/${id}`),\n  getPatientByEmbg: embg => apiClient.get(`${ENDPOINT}/embg/${embg}`),\n  getPatientByEmail: email => apiClient.get(`${ENDPOINT}/email/${email}`),\n  createPatient: patient => apiClient.post(ENDPOINT, patient),\n  updatePatient: (id, patient) => apiClient.put(`${ENDPOINT}/${id}`, patient)\n};","map":{"version":3,"names":["apiClient","ENDPOINT","patientService","getAllPatients","get","getPatientById","id","getPatientByEmbg","embg","getPatientByEmail","email","createPatient","patient","post","updatePatient","put"],"sources":["C:/Users/User/Downloads/medora5/frontend/src/services/patientService.js"],"sourcesContent":["import apiClient from './api';\n\nconst ENDPOINT = '/patients';\n\nexport const patientService = {\n  getAllPatients: () => apiClient.get(ENDPOINT),\n\n  getPatientById: (id) => apiClient.get(`${ENDPOINT}/${id}`),\n\n  getPatientByEmbg: (embg) => apiClient.get(`${ENDPOINT}/embg/${embg}`),\n\n  getPatientByEmail: (email) => apiClient.get(`${ENDPOINT}/email/${email}`),\n\n  createPatient: (patient) => apiClient.post(ENDPOINT, patient),\n\n  updatePatient: (id, patient) => apiClient.put(`${ENDPOINT}/${id}`, patient),\n};\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,OAAO;AAE7B,MAAMC,QAAQ,GAAG,WAAW;AAE5B,OAAO,MAAMC,cAAc,GAAG;EAC5BC,cAAc,EAAEA,CAAA,KAAMH,SAAS,CAACI,GAAG,CAACH,QAAQ,CAAC;EAE7CI,cAAc,EAAGC,EAAE,IAAKN,SAAS,CAACI,GAAG,CAAC,GAAGH,QAAQ,IAAIK,EAAE,EAAE,CAAC;EAE1DC,gBAAgB,EAAGC,IAAI,IAAKR,SAAS,CAACI,GAAG,CAAC,GAAGH,QAAQ,SAASO,IAAI,EAAE,CAAC;EAErEC,iBAAiB,EAAGC,KAAK,IAAKV,SAAS,CAACI,GAAG,CAAC,GAAGH,QAAQ,UAAUS,KAAK,EAAE,CAAC;EAEzEC,aAAa,EAAGC,OAAO,IAAKZ,SAAS,CAACa,IAAI,CAACZ,QAAQ,EAAEW,OAAO,CAAC;EAE7DE,aAAa,EAAEA,CAACR,EAAE,EAAEM,OAAO,KAAKZ,SAAS,CAACe,GAAG,CAAC,GAAGd,QAAQ,IAAIK,EAAE,EAAE,EAAEM,OAAO;AAC5E,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}