The ASBI Intervention App is a SMART on FHIR® application that provides alcohol intervention CDS for helping to address patient alcohol consumption behaviors. The app is meant to be used with the SMART® app launch framework and is designed to customize the alcohol intervention based upon patient-specific data provided by an electronic health record (EHR) as well as patient responses to one of the following three alcohol screening instruments:
- World Health Organization's Alcohol Use Disorders Identification Test (AUDIT)
- United States AUDIT (USAUDIT)
- National Institute on Substance Abuse (NIDA) Quick Screen
The ASBI Intervention App provides implementations of following two intervention CDS, both of which have been published on the CDS Connect Repository:
- Brief Intervention CDS: Provides counseling guidance and prompts for talking with the patient about their alcohol use behaviors.
- Decision Aid CDS: Provides a variety of textual and graphical summaries for providing context to the patient's responses to one of the alcohol screening instruments.
The ASBI Intervention App can be used in conjuction with the ASBI Screening App, which provides implementations of the above alcohol screening instruments.
TODO: Update and link to pilot report. This software application has not been tested in a clinical environment with real patient data. Its purpose is to faciliate testing of the two alcohol intervention CDS to be published on CDS Connect. Additional development work will be needed to integrate the ASBI Intervention App into a real EHR.
A number of standards have been used to help define the ASBI Intervention App.
The Substitutable Medical Apps, Reusable Technology (SMART) on Fast Healthcare Interoperability Resources (FHIR®) is a free and open standards-based application programming interface (API) for providing software applications with access to electronic health records (EHRs). The ASBI Intervention App uses the SMART on FHIR standard to access patient data in order to customize the alcohol intervention experience.
Questionnaire is one of the many interoperable resources defined by the Health Level 7 (HL7®) FHIR® standard. The Questionnaire resource allows a set of questions and allowable responses to be represented in an open and standard way. Each Questionnaire is defined by a set of both required and optional data elements, which are by design general in nature in order to support the capabilities most likely to be found in most healthcare systems. The ASBI Intervention App assumes that the alcohol screening instruments are represented by Questionnaire resources. It is further assumed that a QuestionnaireResponse resource is generated from the responses provided by the patient and that the QuestionnaireResponse acts as input to the CDS implemented by this app.
The base FHIR® specification is meant to be an 80% solution for healthcare interoperability. Mechanisms such as extensions, profiles, and implementation guides provide a means in which use cases outside this 80% can be addressed. The Structured Data Capture (SDC) implementation guide defines how more complex Questionnaire functionality and behavior can be expressed. Examples of additional complexity assumed by the ASBI Intervention App include advanced rendering of the Questionnaires and the ability to provide dynamic updates via logical expressions (see "Clinical Quality Language (CQL)" below).
CQL is a domain-specific programming language focused on clinical quality applications, including CDS as well as electronic clinical quality measures (eCQMs). Logical expressions written in CQL are human-readable but can also be compiled to a machine-friendly format to facilitate implementation. The ASBI Intervention App executes CQL logic embedded in each Questionnaire to provide patient customized behavior. Machine-friendly versions of the CQL are embedded in this app; complete versions can be found on CDS Connect once the CDS are published.
Vue is a JavaScript front-end framework for building user interfaces. The ASBI Intervention App was built using the vue create
command from the Vue command line interface (CLI).
All CQL calculations are executed within the context of a Web Worker, thereby offloading them to a separate thread. This greatly improves the responsiveness of the application. This is implemented via the CQL Worker library, which uses the the CQL Execution Engine behind the scenes.
This project manages dependencies using the Yarn package manager. The dependencies for the ASBI Intervention App can be installed locally by typing yarn
at the command line. A local version of the app can be launched by typing yarn serve
at the command line. A copy suitable for distribution can be built using the yarn build
command.
The value set content used by the CQL is cached in a file named valueset-db.json
, which has been checked into this project in an empty state. In order for the CDS to operate as intended, implementers must populate valueset-db.json
with the value sets which have been published on the Value Set Authority Center (VSAC). In order to access VSAC, you must sign up for a UMLS Terminology Services account.
Once a UMLS Terminology Services account has been obtained, the valueset-db.json file can be updated by running the following:
- Run
node src/util/updateValueSetDB.js UMLS_API_KEY
(replacing UMLS_API_KEY with your actual UMLS API key)
To get you UMLS API Key:
- Sign into your UMLS account at https://uts.nlm.nih.gov/uts.html
- Click 'My Profile' in the orange banner at the top of the screen
- Your API key should be listed below your username in the table
- If no API key is listed:
- Click ‘Edit Profile’
- Select the ‘Generate new API Key’ checkbox
- Click ‘Save Profile’
- Your new API key should now be listed.
Parameters for the app are stored in environmental variables that are stored in an .env
file. The dotenv package is used to store the default variable values, which can be overwritten by defining a more specific env (e.g., .env.local
) file or by setting the variables in the deployment system. For more information, see the Vue documentation.
Parameter | Description | Allowed Values |
---|---|---|
VUE_APP_FHIR_OBSERVATION_CATEGORY_QUERIES |
Some FHIR APIs require Observation resource queries to specify an observation category. Setting this parameter to true causes the query of a patient's Observation resources to be made specified using categories. |
['true', 'false'] |
VUE_APP_ALCOHOL_INTERVENTION |
For selecting which alcohol intervention CDS is presented to the user. | ['briefintervention', 'decisionaid'] |
Most modern browsers are going to require HTTPS by default. To run the development server with HTTPS you will need to add the following to your yarn.config.js
file (in addition to generating valid key
and crt
files):
module.exports = {
configureWebpack: {
...
},
devServer: {
https: {
key: fs.readFileSync("certificate.key"),
cert: fs.readFileSync("certificate.crt")
},
disableHostCheck: true,
public: 'https://localhost:8080',
port: 8080,
headers: { "Access-Control-Allow-Origin": "*" }
}
};
To serve built files over HTTPS:
yarn build
npm install -g http-server
http-server dist -p 8080 -S -C certificate.crt -K certificate.key
- Point your browser to
https://localhost:8080/launch.html
While the ASBI Intervention App is meant to interface with an actual EHR, a number of options are available for local testing with synthetic data.
This option requires installing the ASBI Testing Server:
yarn start
in the root of the ASBI Testing Server (after installing its dependencies)yarn serve
from this project- Open a web browser and navigate to http://localhost:8080/selector.html
- Select a synthetic patient from the list
This will start the SMART on FHIR® launch sequence, which if everything is working should result in the ASBI Intervention App being displayed. A series of FHIR® queries will be made from from this app to the ASBI Testing Server, which will respond with the appropriate resources.
A public SMART® App Launcher is available for sandbox tesing of SMART on FHIR apps with synthetic data. In order to use this option, the ASBI Intervention App must be served over a Hypertext Transfer Protocol Secure (HTTPS) connection.
Navigate to the public SMART® App Launcher and choose the "Provider EHR Launch" Launch Type. Leave all other options unselected. Paste the URL to where public/launch_public_ehr.html
is being served from into the "App Launch URL" box at the bottom of the SMART® App Launcher page. Select "Launch App!" which will bring up a patient selector widget before the ASBI Intervention App is launched.
Select the "Provider Standalone Launch" option in the public SMART® App Launcher. Copy the "FHIR® Server URL" shown at the bottom of the screen and paste it into the iss
field in public/launch_public_standalone.html
. Navigate to where public/launch_public_standalone.html
is being served from and you should be redirected to the patient selector widget.
(C) 2022 The MITRE Corporation. All Rights Reserved. Approved for Public Release: 20-0458. Distribution Unlimited.
Unless otherwise noted, this work is available under an Apache 2.0 license. It was produced by the MITRE Corporation for the National Center on Birth Defects and Developmental Disabilities, Centers for Disease Control and Prevention in accordance with the Statement of Work, contract number 75FCMC18D0047, task order number 75D30119F05691.
Any LOINC (http://loinc.org) content is copyright © 1995+, Regenstrief Institute, Inc. and the Logical Observation Identifiers Names and Codes (LOINC) Committee and is available at no cost under the license at http://loinc.org/license. LOINC® is a registered United States trademark of Regenstrief Institute, Inc.
References to and reproductions of the AUDIT alcohol screening instrument are made by permission from the World Health Organization (WHO). The WHO does not endorse this project, does not provide any warranty, and does not assume any liability for its use. For further information, please see:
Alcohol Use Disorders Identification Test - Guidelines for Use in Primary Care, Second Edition. Geneva, World Health Organization, 2001.
AUDIT (C) World Health Organization 2001