const URL = "/one-api/mockup/upload_attachment/"; export async function search(prm) { try { var resp = await axios.post(URL + 'patient/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 getdetailtests(prm) { try { var resp = await axios.post(URL + 'patient/get_detail_tests', 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 removefile(prm) { try { var resp = await axios.post(URL + 'patient/removefile', 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 uploadattachment(prm) { try { var resp = await axios.post(URL + 'patient/uploadattachment', 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 getdataresultlog(prm) { try { var resp = await axios.post(URL + 'patient/get_data_result_log', 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 getresumeindividulog(prm) { try { var resp = await axios.post(URL + 'patient/get_resume_individu_log', 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 searchcompany(token, prm) { try { var resp = await axios.post(URL + 'patient/searchcompany', { token: token, 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 searchdoctor(token, prm) { try { var resp = await axios.post(URL + 'patient/searchdoctor', { token: token, 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 searchtest(token, prm) { try { var resp = await axios.post(URL + 'patient/searchtest', { token: token, 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 lookup_promises(prm) { try { var resp = await axios.post(URL + 'patient/lookup_promises', 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 getdatabarcodes(prm) { try { var resp = await axios.post(URL + 'patient/lookup_barcodes', 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 getdatadob(prm) { try { var resp = await axios.post(URL + 'patient/getdatadob', 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 updatedob(prm) { try { var resp = await axios.post(URL + 'patient/updatedob', 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 gettimelinedelivery(prm) { try { var resp = await axios.post(URL + 'patient/gettimelinedelivery', 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_promises(prm) { try { var resp = await axios.post(URL + 'patient/save_promises', 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 getbranch(prm) { try { var resp = await axios.post(URL + 'patient/getbranch', 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 }; } }