const URL = "/one-api/mockup/resultentryso/"; export async function search(prm) { try { var resp = await axios.post(URL + 'physic/search', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function getdoctorcouriers(prm) { try { var resp = await axios.post(URL + 'physic/getdoctorcouriers', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function doaction(prm) { try { var resp = await axios.post(URL + 'physic/doaction', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function getdoctoraddress(prm) { try { var resp = await axios.post(URL + 'physic/getdoctoraddress', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function getordersamples(prm) { try { var resp = await axios.post(URL + 'physic/getordersamples', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function save(prm) { try { var resp = await axios.post(URL + 'physic/save', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function deletetrx(prm) { try { var resp = await axios.post(URL + 'physic/deletetrx', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function getgroups(prm) { try { var resp = await axios.post(URL + 'physic/getgroups', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function saveresult(prm) { try { var resp = await axios.post(URL + 'physic/saveresult', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } }