Thanks Stan for a great eform, I find it very useful.
It works great when launching from eChart, or link to it using greasemonkey
from a button on the eChart.
When I tried to put a linking button on another page other than eChart
(like lab results), I found a problem.
Basically, any measurements pulled using "oscarDB=" works fine (like
Patient's name in this eform). It would pull from whatever demographic
number you put in the eform URL.
But any measurements pulled using measureArray in the script used in this
eform from this page:
http://oscarmanual.org/oscar_emr_12/clinical-functions/e-forms/eform-magic
would always pull from the last opened eChart regardless of the
demographic number you use on the URL of the eform.
You can test this easily if you have this eform installed.
Open 1st patient eChart, open Lab Grid eform - keep this page open.
Then open 2nd patient eChart, go back to the eform and reload - you would
notice the patient name has not changed - still 1st patient's name (as you
have not changed the eform URL), but all the rest of the measurements are
now from the 2nd patient.
So this presents a problem in linking to the eform from outside the eChart
as the measurements pulled are wrong.
Tried various ways to overcome this, xmlhttprequest.... etc, and they did
not work.
The only thing to make it work is to open a hidden iframe of the patient's
eChart, then open Lab Grid and it now works correctly.
Seems like a clunky way of doing this. Is there any other trick to pull
the correct measurements from other pages without opening the echart first?
On Sat, Oct 2, 2021 at 11:49 AM Stanley Hurwitz <sdh...@gm...> wrote:
> I've updated the LabGrid eform
> 1. Clicking on the blue loads a graph
> 2. Date color coding represents how recently the lab was done (Black is
> new, red is old)
> 3. You can customise for your own measurements:
> var
> LabName=["HB","EGFR","SCR","A1C","FBS","BG","GT2","APOB","TCHL","LDLC","LDL","HDL","TCHD","TG","ACR","NA","Kpl","CA","PH","MG","TSH","PSA","PTH","AST","ALT","CRP","FOBT","FITQ","FIT","HPSE","HPSG","HPBT","HPYL","WT","HT","INR","URIC","BUN","BP"]
>
> I have a greasemonkey button on my echarts that links directly to this
> eform (using the FID).
> You can also display it as an eform in the usual manner.
>
>
> https://github.com/DrStanMD/zipfiles/blob/main/Lab_Grid.zip
>
> Stan.
> _______________________________________________
> OSCARmcmaster-advanced-users mailing list
> OSC...@li...
> https://lists.sourceforge.net/lists/listinfo/oscarmcmaster-advanced-users
>
--
Lawrence Kwan
LU Codes
http://lucodes.ca/ <http://lucodes.ca/lu>
|