const URL = "/one-api/mockup/fo/cpone_old_data/"; 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 search_old_patient(prm) { try { var resp = await axios.post(URL + 'patient/search_old_patient', 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 gabungkan(prm) { try { var resp = await axios.post(URL + 'patient/gabungkan',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 }; } }