{"ast":null,"code":"import apiClient from './api';\nconst ENDPOINT = '/referrals';\nexport const referralService = {\n  createReferral: referralData => {\n    return apiClient.post(ENDPOINT, {\n      medicalRecordId: referralData.medicalRecordId,\n      fromDoctorId: referralData.fromDoctorId,\n      toDoctorId: referralData.toDoctorId,\n      reason: referralData.reason,\n      referralDate: referralData.referralDate,\n      appointmentDate: referralData.appointmentDate,\n      appointmentTime: referralData.appointmentTime\n    });\n  },\n  getReferralById: id => apiClient.get(`${ENDPOINT}/${id}`),\n  getReferralsByFromDoctor: doctorId => apiClient.get(`${ENDPOINT}/from-doctor/${doctorId}`),\n  getReferralsByToDoctor: doctorId => apiClient.get(`${ENDPOINT}/to-doctor/${doctorId}`),\n  getReferralsByPatient: patientId => apiClient.get(`${ENDPOINT}/patient/${patientId}`)\n};","map":{"version":3,"names":["apiClient","ENDPOINT","referralService","createReferral","referralData","post","medicalRecordId","fromDoctorId","toDoctorId","reason","referralDate","appointmentDate","appointmentTime","getReferralById","id","get","getReferralsByFromDoctor","doctorId","getReferralsByToDoctor","getReferralsByPatient","patientId"],"sources":["C:/Users/User/Downloads/medora5/frontend/src/services/referralService.js"],"sourcesContent":["import apiClient from './api';\n\nconst ENDPOINT = '/referrals';\n\nexport const referralService = {\n  createReferral: (referralData) => {\n    return apiClient.post(ENDPOINT, {\n      medicalRecordId: referralData.medicalRecordId,\n      fromDoctorId: referralData.fromDoctorId,\n      toDoctorId: referralData.toDoctorId,\n      reason: referralData.reason,\n      referralDate: referralData.referralDate,\n      appointmentDate: referralData.appointmentDate,\n      appointmentTime: referralData.appointmentTime,\n    });\n  },\n\n  getReferralById: (id) => apiClient.get(`${ENDPOINT}/${id}`),\n\n  getReferralsByFromDoctor: (doctorId) => apiClient.get(`${ENDPOINT}/from-doctor/${doctorId}`),\n\n  getReferralsByToDoctor: (doctorId) => apiClient.get(`${ENDPOINT}/to-doctor/${doctorId}`),\n\n  getReferralsByPatient: (patientId) => apiClient.get(`${ENDPOINT}/patient/${patientId}`),\n};\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,OAAO;AAE7B,MAAMC,QAAQ,GAAG,YAAY;AAE7B,OAAO,MAAMC,eAAe,GAAG;EAC7BC,cAAc,EAAGC,YAAY,IAAK;IAChC,OAAOJ,SAAS,CAACK,IAAI,CAACJ,QAAQ,EAAE;MAC9BK,eAAe,EAAEF,YAAY,CAACE,eAAe;MAC7CC,YAAY,EAAEH,YAAY,CAACG,YAAY;MACvCC,UAAU,EAAEJ,YAAY,CAACI,UAAU;MACnCC,MAAM,EAAEL,YAAY,CAACK,MAAM;MAC3BC,YAAY,EAAEN,YAAY,CAACM,YAAY;MACvCC,eAAe,EAAEP,YAAY,CAACO,eAAe;MAC7CC,eAAe,EAAER,YAAY,CAACQ;IAChC,CAAC,CAAC;EACJ,CAAC;EAEDC,eAAe,EAAGC,EAAE,IAAKd,SAAS,CAACe,GAAG,CAAC,GAAGd,QAAQ,IAAIa,EAAE,EAAE,CAAC;EAE3DE,wBAAwB,EAAGC,QAAQ,IAAKjB,SAAS,CAACe,GAAG,CAAC,GAAGd,QAAQ,gBAAgBgB,QAAQ,EAAE,CAAC;EAE5FC,sBAAsB,EAAGD,QAAQ,IAAKjB,SAAS,CAACe,GAAG,CAAC,GAAGd,QAAQ,cAAcgB,QAAQ,EAAE,CAAC;EAExFE,qBAAqB,EAAGC,SAAS,IAAKpB,SAAS,CAACe,GAAG,CAAC,GAAGd,QAAQ,YAAYmB,SAAS,EAAE;AACxF,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}