The patient's risk does not indicate a need for anti-coagulant.
The patient's risk indicates a need for anti-coagulant.
Service Client
This client uses javascript to communicate with code running in the KGrid javascript engine on a remote server
and uses the results to drive a custom local widget. This allows the client to utilize code stored in the KGrid
that has been tested and is backed by research while using a more customized interface.
For this client the local javascript code in risk-slider.js communicates with the
javascript endpoints provided by the knowledge object, passing them inputs like the stroke risk score and the
slider position and receives the output which is the result of the linear equation.
The knowledge object has three endpoints chadsvasc/ds/1.0/risk,
chadsvasc/ds/1.0/score, and chadsvasc/ds/1.0/needsAc which
will generate the final risk of stroke or bleeding using the slider's position, generate the initial stroke
risk and determine if the patient falls outside the bounds of using values clarification and needs or doesn't
need anti-coagulants, respectively.
The outputs from these functions can then be used to drive the front-end presentation of the site such as showing the
arrow move on the slider or displaying the out of bounds text.