{"id":2231,"date":"2025-10-11T23:54:49","date_gmt":"2025-10-11T19:54:49","guid":{"rendered":"https:\/\/busmasoftware.com\/?page_id=2231"},"modified":"2026-09-24T16:13:55","modified_gmt":"2026-09-24T12:13:55","slug":"seeb-polyclinic-dose-calculator","status":"publish","type":"page","link":"https:\/\/busmasoftware.com\/ar\/seeb-polyclinic-dose-calculator\/","title":{"rendered":"Seeb Polyclinic Dose Calculator"},"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_top40 vc_custom_1760625442163 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=\"640\" height=\"291\" src=\"https:\/\/busmasoftware.com\/wp-content\/uploads\/2025\/10\/Ministry-of-Health-ne-Logo-1024x465.png\" class=\"vc_single_image-img attachment-large\" alt=\"\" srcset=\"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-300x136.png 300w, 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: 640px) 100vw, 640px\" \/><\/div>\n\t\t<\/figure>\n\t<\/div>\n<div class=\"vc_empty_space\"   style=\"height: 5px\"><span class=\"vc_empty_space_inner\"><\/span><\/div><h3 style=\"color: #000000;text-align: center;font-family:Adamina;font-weight:400;font-style:normal\" class=\"vc_custom_heading\" >Seeb Polyclinic Dose Calculator<\/h3><div class=\"vc_empty_space\"   style=\"height: 10px\"><span class=\"vc_empty_space_inner\"><\/span><\/div><\/div><\/div><\/div><\/div><div class=\"vc_row-full-width vc_clearfix\"><\/div><div class=\"vc_row wpb_row vc_row-fluid padding_bottom100 vc_custom_1760625489721\"><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<!-- Medicine Dose Calculator v2 \u2014 paste into a WPBakery \"Raw HTML\" element\n     - All CSS scoped to .mdcalc (no longer restyles the rest of the site)\n     - No global IDs: several calculators can sit on one page safely\n     - Data-driven: add a medicine by adding ONE object to MEDS (see template at the bottom of MEDS)\n     - Child mode asks for age + weight; per-dose \/ daily caps; minimum-age warnings\n     - Accepts Arabic digits (\u0661\u0668\u066b\u0665) and comma decimals in inputs\n     - Remembers the chosen language on this device\n     - v3: doses follow BNF (adults) \/ BNFc (children), mostly age-banded as the BNF does\n-->\n<link rel=\"preconnect\" href=\"https:\/\/fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https:\/\/fonts.gstatic.com\" crossorigin>\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Tajawal:wght@400;500;700&display=swap\" rel=\"stylesheet\">\n\n<style>\n  .mdcalc{\n    --mdc-accent:#0073aa; --mdc-ok:#28a745; --mdc-warn:#e67e22; --mdc-muted:#666;\n    --mdc-border:#dcdfe4; --mdc-pill-bg:#e7f4ff; --mdc-pill-text:#0366a6; --mdc-lang-active:#e0f2ff;\n    font-family:'Tajawal',Arial,Helvetica,sans-serif; color:#222; line-height:1.5;\n    max-width:880px; margin:0 auto; padding:12px; box-sizing:border-box; text-align:start;\n  }\n  .mdcalc *, .mdcalc *::before, .mdcalc *::after{box-sizing:border-box}\n  .mdcalc [hidden]{display:none !important}\n  .mdcalc bdi{unicode-bidi:isolate}\n\n  .mdcalc .mdc-card{background:#fff;border-radius:12px;box-shadow:0 8px 30px rgba(2,6,23,.06);padding:18px}\n\n  \/* Language switcher *\/\n  .mdcalc .mdc-lang-wrap{display:flex;justify-content:center;margin-bottom:12px}\n  .mdcalc .mdc-lang{display:inline-flex;border:1px solid #ddd;border-radius:14px;overflow:hidden;background:#fff}\n  .mdcalc .mdc-langbtn{\n    display:flex;align-items:center;gap:8px;margin:0;padding:8px 14px;border:0;border-radius:0;\n    background:transparent;color:#000;font:inherit;font-size:15px;font-weight:700;line-height:1.2;\n    text-transform:none;letter-spacing:0;box-shadow:none;cursor:pointer;min-height:0;height:auto;\n  }\n  .mdcalc .mdc-langbtn.is-active{background:var(--mdc-lang-active)}\n  .mdcalc .mdc-langbtn:focus-visible{outline:2px solid var(--mdc-accent);outline-offset:-2px}\n  .mdcalc .mdc-flag{display:block;width:24px;height:12px;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.12)}\n\n  \/* Heading *\/\n  .mdcalc .mdc-head{text-align:center;margin-bottom:6px}\n  .mdcalc .mdc-title{margin:0;padding:0;font-family:inherit;font-size:20px;font-weight:700;line-height:1.3;color:#222;text-transform:none;letter-spacing:0}\n  .mdcalc .mdc-subtitle{margin:6px 0 0;color:var(--mdc-muted);font-size:13px}\n\n  \/* Form *\/\n  .mdcalc .mdc-label{display:block;margin:12px 0 0;font-size:14px;font-weight:400;color:var(--mdc-muted)}\n  .mdcalc .mdc-label > span{display:block;margin-bottom:4px}\n  .mdcalc .mdc-field{\n    display:block;width:100%;max-width:none;height:auto;margin:0;padding:10px;\n    border:1px solid var(--mdc-border);border-radius:8px;background:#fff;color:#222;\n    font:inherit;font-size:15px;line-height:1.3;box-shadow:none;\n  }\n  .mdcalc .mdc-field:focus{outline:2px solid var(--mdc-accent);outline-offset:1px;border-color:var(--mdc-accent)}\n  .mdcalc .mdc-row{display:flex;gap:8px}\n  .mdcalc .mdc-row .mdc-field{flex:1 1 auto}\n  .mdcalc .mdc-row .mdc-unit{flex:0 0 38%}\n\n  .mdcalc .mdc-calc{\n    display:block;width:100%;margin:14px 0 0;padding:12px;border:0;border-radius:8px;\n    background:var(--mdc-accent);color:#fff;font:inherit;font-size:16px;font-weight:700;\n    text-transform:none;letter-spacing:0;cursor:pointer;box-shadow:none;height:auto;\n  }\n  .mdcalc .mdc-calc:hover{filter:brightness(1.07)}\n  .mdcalc .mdc-calc:active{transform:translateY(1px)}\n  .mdcalc .mdc-calc:focus-visible{outline:2px solid #222;outline-offset:2px}\n\n  \/* Result *\/\n  .mdcalc .mdc-result{\n    margin-top:16px;padding:16px;border-radius:10px;background:#fff;\n    box-shadow:0 6px 20px rgba(2,6,23,.06);\n    border-inline-start:6px solid var(--mdc-ok);font-size:15px;\n  }\n  .mdcalc .mdc-result.is-warn{border-inline-start-color:var(--mdc-warn)}\n  .mdcalc .mdc-sec + .mdc-sec{border-top:1px solid #eee;margin-top:10px;padding-top:10px}\n  .mdcalc .mdc-sec-title{display:block;margin-bottom:4px;font-weight:700}\n  .mdcalc .mdc-take{margin-top:4px;font-weight:500}\n  .mdcalc .mdc-note{margin-top:4px;color:var(--mdc-muted);font-size:13px}\n  .mdcalc .mdc-pill{display:inline-block;margin-top:6px;padding:8px 10px;border-radius:9px;background:var(--mdc-pill-bg);color:var(--mdc-pill-text);font-weight:700}\n  .mdcalc .mdc-alert{margin-bottom:12px;padding:10px 12px;border:1px solid #fed7aa;border-radius:8px;background:#fff7ed;color:#7c2d12;font-size:14px}\n  .mdcalc .mdc-alert ul{margin:4px 0 0;padding-inline-start:18px}\n  .mdcalc .mdc-alert li{margin:2px 0}\n  .mdcalc .mdc-basis{margin-top:6px;color:var(--mdc-muted);font-size:12.5px}\n  .mdcalc .mdc-disclaimer{margin:10px 0 0;color:var(--mdc-muted);font-size:13px}\n\n  @media (max-width:640px){\n    .mdcalc{padding:8px}\n    .mdcalc .mdc-card{padding:14px}\n    .mdcalc .mdc-langbtn{padding:8px 10px;font-size:14px}\n  }\n  @media (prefers-reduced-motion:reduce){ .mdcalc .mdc-calc:active{transform:none} }\n<\/style>\n\n<div class=\"mdcalc\" dir=\"ltr\" role=\"region\" aria-label=\"Medicine Dose Calculator\">\n  <div class=\"mdc-card\">\n\n    <div class=\"mdc-lang-wrap\">\n      <div class=\"mdc-lang\" role=\"group\" aria-label=\"\u0627\u0644\u0644\u063a\u0629\">\n        <button type=\"button\" class=\"mdc-langbtn\" data-lang=\"en\" aria-pressed=\"true\">\n          <svg class=\"mdc-flag\" viewbox=\"0 0 60 30\" aria-hidden=\"true\">\n            <clippath id=\"mdc-uk-s\"><path d=\"M0,0 v30 h60 v-30 z\"\/><\/clippath>\n            <clippath id=\"mdc-uk-t\"><path d=\"M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z\"\/><\/clippath>\n            <g clip-path=\"url(#mdc-uk-s)\">\n              <path d=\"M0,0 v30 h60 v-30 z\" fill=\"#012169\"\/>\n              <path d=\"M0,0 L60,30 M60,0 L0,30\" stroke=\"#fff\" stroke-width=\"6\"\/>\n              <path d=\"M0,0 L60,30 M60,0 L0,30\" clip-path=\"url(#mdc-uk-t)\" stroke=\"#C8102E\" stroke-width=\"4\"\/>\n              <path d=\"M30,0 v30 M0,15 h60\" stroke=\"#fff\" stroke-width=\"10\"\/>\n              <path d=\"M30,0 v30 M0,15 h60\" stroke=\"#C8102E\" stroke-width=\"6\"\/>\n            <\/g>\n          <\/svg>\n          <span>English<\/span>\n        <\/button>\n        <button type=\"button\" class=\"mdc-langbtn\" data-lang=\"ar\" aria-pressed=\"false\">\n          <svg class=\"mdc-flag\" viewbox=\"0 0 24 12\" aria-hidden=\"true\">\n            <rect width=\"24\" height=\"12\" fill=\"#fff\"\/>\n            <rect y=\"4\" width=\"24\" height=\"4\" fill=\"#DB161B\"\/>\n            <rect y=\"8\" width=\"24\" height=\"4\" fill=\"#008000\"\/>\n            <rect width=\"6\" height=\"12\" fill=\"#DB161B\"\/>\n          <\/svg>\n          <span>\u0627\u0644\u0639\u0631\u0628\u064a\u0629<\/span>\n        <\/button>\n      <\/div>\n    <\/div>\n\n    <div class=\"mdc-head\">\n      <h2 class=\"mdc-title\" data-t=\"title\">Medicine Dose Calculator<\/h2>\n      <p class=\"mdc-subtitle\" data-t=\"subtitle\"><\/p>\n    <\/div>\n\n    <label class=\"mdc-label\"><span data-t=\"selectMedicine\"><\/span>\n      <select class=\"mdc-field\" data-el=\"med\"><\/select>\n    <\/label>\n\n    <label class=\"mdc-label\"><span data-t=\"selectGroup\"><\/span>\n      <select class=\"mdc-field\" data-el=\"group\"><\/select>\n    <\/label>\n\n    <div data-el=\"childFields\" hidden>\n      <div class=\"mdc-label\"><span data-t=\"enterAge\"><\/span>\n        <div class=\"mdc-row\">\n          <input class=\"mdc-field\" data-el=\"age\" type=\"text\" inputmode=\"decimal\" autocomplete=\"off\">\n          <select class=\"mdc-field mdc-unit\" data-el=\"ageUnit\"><\/select>\n        <\/div>\n      <\/div>\n      <label class=\"mdc-label\"><span data-t=\"enterWeight\"><\/span>\n        <input class=\"mdc-field\" data-el=\"weight\" type=\"text\" inputmode=\"decimal\" autocomplete=\"off\">\n      <\/label>\n    <\/div>\n\n    <button type=\"button\" class=\"mdc-calc\" data-el=\"calc\" data-t=\"calcBtn\"><\/button>\n\n    <div class=\"mdc-result\" data-el=\"result\" role=\"status\" aria-live=\"polite\" hidden><\/div>\n    <p class=\"mdc-disclaimer\" data-t=\"disclaimer\"><\/p>\n  <\/div>\n<\/div>\n\n<script>\n(function(){\n  'use strict';\n\n  \/* =====================================================================\n     SETTINGS\n     ===================================================================== *\/\n  var CLINIC = { en:'Seeb Poly Clinic', ar:'\u0645\u062c\u0645\u0639 \u0627\u0644\u0633\u064a\u0628 \u0627\u0644\u062a\u062e\u0635\u0635\u064a' };\n  var STORAGE_KEY = 'mdcalc-lang';\n\n  \/* =====================================================================\n     UI TEXT   ({clinic} and {x} are filled in by the script)\n     ===================================================================== *\/\n  var T = {\n    en:{\n      title:'Medicine Dose Calculator',\n      subtitle:'Choose medicine \u2192 age group \u2192 age & weight (child)',\n      selectMedicine:'Select medicine:', chooseMedicine:'-- Choose medicine --',\n      selectGroup:'Select age group:', chooseGroup:'-- Choose age group --',\n      child:'Child (under 18)', adult:'Adult',\n      enterAge:'Age:', agePh:'e.g. 4', months:'months', years:'years',\n      enterWeight:'Weight (kg):', weightPh:'e.g. 18.5',\n      calcBtn:'Calculate dose',\n      errMissing:'\u26a0\ufe0f Select a medicine and an age group.',\n      errChild:'\u26a0\ufe0f Enter the child\u2019s age and weight.',\n      errAge:'\u26a0\ufe0f Enter an age between 0 and 18 years.',\n      errWeight:'\u26a0\ufe0f Enter a weight between 0.5 and 150 kg.',\n      recommended:'\ud83d\udc8a Recommended dose',\n      syrupAt:'\ud83c\udfe5 Available at {clinic} (syrup)',\n      tabletsAt:'\ud83c\udfe5 Available at {clinic} (tablets)',\n      adultAt:'\ud83c\udfe5 Available at {clinic} (adult formulation)',\n      volume:'\ud83d\udd2c Equivalent volume',\n      maxDaily:'\u26d4 Maximum per day',\n      check:'\u26a0\ufe0f Check before dispensing',\n      totalDay:'total {x} per day',\n      take:'Take', of:'of', to:'to', using:'using',\n      capped:'Dose capped at the maximum single dose ({x}).',\n      cappedDay:'Daily dose capped at the maximum ({x} per day).',\n      minAge:'Not usually recommended under {x}. Verify with the prescriber or a reference.',\n      perKgHigh:'This dose is {x} per kg for this child\u2019s weight \u2014 check the weight and consider weight-based dosing.',\n      disclaimer:'Doses based on the BNF (adults) and BNF for Children. Dosing guidance only \u2014 verify clinically before use.'\n    },\n    ar:{\n      title:'\u062d\u0627\u0633\u0628\u0629 \u062c\u0631\u0639\u0627\u062a \u0627\u0644\u0623\u062f\u0648\u064a\u0629',\n      subtitle:'\u0627\u062e\u062a\u0631 \u0627\u0644\u062f\u0648\u0627\u0621 \u2190 \u0627\u0644\u0641\u0626\u0629 \u0627\u0644\u0639\u0645\u0631\u064a\u0629 \u2190 \u0627\u0644\u0639\u0645\u0631 \u0648\u0627\u0644\u0648\u0632\u0646 (\u0644\u0644\u0623\u0637\u0641\u0627\u0644)',\n      selectMedicine:'\u0627\u062e\u062a\u0631 \u0627\u0644\u062f\u0648\u0627\u0621:', chooseMedicine:'-- \u0627\u062e\u062a\u0631 \u0627\u0644\u062f\u0648\u0627\u0621 --',\n      selectGroup:'\u0627\u062e\u062a\u0631 \u0627\u0644\u0641\u0626\u0629 \u0627\u0644\u0639\u0645\u0631\u064a\u0629:', chooseGroup:'-- \u0627\u062e\u062a\u0631 \u0627\u0644\u0641\u0626\u0629 --',\n      child:'\u0637\u0641\u0644 (\u0623\u0642\u0644 \u0645\u0646 18 \u0633\u0646\u0629)', adult:'\u0628\u0627\u0644\u063a',\n      enterAge:'\u0627\u0644\u0639\u0645\u0631:', agePh:'\u0645\u062b\u0627\u0644: 4', months:'\u0623\u0634\u0647\u0631', years:'\u0633\u0646\u0648\u0627\u062a',\n      enterWeight:'\u0627\u0644\u0648\u0632\u0646 (\u0643\u062c\u0645):', weightPh:'\u0645\u062b\u0627\u0644: 18.5',\n      calcBtn:'\u0627\u062d\u0633\u0628 \u0627\u0644\u062c\u0631\u0639\u0629',\n      errMissing:'\u26a0\ufe0f \u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u062f\u0648\u0627\u0621 \u0648\u0627\u0644\u0641\u0626\u0629 \u0627\u0644\u0639\u0645\u0631\u064a\u0629.',\n      errChild:'\u26a0\ufe0f \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u062f\u062e\u0627\u0644 \u0639\u0645\u0631 \u0627\u0644\u0637\u0641\u0644 \u0648\u0648\u0632\u0646\u0647.',\n      errAge:'\u26a0\ufe0f \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u062f\u062e\u0627\u0644 \u0639\u0645\u0631 \u0628\u064a\u0646 0 \u0648 18 \u0633\u0646\u0629.',\n      errWeight:'\u26a0\ufe0f \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u062f\u062e\u0627\u0644 \u0648\u0632\u0646 \u0628\u064a\u0646 0.5 \u0648 150 \u0643\u062c\u0645.',\n      recommended:'\ud83d\udc8a \u0627\u0644\u062c\u0631\u0639\u0629 \u0627\u0644\u0645\u0648\u0635\u0649 \u0628\u0647\u0627',\n      syrupAt:'\ud83c\udfe5 \u0645\u062a\u0648\u0641\u0631 \u0641\u064a {clinic} (\u0634\u0631\u0627\u0628)',\n      tabletsAt:'\ud83c\udfe5 \u0645\u062a\u0648\u0641\u0631 \u0641\u064a {clinic} (\u0623\u0642\u0631\u0627\u0635)',\n      adultAt:'\ud83c\udfe5 \u0645\u062a\u0648\u0641\u0631 \u0641\u064a {clinic} (\u0627\u0644\u0634\u0643\u0644 \u0627\u0644\u062f\u0648\u0627\u0626\u064a \u0644\u0644\u0628\u0627\u0644\u063a\u064a\u0646)',\n      volume:'\ud83d\udd2c \u0627\u0644\u062d\u062c\u0645 \u0627\u0644\u0645\u0639\u0627\u062f\u0644',\n      maxDaily:'\u26d4 \u0627\u0644\u062d\u062f \u0627\u0644\u0623\u0642\u0635\u0649 \u0641\u064a \u0627\u0644\u064a\u0648\u0645',\n      check:'\u26a0\ufe0f \u062a\u062d\u0642\u0642 \u0642\u0628\u0644 \u0627\u0644\u0635\u0631\u0641',\n      totalDay:'\u0627\u0644\u0645\u062c\u0645\u0648\u0639 {x} \u064a\u0648\u0645\u064a\u0627\u064b',\n      take:'\u062a\u0646\u0627\u0648\u0644', of:'', to:'\u0625\u0644\u0649', using:'\u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645',\n      capped:'\u062a\u0645 \u062a\u062d\u062f\u064a\u062f \u0627\u0644\u062c\u0631\u0639\u0629 \u0628\u0627\u0644\u062d\u062f \u0627\u0644\u0623\u0642\u0635\u0649 \u0644\u0644\u062c\u0631\u0639\u0629 \u0627\u0644\u0648\u0627\u062d\u062f\u0629 ({x}).',\n      cappedDay:'\u062a\u0645 \u062a\u062d\u062f\u064a\u062f \u0627\u0644\u062c\u0631\u0639\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0628\u0627\u0644\u062d\u062f \u0627\u0644\u0623\u0642\u0635\u0649 ({x} \u064a\u0648\u0645\u064a\u0627\u064b).',\n      minAge:'\u0644\u0627 \u064a\u064f\u0646\u0635\u062d \u0628\u0647 \u0639\u0627\u062f\u0629\u064b \u0644\u0645\u0646 \u0647\u0645 \u062f\u0648\u0646 {x}. \u062a\u0623\u0643\u062f \u0645\u0639 \u0627\u0644\u0637\u0628\u064a\u0628 \u0623\u0648 \u0627\u0644\u0645\u0631\u062c\u0639.',\n      perKgHigh:'\u0647\u0630\u0647 \u0627\u0644\u062c\u0631\u0639\u0629 \u062a\u0639\u0627\u062f\u0644 {x} \u0644\u0643\u0644 \u0643\u062c\u0645 \u0645\u0646 \u0648\u0632\u0646 \u0627\u0644\u0637\u0641\u0644 \u2014 \u062a\u062d\u0642\u0642 \u0645\u0646 \u0627\u0644\u0648\u0632\u0646 \u0648\u0641\u0643\u0651\u0631 \u0641\u064a \u0627\u0644\u062c\u0631\u0639\u0629 \u062d\u0633\u0628 \u0627\u0644\u0648\u0632\u0646.',\n      disclaimer:'\u0627\u0644\u062c\u0631\u0639\u0627\u062a \u0645\u0628\u0646\u064a\u0629 \u0639\u0644\u0649 BNF \u0644\u0644\u0628\u0627\u0644\u063a\u064a\u0646 \u0648 BNF \u0644\u0644\u0623\u0637\u0641\u0627\u0644. \u0647\u0630\u0647 \u0625\u0631\u0634\u0627\u062f\u0627\u062a \u0641\u0642\u0637 \u2014 \u062a\u0623\u0643\u062f \u0633\u0631\u064a\u0631\u064a\u0627\u064b \u0642\u0628\u0644 \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645.'\n    }\n  };\n\n  \/* Shared frequencies *\/\n  var F = {\n    q4_6:  { en:'every 4\u20136 hours',                  ar:'\u0643\u0644 4\u20136 \u0633\u0627\u0639\u0627\u062a' },\n    q6:    { en:'every 6 hours',                    ar:'\u0643\u0644 6 \u0633\u0627\u0639\u0627\u062a' },\n    q8:    { en:'every 8 hours',                    ar:'\u0643\u0644 8 \u0633\u0627\u0639\u0627\u062a' },\n    q8prn: { en:'every 8 hours when required',      ar:'\u0643\u0644 8 \u0633\u0627\u0639\u0627\u062a \u0639\u0646\u062f \u0627\u0644\u062d\u0627\u062c\u0629' },\n    q8_12: { en:'every 8\u201312 hours',                 ar:'\u0643\u0644 8\u201312 \u0633\u0627\u0639\u0629' },\n    q12:   { en:'every 12 hours',                   ar:'\u0643\u0644 12 \u0633\u0627\u0639\u0629' },\n    od:    { en:'once daily',                       ar:'\u0645\u0631\u0629 \u064a\u0648\u0645\u064a\u0627\u064b' },\n    odDiv: { en:'once daily (or in divided doses)', ar:'\u0645\u0631\u0629 \u064a\u0648\u0645\u064a\u0627\u064b (\u0623\u0648 \u0639\u0644\u0649 \u062c\u0631\u0639\u0627\u062a \u0645\u0642\u0633\u0645\u0629)' },\n    od3:   { en:'once daily for 3 days',            ar:'\u0645\u0631\u0629 \u064a\u0648\u0645\u064a\u0627\u064b \u0644\u0645\u062f\u0629 3 \u0623\u064a\u0627\u0645' },\n    bd:    { en:'twice daily',                      ar:'\u0645\u0631\u062a\u064a\u0646 \u064a\u0648\u0645\u064a\u0627\u064b' },\n    bdtds: { en:'2\u20133 times daily',                  ar:'2\u20133 \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b' },\n    tds:   { en:'three times daily',                ar:'\u062b\u0644\u0627\u062b \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b' },\n    tqds:  { en:'3\u20134 times daily',                  ar:'3\u20134 \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b' },\n    qds:   { en:'four times daily',                 ar:'\u0623\u0631\u0628\u0639 \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b' },\n    single:{ en:'as a single dose',                 ar:'\u062c\u0631\u0639\u0629 \u0648\u0627\u062d\u062f\u0629' },\n    day12: { en:'per day, in 1\u20132 divided doses',    ar:'\u064a\u0648\u0645\u064a\u0627\u064b\u060c \u0639\u0644\u0649 1\u20132 \u062c\u0631\u0639\u0629' }\n  };\n\n  var FORMS = {\n    tablet: { en1:'tablet',  enN:'tablets',  ar:'\u0642\u0631\u0635' },\n    capsule:{ en1:'capsule', enN:'capsules', ar:'\u0643\u0628\u0633\u0648\u0644\u0629' }\n  };\n  var UNITS = { mg:{en:'mg',ar:'\u0645\u0644\u063a'}, mL:{en:'mL',ar:'\u0645\u0644'} };\n\n  \/* Age band helper, in MONTHS. A(12,60) = from 1st birthday up to (not incl.) 5th birthday.\n     BNF convention: \"1\u20134 years\" = A(12,60), \"5\u201311 years\" = A(60,144), \"12\u201317 years\" = A(144). *\/\n  function A(min, max){ return function(m){ return m >= min && (max == null || m < max); }; }\n\n  function under(en, ar){ return { en:'Not recommended under ' + en + ' \u2014 refer to the prescriber.', ar:'\u063a\u064a\u0631 \u0645\u0648\u0635\u0649 \u0628\u0647 \u0644\u0645\u0646 \u0647\u0645 \u062f\u0648\u0646 ' + ar + ' \u2014 \u064a\u064f\u062d\u0627\u0644 \u0625\u0644\u0649 \u0627\u0644\u0637\u0628\u064a\u0628.' }; }\n  var UNDER_1M = under('1 month (neonates need specialist dosing)', '\u0634\u0647\u0631 \u0648\u0627\u062d\u062f (\u062d\u062f\u064a\u062b\u0648 \u0627\u0644\u0648\u0644\u0627\u062f\u0629 \u0644\u0647\u0645 \u062c\u0631\u0639\u0627\u062a \u062a\u062e\u0635\u0635\u064a\u0629)');\n\n  \/* =====================================================================\n     MEDICINES \u2014 one object per medicine (auto-sorted in the list).\n\n     syrup:  { en, ar, mgPer5mL }               tablet: { en, ar, mg (number or [strengths]), form }\n     basis:  { en, ar }  which BNF indication the doses come from\n     child:  either top-level rule, or bands:[...]. Each rule\/band can use ONE of:\n               dose:     fixed amount (number or [low, high])\n               perKg:    per dose (number or [low, high]) + maxDose\n               perKgDay: per day + divide + maxDay\n             plus: freq, note, maxDaily (number or {perKg, max}), maxDoses (per 24 h),\n                   doseNote, noSyrup, showTablets\n             child-level: unit:'mL', minAge, perKgWarn (warn if a fixed dose exceeds X mg\/kg),\n                          noMatch (message when no band fits)\n     adult:  { dose, freq, unit, maxDaily, note, syrupEquivalent:false, noTabletCount:true }\n     ===================================================================== *\/\n  var MEDS = [\n    {\n      key:'albendazole', name:{ en:'Albendazole', ar:'\u0623\u0644\u0628\u064a\u0646\u062f\u0627\u0632\u0648\u0644' },\n      basis:{ en:'Not in BNF for routine use \u2014 WHO single-dose deworming', ar:'\u063a\u064a\u0631 \u0645\u062f\u0631\u062c \u0641\u064a BNF \u0644\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0631\u0648\u062a\u064a\u0646\u064a \u2014 \u062c\u0631\u0639\u0629 \u0648\u0627\u062d\u062f\u0629 \u0644\u0637\u0631\u062f \u0627\u0644\u062f\u064a\u062f\u0627\u0646 \u062d\u0633\u0628 \u0645\u0646\u0638\u0645\u0629 \u0627\u0644\u0635\u062d\u0629 \u0627\u0644\u0639\u0627\u0644\u0645\u064a\u0629' },\n      syrup:{ en:'Albendazole 20 mg\/mL suspension (100 mg\/5 mL)', ar:'\u0623\u0644\u0628\u064a\u0646\u062f\u0627\u0632\u0648\u0644 20 \u0645\u0644\u063a\/\u0645\u0644 (100 \u0645\u0644\u063a \/ 5 \u0645\u0644) \u0634\u0631\u0627\u0628', mgPer5mL:100 },\n      tablet:{ en:'Albendazole 400 mg tablets', ar:'\u0623\u0644\u0628\u064a\u0646\u062f\u0627\u0632\u0648\u0644 \u0623\u0642\u0631\u0627\u0635 400 \u0645\u0644\u063a', mg:400, form:'tablet' },\n      child:{\n        bands:[\n          { when:A(12,24), dose:200, freq:F.single },\n          { when:A(24),    dose:400, freq:F.single }\n        ],\n        noMatch:under('12 months', '12 \u0634\u0647\u0631\u0627\u064b')\n      },\n      adult:{ dose:400, freq:F.single }\n    },\n    {\n      key:'amoxicillin', name:{ en:'Amoxicillin', ar:'\u0623\u0645\u0648\u0643\u0633\u064a\u0633\u064a\u0644\u064a\u0646' },\n      basis:{ en:'BNF\/BNFc: susceptible infections', ar:'BNF: \u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628\u0627\u062a \u0627\u0644\u0628\u0643\u062a\u064a\u0631\u064a\u0629 \u0627\u0644\u062d\u0633\u0627\u0633\u0629' },\n      syrup:{ en:'Amoxicillin 125 mg\/5 mL suspension', ar:'\u0623\u0645\u0648\u0643\u0633\u064a\u0633\u064a\u0644\u064a\u0646 125 \u0645\u0644\u063a \/ 5 \u0645\u0644 (\u0634\u0631\u0627\u0628)', mgPer5mL:125 },\n      tablet:{ en:'Amoxicillin 250 mg or 500 mg capsules', ar:'\u0623\u0645\u0648\u0643\u0633\u064a\u0633\u064a\u0644\u064a\u0646 \u0643\u0628\u0633\u0648\u0644\u0627\u062a 250 \u0645\u0644\u063a \u0623\u0648 500 \u0645\u0644\u063a', mg:[250,500], form:'capsule' },\n      child:{\n        perKgWarn:30,\n        bands:[\n          { when:A(1,12),   dose:125, freq:F.tds, note:{ en:'If necessary, may increase to 30 mg\/kg three times daily.', ar:'\u0639\u0646\u062f \u0627\u0644\u062d\u0627\u062c\u0629 \u064a\u0645\u0643\u0646 \u0632\u064a\u0627\u062f\u062a\u0647\u0627 \u0625\u0644\u0649 30 \u0645\u0644\u063a\/\u0643\u062c\u0645 \u062b\u0644\u0627\u062b \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b.' } },\n          { when:A(12,60),  dose:250, freq:F.tds, note:{ en:'If necessary, may increase to 30 mg\/kg three times daily.', ar:'\u0639\u0646\u062f \u0627\u0644\u062d\u0627\u062c\u0629 \u064a\u0645\u0643\u0646 \u0632\u064a\u0627\u062f\u062a\u0647\u0627 \u0625\u0644\u0649 30 \u0645\u0644\u063a\/\u0643\u062c\u0645 \u062b\u0644\u0627\u062b \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b.' } },\n          { when:A(60,144), dose:500, freq:F.tds, note:{ en:'If necessary, may increase to 30 mg\/kg (max 1 g) three times daily.', ar:'\u0639\u0646\u062f \u0627\u0644\u062d\u0627\u062c\u0629 \u064a\u0645\u0643\u0646 \u0632\u064a\u0627\u062f\u062a\u0647\u0627 \u0625\u0644\u0649 30 \u0645\u0644\u063a\/\u0643\u062c\u0645 (\u0628\u062d\u062f \u0623\u0642\u0635\u0649 1 \u063a\u0645) \u062b\u0644\u0627\u062b \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b.' } },\n          { when:A(144),    dose:500, freq:F.tds, note:{ en:'Severe infection: up to 1 g three times daily.', ar:'\u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628 \u0627\u0644\u0634\u062f\u064a\u062f: \u062d\u062a\u0649 1 \u063a\u0645 \u062b\u0644\u0627\u062b \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b.' } }\n        ],\n        noMatch:UNDER_1M\n      },\n      adult:{ dose:500, freq:F.tds, note:{ en:'Severe infection: up to 1 g three times daily.', ar:'\u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628 \u0627\u0644\u0634\u062f\u064a\u062f: \u062d\u062a\u0649 1 \u063a\u0645 \u062b\u0644\u0627\u062b \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b.' } }\n    },\n    {\n      key:'augmentin', name:{ en:'Co-amoxiclav (Augmentin)', ar:'\u0623\u0645\u0648\u0643\u0633\u064a\u0633\u064a\u0644\u064a\u0646 + \u062d\u0645\u0636 \u0627\u0644\u0643\u0644\u0627\u0641\u0648\u0644\u0627\u0646\u064a\u0643 (\u0623\u0648\u062c\u0645\u0646\u062a\u064a\u0646)' },\n      basis:{ en:'BNF\/BNFc: susceptible infections', ar:'BNF: \u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628\u0627\u062a \u0627\u0644\u0628\u0643\u062a\u064a\u0631\u064a\u0629 \u0627\u0644\u062d\u0633\u0627\u0633\u0629' },\n      syrup:{ en:'Amoxicillin 125 mg + Clavulanic acid 31 mg\/5 mL suspension', ar:'\u0623\u0645\u0648\u0643\u0633\u064a\u0633\u064a\u0644\u064a\u0646 125 \u0645\u0644\u063a + \u062d\u0645\u0636 \u0627\u0644\u0643\u0644\u0627\u0641\u0648\u0644\u0627\u0646\u064a\u0643 31 \u0645\u0644\u063a \/ 5 \u0645\u0644 (\u0634\u0631\u0627\u0628)', mgPer5mL:125 },\n      tablet:{ en:'Augmentin 375 mg or 625 mg tablets', ar:'\u0623\u0648\u062c\u0645\u0646\u062a\u064a\u0646 \u0623\u0642\u0631\u0627\u0635 375 \u0645\u0644\u063a \u0623\u0648 625 \u0645\u0644\u063a', mg:[375,625], form:'tablet' },\n      child:{\n        bands:[\n          { when:function(m, kg){ return m >= 144 || (m >= 1 && kg > 40); }, dose:625, freq:F.tds, noSyrup:true, showTablets:true,\n            doseNote:{ en:'tablet (amoxicillin 500 mg + clavulanic acid 125 mg)', ar:'\u0642\u0631\u0635 (\u0623\u0645\u0648\u0643\u0633\u064a\u0633\u064a\u0644\u064a\u0646 500 \u0645\u0644\u063a + \u062d\u0645\u0636 \u0627\u0644\u0643\u0644\u0627\u0641\u0648\u0644\u0627\u0646\u064a\u0643 125 \u0645\u0644\u063a)' },\n            note:{ en:'12\u201317 years or over 40 kg. If using liquid: 20 mL of 125\/31 three times daily. Do not give two 375 mg tablets instead of one 625 mg (double the clavulanic acid).', ar:'\u0645\u0646 12\u201317 \u0633\u0646\u0629 \u0623\u0648 \u0648\u0632\u0646 \u0623\u0643\u062b\u0631 \u0645\u0646 40 \u0643\u062c\u0645. \u0639\u0646\u062f \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0634\u0631\u0627\u0628: 20 \u0645\u0644 \u0645\u0646 125\/31 \u062b\u0644\u0627\u062b \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b. \u0644\u0627 \u062a\u064f\u0639\u0637\u0650 \u0642\u0631\u0635\u064a\u0646 375 \u0645\u0644\u063a \u0628\u062f\u0644 \u0642\u0631\u0635 625 \u0645\u0644\u063a (\u0636\u0639\u0641 \u062d\u0645\u0636 \u0627\u0644\u0643\u0644\u0627\u0641\u0648\u0644\u0627\u0646\u064a\u0643).' } },\n          { when:A(1,12),   perKg:6.25, freq:F.tds, doseNote:{ en:'(amoxicillin component)', ar:'(\u0645\u0643\u0648\u0646 \u0627\u0644\u0623\u0645\u0648\u0643\u0633\u064a\u0633\u064a\u0644\u064a\u0646)' },\n            note:{ en:'= 0.25 mL\/kg of 125\/31 suspension. If necessary, double the dose (0.5 mL\/kg).', ar:'= 0.25 \u0645\u0644\/\u0643\u062c\u0645 \u0645\u0646 \u0634\u0631\u0627\u0628 125\/31. \u0639\u0646\u062f \u0627\u0644\u062d\u0627\u062c\u0629 \u062a\u064f\u0636\u0627\u0639\u0641 \u0627\u0644\u062c\u0631\u0639\u0629 (0.5 \u0645\u0644\/\u0643\u062c\u0645).' } },\n          { when:A(12,72),  perKg:6.25, freq:F.tds, doseNote:{ en:'(amoxicillin component)', ar:'(\u0645\u0643\u0648\u0646 \u0627\u0644\u0623\u0645\u0648\u0643\u0633\u064a\u0633\u064a\u0644\u064a\u0646)' },\n            note:{ en:'= 0.25 mL\/kg of 125\/31 suspension, or 5 mL three times daily. If necessary, double the dose (0.5 mL\/kg or 10 mL).', ar:'= 0.25 \u0645\u0644\/\u0643\u062c\u0645 \u0645\u0646 \u0634\u0631\u0627\u0628 125\/31\u060c \u0623\u0648 5 \u0645\u0644 \u062b\u0644\u0627\u062b \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b. \u0639\u0646\u062f \u0627\u0644\u062d\u0627\u062c\u0629 \u062a\u064f\u0636\u0627\u0639\u0641 \u0627\u0644\u062c\u0631\u0639\u0629 (0.5 \u0645\u0644\/\u0643\u062c\u0645 \u0623\u0648 10 \u0645\u0644).' } },\n          { when:A(72,144), perKg:7.5,  freq:F.tds, doseNote:{ en:'(amoxicillin component)', ar:'(\u0645\u0643\u0648\u0646 \u0627\u0644\u0623\u0645\u0648\u0643\u0633\u064a\u0633\u064a\u0644\u064a\u0646)' },\n            note:{ en:'= 0.3 mL\/kg of 125\/31 suspension, or 10 mL three times daily. If necessary, double the dose (0.6 mL\/kg or 20 mL).', ar:'= 0.3 \u0645\u0644\/\u0643\u062c\u0645 \u0645\u0646 \u0634\u0631\u0627\u0628 125\/31\u060c \u0623\u0648 10 \u0645\u0644 \u062b\u0644\u0627\u062b \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b. \u0639\u0646\u062f \u0627\u0644\u062d\u0627\u062c\u0629 \u062a\u064f\u0636\u0627\u0639\u0641 \u0627\u0644\u062c\u0631\u0639\u0629 (0.6 \u0645\u0644\/\u0643\u062c\u0645 \u0623\u0648 20 \u0645\u0644).' } },\n        ],\n        noMatch:UNDER_1M\n      },\n      adult:{ dose:625, freq:F.tds, syrupEquivalent:false,\n              note:{ en:'625 mg = amoxicillin 500 mg + clavulanic acid 125 mg. Do not substitute two 375 mg tablets (double the clavulanic acid).', ar:'625 \u0645\u0644\u063a = \u0623\u0645\u0648\u0643\u0633\u064a\u0633\u064a\u0644\u064a\u0646 500 \u0645\u0644\u063a + \u062d\u0645\u0636 \u0627\u0644\u0643\u0644\u0627\u0641\u0648\u0644\u0627\u0646\u064a\u0643 125 \u0645\u0644\u063a. \u0644\u0627 \u062a\u0633\u062a\u0628\u062f\u0644\u0647 \u0628\u0642\u0631\u0635\u064a\u0646 375 \u0645\u0644\u063a (\u0636\u0639\u0641 \u062d\u0645\u0636 \u0627\u0644\u0643\u0644\u0627\u0641\u0648\u0644\u0627\u0646\u064a\u0643).' } }\n    },\n    {\n      key:'azithromycin', name:{ en:'Azithromycin', ar:'\u0623\u0632\u064a\u062b\u0631\u0648\u0645\u0627\u064a\u0633\u064a\u0646' },\n      basis:{ en:'BNF\/BNFc: respiratory, skin and ear infections', ar:'BNF: \u0627\u0644\u062a\u0647\u0627\u0628\u0627\u062a \u0627\u0644\u062c\u0647\u0627\u0632 \u0627\u0644\u062a\u0646\u0641\u0633\u064a \u0648\u0627\u0644\u062c\u0644\u062f \u0648\u0627\u0644\u0623\u0630\u0646' },\n      syrup:{ en:'Azithromycin 40 mg\/mL suspension (200 mg\/5 mL)', ar:'\u0623\u0632\u064a\u062b\u0631\u0648\u0645\u0627\u064a\u0633\u064a\u0646 40 \u0645\u0644\u063a\/\u0645\u0644 (200 \u0645\u0644\u063a \/ 5 \u0645\u0644)', mgPer5mL:200 },\n      tablet:{ en:'Azithromycin 500 mg tablets', ar:'\u0623\u0632\u064a\u062b\u0631\u0648\u0645\u0627\u064a\u0633\u064a\u0646 \u0623\u0642\u0631\u0627\u0635 500 \u0645\u0644\u063a', mg:500, form:'tablet' },\n      child:{\n        bands:[\n          { when:A(6,144), perKg:10, maxDose:500, freq:F.od3 },\n          { when:A(144),   dose:500, freq:F.od3 }\n        ],\n        noMatch:under('6 months', '6 \u0623\u0634\u0647\u0631')\n      },\n      adult:{ dose:500, freq:F.od3 }\n    },\n    {\n      key:'cefalexin', name:{ en:'Cefalexin (Cephalexin)', ar:'\u0633\u064a\u0641\u0627\u0644\u0643\u0633\u064a\u0646' },\n      basis:{ en:'BNF\/BNFc: susceptible infections', ar:'BNF: \u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628\u0627\u062a \u0627\u0644\u0628\u0643\u062a\u064a\u0631\u064a\u0629 \u0627\u0644\u062d\u0633\u0627\u0633\u0629' },\n      syrup:{ en:'Cefalexin 125 mg\/5 mL suspension', ar:'\u0633\u064a\u0641\u0627\u0644\u0643\u0633\u064a\u0646 125 \u0645\u0644\u063a \/ 5 \u0645\u0644 (\u0634\u0631\u0627\u0628)', mgPer5mL:125 },\n      tablet:{ en:'Cefalexin 250 mg capsules', ar:'\u0633\u064a\u0641\u0627\u0644\u0643\u0633\u064a\u0646 \u0643\u0628\u0633\u0648\u0644\u0627\u062a 250 \u0645\u0644\u063a', mg:250, form:'capsule' },\n      child:{\n        perKgWarn:25,\n        bands:[\n          { when:A(1,12),   dose:125, freq:F.bd,  note:{ en:'Alternatively 12.5 mg\/kg twice daily. Severe: up to 25 mg\/kg 2\u20134 times daily (max 1 g per dose).', ar:'\u0623\u0648 12.5 \u0645\u0644\u063a\/\u0643\u062c\u0645 \u0645\u0631\u062a\u064a\u0646 \u064a\u0648\u0645\u064a\u0627\u064b. \u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628 \u0627\u0644\u0634\u062f\u064a\u062f: \u062d\u062a\u0649 25 \u0645\u0644\u063a\/\u0643\u062c\u0645 2\u20134 \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b (\u0628\u062d\u062f \u0623\u0642\u0635\u0649 1 \u063a\u0645 \u0644\u0644\u062c\u0631\u0639\u0629).' } },\n          { when:A(12,60),  dose:125, freq:F.tds, note:{ en:'Alternatively 12.5 mg\/kg twice daily. Severe: up to 25 mg\/kg 2\u20134 times daily (max 1 g per dose).', ar:'\u0623\u0648 12.5 \u0645\u0644\u063a\/\u0643\u062c\u0645 \u0645\u0631\u062a\u064a\u0646 \u064a\u0648\u0645\u064a\u0627\u064b. \u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628 \u0627\u0644\u0634\u062f\u064a\u062f: \u062d\u062a\u0649 25 \u0645\u0644\u063a\/\u0643\u062c\u0645 2\u20134 \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b (\u0628\u062d\u062f \u0623\u0642\u0635\u0649 1 \u063a\u0645 \u0644\u0644\u062c\u0631\u0639\u0629).' } },\n          { when:A(60,144), dose:250, freq:F.tds, note:{ en:'Alternatively 12.5 mg\/kg twice daily. Severe: up to 25 mg\/kg 2\u20134 times daily (max 1 g per dose).', ar:'\u0623\u0648 12.5 \u0645\u0644\u063a\/\u0643\u062c\u0645 \u0645\u0631\u062a\u064a\u0646 \u064a\u0648\u0645\u064a\u0627\u064b. \u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628 \u0627\u0644\u0634\u062f\u064a\u062f: \u062d\u062a\u0649 25 \u0645\u0644\u063a\/\u0643\u062c\u0645 2\u20134 \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b (\u0628\u062d\u062f \u0623\u0642\u0635\u0649 1 \u063a\u0645 \u0644\u0644\u062c\u0631\u0639\u0629).' } },\n          { when:A(144),    dose:500, freq:F.q8_12, note:{ en:'Every 8\u201312 hours. Severe: up to 1 g every 6 hours.', ar:'\u0643\u0644 8\u201312 \u0633\u0627\u0639\u0629. \u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628 \u0627\u0644\u0634\u062f\u064a\u062f: \u062d\u062a\u0649 1 \u063a\u0645 \u0643\u0644 6 \u0633\u0627\u0639\u0627\u062a.' } }\n        ],\n        noMatch:UNDER_1M\n      },\n      adult:{ dose:500, freq:F.q8_12, note:{ en:'Or 250 mg every 6 hours. Severe: 1\u20131.5 g 3\u20134 times daily.', ar:'\u0623\u0648 250 \u0645\u0644\u063a \u0643\u0644 6 \u0633\u0627\u0639\u0627\u062a. \u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628 \u0627\u0644\u0634\u062f\u064a\u062f: 1\u20131.5 \u063a\u0645 3\u20134 \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b.' } }\n    },\n    {\n      key:'cefuroxime', name:{ en:'Cefuroxime (axetil)', ar:'\u0633\u064a\u0641\u0648\u0631\u0648\u0643\u0633\u064a\u0645' },\n      basis:{ en:'BNF\/BNFc: susceptible infections', ar:'BNF: \u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628\u0627\u062a \u0627\u0644\u0628\u0643\u062a\u064a\u0631\u064a\u0629 \u0627\u0644\u062d\u0633\u0627\u0633\u0629' },\n      syrup:{ en:'Cefuroxime 125 mg\/5 mL suspension', ar:'\u0633\u064a\u0641\u0648\u0631\u0648\u0643\u0633\u064a\u0645 125 \u0645\u0644\u063a \/ 5 \u0645\u0644 (\u0634\u0631\u0627\u0628)', mgPer5mL:125 },\n      tablet:{ en:'Cefuroxime 250 mg tablets', ar:'\u0633\u064a\u0641\u0648\u0631\u0648\u0643\u0633\u064a\u0645 \u0623\u0642\u0631\u0627\u0635 250 \u0645\u0644\u063a', mg:250, form:'tablet' },\n      child:{\n        bands:[\n          { when:A(3,24),   perKg:10, maxDose:125, freq:F.bd },\n          { when:A(24,144), perKg:15, maxDose:250, freq:F.bd },\n          { when:A(144),    dose:250, freq:F.bd, note:{ en:'Severe or lower respiratory infection: 500 mg twice daily.', ar:'\u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628 \u0627\u0644\u0634\u062f\u064a\u062f \u0623\u0648 \u0627\u0644\u062a\u0647\u0627\u0628 \u0627\u0644\u062c\u0647\u0627\u0632 \u0627\u0644\u062a\u0646\u0641\u0633\u064a \u0627\u0644\u0633\u0641\u0644\u064a: 500 \u0645\u0644\u063a \u0645\u0631\u062a\u064a\u0646 \u064a\u0648\u0645\u064a\u0627\u064b.' } }\n        ],\n        noMatch:under('3 months', '3 \u0623\u0634\u0647\u0631')\n      },\n      adult:{ dose:250, freq:F.bd, note:{ en:'Severe or lower respiratory infection: 500 mg twice daily.', ar:'\u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628 \u0627\u0644\u0634\u062f\u064a\u062f \u0623\u0648 \u0627\u0644\u062a\u0647\u0627\u0628 \u0627\u0644\u062c\u0647\u0627\u0632 \u0627\u0644\u062a\u0646\u0641\u0633\u064a \u0627\u0644\u0633\u0641\u0644\u064a: 500 \u0645\u0644\u063a \u0645\u0631\u062a\u064a\u0646 \u064a\u0648\u0645\u064a\u0627\u064b.' } }\n    },\n    {\n      key:'chlorphenamine', name:{ en:'Chlorpheniramine', ar:'\u0643\u0644\u0648\u0631\u0641\u064a\u0646\u064a\u0631\u0627\u0645\u064a\u0646' },\n      basis:{ en:'BNF\/BNFc: symptomatic relief of allergy', ar:'BNF: \u062a\u062e\u0641\u064a\u0641 \u0623\u0639\u0631\u0627\u0636 \u0627\u0644\u062d\u0633\u0627\u0633\u064a\u0629' },\n      syrup:{ en:'Chlorpheniramine 2 mg\/5 mL syrup', ar:'\u0643\u0644\u0648\u0631\u0641\u064a\u0646\u064a\u0631\u0627\u0645\u064a\u0646 2 \u0645\u0644\u063a \/ 5 \u0645\u0644 (\u0634\u0631\u0627\u0628)', mgPer5mL:2 },\n      tablet:{ en:'Chlorpheniramine 4 mg tablets', ar:'\u0643\u0644\u0648\u0631\u0641\u064a\u0646\u064a\u0631\u0627\u0645\u064a\u0646 \u0623\u0642\u0631\u0627\u0635 4 \u0645\u0644\u063a', mg:4, form:'tablet' },\n      child:{\n        bands:[\n          { when:A(1,24),   dose:1, freq:F.bd,   maxDaily:2 },\n          { when:A(24,72),  dose:1, freq:F.q4_6, maxDaily:6 },\n          { when:A(72,144), dose:2, freq:F.q4_6, maxDaily:12 },\n          { when:A(144),    dose:4, freq:F.q4_6, maxDaily:24 }\n        ],\n        noMatch:UNDER_1M\n      },\n      adult:{ dose:4, freq:F.q4_6, maxDaily:24 }\n    },\n    {\n      key:'cloxacillin', name:{ en:'Cloxacillin', ar:'\u0643\u0644\u0648\u0643\u0633\u0627\u0633\u064a\u0644\u064a\u0646' },\n      basis:{ en:'Not in BNF (UK uses flucloxacillin) \u2014 clinic protocol dose', ar:'\u063a\u064a\u0631 \u0645\u062f\u0631\u062c \u0641\u064a BNF (\u064a\u064f\u0633\u062a\u062e\u062f\u0645 \u0641\u0644\u0648\u0643\u0644\u0648\u0643\u0633\u0627\u0633\u064a\u0644\u064a\u0646 \u0641\u064a \u0628\u0631\u064a\u0637\u0627\u0646\u064a\u0627) \u2014 \u062c\u0631\u0639\u0629 \u062d\u0633\u0628 \u0628\u0631\u0648\u062a\u0648\u0643\u0648\u0644 \u0627\u0644\u0639\u064a\u0627\u062f\u0629' },\n      syrup:{ en:'Cloxacillin 125 mg\/5 mL suspension', ar:'\u0643\u0644\u0648\u0643\u0633\u0627\u0633\u064a\u0644\u064a\u0646 125 \u0645\u0644\u063a \/ 5 \u0645\u0644 (\u0634\u0631\u0627\u0628)', mgPer5mL:125 },\n      tablet:{ en:'Cloxacillin 250 mg capsules', ar:'\u0643\u0644\u0648\u0643\u0633\u0627\u0633\u064a\u0644\u064a\u0646 \u0643\u0628\u0633\u0648\u0644\u0627\u062a 250 \u0645\u0644\u063a', mg:250, form:'capsule' },\n      child:{ perKgDay:50, divide:4, maxDay:2000, freq:F.q6 },\n      adult:{ dose:500, freq:F.q6 }\n    },\n    {\n      key:'dexamethasone', name:{ en:'Dexamethasone', ar:'\u062f\u064a\u0643\u0633\u0627\u0645\u064a\u062b\u0627\u0632\u0648\u0646' },\n      basis:{ en:'BNFc: croup (child) \u00b7 BNF: inflammatory and allergic disorders (adult)', ar:'BNFc: \u0627\u0644\u062e\u0627\u0646\u0648\u0642 (\u0627\u0644\u0623\u0637\u0641\u0627\u0644) \u00b7 BNF: \u0627\u0644\u0627\u0636\u0637\u0631\u0627\u0628\u0627\u062a \u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628\u064a\u0629 \u0648\u0627\u0644\u062a\u062d\u0633\u0633\u064a\u0629 (\u0627\u0644\u0628\u0627\u0644\u063a\u064a\u0646)' },\n      tablet:{ en:'Dexamethasone 0.5 mg, 2 mg and 4 mg tablets', ar:'\u062f\u064a\u0643\u0633\u0627\u0645\u064a\u062b\u0627\u0632\u0648\u0646 \u0623\u0642\u0631\u0627\u0635 0.5 \u0645\u0644\u063a \u0648 2 \u0645\u0644\u063a \u0648 4 \u0645\u0644\u063a', mg:[0.5,2,4], form:'tablet' },\n      child:{ perKg:0.15, freq:F.single, showTablets:true,\n              note:{ en:'Croup: 150 micrograms\/kg. No liquid in stock \u2014 tablets rounded to the nearest 0.5 mg; may be crushed and mixed with a little water.', ar:'\u0627\u0644\u062e\u0627\u0646\u0648\u0642: 150 \u0645\u064a\u0643\u0631\u0648\u063a\u0631\u0627\u0645\/\u0643\u062c\u0645. \u0644\u0627 \u064a\u062a\u0648\u0641\u0631 \u0634\u0631\u0627\u0628 \u2014 \u0627\u0644\u0623\u0642\u0631\u0627\u0635 \u0645\u0642\u0631\u0628\u0629 \u0644\u0623\u0642\u0631\u0628 0.5 \u0645\u0644\u063a\u061b \u064a\u0645\u0643\u0646 \u0633\u062d\u0642\u0647\u0627 \u0648\u062e\u0644\u0637\u0647\u0627 \u0628\u0642\u0644\u064a\u0644 \u0645\u0646 \u0627\u0644\u0645\u0627\u0621.' } },\n      adult:{ dose:[0.5,10], freq:F.od, noTabletCount:true,\n              note:{ en:'Usual range 0.5\u201310 mg daily depending on the condition. Other indications (e.g. croup, nausea) have different doses.', ar:'\u0627\u0644\u0645\u062f\u0649 \u0627\u0644\u0645\u0639\u062a\u0627\u062f 0.5\u201310 \u0645\u0644\u063a \u064a\u0648\u0645\u064a\u0627\u064b \u062d\u0633\u0628 \u0627\u0644\u062d\u0627\u0644\u0629. \u0644\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645\u0627\u062a \u0627\u0644\u0623\u062e\u0631\u0649 \u062c\u0631\u0639\u0627\u062a \u0645\u062e\u062a\u0644\u0641\u0629.' } }\n    },\n    {\n      key:'erythromycin', name:{ en:'Erythromycin', ar:'\u0625\u0631\u064a\u062b\u0631\u0648\u0645\u0627\u064a\u0633\u064a\u0646' },\n      basis:{ en:'BNF\/BNFc: susceptible infections', ar:'BNF: \u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628\u0627\u062a \u0627\u0644\u0628\u0643\u062a\u064a\u0631\u064a\u0629 \u0627\u0644\u062d\u0633\u0627\u0633\u0629' },\n      syrup:{ en:'Erythromycin 200 mg\/5 mL suspension', ar:'\u0625\u0631\u064a\u062b\u0631\u0648\u0645\u0627\u064a\u0633\u064a\u0646 200 \u0645\u0644\u063a \/ 5 \u0645\u0644 (\u0634\u0631\u0627\u0628)', mgPer5mL:200 },\n      tablet:{ en:'Erythromycin 250 mg tablets', ar:'\u0625\u0631\u064a\u062b\u0631\u0648\u0645\u0627\u064a\u0633\u064a\u0646 \u0623\u0642\u0631\u0627\u0635 250 \u0645\u0644\u063a', mg:250, form:'tablet' },\n      child:{\n        perKgWarn:25,\n        bands:[\n          { when:A(1,24),  dose:125,       freq:F.qds, note:{ en:'Severe infection: 250 mg four times daily.', ar:'\u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628 \u0627\u0644\u0634\u062f\u064a\u062f: 250 \u0645\u0644\u063a \u0623\u0631\u0628\u0639 \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b.' } },\n          { when:A(24,96), dose:250,       freq:F.qds, note:{ en:'Severe infection: 500 mg four times daily.', ar:'\u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628 \u0627\u0644\u0634\u062f\u064a\u062f: 500 \u0645\u0644\u063a \u0623\u0631\u0628\u0639 \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b.' } },\n          { when:A(96),    dose:[250,500], freq:F.qds, note:{ en:'Severe infection: 500 mg\u20131 g four times daily.', ar:'\u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628 \u0627\u0644\u0634\u062f\u064a\u062f: 500 \u0645\u0644\u063a\u20131 \u063a\u0645 \u0623\u0631\u0628\u0639 \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b.' } }\n        ],\n        noMatch:UNDER_1M\n      },\n      adult:{ dose:[250,500], freq:F.qds, note:{ en:'Or 0.5\u20131 g twice daily. Severe infection: up to 4 g per day.', ar:'\u0623\u0648 0.5\u20131 \u063a\u0645 \u0645\u0631\u062a\u064a\u0646 \u064a\u0648\u0645\u064a\u0627\u064b. \u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628 \u0627\u0644\u0634\u062f\u064a\u062f: \u062d\u062a\u0649 4 \u063a\u0645 \u064a\u0648\u0645\u064a\u0627\u064b.' } }\n    },\n    {\n      key:'ferrous', name:{ en:'Ferrous Sulphate', ar:'\u0643\u0628\u0631\u064a\u062a\u0627\u062a \u0627\u0644\u062d\u062f\u064a\u062f' },\n      basis:{ en:'BNF\/BNFc: iron-deficiency anaemia', ar:'BNF: \u0641\u0642\u0631 \u0627\u0644\u062f\u0645 \u0627\u0644\u0646\u0627\u062a\u062c \u0639\u0646 \u0646\u0642\u0635 \u0627\u0644\u062d\u062f\u064a\u062f' },\n      \/\/ mgPer5mL is ELEMENTAL iron, because the child dose is elemental iron\n      syrup:{ en:'Ferrous Sulphate 200 mg\/5 mL (40 mg elemental iron\/5 mL)', ar:'\u0643\u0628\u0631\u064a\u062a\u0627\u062a \u0627\u0644\u062d\u062f\u064a\u062f 200 \u0645\u0644\u063a \/ 5 \u0645\u0644 (40 \u0645\u0644\u063a \u062d\u062f\u064a\u062f \u0639\u0646\u0635\u0631\u064a \/ 5 \u0645\u0644)', mgPer5mL:40 },\n      tablet:{ en:'Ferrous Sulphate 200 mg tablets', ar:'\u0643\u0628\u0631\u064a\u062a\u0627\u062a \u0627\u0644\u062d\u062f\u064a\u062f \u0623\u0642\u0631\u0627\u0635 200 \u0645\u0644\u063a', mg:200, form:'tablet' },\n      child:{ perKgDay:3, divide:1, maxDay:200, freq:F.odDiv, doseNote:{ en:'elemental iron', ar:'\u062d\u062f\u064a\u062f \u0639\u0646\u0635\u0631\u064a' },\n              },\n      adult:{ dose:200, freq:F.od, syrupEquivalent:false,\n              note:{ en:'Each 200 mg tablet \u2248 65 mg elemental iron. May be increased to 2\u20133 times daily if needed.', ar:'\u0643\u0644 \u0642\u0631\u0635 200 \u0645\u0644\u063a \u2248 65 \u0645\u0644\u063a \u062d\u062f\u064a\u062f \u0639\u0646\u0635\u0631\u064a. \u064a\u0645\u0643\u0646 \u0632\u064a\u0627\u062f\u062a\u0647\u0627 \u0625\u0644\u0649 2\u20133 \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b \u0639\u0646\u062f \u0627\u0644\u062d\u0627\u062c\u0629.' } }\n    },\n    {\n      key:'ibuprofen', name:{ en:'Ibuprofen', ar:'\u0625\u064a\u0628\u0648\u0628\u0631\u0648\u0641\u064a\u0646' },\n      basis:{ en:'BNF\/BNFc: pain, fever and inflammation', ar:'BNF: \u0627\u0644\u0623\u0644\u0645 \u0648\u0627\u0644\u062d\u0645\u0649 \u0648\u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628' },\n      syrup:{ en:'Ibuprofen 100 mg\/5 mL suspension', ar:'\u0625\u064a\u0628\u0648\u0628\u0631\u0648\u0641\u064a\u0646 100 \u0645\u0644\u063a \/ 5 \u0645\u0644 (\u0634\u0631\u0627\u0628)', mgPer5mL:100 },\n      tablet:{ en:'Ibuprofen 400 mg tablets', ar:'\u0625\u064a\u0628\u0648\u0628\u0631\u0648\u0641\u064a\u0646 \u0623\u0642\u0631\u0627\u0635 400 \u0645\u0644\u063a', mg:400, form:'tablet' },\n      child:{\n        perKgWarn:10, maxDaily:{ perKg:30, max:2400 },\n        bands:[\n          { when:A(1,3),     perKg:5,  freq:F.tqds, note:{ en:'Under 3 months: only on prescriber advice.', ar:'\u062f\u0648\u0646 3 \u0623\u0634\u0647\u0631: \u0628\u0625\u0631\u0634\u0627\u062f \u0627\u0644\u0637\u0628\u064a\u0628 \u0641\u0642\u0637.' } },\n          { when:A(3,6),     dose:50,  freq:F.tds },\n          { when:A(6,12),    dose:50,  freq:F.tqds },\n          { when:A(12,48),   dose:100, freq:F.tds },\n          { when:A(48,84),   dose:150, freq:F.tds },\n          { when:A(84,120),  dose:200, freq:F.tds },\n          { when:A(120,144), dose:300, freq:F.tds },\n          { when:A(144),     dose:[300,400], freq:F.tqds, maxDaily:2400, note:{ en:'May increase to 600 mg four times daily if necessary (max 2.4 g per day).', ar:'\u064a\u0645\u0643\u0646 \u0632\u064a\u0627\u062f\u062a\u0647\u0627 \u0625\u0644\u0649 600 \u0645\u0644\u063a \u0623\u0631\u0628\u0639 \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b \u0639\u0646\u062f \u0627\u0644\u062d\u0627\u062c\u0629 (\u0628\u062d\u062f \u0623\u0642\u0635\u0649 2.4 \u063a\u0645 \u064a\u0648\u0645\u064a\u0627\u064b).' } }\n        ],\n        noMatch:UNDER_1M\n      },\n      adult:{ dose:400, freq:F.tqds, maxDaily:2400, note:{ en:'BNF range 300\u2013400 mg 3\u20134 times daily.', ar:'\u0645\u062f\u0649 BNF: 300\u2013400 \u0645\u0644\u063a 3\u20134 \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b.' } }\n    },\n    {\n      key:'lactulose', name:{ en:'Lactulose', ar:'\u0644\u0627\u0643\u062a\u0648\u0644\u0648\u0632' },\n      basis:{ en:'BNF\/BNFc: constipation', ar:'BNF: \u0627\u0644\u0625\u0645\u0633\u0627\u0643' },\n      syrup:{ en:'Lactulose 3.35 g\/5 mL oral solution', ar:'\u0644\u0627\u0643\u062a\u0648\u0644\u0648\u0632 3.35 \u063a\u0645 \/ 5 \u0645\u0644 (\u0645\u062d\u0644\u0648\u0644 \u0641\u0645\u0648\u064a)' },\n      tablet:{ en:'Lactulose oral solution (adult dosing in mL)', ar:'\u0645\u062d\u0644\u0648\u0644 \u0644\u0627\u0643\u062a\u0648\u0644\u0648\u0632 \u0641\u0645\u0648\u064a (\u062c\u0631\u0639\u0627\u062a \u0627\u0644\u0628\u0627\u0644\u063a\u064a\u0646 \u0628\u0627\u0644\u0645\u0644)' },\n      child:{\n        unit:'mL',\n        bands:[\n          { when:A(1,12),  dose:2.5,     freq:F.bd },\n          { when:A(12,60), dose:[2.5,10], freq:F.day12 },\n          { when:A(60),    dose:[5,20],   freq:F.day12 }\n        ],\n        note:{ en:'Adjust according to response. (NICE constipation guidance allows the same volume twice daily.)', ar:'\u062a\u064f\u0639\u062f\u0644 \u062d\u0633\u0628 \u0627\u0644\u0627\u0633\u062a\u062c\u0627\u0628\u0629. (\u062a\u0633\u0645\u062d \u0625\u0631\u0634\u0627\u062f\u0627\u062a NICE \u0644\u0644\u0625\u0645\u0633\u0627\u0643 \u0628\u0646\u0641\u0633 \u0627\u0644\u0643\u0645\u064a\u0629 \u0645\u0631\u062a\u064a\u0646 \u064a\u0648\u0645\u064a\u0627\u064b.)' },\n        noMatch:UNDER_1M\n      },\n      adult:{ unit:'mL', dose:15, freq:F.bd, note:{ en:'Adjust according to response.', ar:'\u062a\u064f\u0639\u062f\u0644 \u062d\u0633\u0628 \u0627\u0644\u0627\u0633\u062a\u062c\u0627\u0628\u0629.' } }\n    },\n    {\n      key:'loratadine', name:{ en:'Loratadine', ar:'\u0644\u0648\u0631\u0627\u062a\u0627\u062f\u064a\u0646' },\n      basis:{ en:'BNF\/BNFc: symptomatic relief of allergy', ar:'BNF: \u062a\u062e\u0641\u064a\u0641 \u0623\u0639\u0631\u0627\u0636 \u0627\u0644\u062d\u0633\u0627\u0633\u064a\u0629' },\n      syrup:{ en:'Loratadine 5 mg\/5 mL syrup', ar:'\u0644\u0648\u0631\u0627\u062a\u0627\u062f\u064a\u0646 5 \u0645\u0644\u063a \/ 5 \u0645\u0644 (\u0634\u0631\u0627\u0628)', mgPer5mL:5 },\n      tablet:{ en:'Loratadine 10 mg tablets', ar:'\u0644\u0648\u0631\u0627\u062a\u0627\u062f\u064a\u0646 \u0623\u0642\u0631\u0627\u0635 10 \u0645\u0644\u063a', mg:10, form:'tablet' },\n      child:{\n        bands:[\n          { when:function(m, kg){ return m >= 24 && m < 144 && kg < 31; }, dose:5,  freq:F.od },\n          { when:function(m, kg){ return m >= 144 || (m >= 24 && kg >= 31); }, dose:10, freq:F.od }\n        ],\n        noMatch:under('2 years', '\u0633\u0646\u062a\u064a\u0646')\n      },\n      adult:{ dose:10, freq:F.od }\n    },\n    {\n      key:'metronidazole', name:{ en:'Metronidazole', ar:'\u0645\u064a\u062a\u0631\u0648\u0646\u064a\u062f\u0627\u0632\u0648\u0644' },\n      basis:{ en:'BNF\/BNFc: anaerobic infections (other indications differ, e.g. giardiasis)', ar:'BNF: \u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628\u0627\u062a \u0627\u0644\u0644\u0627\u0647\u0648\u0627\u0626\u064a\u0629 (\u062a\u062e\u062a\u0644\u0641 \u0627\u0644\u062c\u0631\u0639\u0629 \u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645\u0627\u062a \u0623\u062e\u0631\u0649 \u0645\u062b\u0644 \u0627\u0644\u062c\u064a\u0627\u0631\u062f\u064a\u0627)' },\n      syrup:{ en:'Metronidazole 125 mg\/5 mL suspension', ar:'\u0645\u064a\u062a\u0631\u0648\u0646\u064a\u062f\u0627\u0632\u0648\u0644 125 \u0645\u0644\u063a \/ 5 \u0645\u0644 (\u0634\u0631\u0627\u0628)', mgPer5mL:125 },\n      tablet:{ en:'Metronidazole 250 mg tablets', ar:'\u0645\u064a\u062a\u0631\u0648\u0646\u064a\u062f\u0627\u0632\u0648\u0644 \u0623\u0642\u0631\u0627\u0635 250 \u0645\u0644\u063a', mg:250, form:'tablet' },\n      child:{\n        bands:[\n          { when:A(1,3),    perKg:7.5, freq:F.q12 },\n          { when:A(3,144),  perKg:7.5, maxDose:400, freq:F.q8 },\n          { when:A(144),    dose:400,  freq:F.q8 }\n        ],\n        noMatch:UNDER_1M\n      },\n      adult:{ dose:400, freq:F.q8, noTabletCount:true,\n              note:{ en:'400 mg cannot be made exactly from 250 mg tablets \u2014 confirm with the prescriber (500 mg = 2 tablets every 8 hours is used for some indications).', ar:'\u0644\u0627 \u064a\u0645\u0643\u0646 \u062a\u0643\u0648\u064a\u0646 400 \u0645\u0644\u063a \u0628\u062f\u0642\u0629 \u0645\u0646 \u0623\u0642\u0631\u0627\u0635 250 \u0645\u0644\u063a \u2014 \u062a\u0623\u0643\u062f \u0645\u0639 \u0627\u0644\u0637\u0628\u064a\u0628 (\u062a\u064f\u0633\u062a\u062e\u062f\u0645 500 \u0645\u0644\u063a = \u0642\u0631\u0635\u0627\u0646 \u0643\u0644 8 \u0633\u0627\u0639\u0627\u062a \u0644\u0628\u0639\u0636 \u0627\u0644\u062d\u0627\u0644\u0627\u062a).' } }\n    },\n    {\n      key:'paracetamol', name:{ en:'Paracetamol', ar:'\u0628\u0627\u0631\u0627\u0633\u064a\u062a\u0627\u0645\u0648\u0644' },\n      basis:{ en:'BNF\/BNFc: pain and fever', ar:'BNF: \u0627\u0644\u0623\u0644\u0645 \u0648\u0627\u0644\u062d\u0645\u0649' },\n      syrup:{ en:'Paracetamol 125 mg\/5 mL suspension', ar:'\u0628\u0627\u0631\u0627\u0633\u064a\u062a\u0627\u0645\u0648\u0644 125 \u0645\u0644\u063a \/ 5 \u0645\u0644 (\u0634\u0631\u0627\u0628)', mgPer5mL:125 },\n      tablet:{ en:'Paracetamol 500 mg tablets', ar:'\u0628\u0627\u0631\u0627\u0633\u064a\u062a\u0627\u0645\u0648\u0644 \u0623\u0642\u0631\u0627\u0635 500 \u0645\u0644\u063a', mg:500, form:'tablet' },\n      child:{\n        perKgWarn:20, maxDoses:4, maxDaily:4000,\n        maxDailyNote:{ en:'Max 4 doses in 24 hours', ar:'\u0628\u062d\u062f \u0623\u0642\u0635\u0649 4 \u062c\u0631\u0639\u0627\u062a \u062e\u0644\u0627\u0644 24 \u0633\u0627\u0639\u0629' },\n        bands:[\n          { when:A(1,3),     dose:[30,60],   freq:F.q8prn, maxDoses:3, maxDaily:{ perKg:60 },\n            maxDailyNote:{ en:'Max 60 mg\/kg per day', ar:'\u0628\u062d\u062f \u0623\u0642\u0635\u0649 60 \u0645\u0644\u063a\/\u0643\u062c\u0645 \u064a\u0648\u0645\u064a\u0627\u064b' } },\n          { when:A(3,6),     dose:60,        freq:F.q4_6 },\n          { when:A(6,24),    dose:120,       freq:F.q4_6 },\n          { when:A(24,48),   dose:180,       freq:F.q4_6 },\n          { when:A(48,72),   dose:240,       freq:F.q4_6 },\n          { when:A(72,96),   dose:[240,250], freq:F.q4_6 },\n          { when:A(96,120),  dose:[360,375], freq:F.q4_6 },\n          { when:A(120,144), dose:[480,500], freq:F.q4_6 },\n          { when:A(144,192), dose:[480,750], freq:F.q4_6 },\n          { when:A(192),     dose:[500,1000], freq:F.q4_6 }\n        ],\n        noMatch:UNDER_1M\n      },\n      adult:{ dose:[500,1000], freq:F.q4_6, maxDaily:4000 }\n    },\n    {\n      key:'penicillinv', name:{ en:'Phenoxymethylpenicillin (Penicillin V)', ar:'\u0641\u064a\u0646\u0648\u0643\u0633\u064a \u0645\u064a\u062b\u064a\u0644 \u0628\u0646\u0633\u0644\u064a\u0646 (\u0628\u0646\u0633\u0644\u064a\u0646 V)' },\n      basis:{ en:'BNF\/BNFc: susceptible infections', ar:'BNF: \u0627\u0644\u0627\u0644\u062a\u0647\u0627\u0628\u0627\u062a \u0627\u0644\u0628\u0643\u062a\u064a\u0631\u064a\u0629 \u0627\u0644\u062d\u0633\u0627\u0633\u0629' },\n      syrup:{ en:'Penicillin V 250 mg\/5 mL suspension', ar:'\u0628\u0646\u0633\u0644\u064a\u0646 V 250 \u0645\u0644\u063a \/ 5 \u0645\u0644 (\u0634\u0631\u0627\u0628)', mgPer5mL:250 },\n      child:{\n        bands:[\n          { when:A(1,12),   dose:62.5, freq:F.qds, note:{ en:'If necessary, may increase to 12.5 mg\/kg four times daily.', ar:'\u0639\u0646\u062f \u0627\u0644\u062d\u0627\u062c\u0629 \u064a\u0645\u0643\u0646 \u0632\u064a\u0627\u062f\u062a\u0647\u0627 \u0625\u0644\u0649 12.5 \u0645\u0644\u063a\/\u0643\u062c\u0645 \u0623\u0631\u0628\u0639 \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b.' } },\n          { when:A(12,72),  dose:125,  freq:F.qds, note:{ en:'If necessary, may increase to 12.5 mg\/kg four times daily.', ar:'\u0639\u0646\u062f \u0627\u0644\u062d\u0627\u062c\u0629 \u064a\u0645\u0643\u0646 \u0632\u064a\u0627\u062f\u062a\u0647\u0627 \u0625\u0644\u0649 12.5 \u0645\u0644\u063a\/\u0643\u062c\u0645 \u0623\u0631\u0628\u0639 \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b.' } },\n          { when:A(72,144), dose:250,  freq:F.qds, note:{ en:'If necessary, may increase to 12.5 mg\/kg four times daily.', ar:'\u0639\u0646\u062f \u0627\u0644\u062d\u0627\u062c\u0629 \u064a\u0645\u0643\u0646 \u0632\u064a\u0627\u062f\u062a\u0647\u0627 \u0625\u0644\u0649 12.5 \u0645\u0644\u063a\/\u0643\u062c\u0645 \u0623\u0631\u0628\u0639 \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b.' } },\n          { when:A(144),    dose:500,  freq:F.qds, note:{ en:'If necessary, may increase to 1 g four times daily.', ar:'\u0639\u0646\u062f \u0627\u0644\u062d\u0627\u062c\u0629 \u064a\u0645\u0643\u0646 \u0632\u064a\u0627\u062f\u062a\u0647\u0627 \u0625\u0644\u0649 1 \u063a\u0645 \u0623\u0631\u0628\u0639 \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b.' } }\n        ],\n        noMatch:UNDER_1M\n      },\n      adult:{ dose:500, freq:F.qds, note:{ en:'If necessary, may increase to 1 g four times daily.', ar:'\u0639\u0646\u062f \u0627\u0644\u062d\u0627\u062c\u0629 \u064a\u0645\u0643\u0646 \u0632\u064a\u0627\u062f\u062a\u0647\u0627 \u0625\u0644\u0649 1 \u063a\u0645 \u0623\u0631\u0628\u0639 \u0645\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0627\u064b.' } }\n    },\n    {\n      key:'prednisolone', name:{ en:'Prednisolone', ar:'\u0628\u0631\u064a\u062f\u0646\u064a\u0632\u0648\u0644\u0648\u0646' },\n      basis:{ en:'BNF\/BNFc: acute asthma (other conditions differ)', ar:'BNF: \u0646\u0648\u0628\u0629 \u0627\u0644\u0631\u0628\u0648 \u0627\u0644\u062d\u0627\u062f\u0629 (\u062a\u062e\u062a\u0644\u0641 \u0627\u0644\u062c\u0631\u0639\u0629 \u0644\u062d\u0627\u0644\u0627\u062a \u0623\u062e\u0631\u0649)' },\n      syrup:{ en:'Prednisolone 15 mg\/5 mL syrup', ar:'\u0628\u0631\u064a\u062f\u0646\u064a\u0632\u0648\u0644\u0648\u0646 15 \u0645\u0644\u063a \/ 5 \u0645\u0644 (\u0634\u0631\u0627\u0628)', mgPer5mL:15 },\n      tablet:{ en:'Prednisolone 5 mg or 20 mg tablets', ar:'\u0628\u0631\u064a\u062f\u0646\u064a\u0632\u0648\u0644\u0648\u0646 \u0623\u0642\u0631\u0627\u0635 5 \u0645\u0644\u063a \u0623\u0648 20 \u0645\u0644\u063a', mg:[5,20], form:'tablet' },\n      child:{\n        bands:[\n          { when:A(1,144), perKg:[1,2], maxDose:40, freq:F.od, note:{ en:'For up to 3 days (longer if necessary).', ar:'\u0644\u0645\u062f\u0629 \u062a\u0635\u0644 \u0625\u0644\u0649 3 \u0623\u064a\u0627\u0645 (\u0623\u0637\u0648\u0644 \u0639\u0646\u062f \u0627\u0644\u062d\u0627\u062c\u0629).' } },\n          { when:A(144),   dose:[40,50], freq:F.od, note:{ en:'For at least 5 days.', ar:'\u0644\u0645\u062f\u0629 5 \u0623\u064a\u0627\u0645 \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644.' } }\n        ],\n        noMatch:UNDER_1M\n      },\n      adult:{ dose:[40,50], freq:F.od, note:{ en:'Acute asthma: for at least 5 days. Other conditions: dose varies.', ar:'\u0646\u0648\u0628\u0629 \u0627\u0644\u0631\u0628\u0648 \u0627\u0644\u062d\u0627\u062f\u0629: \u0644\u0645\u062f\u0629 5 \u0623\u064a\u0627\u0645 \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644. \u0627\u0644\u062d\u0627\u0644\u0627\u062a \u0627\u0644\u0623\u062e\u0631\u0649: \u062a\u062e\u062a\u0644\u0641 \u0627\u0644\u062c\u0631\u0639\u0629.' } }\n    },\n    {\n      key:'promethazine', name:{ en:'Promethazine hydrochloride', ar:'\u0628\u0631\u0648\u0645\u064a\u062b\u0627\u0632\u064a\u0646' },\n      basis:{ en:'BNF\/BNFc: symptomatic relief of allergy', ar:'BNF: \u062a\u062e\u0641\u064a\u0641 \u0623\u0639\u0631\u0627\u0636 \u0627\u0644\u062d\u0633\u0627\u0633\u064a\u0629' },\n      syrup:{ en:'Promethazine 5 mg\/5 mL elixir', ar:'\u0628\u0631\u0648\u0645\u064a\u062b\u0627\u0632\u064a\u0646 5 \u0645\u0644\u063a \/ 5 \u0645\u0644 (\u0625\u0643\u0633\u064a\u0631)', mgPer5mL:5 },\n      tablet:{ en:'Promethazine 10 mg and 40 mg tablets', ar:'\u0628\u0631\u0648\u0645\u064a\u062b\u0627\u0632\u064a\u0646 \u0623\u0642\u0631\u0627\u0635 10 \u0645\u0644\u063a \u0648 40 \u0645\u0644\u063a', mg:[10,40], form:'tablet' },\n      child:{\n        bands:[\n          { when:A(24,60),  dose:5,       freq:F.bd,    note:{ en:'Or 5\u201315 mg once daily at night.', ar:'\u0623\u0648 5\u201315 \u0645\u0644\u063a \u0645\u0631\u0629 \u064a\u0648\u0645\u064a\u0627\u064b \u0644\u064a\u0644\u0627\u064b.' } },\n          { when:A(60,120), dose:[5,10],  freq:F.bd,    note:{ en:'Or 10\u201325 mg once daily at night.', ar:'\u0623\u0648 10\u201325 \u0645\u0644\u063a \u0645\u0631\u0629 \u064a\u0648\u0645\u064a\u0627\u064b \u0644\u064a\u0644\u0627\u064b.' } },\n          { when:A(120),    dose:[10,20], freq:F.bdtds, note:{ en:'Or 25 mg at night, increased to 25 mg twice daily if necessary.', ar:'\u0623\u0648 25 \u0645\u0644\u063a \u0644\u064a\u0644\u0627\u064b\u060c \u062a\u0632\u0627\u062f \u0625\u0644\u0649 25 \u0645\u0644\u063a \u0645\u0631\u062a\u064a\u0646 \u064a\u0648\u0645\u064a\u0627\u064b \u0639\u0646\u062f \u0627\u0644\u062d\u0627\u062c\u0629.' } }\n        ],\n        noMatch:{ en:'Contraindicated under 2 years (risk of fatal respiratory depression).', ar:'\u0645\u0645\u0646\u0648\u0639 \u0644\u0645\u0646 \u0647\u0645 \u062f\u0648\u0646 \u0633\u0646\u062a\u064a\u0646 (\u062e\u0637\u0631 \u062a\u062b\u0628\u064a\u0637 \u0627\u0644\u062a\u0646\u0641\u0633 \u0627\u0644\u0642\u0627\u062a\u0644).' }\n      },\n      adult:{ dose:[10,20], freq:F.bdtds }\n    }\n\n    \/* ---- TEMPLATE for a new medicine (copy, fill in, add a comma above) ----\n    ,{\n      key:'newmed', name:{ en:'', ar:'' },\n      basis:{ en:'BNF\/BNFc: ', ar:'BNF: ' },\n      syrup:{ en:'', ar:'', mgPer5mL:0 },\n      tablet:{ en:'', ar:'', mg:0, form:'tablet' },\n      child:{\n        bands:[\n          { when:A(1,12),  dose:0, freq:F.tds },\n          { when:A(12,60), perKg:0, maxDose:0, freq:F.tds }\n        ],\n        noMatch:UNDER_1M\n      },\n      adult:{ dose:0, freq:F.tds }\n    }\n    ------------------------------------------------------------------------- *\/\n  ];\n\n  var MED_BY_KEY = {};\n  MEDS.forEach(function(m){ MED_BY_KEY[m.key] = m; });\n\n  \/* =====================================================================\n     HELPERS\n     ===================================================================== *\/\n  function esc(s){ return String(s).replace(\/&\/g,'&amp;').replace(\/<\/g,'&lt;').replace(\/>\/g,'&gt;'); }\n\n  \/\/ Keeps numbers (and ranges like 4\u20136) in left-to-right order inside Arabic text\n  function txt(s, lang){\n    s = esc(s);\n    if(lang !== 'ar') return s;\n    return s.replace(\/\\d+(?:\\.\\d+)?(?:\\s*[\u2013-]\\s*\\d+(?:\\.\\d+)?)?\/g, function(m){ return '<bdi dir=\"ltr\">' + m + '<\/bdi>'; });\n  }\n\n  function fill(template, vars, lang){\n    var out = txt(template, lang);\n    Object.keys(vars || {}).forEach(function(k){ out = out.split('{' + k + '}').join(vars[k]); });\n    return out;\n  }\n\n  function parseNum(v){\n    v = String(v == null ? '' : v).trim()\n      .replace(\/[\\u0660-\\u0669]\/g, function(d){ return d.charCodeAt(0) - 0x0660; })\n      .replace(\/[\\u06F0-\\u06F9]\/g, function(d){ return d.charCodeAt(0) - 0x06F0; })\n      .replace(\/[\\u066B,]\/g, '.');\n    return v === '' ? NaN : Number(v);\n  }\n\n  function mapR(v, fn){ return Array.isArray(v) ? v.map(fn) : fn(v); }\n  function hi(v){ return Array.isArray(v) ? v[v.length - 1] : v; }\n  function roundMg(n){ return n >= 10 ? Math.round(n) : Math.round(n * 10) \/ 10; }\n  function roundMl(n){ return Math.round(n * 10) \/ 10; }\n\n  function amount(val, unit, lang){\n    var r = unit === 'mL' ? roundMl : roundMg;\n    var nums = Array.isArray(val) ? val.map(r) : [r(val)];\n    var numStr = (nums.length > 1 && nums[0] !== nums[1]) ? nums[0] + '\u2013' + nums[1] : String(nums[0]);\n    return '<bdi dir=\"ltr\">' + numStr + '<\/bdi> ' + UNITS[unit][lang];\n  }\n\n  \/\/ Whole-tablet combination for one dose: exact matches first, fewest tablets wins;\n  \/\/ otherwise rounded to the nearest multiple of the smallest strength.\n  function combo(dose, strengths){\n    var s = [].concat(strengths).sort(function(a, b){ return b - a; });\n    function greedy(target){\n      var rem = target, parts = [];\n      s.forEach(function(st){\n        var n = Math.floor(rem \/ st + 1e-9);\n        if(n > 0){ parts.push({ n:n, mg:st }); rem = Math.round((rem - n * st) * 1000) \/ 1000; }\n      });\n      return { parts:parts, rem:rem };\n    }\n    function count(parts){ return parts.reduce(function(t, p){ return t + p.n; }, 0); }\n\n    var options = [];\n    var g = greedy(dose);\n    if(Math.abs(g.rem) < 1e-6) options.push(g.parts);\n    s.forEach(function(st){\n      var q = dose \/ st;\n      if(q >= 1 && Math.abs(q - Math.round(q)) < 1e-6) options.push([{ n:Math.round(q), mg:st }]);\n    });\n    if(options.length){\n      options.sort(function(a, b){ return count(a) - count(b); });\n      return { parts:options[0], approx:false };\n    }\n    var smallest = s[s.length - 1];\n    var target = Math.max(1, Math.round(dose \/ smallest)) * smallest;\n    return { parts:greedy(target).parts, approx:true };\n  }\n\n  function tabletPhrase(doses, tab, lang){\n    var f = FORMS[tab.form] || FORMS.tablet;\n    var combos = [].concat(doses).map(function(d){ return combo(d, tab.mg); });\n    var approx = combos.some(function(c){ return c.approx; }) ? '\u2248 ' : '';\n    var singles = combos.every(function(c){ return c.parts.length === 1 && c.parts[0].mg === combos[0].parts[0].mg; });\n\n    if(singles){\n      var counts = combos.map(function(c){ return c.parts[0].n; });\n      var cStr = (counts.length > 1 && counts[0] !== counts[1]) ? counts[0] + '\u2013' + counts[1] : String(counts[0]);\n      var mg = combos[0].parts[0].mg;\n      var n = '<bdi dir=\"ltr\">' + approx + cStr + '<\/bdi>';\n      if(lang === 'ar') return n + ' \u00d7 ' + f.ar + ' ' + amount(mg, 'mg', 'ar');\n      return n + ' ' + (Math.max.apply(null, counts) > 1 ? f.enN : f.en1) + ' ' + T.en.of + ' ' + amount(mg, 'mg', 'en');\n    }\n\n    var one = function(c){\n      return c.parts.map(function(p){\n        return '<bdi dir=\"ltr\">' + p.n + '<\/bdi> \u00d7 ' + (lang === 'ar' ? f.ar + ' ' : '') + amount(p.mg, 'mg', lang);\n      }).join(' + ') + (lang === 'ar' ? '' : ' ' + f.enN);\n    };\n    return (approx ? '<bdi dir=\"ltr\">\u2248<\/bdi> ' : '') + combos.map(one).join(' ' + T[lang].to + ' ');\n  }\n\n  function section(title, body){\n    return '<div class=\"mdc-sec\"><strong class=\"mdc-sec-title\">' + title + '<\/strong><div>' + body + '<\/div><\/div>';\n  }\n  function note(obj, L){ return obj ? '<div class=\"mdc-note\">' + txt(obj[L], L) + '<\/div>' : ''; }\n  function basis(med, L){ return med.basis ? '<div class=\"mdc-basis\">\ud83d\udcd8 ' + txt(med.basis[L], L) + '<\/div>' : ''; }\n  function toMl(mg, syrup){ return (syrup && syrup.mgPer5mL) ? mapR(mg, function(x){ return x * 5 \/ syrup.mgPer5mL; }) : null; }\n\n  \/* =====================================================================\n     CALCULATION (pure: no DOM)\n     ===================================================================== *\/\n  function resolveMax(md, kg){\n    if(md == null) return null;\n    if(typeof md === 'number') return md;\n    var v = md.perKg * kg;\n    return md.max ? Math.min(v, md.max) : v;\n  }\n\n  function computeChild(med, ageMonths, kg){\n    var c = med.child, out = { unit:c.unit || 'mg', warnings:[] };\n\n    if(c.minAge && (ageMonths < c.minAge.months || (c.minAge.kg && kg < c.minAge.kg))){\n      out.warnings.push({ key:'minAge', text:c.minAge });\n    }\n\n    var spec = c;\n    if(c.bands){\n      spec = null;\n      for(var i = 0; i < c.bands.length; i++){ if(c.bands[i].when(ageMonths, kg)){ spec = c.bands[i]; break; } }\n      if(!spec){ out.blocked = c.noMatch; return out; }\n    }\n\n    out.freq = spec.freq || c.freq;\n    out.note = spec.note || c.note;\n    out.doseNote = spec.doseNote || c.doseNote;\n    out.noSyrup = !!spec.noSyrup;\n    out.showTablets = spec.showTablets != null ? spec.showTablets : !!c.showTablets;\n    out.maxDailyNote = spec.maxDailyNote || c.maxDailyNote;\n\n    if(spec.perKg != null){\n      var capped = false;\n      out.dose = mapR(spec.perKg, function(p){\n        var d = p * kg;\n        if(spec.maxDose && d > spec.maxDose){ capped = true; return spec.maxDose; }\n        return d;\n      });\n      if(capped) out.warnings.push({ key:'capped', amt:spec.maxDose });\n    } else if(spec.perKgDay != null){\n      var day = spec.perKgDay * kg;\n      if(spec.maxDay && day > spec.maxDay){ day = spec.maxDay; out.warnings.push({ key:'cappedDay', amt:spec.maxDay }); }\n      out.day = day; out.divide = spec.divide || 1; out.dose = day \/ out.divide;\n    } else {\n      out.dose = spec.dose;\n    }\n\n    var md = resolveMax(spec.maxDaily != null ? spec.maxDaily : c.maxDaily, kg);\n    var nDoses = spec.maxDoses || c.maxDoses;\n    if(nDoses){ var byDoses = hi(out.dose) * nDoses; md = md != null ? Math.min(md, byDoses) : byDoses; }\n    out.maxDaily = md;\n\n    if(c.perKgWarn && out.unit === 'mg' && hi(out.dose) \/ kg > c.perKgWarn){\n      out.warnings.push({ key:'perKgHigh', amt:hi(out.dose) \/ kg });\n    }\n    return out;\n  }\n\n  \/* =====================================================================\n     RENDERING\n     ===================================================================== *\/\n  function renderChild(med, ageMonths, kg, L){\n    var tr = T[L], r = computeChild(med, ageMonths, kg), html = '';\n\n    if(r.warnings.length){\n      html += '<div class=\"mdc-alert\"><strong>' + txt(tr.check, L) + '<\/strong><ul>' + r.warnings.map(function(w){\n        if(w.key === 'minAge') return '<li>' + fill(tr.minAge, { x:txt(w.text[L], L) }, L) + '<\/li>';\n        return '<li>' + fill(tr[w.key], { x:amount(w.amt, r.unit, L) }, L) + '<\/li>';\n      }).join('') + '<\/ul><\/div>';\n    }\n\n    if(r.blocked){\n      return { html: html + section(txt(tr.recommended, L), txt(r.blocked[L], L) + basis(med, L)), warn:true };\n    }\n\n    var line = amount(r.dose, r.unit, L);\n    if(r.doseNote) line += ' ' + txt(r.doseNote[L], L);\n    line += ' ' + txt(r.freq[L], L);\n    if(r.day != null && r.divide > 1) line += ' (' + fill(tr.totalDay, { x:amount(r.day, r.unit, L) }, L) + ')';\n    if(r.showTablets && med.tablet && med.tablet.mg && r.unit === 'mg'){\n      line += '<div class=\"mdc-take\">' + txt(tr.take, L) + ' ' + tabletPhrase(r.dose, med.tablet, L) + '<\/div>';\n    }\n    line += note(r.note, L) + basis(med, L);\n    html += section(txt(tr.recommended, L), line);\n\n    if(med.syrup && !r.noSyrup){\n      var body = txt(med.syrup[L], L);\n      var ml = r.unit === 'mL' ? r.dose : toMl(r.dose, med.syrup);\n      if(ml != null) body += '<div><span class=\"mdc-pill\">' + amount(ml, 'mL', L) + ' ' + txt(r.freq[L], L) + '<\/span><\/div>';\n      html += section(fill(tr.syrupAt, { clinic:esc(CLINIC[L]) }, L), body);\n    } else if(med.tablet && (r.showTablets || !med.syrup)){\n      html += section(fill(tr.tabletsAt, { clinic:esc(CLINIC[L]) }, L), txt(med.tablet[L], L));\n    }\n\n    if(r.maxDaily != null){\n      var mx = amount(r.maxDaily, r.unit, L);\n      var mxMl = (r.unit === 'mL' || r.noSyrup) ? null : toMl(r.maxDaily, med.syrup);\n      if(mxMl != null) mx += ' (' + amount(mxMl, 'mL', L) + ')';\n      mx += note(r.maxDailyNote, L);\n      html += section(txt(tr.maxDaily, L), mx);\n    }\n\n    return { html:html, warn:r.warnings.length > 0 };\n  }\n\n  function renderAdult(med, L){\n    var tr = T[L], a = med.adult, unit = a.unit || 'mg', html = '';\n\n    var line = amount(a.dose, unit, L) + ' ' + txt(a.freq[L], L);\n    if(unit === 'mg' && !a.noTabletCount && med.tablet && med.tablet.mg){\n      line += '<div class=\"mdc-take\">' + txt(tr.take, L) + ' ' + tabletPhrase(a.dose, med.tablet, L) + '<\/div>';\n    }\n    line += note(a.note, L) + basis(med, L);\n    html += section(txt(tr.recommended, L), line);\n\n    if(med.tablet) html += section(fill(tr.adultAt, { clinic:esc(CLINIC[L]) }, L), txt(med.tablet[L], L));\n\n    if(unit === 'mg' && a.syrupEquivalent !== false && med.syrup && med.syrup.mgPer5mL){\n      html += section(txt(tr.volume, L),\n        '<span class=\"mdc-pill\">' + amount(toMl(a.dose, med.syrup), 'mL', L) + ' ' + txt(a.freq[L], L) + '<\/span>' +\n        '<div class=\"mdc-note\">' + txt(tr.using, L) + ' ' + txt(med.syrup[L], L) + '<\/div>');\n    }\n\n    if(a.maxDaily) html += section(txt(tr.maxDaily, L), amount(a.maxDaily, unit, L));\n    return { html:html, warn:false };\n  }\n\n  \/* =====================================================================\n     WIRING (supports several calculators on one page)\n     ===================================================================== *\/\n  function init(root){\n    root.setAttribute('data-mdc-ready', '1');\n    var $ = function(name){ return root.querySelector('[data-el=\"' + name + '\"]'); };\n    var medSel = $('med'), groupSel = $('group'), childFields = $('childFields');\n    var ageIn = $('age'), ageUnit = $('ageUnit'), weightIn = $('weight');\n    var calcBtn = $('calc'), result = $('result');\n    var langBtns = root.querySelectorAll('.mdc-langbtn');\n    var LANG = 'en';\n\n    function options(select, list, keep){\n      select.innerHTML = '';\n      list.forEach(function(o){\n        var el = document.createElement('option');\n        el.value = o.value; el.textContent = o.label;\n        select.appendChild(el);\n      });\n      if(keep != null) select.value = keep;\n    }\n    function hideResult(){ result.hidden = true; }\n\n    function setLanguage(lang){\n      LANG = lang;\n      var tr = T[lang];\n      try{ localStorage.setItem(STORAGE_KEY, lang); }catch(e){}\n\n      root.setAttribute('dir', lang === 'ar' ? 'rtl' : 'ltr');\n      root.setAttribute('lang', lang);\n      root.setAttribute('aria-label', tr.title);\n      root.querySelectorAll('[data-t]').forEach(function(el){ el.textContent = tr[el.getAttribute('data-t')]; });\n      langBtns.forEach(function(b){\n        var on = b.getAttribute('data-lang') === lang;\n        b.classList.toggle('is-active', on);\n        b.setAttribute('aria-pressed', on ? 'true' : 'false');\n      });\n\n      var sorted = MEDS.slice().sort(function(a, b){ return a.name[lang].localeCompare(b.name[lang], lang); });\n      options(medSel, [{ value:'', label:tr.chooseMedicine }].concat(sorted.map(function(m){ return { value:m.key, label:m.name[lang] }; })), medSel.value);\n      options(groupSel, [{ value:'', label:tr.chooseGroup }, { value:'child', label:tr.child }, { value:'adult', label:tr.adult }], groupSel.value);\n      options(ageUnit, [{ value:'years', label:tr.years }, { value:'months', label:tr.months }], ageUnit.value || 'years');\n\n      ageIn.placeholder = tr.agePh; ageIn.setAttribute('aria-label', tr.enterAge);\n      ageUnit.setAttribute('aria-label', tr.years + ' \/ ' + tr.months);\n      weightIn.placeholder = tr.weightPh;\n      hideResult();\n    }\n\n    function showMessage(html){\n      result.className = 'mdc-result is-warn';\n      result.innerHTML = '<strong>' + html + '<\/strong>';\n      result.hidden = false;\n    }\n\n    function calculate(){\n      var L = LANG, tr = T[L];\n      var med = MED_BY_KEY[medSel.value], group = groupSel.value;\n      if(!med || !group) return showMessage(txt(tr.errMissing, L));\n\n      var out;\n      if(group === 'child'){\n        var ageVal = parseNum(ageIn.value), kg = parseNum(weightIn.value);\n        if(isNaN(ageVal) || isNaN(kg)) return showMessage(txt(tr.errChild, L));\n        var ageMonths = ageUnit.value === 'years' ? ageVal * 12 : ageVal;\n        if(ageMonths < 0 || ageMonths >= 216) return showMessage(txt(tr.errAge, L));\n        if(kg < 0.5 || kg > 150) return showMessage(txt(tr.errWeight, L));\n        out = renderChild(med, ageMonths, kg, L);\n      } else {\n        out = renderAdult(med, L);\n      }\n\n      result.className = 'mdc-result' + (out.warn ? ' is-warn' : '');\n      result.innerHTML = out.html;\n      result.hidden = false;\n    }\n\n    langBtns.forEach(function(b){ b.addEventListener('click', function(){ setLanguage(b.getAttribute('data-lang')); }); });\n    groupSel.addEventListener('change', function(){ childFields.hidden = groupSel.value !== 'child'; hideResult(); });\n    [medSel, ageUnit].forEach(function(el){ el.addEventListener('change', hideResult); });\n    [ageIn, weightIn].forEach(function(el){\n      el.addEventListener('input', hideResult);\n      el.addEventListener('keydown', function(e){ if(e.key === 'Enter'){ e.preventDefault(); calculate(); } });\n    });\n    calcBtn.addEventListener('click', calculate);\n\n    var saved = null;\n    try{ saved = localStorage.getItem(STORAGE_KEY); }catch(e){}\n    var pageAr = (document.documentElement.lang || '').toLowerCase().indexOf('ar') === 0;\n    setLanguage(saved === 'ar' || saved === 'en' ? saved : (pageAr ? 'ar' : 'en'));\n  }\n\n  document.querySelectorAll('.mdcalc:not([data-mdc-ready])').forEach(init);\n})();\n<\/script>\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"Seeb Polyclinic Dose Calculator English \u0627\u0644\u0639\u0631\u0628\u064a\u0629 Medicine Dose Calculator","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-2231","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/busmasoftware.com\/ar\/wp-json\/wp\/v2\/pages\/2231","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=2231"}],"version-history":[{"count":26,"href":"https:\/\/busmasoftware.com\/ar\/wp-json\/wp\/v2\/pages\/2231\/revisions"}],"predecessor-version":[{"id":2425,"href":"https:\/\/busmasoftware.com\/ar\/wp-json\/wp\/v2\/pages\/2231\/revisions\/2425"}],"wp:attachment":[{"href":"https:\/\/busmasoftware.com\/ar\/wp-json\/wp\/v2\/media?parent=2231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}