Skip to content

Commit

Permalink
Merge pull request #112 from symptomatic/himss21
Browse files Browse the repository at this point in the history
***HIMSS21***
- Patient Launch Validated - Cerner
- Patient Launch Validated - Epic
- Provider Launch Validated - Cerner
- Provider Launch Validated - Epic
- RedHat Docker Image 
- RedHat Sepsis Integration
- Healthflow.io Core (Pkg)
- Cron Automation
- RelayHooks
- Relay Export Functionality
- User Profiles
- CarePlan Workflow (Pkg)
- Timelines Validated (Pkg)
- HIPAA Audit Log Validated
  • Loading branch information
awatson1978 authored Aug 17, 2021
2 parents 35f74e2 + fcf3ddb commit 560b14d
Show file tree
Hide file tree
Showing 449 changed files with 2,557 additions and 460,641 deletions.
12 changes: 4 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
- run: mkdir -p .meteor

# If Meteor is already cached, do not need to build it again.
- run: if [ ! -e .meteor/meteor ]; then curl https://install.meteor.com?=release=1.11.1 | /bin/sh; else echo "Meteor seems to be cached"; fi;
- run: if [ ! -e .meteor/meteor ]; then curl https://install.meteor.com?=release=1.11.0 | /bin/sh; else echo "Meteor seems to be cached"; fi;

# Link the meteor executable into /usr/bin
- run: sudo ln -s .meteor/meteor /usr/bin/meteor
Expand Down Expand Up @@ -160,14 +160,15 @@ jobs:
# - run: meteor npm run-script add_baseline_packages

# make sure we have the latest Chrome (specifically wanting Chrome 75; may change with time)

# sudo apt-get -y install google-chrome-stable=91.0.4472.164
- run:
name: Update Chromedriver
command: |
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt search google-chrome-stable
sudo apt-get -y install google-chrome-stable
sudo wget --no-verbose -O ./chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_91.0.4472.164-1_amd64.deb && sudo apt install -y ./chrome.deb && sudo rm ./chrome.deb
# - run: if [ meteor list | grep 'symptomatic:theming' | wc -l $eq 1 ]; then meteor remove symptomatic:theming ; else echo "Meteor seems to be cached"; fi;

Expand All @@ -178,7 +179,6 @@ jobs:
command: |
sleep 120
meteor npm run-script lint
# - run:
# name: Running verification tests
# no_output_timeout: 10m
Expand All @@ -202,8 +202,6 @@ jobs:
command: |
sleep 420
meteor npm run-script circle-nightwatch -- --tag circle
# # Save dependency cache
# - save_cache:
# name: Saving cache
Expand All @@ -230,5 +228,3 @@ jobs:
path: ./webapp/tests/nightwatch/logs
- store_artifacts:
path: ./meteor-output.log


7 changes: 6 additions & 1 deletion .meteor/nightwatch.circle.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"start_process": true,
"server_path": "node_modules/.bin/chromedriver",
"cli_args": [
"--verbose"
"--verbose",
"--port=9515"
],
"port": 9515
},
Expand All @@ -38,6 +39,10 @@
"on_error": true,
"path": "./tests/nightwatch/screenshots"
},
"request_timeout_options": {
"timeout": 100000,
"retry_attempts": 3
},
"desiredCapabilities": {
"browserName": "chrome",
"javascriptEnabled": true,
Expand Down
4 changes: 4 additions & 0 deletions .meteor/nightwatch.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
"disable_colors": false,
"firefox_profile": false,
"ie_driver": "",
"request_timeout_options": {
"timeout": 100000,
"retry_attempts": 3
},
"screenshots": {
"enabled": true,
"on_failure": true,
Expand Down
16 changes: 13 additions & 3 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ clinical:extended-api@2.5.0
clinical:fonts@1.2.0
clinical:hl7-resource-datatypes@4.0.6
clinical:hl7-fhir-data-infrastructure

clinical:hipaa-logger

percolate:synced-cron

Expand Down Expand Up @@ -75,7 +75,17 @@ percolate:synced-cron

# symptomatic:healthkit-importer
# symptomatic:immunization-card

# symptomatic:vaccine-wallet
# symptomatic:data-management

# HEALTHFLOW

#healthflow:core
#awatson1978:accounts-muppets
#clinical:accounts-housemd
#clinical:accounts-famous-dead-people

#symptomatic:timelines
#symptomatic:vault-server-freemium
#symptomatic:structured-data-capture
#symptomatic:data-relay
#symptomatic:fhir-uscore
1 change: 0 additions & 1 deletion .meteor/platforms
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
android
browser
ios
server
6 changes: 5 additions & 1 deletion .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ accounts-base@1.9.0
alanning:roles@3.2.3
aldeed:collection2@3.0.6
allow-deny@1.1.0
autoupdate@1.7.0
babel-compiler@7.6.1
babel-runtime@1.5.0
base64@1.0.12
Expand All @@ -14,7 +15,8 @@ callback-hook@1.3.0
check@1.3.1
clinical:extended-api@2.5.2
clinical:fonts@1.2.0
clinical:hl7-fhir-data-infrastructure@6.14.3
clinical:hipaa-logger@2.1.1
clinical:hl7-fhir-data-infrastructure@6.14.17
clinical:hl7-resource-datatypes@4.0.7
ddp@1.4.0
ddp-client@2.4.1
Expand All @@ -32,6 +34,7 @@ es5-shim@4.8.0
fetch@0.1.1
fourseven:scss@4.12.0
geojson-utils@1.0.10
hot-code-push@1.0.4
html-tools@1.1.1
htmljs@1.1.0
http@1.4.3
Expand All @@ -43,6 +46,7 @@ localstorage@1.2.0
logging@1.2.0
matb33:collection-hooks@1.0.1
meteor@1.9.3
meteor-base@1.4.0
minifier-css@1.5.4
minifier-js@2.6.0
minimongo@1.6.2
Expand Down
30 changes: 30 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Meteor: Chrome",
"url": "http://localhost:3000/launcher?iss=https%3A%2F%2Ffhir.epic.com%2Finterconnect-fhir-oauth%2Fapi%2FFHIR%2FDSTU2&launch=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJ1cm46b2lkOmZoaXIiLCJjbGllbnRfaWQiOiI5OGE4YmVlOC1mNDExLTQxODMtODUxYi1mOGM5YTg2NTgyNDUiLCJlcGljLmVjaSI6InVybjplcGljOk9wZW4uRXBpYy1jdXJyZW50IiwiZXBpYy5tZXRhZGF0YSI6IjdPUFUzeXRicGs0d2hucFdXdHZSNXo0U3NSVDVpdFl1SnV1V0U3blVVY1c1WU9wLThVYTRYNkVKTjl3RThQbWVyNjJwYnI4b1V6VDA1dWk1WUdCazBtUzktdVA1TGI3N3pwSGpXaEs4dnhiYWlyWVZSc3BCSWJ5TVlxTEp1TWdIIiwiZXBpYy50b2tlbnR5cGUiOiJsYXVuY2giLCJleHAiOjE2MjQ4Mzg2MzQsImlhdCI6MTYyNDgzODMzNCwiaXNzIjoidXJuOm9pZDpmaGlyIiwianRpIjoiZDE0MTE0ZDItMGYxMy00OWNjLWJhNjYtMjYyMzMxZTUzZTU4IiwibmJmIjoxNjI0ODM4MzM0LCJzdWIiOiJlU0tlNk1DbVVuenRHd1EuWldBaU1hdzMifQ.RjsM9wCd_s2GHjSJjq2MoLdSkryKRHCyWjIjLJP1c1g0VMoJJfk77hhtAsuQwkJuqfHwcVCNsNg2gXBTXLCc6zUDiLhIazDTVoEMWvoZ9kGSDMBN7Wrm7k9uWGr8ioe9XoZQkZz-kBq8FhgvVT8JlB6eCS_sxfcDEWnLdzAnxTgi_NRu5EWVzPgzZBFJWcUYoyECihBHutDW69GX5L78xaQ56XzPoUZqO3lyq9N0YE7RfoCx0Lv4IhCVrqO-AsZrxxDvfAou0dPvuIpGw_tYhIIXzL0ZhUnfECCHI07g58HN_8kEQcXr_vOd8rQ-y2xBnyYaydrXGtwcwL92C8xACA",
"webRoot": "${workspaceFolder}",
"outputCapture": "std"
},
{
"type": "node",
"request": "launch",
"name": "Meteor: Node",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "debug"],
"outputCapture": "std",
"port": 9229,
"timeout": 30000
}
],
"compounds": [
{
"name": "Meteor: All",
"configurations": ["Meteor: Node", "Meteor: Chrome"]
}
]
}

24 changes: 22 additions & 2 deletions app/accounts/AuthContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,15 @@ if(Meteor.isClient){

return {
display: get(user, 'fullLegalName', ''),
reference: "Patient/" + get(user, 'id')
reference: "Patient/" + get(user, 'patientId')
}
}
Meteor.logoutCurrentUser = function(){
Session.set('currentUser', null);
Session.set('selectedPatient', null);
Session.set('selectedPatientId', null);
Meteor.logout();
}
}

async function fetchUser(setAuthContextState){
Expand All @@ -64,10 +70,24 @@ async function loginWithService(service, credentials){
console.log('AuthContext.loginWithService()', service, credentials);

let loginResponse = await accountsClient.loginWithService(service, credentials);
console.log('loginResponse', loginResponse)
console.log('AuthContext.loginResponse', loginResponse)

if(Meteor.isClient){
Session.set('currentUser', get(loginResponse, 'user'));
Session.set('selectedPatientId', get(loginResponse, 'user.patientId'));

if(Patients.find().count() > 0){
let matchedPatient;
if(get(loginResponse, 'user.patientId')){
matchedPatient = Patients.findOne({id: get(loginResponse, 'user.patientId')});
} else if(has(loginResponse, 'user.id')){
matchedPatient = Patients.findOne({id: get(loginResponse, 'user.id')});
}
if(matchedPatient){
Session.set('selectedPatient', matchedPatient);
}
}

currentUserDep.changed();
}

Expand Down
4 changes: 2 additions & 2 deletions app/accounts/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const Login = function({ history }){
}

return (
<UnauthenticatedContainer>
<UnauthenticatedContainer style={{width: '100%'}}>
<Snackbar
anchorOrigin={{
vertical: 'top',
Expand All @@ -129,7 +129,7 @@ const Login = function({ history }){
<SnackBarContentError message={error} />
</Snackbar>

<form onSubmit={formik.handleSubmit}>
<form onSubmit={formik.handleSubmit} style={{width: '100%'}}>
<Grid container spacing={3}>
{/* <Grid item xs={12}>
<img src="/logo.png" alt="Logo" className={classes.logo} />
Expand Down
Loading

0 comments on commit 560b14d

Please sign in to comment.