geekmdtravis / fluent-cerner-js

MIT License
1 stars 4 forks source link

Within openPatientTab Function, tab Returning with "+" #110

Closed rknamba closed 7 months ago

rknamba commented 8 months ago

When entering 'SBAR' for the tab and console logging the result, a + and ^^ are being appended. I also tried changing the tab name to 'Orders' and the same syntax was returned. Both attempts were case sensitive. /FIRSTTAB=^SBAR+^

rknamba commented 8 months ago

While in PowerChart, when invoking an onClick function to execute the openPatientTab function, the expected result for inPowerChart should be true, however it is resulting as false.

geekmdtravis commented 7 months ago

Second issue is same as #112 and #111. the first is actually a quality of life enhancement; the upward carrots and plus used to have to be manually added. Example from the Cerner docs:

APPLINK(0,"$APP_APPNAME$","/PERSONID=589848 /ENCNTRID=5960967 /FIRSTTAB=^PowerOrders+^")

https://wiki.cerner.com/display/public/MPDEVWIKI/APPLINK

As far as I can tell, either the API uses a botched version of Regex or teh engineer screwed up their regex. I think it's teh former as the '+' actually would have significance in RegEx but in this case means launch quick orders if available.

geekmdtravis commented 7 months ago

@rknamba - can you please test these functions again? simply updated to the pre-release version 1.0.0-2 and redeploy your app into PowerChart.

rknamba commented 7 months ago

Just tested this, and it appears to be working now.