Personal tools
Navigation
 

Eform Linker HTML

An example of code that allows you to link to other eforms and edocs on your server. Please see the explanation given in the Folder Description. From David Page

HTML icon eFormLinkerCode.html — HTML, 6 kB (6469 bytes)

File contents

<html>
<head>

<script>
function onBodyLoad()
{
var re = new RegExp( "[?&]" + 'demographic_no' + "=([^&$]*)", "i" );
var offset=window.opener.location.search.search(re);
if(offset==-1){ 
re = new RegExp( "[?&]" + 'demographicNo' + "=([^&$]*)", "i" );
offset=window.opener.location.search.search(re);
}
var pathArray=window.opener.location.pathname.split('/');
    //var theIFrame;
    theIFrame = document.createElement("IFRAME");
    theIFrame.setAttribute("id", "dynamicIFrame");
    theIFrame.setAttribute("src", '/'+pathArray[1]+'/eform/efmformslistadd.jsp?demographic_no='+RegExp.$1+'&curProvider=&appointment=&parentAjaxId=eforms');
    theIFrame.setAttribute("onload","doIFrameOnLoad();");
    theIFrame.style.width = 0+"px";
    theIFrame.style.height = 0+"px";
    document.body.appendChild(theIFrame);
}
function doIFrameOnLoad()
{
var re = new RegExp( "[?&]" + 'demographic_no' + "=([^&$]*)", "i" );
var offset=window.opener.location.search.search(re);
if(offset==-1){ 
re = new RegExp( "[?&]" + 'demographicNo' + "=([^&$]*)", "i" );
offset=window.opener.location.search.search(re);
}
var demographic=RegExp.$1;

//alert(demographic);
}

function eLink1()
{
window.open("../eform/efmformadd_data.jsp?fid=10&demographic_no="+RegExp.$1+"&apptProvider=&appointment=");
}
function eLink2()
{
window.open("../eform/efmformadd_data.jsp?fid=11&demographic_no="+RegExp.$1+"&apptProvider=&appointment=");
}
function eLink3()
{
window.open("../eform/efmformadd_data.jsp?fid=12&demographic_no="+RegExp.$1+"&apptProvider=&appointment=");
}
function eLink4()
{
window.open("../eform/efmformadd_data.jsp?fid=13&demographic_no="+RegExp.$1+"&apptProvider=&appointment=");
}
function eLink5()
{
window.open("../eform/efmformadd_data.jsp?fid=14&demographic_no="+RegExp.$1+"&apptProvider=&appointment=");
}

function dLink1()
{
window.open("../dms/ManageDocument.do?method=display&doc_no=100");
}
function dLink2()
{
window.open("../dms/ManageDocument.do?method=display&doc_no=101");
}
function dLink3()
{
window.open("../dms/ManageDocument.do?method=display&doc_no=102");
}
function dLink4()
{
window.open("../dms/ManageDocument.do?method=display&doc_no=103");
}
function dLink5()
{
window.open("../dms/ManageDocument.do?method=display&doc_no=104");
}


function Rx()
{
window.open("../oscarRx/choosePatient.do?providerNo=&demographicNo="+RegExp.$1+"");
}

function allergy()
{
window.open("../oscarRx/showAllergy.do?demographicNo="+RegExp.$1+"");
}

function prevention()
{
window.open("../oscarPrevention/index.jsp?demographic_no="+RegExp.$1+"");
}

function consult()
{
window.open("../oscarEncounter/oscarConsultationRequest/ConsultationFormRequest.jsp?de="+RegExp.$1+"&teamVar=");
}

function eGFR()
{
window.open("../oscarEncounter/oscarMeasurements/SetupDisplayHistory.do?type=EGFR");
}
function labGrid()
{
window.open("../lab/CumulativeLabValues3.jsp?demographic_no="+RegExp.$1+"");
}
function labs()
{
window.open("../lab/DemographicLab.jsp?demographicNo="+RegExp.$1+"");
}
function HBPFlowsheet()
{
window.open("../oscarEncounter/oscarMeasurements/TemplateFlowSheet.jsp?demographic_no="+RegExp.$1+"&template=hyptension");
}
function CHFFlowsheet()
{
window.open("../oscarEncounter/oscarMeasurements/TemplateFlowSheet.jsp?demographic_no="+RegExp.$1+"&template=chf");
}
function DMFlowsheet()
{
window.open("../oscarEncounter/oscarMeasurements/TemplateFlowSheet.jsp?demographic_no="+RegExp.$1+"&template=diab2");
}

function billing()
{
window.open("../billing.do?billRegion=BC&billForm=DA&hotclick=&appointment_no=&demographic_name=&status=c&demographic_no="+RegExp.$1+"&providerview=&user_no=&apptProvider_no=&appointment_date=&start_time=12:0&bNewForm=1");
}

function documents()
{
window.open("../dms/documentReport.jsp?function=demographic&doctype=lab&functionid="+RegExp.$1+"&curUser=&mode=add&parentAjaxId=docs");
}

function message()
{
window.open("../oscarMessenger/SendDemoMessage.do?demographic_no="+RegExp.$1+"");
}

function diseaseRegistry()
{
window.open("../oscarResearch/oscarDxResearch/setupDxResearch.do?demographicNo="+RegExp.$1+"&providerNo=&quickList=");
}

</script>



</head>

<body onload = 'onBodyLoad();start();'>
<form method="post" action="" name="FormName">

<table>
<tr>
<td><input value="eLink1" type="button" onclick="onBodyLoad();eLink1();"></td>
<td><input value="eLink2" type="button" onclick="onBodyLoad();eLink2();"></td>
<td><input value="eLink3" type="button" onclick="onBodyLoad();eLink3();"></td>
<td><input value="eLink4" type="button" onclick="onBodyLoad();eLink4();"></td>
<td><input value="eLink5" type="button" onclick="onBodyLoad();eLink5();"></td>
</tr>
<tr>
<td><input value="dLink1" type="button" onclick="onBodyLoad();dLink1();"></td>
<td><input value="dLink2" type="button" onclick="onBodyLoad();dLink2();"></td>
<td><input value="dLink3" type="button" onclick="onBodyLoad();dLink3();"></td>
<td><input value="dLink4" type="button" onclick="onBodyLoad();dLink4();"></td>
<td><input value="dLink5" type="button" onclick="onBodyLoad();dLink5();"></td>
</tr>
<tr>
<td><input value="Rx" type="button" onclick="onBodyLoad();Rx();"></td>
<td><input value="Allergy" type="button" onclick="onBodyLoad();allergy();"></td>
<td><input value="Prevention" type="button" onclick="onBodyLoad();prevention();"></td>
</tr>
<tr>
<td><input value="Consult" type="button" onclick="onBodyLoad();consult();"></td>
</tr>
<tr>
<td><input value="Measurements-eGFR" type="button" onclick="onBodyLoad();eGFR();"></td>
<td><input value="Lab Grid Display" type="button" onclick="onBodyLoad();labGrid();"></td>
<td><input value="Labs" type="button" onclick="onBodyLoad();labs();"></td>
</tr>
<tr>
<td><input value="HBP Flowsheet" type="button" onclick="onBodyLoad();HBPFlowsheet();"></td>
<td><input value="CHF Flowsheet" type="button" onclick="onBodyLoad();CHFFlowsheet();"></td>
<td><input value="DM Flowsheet" type="button" onclick="onBodyLoad();DMFlowsheet();"></td>
</tr>
<tr>
<td><input value="Billing" type="button" onclick="onBodyLoad();billing();"></td>
</tr>
<tr>
<td><input value="Documents" type="button" onclick="onBodyLoad();documents();"></td>
</tr>
<tr>
<td><input value="Message" type="button" onclick="onBodyLoad();message();"></td>
</tr>
<tr>
<td><input value="Disease Registry" type="button" onclick="onBodyLoad();diseaseRegistry();"></td>
</tr>
<tr>
<td><p class="normal"><b><a href=../dms/ManageDocument.do?method=display&doc_no=100 target="_blank">eDoc Hyperlink</a><b></p></td>
</tr>
</table>

</form>
</body>
</html>

Document Actions

 

Download button

DOWNLOAD OSCAR FOR TESTING

 

eForms button

DOWNLOAD SHARED E-FORMS


 Customize button

FIND PLUG-INS AND TWEAKS
FOR YOUR OSCAR EMR

 

Subscribe Button

SUBSCRIBE TO DISCUSSION LIST 
(SEE ALL LISTS)

  

Help button

ACCESS THE ONLINE MANUALS
(PAID SUPPORT)