Is it acceptable for a single app to service both the access point in the TOC of the patient chart and within a toolbar button of the Organizer view.
Here is what I am seeing within the sandbox environment:
Within the TOC of the patient chart whenever a new patient is opened and the app is accessed, the SMART routines are called where a code is delivered to the app and the app uses the code to authenticate back to Millenium and receive the context of the practitioner and the patient. This works great.
However, once the access point in the Organizer View toolbar is access, the call to the app works fine, however thereafter every time a new patient is opened and the app is accessed through that patients TOC, the patient context seems to always be one behind.
For instance when working normally and correctly: open Patient A, receive context for patient A (in the app), open patient B receive context for patient B, open patient C receive context for patient C.
After opening the Organizer View access-point, it begins to work abnormally. Open the Organizer View Access Point there is no patient context (as expected), open Patient A there is still no patient context, open Patient B receive context for Patient A, open Patient C receive context for patient B, etc...
I'm fairly sure the app is not re-using previous codes, but utilizing the newly delivered codes for every new SMART instantiation.
Are there additional coding steps required to be able to handle both access points with one App? Do apps commonly enable multiple access points? Any help in this regard would be greatly appreciated, thanks