Calculator applet created to generate leads for Assembly health on both QHCR site and Polaris group site.
script and relevent css files should be included on the document with either a <script> or <link> tag.
target is defined by id on a <div> element of #roi-calc.
roiCalculator class takes below arguments in order.
| Argument | Description |
|---|---|
| elementSelector | String selector for target element to inject form into |
| billingProvider | String of name of billing provider |
| billingProviderAbr | String of abbreviated name of billing provider |
| contactLink | String of link to contact us page of billing provider |
| options | (Optional) Object to define default values |
| Property | default | description |
|---|---|---|
| revPerBedPerDay | 270 | Integer amount of revenue generated per bed per day |
| insourcedBillRate | 0.0065 | Float cost of insourced billing as a percentage |
| billingRate | 0.03 | Float cost of provider billing as a percentage |
| collectionRate | 0.98 | Float amount billing provider can collect as a percentage |
Scripts may be called with either yarn or npm.
Transpiles .js files for cross browser compatibility and outputs the result to ./build directory. Prebuild copies css files into ./build as well.
Runs build when changes are made to the ./src directory.
Steps to setup and start dev environment. Any simple html server can be used to serve ./src/index.html. For VScode I suggest Live Server.
git clone git@git.poetic.io:assembly-health/roi-calculator.gitgit checkout developmentgit pullyarn install
After these steps run Live Server.