Press submit to see risk score


Stop strokes Stop bleeding

🠗

Greater Bleeding RiskGreater Stroke Risk
Widget Resource Client | Service Client

Custom Resource Client

This client uses standard html to pull in javascript resources and can then call functions defined in those javascript files directly from local javascript. For example the patient survey submit button calls generateScore(patient) to use the generateScore function defined in decision-support.js

This is similar to the widget client but it uses all local html and javascript to drive the slider instead of using the standard widget provided in the knowledge object. This allows the local page to be more customized and can just use the functions in the decision-support.js to support a more specialized or experimental slider. However, like the vc-slider widget this slider code still calls the getRiskFunction() function in the decision-support.js file to calculate the final output on the bleeding vs stroke scale and uses the needsAc(score) function to determine if the score is within the bounds for showing the decision support slider.