geekmdtravis / fluent-cerner-js

MIT License
1 stars 4 forks source link

Add CCLLINK Wrapper #122

Open rknamba opened 3 months ago

rknamba commented 3 months ago

Here is a simple working example of CCLLINK:

declare global type in index.tsx: function CCLLINK( reportName: string, prompts: string, linkDestination: number ): Promise;

const handleCclLinkClick = async () => { const reportName = "ccl_driver_name" const prompts = "'MINE', personId" (where personId is the user's person ID) const linkDestination = 1 (where 0 opens a new window and 1 opens in the current solution)

try { await window.CCLLINK(reportName, prompts, linkDestination) } catch (error) { console.error(err) } }

Here is the latest Cerner documentation on CCLLINK: https://wiki.cerner.com/display/public/MPDEVWIKI/CCLLINK