Embed Widget
Add denial code lookup to your site
Free embeddable widget for hospital intranets, EHR portals, and healthcare websites. 108 denial codes with action steps. No registration required.
One line of code
Copy-paste iframe or script tag
Works anywhere
Intranets, portals, any website
108 denial codes
Always up-to-date database
Free forever
No API key or registration
Option 1: iframe embed (easiest)
Embed a single denial code card. Replace 50 with any denial code number.
HTML
<iframe src="https://winthep2p.com/api/embed/denial-code?code=50&format=html" width="500" height="320" frameborder="0" style="border: none; border-radius: 12px;" title="Denial Code Lookup - WinTheP2P" ></iframe>
Option 2: JavaScript search widget
Add a searchable denial code lookup to any page. Users can search by code number and see details instantly.
HTML
<div id="wtp-denial-lookup"></div>
<script>
(function() {
var container = document.getElementById('wtp-denial-lookup');
var style = document.createElement('style');
style.textContent = `
#wtp-denial-lookup { font-family: -apple-system, sans-serif; max-width: 520px; }
#wtp-denial-lookup input { width: 100%; padding: 10px 14px; border: 1px solid #d1d5db;
border-radius: 8px; font-size: 14px; outline: none; }
#wtp-denial-lookup input:focus { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,0.1); }
#wtp-denial-lookup .wtp-result { margin-top: 12px; }
`;
document.head.appendChild(style);
var input = document.createElement('input');
input.placeholder = 'Enter denial code number (e.g., 50, 197, 272)';
var result = document.createElement('div');
result.className = 'wtp-result';
container.appendChild(input);
container.appendChild(result);
input.addEventListener('input', function() {
var code = this.value.trim();
if (!code) { result.innerHTML = ''; return; }
fetch('https://winthep2p.com/api/embed/denial-code?code=' + code)
.then(function(r) { return r.json(); })
.then(function(data) {
if (data.error) { result.innerHTML = '<p style="color:#6b7280;font-size:13px;">Code not found</p>'; return; }
result.innerHTML =
'<div style="border:1px solid #e5e7eb;border-radius:12px;padding:16px;background:#fff;">' +
'<strong>' + data.groupCode + '-' + data.code + ': ' + data.shortName + '</strong>' +
(data.needsP2P ? ' <span style="background:#fef3c7;color:#92400e;font-size:11px;padding:2px 8px;border-radius:99px;">P2P Recommended</span>' : '') +
'<p style="font-size:13px;color:#374151;margin:8px 0;">' + data.description + '</p>' +
'<p style="font-size:12px;color:#6b7280;"><strong>Common cause:</strong> ' + data.commonCause + '</p>' +
'<p style="font-size:11px;color:#9ca3af;margin-top:8px;">Powered by <a href="' + data.link + '" target="_blank" style="color:#2563eb;">WinTheP2P.com</a></p>' +
'</div>';
});
});
})();
</script>Option 3: JSON API
Build your own integration with our free API. See full API documentation.
curl
# Get a single denial code curl https://winthep2p.com/api/embed/denial-code?code=50 # List all 108 codes curl https://winthep2p.com/api/embed/denial-code