source: frontend/node_modules/.cache/babel-loader/6d3fc3e5f90043694bb77b3a18496ab9621b21d11d6cfb7fb60f16651da751e0.json

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 3 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 3.0 KB
Line 
1{"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":[]}
Note: See TracBrowser for help on using the repository browser.