📞 Call 7839059070💬 WhatsApp
Ayushman BharatCashless InsuranceGovt Health Schemes

Insights and Updates from Ashirwad Hospital

Scroll to Top
'); w.document.close(); w.focus(); setTimeout(function(){w.print();},400); }; setInterval(mount, 700); ['ash-opd-utr-inline','ash-opd-shot-inline'].forEach(function(id){var el=document.getElementById(id); if(el) el.addEventListener('change',function(){ if(box.getAttribute('data-method')!=='cash'){ box.removeAttribute('data-saved'); box.removeAttribute('data-upi-ref'); box.removeAttribute('data-ref'); } });}); document.getElementById('ash-opd-save-inline').addEventListener('click', function(){ var msg=document.getElementById('ash-opd-inline-msg'); var fd=new FormData(); fd.append('action','ash_opd_payment_proof'); var first=(document.querySelector('input[name*=first],input[placeholder*=First]')||{}).value||''; var last=(document.querySelector('input[name*=last],input[placeholder*=Last]')||{}).value||''; var phone=(document.querySelector('input[type=tel]')||{}).value||''; var email=(document.querySelector('input[type=email]')||{}).value||''; fd.append('name', (first+' '+last).trim()); fd.append('phone', phone); fd.append('email', email); var sum=document.body.innerText.match(/Orthopaedics[^\n]*|Obs[^\n]*Gynae[^\n]*/i); fd.append('service', sum?sum[0].slice(0,120):''); var when=document.body.innerText.match(/\d{1,2}\s+\w+,\s*\d{1,2}:\d{2}\s*(am|pm)/i); fd.append('when', when?when[0]:''); fd.append('utr', document.getElementById('ash-opd-utr-inline').value.trim()); var f=document.getElementById('ash-opd-shot-inline').files[0]; if(f) fd.append('shot', f); msg.style.display='block'; msg.textContent='Saving…'; fetch(ajax,{method:'POST',body:fd,credentials:'same-origin'}).then(function(r){return r.json()}).then(function(j){ if(j&&j.success){ box.setAttribute('data-saved','1'); box.setAttribute('data-ref',j.data.order); box.setAttribute('data-upi-ref',j.data.order); msg.style.color='#15803d'; msg.textContent='Saved. Ref '+j.data.order+'. Receipt emailed if email provided. Continue Next to finish booking.'; showReceipt(j.data.receipt); } else { var m=(j&&j.data&&j.data.message)||''; msg.textContent=m==='proof'?'Please enter UTR number OR upload payment receipt/screenshot (either one is mandatory).':m==='contact'?'Name and phone required in the form above.':'Could not save.'; } }).catch(function(){ msg.textContent='Network error'; }); }); })();