-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/v 4 lib upgrade #140
Closed
Closed
Changes from 28 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
c2f119a
update CQL to using FHIR401, update node JS version, package.json upd…
151e414
version changes, bug fix
369df95
CQL changes, fix broken tests
6864588
update comments, remove un-intended changes
0006a6a
move back old changes
c58cd38
add missing rxnorm
4256207
refactor functions
be48138
put dstu2 changes back
e5bc0c2
add back old changes
32c74ab
add comments, remove old valueset update file
93af0d7
add comments
bbd14eb
check for existence of environment var
234fdb1
update comments
7dc6637
break function into smaller ones
9d3c867
syntax refactor
2f4f40e
remove debug statements
e125ffe
accessibility fixes
3893cb4
minor styling fix
5dd8dd6
fix total to check for null
659595d
fix comment
2308f5b
Merge branch 'develop' of https://github.com/uwcirg/AHRQ-CDS-Connect-…
ce5e5ee
Merge branch 'develop' of https://github.com/uwcirg/AHRQ-CDS-Connect-…
c69b1ed
update comments, fix graph position
01f48f1
graph fix
be0ad18
Merge branch 'develop' of https://github.com/uwcirg/AHRQ-CDS-Connect-…
330f02d
fix comment, check for null
962f07e
update libs
776f196
remove unintended changes
3226a98
fix README based on feedback
6d55971
new provider resources section with additional links
9529b57
minor styling fix
e8dce1a
minor side nav styling fix
41aac55
fix nav styling
856d565
fix broken links
37fae58
fix broken link
554bff1
Merge branch 'feature/provider-resources-section' of https://github.c…
f2a9131
Merge branch 'feature/provider-resources-section' of https://github.c…
27f3c24
Merge branch 'develop' of https://github.com/uwcirg/AHRQ-CDS-Connect-…
fc62ae3
Merge branch 'develop' of https://github.com/uwcirg/AHRQ-CDS-Connect-…
933abb7
Merge branch 'develop' of https://github.com/uwcirg/AHRQ-CDS-Connect-…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
8.11.3 | ||
12.20.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
12.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,4 +141,4 @@ module.exports = [ | |
addHtmlWebpackPluginForLaunch, | ||
stubUnneededFiles | ||
// ,logConfig | ||
]; | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ The Pain Management Summary SMART on FHIR application was developed to support t | |
|
||
The Pain Management Summary SMART on FHIR application was piloted during Summer 2018. Local modifications and development were needed to fully support this application in the pilot environment. For example, custom development was needed to expose pain assessments via the FHIR API. See the pilot reports for more information. | ||
|
||
This application was originally piloted with support for FHIR DSTU2. The app has been updated since the pilot to also support FHIR R4, although pilot R4 support has not been piloted in a clinical setting. | ||
This application was originally piloted with support for FHIR DSTU2. The app has been updated since the pilot to also support FHIR R4, although pilot R4 support has not been piloted in a clinical setting. In addition, value sets and standardized codes have been updated since the pilot. See the comments in the bundled CQL for details. | ||
|
||
This prototype application is part of the [CDS Connect](https://cds.ahrq.gov/cdsconnect) project, sponsored by the [Agency for Healthcare Research and Quality](https://www.ahrq.gov/) (AHRQ), and developed under contract with AHRQ by [MITRE's CAMH](https://www.mitre.org/centers/cms-alliances-to-modernize-healthcare/who-we-are) FFRDC. | ||
|
||
|
@@ -30,11 +30,6 @@ This CDS logic queries for several concepts that do not yet have standardized co | |
|
||
| Code | System | Display | | ||
| --- | --- | --- | | ||
| PEGASSESSMENT | http://cds.ahrq.gov/cdsconnect/pms | Pain Enjoyment General Activity (PEG) Assessment | | ||
| PEGPAIN | http://cds.ahrq.gov/cdsconnect/pms | Pain | | ||
| PEGENJOYMENT | http://cds.ahrq.gov/cdsconnect/pms | Enjoyment of life | | ||
| PEGGENERALACTIVITY | http://cds.ahrq.gov/cdsconnect/pms | General activity | | ||
| STARTBACK | http://cds.ahrq.gov/cdsconnect/pms | STarT Back Screening Tool | | ||
| SQETOHUSE | http://cds.ahrq.gov/cdsconnect/pms | Single question r/t ETOH use | | ||
| SQDRUGUSE | http://cds.ahrq.gov/cdsconnect/pms | Single question r/t drug use | | ||
| MME | http://cds.ahrq.gov/cdsconnect/pms | Morphine Milligram Equivalent (MME) | | ||
|
@@ -43,7 +38,7 @@ Systems integrating the Pain Management Summary will need to expose the correspo | |
|
||
### To build and run in development: | ||
|
||
1. Install [Node.js](https://nodejs.org/en/download/) (LTS edition, currently 8.x) | ||
1. Install [Node.js](https://nodejs.org/en/download/) (LTS edition, currently 12.x) | ||
2. Install [Yarn](https://yarnpkg.com/en/docs/install) (1.3.x or above) | ||
3. Install dependencies by executing `yarn` from the project's root directory | ||
4. If you have a SMART-on-FHIR client ID, edit `public/launch-context.json` to specify it | ||
|
@@ -55,7 +50,7 @@ Systems integrating the Pain Management Summary will need to expose the correspo | |
|
||
The Pain Management Summary can be deployed as static web resources on any HTTP server. There are several customizations, however, that need to be made based on the site where it is deployed. | ||
|
||
1. Install [Node.js](https://nodejs.org/en/download/) (LTS edition, currently 8.x) | ||
1. Install [Node.js](https://nodejs.org/en/download/) (LTS edition, currently 12.x) | ||
2. Install [Yarn](https://yarnpkg.com/en/docs/install) (1.3.x or above) | ||
3. Install dependencies by executing `yarn` from the project's root directory | ||
4. Modify the `homepage` value in `package.json` to reflect the path (after the hostname) at which it will be deployed | ||
|
@@ -71,12 +66,39 @@ The Pain Management Summary can be deployed as static web resources on any HTTP | |
|
||
Optionally to step 9, you can run the static build contents in a simple Node http-server via the command: `yarn start-static`. | ||
|
||
### To update the valueset-db.json file | ||
|
||
The value set content used by the CQL is cached in a file named `valueset-db.json`. If the CQL has been modified to add or remove value sets, or if the value sets themselves have been updated, you may wish to update the valueset-db.json with the latest codes. To do this, you will need a [UMLS Terminology Services account](https://uts.nlm.nih.gov//license.html). | ||
|
||
To update the `valueset-db.json` file: | ||
|
||
1. Run `node src/utils/updateValueSetDB.js UMLS_API_KEY` _(replacing UMLS\_API\_KEY with your actual UMLS API key)_ | ||
|
||
To get you UMLS API Key: | ||
|
||
1. Sign into your UMLS account at [https://uts.nlm.nih.gov/uts.html](https://uts.nlm.nih.gov/uts.html) | ||
2. Click 'My Profile' in the orange banner at the top of the screen | ||
3. Your API key should be listed below your username in the table | ||
4. If no API key is listed: | ||
1. Click ‘Edit Profile’ | ||
2. Select the ‘Generate new API Key’ checkbox | ||
3. Click ‘Save Profile’ | ||
4. Your new API key should now be listed. | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nice addition, thanks. |
||
### To run the unit tests | ||
|
||
To execute the unit tests: | ||
|
||
1. Run `yarn test` | ||
|
||
### To update the test patients' date-based fields | ||
|
||
Testing this SMART App is more meaningful when we can supply test patients that exercise various aspects of the application. Test patients are represented as FHIR bundles at `src/utils/dstu2_test_patients` and `r4_test_patients`. Since the CDS uses lookbacks (for example, only show MME in the last 6 months), the patient data occasionally needs to be updated to fit within the lookback windows. To automatically update the data to fit within the lookback windows as of today's date: | ||
|
||
1. Run `yarn update-test-patients` | ||
|
||
This will update all of the entries in the patient bundles to be appropriate relative to today's date. In addition, it sets each bundle's `meta.lastUpdated` to the current date. This is essential for ensuring that future updates work correctly since it uses the `meta.lastUpdated` date to determine how far back each other date should be relative to today. | ||
|
||
## To test the app using the public SMART sandbox | ||
|
||
Run the app via one of the options above, then: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still true?