[08/01/2021] This repo has moved under CDC's private repository and is no longer supported/maintained.
______ _____ ______
/ _____|____ \ / _____)
| / _ \ \| /
| | | | | | |
| \_____| |__/ /| \_____
\______)_____/ \______)
Custom parser for interpretting JSON exports from CDC's Self-Checker health bot. UI styles are driven by CDC's Template Package version 4.
- Tou Fong Lee
- Clay Davis
- HTML
- CSS
- Javascript, jQuery, ES6 syntax (let, const, arrow functions)
- Adaptive Cards
- QnA Maker (possibly)
- CDC Template Package v4
- Local web server (http-server, Python, etc)
- Open up your CLI of choice and clone this repository in desired location on your local hard drive.
cdto the directory.- Requires any simple command line tooling that spins up a local web server, such as http-server.
- Once in directory, spin up local web server. If using http-server, enter
http-serverinto the CLI. - Open up browser of choice and go to localhost url with correct port number. In the case of http-server, url should be
http://localhost:8080.
There are 7 possible types:
assignVariable- Assigns variables to thescenarioobject.action- Builds out key/value pairs to thescenarioobject based via JavaScript stored as strings on theonInitpropertyprompt- Builds out the controls that users interact with to progress them down the decision tree. This control type may includeAdaptiveCards.statement- Builds out messages to relay to user. This control type may includeAdaptiveCards.branch- Branches users down the decision based on certain boolean conditions stored in thescenarioobject. If true, progress down thetargetStepIdpath, else progress down thedesigner.nextpath.replaceScenario- Dynamically loads a new JSON object scenario (ie. covid19, covid19_core, covid19_core_pediatric). Updates thescopeproperty inscenarioobject accordingly. This value is found in each JSON file'sscenario_triggerproperty.AdaptiveCard- Calls Microsoft's Adaptive Cards dynamic framework to build out technology-agnostic snippets of UI. Adaptive Cards are usually a child type ofpromptandstatementcard types.