{"id":2268,"date":"2025-11-01T22:55:32","date_gmt":"2025-11-01T18:55:32","guid":{"rendered":"https:\/\/busmasoftware.com\/?page_id=2268"},"modified":"2025-11-04T04:38:19","modified_gmt":"2025-11-04T00:38:19","slug":"seeb-polyclinic-drug-drug-interaction","status":"publish","type":"page","link":"https:\/\/busmasoftware.com\/ar\/seeb-polyclinic-drug-drug-interaction\/","title":{"rendered":"Seeb Polyclinic Drug-Drug Interaction"},"content":{"rendered":"<div id=\"features_section\" data-vc-full-width=\"true\" data-vc-full-width-init=\"false\" class=\"vc_row wpb_row vc_row-fluid padding_top50 padding_bottom80 vc_custom_1698889233176 vc_row-has-fill bbhd-overflow\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner vc_custom_1554294364103\"><div class=\"wpb_wrapper\">\n\t<div  class=\"wpb_single_image wpb_content_element vc_align_center\">\n\t\t\n\t\t<figure class=\"wpb_wrapper vc_figure\">\n\t\t\t<div class=\"vc_single_image-wrapper   vc_box_border_grey\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"136\" src=\"https:\/\/busmasoftware.com\/wp-content\/uploads\/2025\/10\/Ministry-of-Health-ne-Logo-300x136.png\" class=\"vc_single_image-img attachment-medium\" alt=\"\" srcset=\"https:\/\/busmasoftware.com\/wp-content\/uploads\/2025\/10\/Ministry-of-Health-ne-Logo-300x136.png 300w, https:\/\/busmasoftware.com\/wp-content\/uploads\/2025\/10\/Ministry-of-Health-ne-Logo-1024x465.png 1024w, https:\/\/busmasoftware.com\/wp-content\/uploads\/2025\/10\/Ministry-of-Health-ne-Logo-768x348.png 768w, https:\/\/busmasoftware.com\/wp-content\/uploads\/2025\/10\/Ministry-of-Health-ne-Logo-18x8.png 18w, https:\/\/busmasoftware.com\/wp-content\/uploads\/2025\/10\/Ministry-of-Health-ne-Logo-600x272.png 600w, https:\/\/busmasoftware.com\/wp-content\/uploads\/2025\/10\/Ministry-of-Health-ne-Logo.png 1080w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/div>\n\t\t<\/figure>\n\t<\/div>\n<div class=\"vc_empty_space\"   style=\"height: 15px\"><span class=\"vc_empty_space_inner\"><\/span><\/div><h4 style=\"color: #000000;line-height: 1.4;text-align: center;font-family:Adamina;font-weight:400;font-style:normal\" class=\"vc_custom_heading\" >Seeb Polyclinic Drug-Drug Interaction Cheacker<\/h4><\/div><\/div><\/div><\/div><div class=\"vc_row-full-width vc_clearfix\"><\/div><div class=\"vc_row wpb_row vc_row-fluid vc_custom_1762029254871 bbhd-overflow\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_raw_code wpb_content_element wpb_raw_html\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<div id=\"drug-checker\" style=\"font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;max-width:800px;margin:40px auto;padding:20px;border-radius:16px;box-shadow:0 2px 12px rgba(0,0,0,0.08);background:#fff;\">\n  <h2 style=\"text-align:center;margin-bottom:16px;\">Drug\u2013Drug Interaction Checker<\/h2>\n\n  <input id=\"drug-search\" type=\"text\" placeholder=\"Search medicines...\" \n         style=\"width:100%;padding:10px 14px;margin-bottom:12px;border:1px solid #ccc;border-radius:8px;font-size:15px;\">\n\n  <div id=\"drug-list\" style=\"display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px;max-height:200px;overflow-y:auto;border:1px solid #eee;padding:10px;border-radius:8px;background:#fafafa;\"><\/div>\n\n  <div id=\"prescription-box\" style=\"border:1px solid #eee;padding:10px;border-radius:8px;background:#f9f9f9;margin-bottom:16px;\">\n    <strong>Prescription:<\/strong>\n    <div id=\"selected-meds\" style=\"display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;\"><\/div>\n  <\/div>\n\n  <button id=\"check-btn\" \n          style=\"width:100%;padding:12px;background:#007bff;color:#fff;border:none;border-radius:8px;font-size:16px;cursor:pointer;\">Check Interactions<\/button>\n\n  <div id=\"results\" style=\"margin-top:24px;\"><\/div>\n<\/div>\n\n<script>\nconst DB_URL = \"https:\/\/busmasoftware.com\/wp-content\/uploads\/interactions.json\";\nlet db = null;\nlet selectedMeds = [];\n\nconst drugListDiv = document.getElementById('drug-list');\nconst searchInput = document.getElementById('drug-search');\nconst resultsDiv = document.getElementById('results');\nconst selectedDiv = document.getElementById('selected-meds');\n\nfetch(DB_URL)\n  .then(r => r.json())\n  .then(data => {\n    db = data;\n    renderList(db.medicines);\n  });\n\nfunction renderList(meds) {\n  drugListDiv.innerHTML = \"\";\n  meds.forEach(m => {\n    const tag = document.createElement('div');\n    tag.textContent = m;\n    tag.className = 'drug-tag';\n    Object.assign(tag.style, {\n      padding:'6px 10px',\n      borderRadius:'16px',\n      border:'1px solid #ccc',\n      cursor:'pointer',\n      userSelect:'none',\n      background:selectedMeds.includes(m)?'#ddd':'#f8f8f8',\n      color:selectedMeds.includes(m)?'#777':'#000',\n      textDecoration:selectedMeds.includes(m)?'line-through':'none',\n      fontSize:'14px',\n      pointerEvents:selectedMeds.includes(m)?'none':'auto'\n    });\n    tag.onclick = () => addMedicine(m);\n    drugListDiv.appendChild(tag);\n  });\n}\n\nfunction addMedicine(name) {\n  if (selectedMeds.includes(name)) return;\n  selectedMeds.push(name);\n  updatePrescription();\n  renderList(getFilteredMeds());\n}\n\nfunction removeMedicine(name) {\n  selectedMeds = selectedMeds.filter(m => m !== name);\n  updatePrescription();\n  renderList(getFilteredMeds());\n}\n\nfunction updatePrescription() {\n  selectedDiv.innerHTML = \"\";\n  selectedMeds.forEach(m => {\n    const chip = document.createElement('div');\n    chip.textContent = m;\n    chip.style.cssText = `\n      padding:6px 10px;\n      border-radius:16px;\n      background:#007bff;\n      color:#fff;\n      display:flex;\n      align-items:center;\n      gap:6px;\n    `;\n    const removeBtn = document.createElement('span');\n    removeBtn.textContent = \"\u2715\";\n    removeBtn.style.cssText = \"cursor:pointer;font-weight:bold;\";\n    removeBtn.onclick = () => removeMedicine(m);\n    chip.appendChild(removeBtn);\n    selectedDiv.appendChild(chip);\n  });\n}\n\nfunction getFilteredMeds() {\n  const q = searchInput.value.toLowerCase();\n  return db ? db.medicines.filter(m => m.toLowerCase().includes(q)) : [];\n}\n\nsearchInput.addEventListener('input', e => {\n  renderList(getFilteredMeds());\n});\n\ndocument.getElementById('check-btn').onclick = () => {\n  if (selectedMeds.length < 2) {\n    resultsDiv.innerHTML = \"<p style='color:#555;'>Add at least two medicines to check interactions.<\/p>\";\n    return;\n  }\n\n  const found = [];\n  const sorted = [...selectedMeds].sort();\n  for (let i = 0; i < sorted.length; i++) {\n    for (let j = i+1; j < sorted.length; j++) {\n      const key = `${sorted[i]}|${sorted[j]}`;\n      const altKey = `${sorted[j]}|${sorted[i]}`;\n      const data = db.interactions[key] || db.interactions[altKey];\n      if (data) found.push({a:sorted[i], b:sorted[j], ...data});\n    }\n  }\n\n  if (found.length === 0) {\n    resultsDiv.innerHTML = \"<p style='color:#555;'>No clinically relevant interactions found in this prescription.<\/p>\";\n    return;\n  }\n\n  resultsDiv.innerHTML = found.map(f => `\n    <div style=\"border-left:4px solid ${f.severity==='severe'?'#dc3545':(f.severity==='moderate'?'#ffc107':'#17a2b8')};padding:12px 16px;margin-bottom:16px;background:#fdfdfd;border-radius:8px;\">\n      <h3 style=\"margin:0 0 4px 0;font-size:16px;\">${f.a} \u00d7 ${f.b}<\/h3>\n      <p style=\"margin:2px 0;color:#333;font-weight:500;\">Severity: ${f.severity.charAt(0).toUpperCase()+f.severity.slice(1)}<\/p>\n      <p style=\"margin:8px 0;color:#444;font-size:15px;\"><strong>Summary:<\/strong> ${f.summary}<\/p>\n      <p style=\"margin:4px 0;color:#555;font-size:14px;\"><strong>Mechanism:<\/strong> ${f.mechanism}<\/p>\n      <p style=\"margin:4px 0;color:#555;font-size:14px;\"><strong>Clinical advice:<\/strong> ${f.advice}<\/p>\n      <p style=\"margin-top:6px;font-size:13px;\">References: ${\n        f.refs?.map(r=>`<a href=\"${r.url}\" target=\"_blank\" style=\"color:#007bff;text-decoration:none;\">${r.src}<\/a>`).join(\" | \") || \"\u2014\"\n      }<\/p>\n    <\/div>\n  `).join(\"\");\n};\n<\/script>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"Seeb Polyclinic Drug-Drug Interaction Cheacker Drug\u2013Drug Interaction Checker Prescription: Check Interactions","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template\/hostiko29.php","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-2268","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/busmasoftware.com\/ar\/wp-json\/wp\/v2\/pages\/2268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/busmasoftware.com\/ar\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/busmasoftware.com\/ar\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/busmasoftware.com\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/busmasoftware.com\/ar\/wp-json\/wp\/v2\/comments?post=2268"}],"version-history":[{"count":11,"href":"https:\/\/busmasoftware.com\/ar\/wp-json\/wp\/v2\/pages\/2268\/revisions"}],"predecessor-version":[{"id":2289,"href":"https:\/\/busmasoftware.com\/ar\/wp-json\/wp\/v2\/pages\/2268\/revisions\/2289"}],"wp:attachment":[{"href":"https:\/\/busmasoftware.com\/ar\/wp-json\/wp\/v2\/media?parent=2268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}