(function(){function go(){var els=document.querySelectorAll('pre.fhir-source-dyn[data-src]');Array.prototype.forEach.call(els,function(pre){if(pre.getAttribute('data-done'))return;pre.setAttribute('data-done','1');var code=pre.querySelector('code');var src=pre.getAttribute('data-src');fetch(src,{cache:'no-cache'}).then(function(r){if(!r.ok)throw 0;return r.text();}).then(function(t){code.textContent=t;if(window.Prism&&Prism.highlightElement){try{Prism.highlightElement(code);}catch(e){}}}).catch(function(){code.textContent='(unable to load '+src+')';});});}if(document.readyState!=='loading'){go();}else{document.addEventListener('DOMContentLoaded',go);}})();