Skip to content
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

fix name mode in dumbbbell #236

Draft
wants to merge 1,119 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1119 commits
Select commit Hold shift + click to select a range
edeb16c
Allow user to get state if it's public
JackWilb Aug 13, 2021
d47784f
api call state everytime state management is clicked
haihan-lin Aug 13, 2021
c21d127
change the switch to radio
haihan-lin Aug 13, 2021
bd61f57
state management keep open after deleting
haihan-lin Aug 13, 2021
43d9900
add success alert for delete
haihan-lin Aug 13, 2021
47a85a2
snackbar timer change
haihan-lin Aug 13, 2021
614042a
Merge branch 'master' into public-states
JackWilb Aug 13, 2021
413e5f6
Merge pull request #157 from visdesignlab/public-states
haihan-lin Aug 13, 2021
e89a01b
wip. working on filter
haihan-lin Aug 17, 2021
0613ed8
blood component filter working
haihan-lin Aug 17, 2021
102351d
clean up repeat code, add reset button
haihan-lin Aug 17, 2021
49988ad
make test value filter
haihan-lin Aug 18, 2021
4147af9
fix a key issue with heat map
haihan-lin Aug 18, 2021
2e9666d
change the urgency filter and outcome filter to filter tab
haihan-lin Aug 19, 2021
70a1c68
remove comments
haihan-lin Aug 19, 2021
12740a5
completely remove semantic-ui, lineup, and cleaned up package.json. a…
haihan-lin Aug 23, 2021
95652c5
also add disable for each reset button on filter field so that no emp…
haihan-lin Aug 23, 2021
dbabedc
remove unncessary type declaration
haihan-lin Aug 23, 2021
d11d154
Merge pull request #172 from visdesignlab/filter-system
haihan-lin Aug 24, 2021
8ebe8ce
Allow state access role to be updated
JackWilb Jul 16, 2021
7b8c6dd
Filter to just one state access object
JackWilb Jul 16, 2021
b0bba58
Fix typo
JackWilb Jul 16, 2021
3facc85
Make state access object unique for a user-workspace combination
JackWilb Jul 16, 2021
cf7b44b
fix the scrolling issue and the adding issue when state loaded.
haihan-lin Aug 17, 2021
fb3dc0c
wip, considering changing the overwrite state to edit mode instaed of…
haihan-lin Aug 17, 2021
fc271e3
remove url sharing
haihan-lin Aug 23, 2021
8008504
Rename auth_views
JackWilb Aug 24, 2021
9636436
Add state_unids function
JackWilb Aug 24, 2021
ebd3554
Switch response type to JSON
JackWilb Aug 24, 2021
b632443
Save states using unid, not db id
JackWilb Aug 24, 2021
c6254bf
User request.user instead of request.user.id
JackWilb Aug 24, 2021
74346ea
Remove extra param in share_state call
JackWilb Aug 24, 2021
ee8a327
Fix share state logic
JackWilb Aug 24, 2021
1e3321a
Use user unid not iser id for state sharing
JackWilb Aug 24, 2021
9d8df9d
Document state_unids route
JackWilb Aug 25, 2021
bf95bdb
remove load from url on trrack
haihan-lin Aug 25, 2021
3f4ef03
made a dialog to change state access.
haihan-lin Aug 25, 2021
bddbdfc
forgot to store default value
haihan-lin Aug 25, 2021
9050f2c
change the fetch request
haihan-lin Aug 26, 2021
64fb6ec
add a statename check.
haihan-lin Aug 26, 2021
20162f5
change the update order
haihan-lin Aug 26, 2021
2f88a5f
fix the fetch post
haihan-lin Aug 26, 2021
05380e1
Fix state sharing logic
JackWilb Aug 26, 2021
13e40fe
Use the first object if only one in queryset
JackWilb Aug 26, 2021
b856acb
keyed the component also change the map to based on accessarray.
haihan-lin Aug 26, 2021
0f91d7b
Merge branch 'update-access-level' of https://github.com/visdesignlab…
haihan-lin Aug 26, 2021
36fa7d1
try make a new request on changing the access
haihan-lin Aug 26, 2021
639492c
Merge pull request #159 from visdesignlab/update-access-level
JackWilb Aug 26, 2021
d9517b1
add a divider between components. the case info will clear upon selec…
haihan-lin Sep 13, 2021
19dbe09
add two logos for placing them on the interface
haihan-lin Sep 13, 2021
6c703e7
change logo file diretory
haihan-lin Sep 13, 2021
eb158c5
remove two png fils
haihan-lin Sep 15, 2021
c4887c5
update top menu look. not finished yet.
haihan-lin Sep 15, 2021
78d38ab
none available added to the state management dropdown.
haihan-lin Sep 15, 2021
014cb62
update figure
haihan-lin Sep 15, 2021
da17b03
add an about page.
haihan-lin Sep 15, 2021
d4cb473
update github frontpage interface image.
haihan-lin Sep 15, 2021
f7257ed
Update README.md
haihan-lin Sep 15, 2021
9521168
Merge pull request #179 from visdesignlab/update-readme
haihan-lin Sep 16, 2021
caf713d
moving icons to top of the chart
haihan-lin Sep 16, 2021
f9d8281
move filter to a drawer. remove the tab option on the main. also seem…
haihan-lin Sep 16, 2021
7cba58d
put share uID into state mangement.
haihan-lin Sep 17, 2021
4e75fbb
make each SVG height with calc(100%-100px)
haihan-lin Sep 17, 2021
1cd2e19
fix placement of save annotation button.
haihan-lin Sep 17, 2021
1868a6b
move all buttons for all charts to top.
haihan-lin Sep 17, 2021
eca92eb
make all container hide scrollbar.
haihan-lin Sep 17, 2021
61456c2
allow larger font for axis. Add a small title of the chart .
haihan-lin Sep 17, 2021
a6b16c2
add clear all
haihan-lin Sep 17, 2021
1f60f26
Merge pull request #177 from visdesignlab/UI-updates
haihan-lin Sep 20, 2021
f389f4d
Fix broken logo image link.
haihan-lin Sep 21, 2021
7e7c3ca
Merge pull request #180 from visdesignlab/haihan-lin-patch-1
haihan-lin Sep 21, 2021
5d6bd5e
add tooltip for all top menu bar icons.
haihan-lin Sep 22, 2021
56c1283
relocate selection filter to the drawer.
haihan-lin Sep 22, 2021
3eaed32
add another button on top of the draw to clear all filter
haihan-lin Sep 22, 2021
dabcf46
fix procedure padding issue and remove elevation on buttons in add mode.
haihan-lin Sep 22, 2021
fdbb8d7
change all axis label, text to change according to the font setting. …
haihan-lin Sep 22, 2021
105fa7d
auto save notes to browser state onBlur. Also add a success message f…
haihan-lin Sep 22, 2021
ab01122
legend alignment and padding
haihan-lin Sep 22, 2021
2feb404
add an X under extra pair
haihan-lin Sep 22, 2021
689e424
remove some unused import
haihan-lin Sep 22, 2021
f55e976
Merge pull request #181 from visdesignlab/small-fixes
haihan-lin Sep 22, 2021
9806bc7
Update README.md
haihan-lin Sep 22, 2021
631b554
add two catch for fetch, change clear all icon to trash can, change t…
haihan-lin Sep 29, 2021
6eb4776
put buttons into more dropdown
haihan-lin Sep 29, 2021
63b4fa4
add a button in dropdown that is called private mode, that will show…
haihan-lin Sep 30, 2021
d7ac73d
temporary change for testing
haihan-lin Sep 30, 2021
1fea7dd
move the filter out of the drawer.
haihan-lin Oct 1, 2021
e0a0e50
add more links and team names for about modal.
haihan-lin Oct 1, 2021
60d85a7
x only shows up on hover
haihan-lin Oct 1, 2021
6b20697
addressing consistent UI for adding elements
haihan-lin Oct 1, 2021
772a95c
start branch
haihan-lin Oct 1, 2021
8a1b255
fix the filter issue by changing div not hiding.
haihan-lin Oct 4, 2021
d92f725
deleting comments
haihan-lin Oct 4, 2021
0b4a824
fix the brush and selection clearing. also fix an issue of firing act…
haihan-lin Oct 4, 2021
873d45b
Merge pull request #185 from visdesignlab/small-fixes
haihan-lin Oct 4, 2021
457ec67
Merge remote-tracking branch 'origin/main' into state-update
haihan-lin Oct 4, 2021
1374138
all changes to states.
haihan-lin Oct 4, 2021
5b9569b
let the quick save change name after updating a new state saved or a …
haihan-lin Oct 5, 2021
e460fcb
change public input form to a string with capitalized first letter.
haihan-lin Oct 5, 2021
3383ec6
bug
haihan-lin Oct 5, 2021
b4b4871
fix the dialog width
haihan-lin Oct 5, 2021
a6a60cb
bug fix
haihan-lin Oct 5, 2021
3e2c684
fix the button placement
haihan-lin Oct 5, 2021
9f16bc6
try fullwidth
haihan-lin Oct 5, 2021
8151900
add wrap max width
haihan-lin Oct 5, 2021
09e7c3c
oops
haihan-lin Oct 5, 2021
04df85d
remove save as. Also clears the loaded state
haihan-lin Oct 5, 2021
a7cd2ac
Merge pull request #186 from visdesignlab/state-update
haihan-lin Oct 5, 2021
81c91aa
Merge pull request #182 from visdesignlab/haihan-lin-patch-1
haihan-lin Oct 7, 2021
0d3aea6
Add cpt codes to surgery query
JackWilb Nov 3, 2021
9a173a1
Apply some syntax fixes from testing
JackWilb Nov 3, 2021
ab09fa7
Remove commented code and add a comment for the list indexing
JackWilb Nov 3, 2021
89ee2c3
add front end code to process CPT codes
haihan-lin Nov 3, 2021
8ff4337
Merge pull request #189 from visdesignlab/fetch-surgery-cpts
haihan-lin Nov 3, 2021
72fca18
Update data dictionary to use primary visit purpose
JackWilb Nov 3, 2021
a7dbcc9
Add CODE_DESC to ERD
JackWilb Nov 3, 2021
5c32dcd
go through VSCode auto format
haihan-lin Nov 3, 2021
1fdbe2e
add hospital number to hipaa list, also /presets format
haihan-lin Nov 3, 2021
e4136f9
Merge pull request #191 from visdesignlab/primary-purpose
JackWilb Nov 3, 2021
9d4afc5
Merge pull request #193 from visdesignlab/hipaa_update
haihan-lin Nov 3, 2021
b56822d
Merge branch 'main' into format
haihan-lin Nov 3, 2021
889caa6
Merge pull request #192 from visdesignlab/format
haihan-lin Nov 3, 2021
609c422
fix the violin plot medium bug
haihan-lin Nov 2, 2021
7c833db
fix cost bar chart not updating based on procedures.
haihan-lin Nov 2, 2021
238573d
format
haihan-lin Nov 3, 2021
666a277
Merge pull request #187 from visdesignlab/procedure-debug
haihan-lin Nov 3, 2021
ab3cedb
Reorder README for easier copy and paste to CHPC
JackWilb Nov 3, 2021
a3d179a
Use the right HTTP response type for all returns
JackWilb Nov 3, 2021
cceaed3
make undefined drg weight into NaN
haihan-lin Nov 8, 2021
2327f0e
make visual representation for no data
haihan-lin Nov 8, 2021
41879cc
Merge pull request #194 from visdesignlab/drg_nan
haihan-lin Nov 8, 2021
fa68fe2
Merge pull request #195 from visdesignlab/small-fixes
JackWilb Nov 10, 2021
f9264a7
add a type of procedure list
haihan-lin Jan 11, 2022
833dfc3
the bulk of the front end update
haihan-lin Jan 12, 2022
bd26d54
fix a minor issue that would cause a crash
haihan-lin Jan 12, 2022
08d0571
Update get_attributes to provide the co-occurrences list
JackWilb Jan 27, 2022
b381cd5
Add co-ocurrence note to get_attributes documentation
JackWilb Jan 27, 2022
e65d903
get_attribues -> get_procedure_counts
JackWilb Jan 28, 2022
42082d5
Update variable name cpt -> cpt_codes_csv
JackWilb Jan 28, 2022
dc6b33a
finish up data processing for new procedure expansion
haihan-lin Jan 28, 2022
b481105
sort sub procedures as well
haihan-lin Jan 28, 2022
267568e
Simplify get_procedure_counts logic
JackWilb Jan 28, 2022
a752bed
Add 2 new helpers for getting query sum + where statements
JackWilb Jan 29, 2022
78f453c
Update request_transfused_units to deal with overlapping CPT codes
JackWilb Jan 29, 2022
3a08c1f
Fix typo s -> x
JackWilb Jan 29, 2022
3156c32
Fix additional bugs in query + prep logic
JackWilb Jan 29, 2022
b4ce206
Use quoted index for var names instead of bind var
JackWilb Jan 29, 2022
5cb032c
Remove extra bind var remnants
JackWilb Jan 29, 2022
3315d36
Update request_transfused_units documentation for overlapping query
JackWilb Jan 29, 2022
aed99a3
finishing up procedure expansion on front end. Will need to wait for …
haihan-lin Jan 29, 2022
9e5923b
change procedure text
haihan-lin Jan 30, 2022
4fbfb45
remove useless line
haihan-lin Jan 31, 2022
b0f328a
Allow all CPTs if no filter_selection on request_transfused_units
JackWilb Jan 31, 2022
dcd470d
Merge branch 'procedure-expansion' of github.com:visdesignlab/Sanguin…
JackWilb Jan 31, 2022
16bcb45
remove unncessary code
haihan-lin Jan 31, 2022
3373a29
add a 0 length check
haihan-lin Jan 31, 2022
1835522
Merge pull request #199 from visdesignlab/procedure-expansion
haihan-lin Jan 31, 2022
ce3619d
Bump django from 2.2.24 to 2.2.27 in /backend
dependabot[bot] Feb 10, 2022
9da400a
Bump node-sass from 6.0.1 to 7.0.0 in /frontend
dependabot[bot] Feb 10, 2022
b5f558c
Add a count for procedures that happened without an overlap
JackWilb Feb 10, 2022
15d0875
Merge pull request #200 from visdesignlab/dependabot/pip/backend/djan…
JackWilb Feb 10, 2022
604ffcc
Bump follow-redirects from 1.13.0 to 1.14.8 in /frontend
dependabot[bot] Feb 10, 2022
9ebf118
Bump nanoid from 3.1.23 to 3.2.0 in /frontend
dependabot[bot] Feb 10, 2022
61f5879
Refactor the AND/OR statement generators to work with "Only procedure"
JackWilb Feb 11, 2022
0b24289
Merge branch 'exclusive-counts' of https://github.com/visdesignlab/Sa…
haihan-lin Feb 13, 2022
95fa64e
add carret indicator for hierarchy and logic for selection
haihan-lin Feb 13, 2022
b960cb1
remove unused import
haihan-lin Feb 13, 2022
ca3853a
Add a count for procedures that happened without an overlap
JackWilb Feb 10, 2022
7b6ee68
Refactor the AND/OR statement generators to work with "Only procedure"
JackWilb Feb 11, 2022
2aa457b
add carret indicator for hierarchy and logic for selection
haihan-lin Feb 13, 2022
2aa6163
remove unused import
haihan-lin Feb 13, 2022
f9de550
Merge pull request #202 from visdesignlab/exclusive-counts
JackWilb Feb 14, 2022
a0955da
Collect only CPTs for the surgery case on fetch_surgery
JackWilb Nov 11, 2021
aab60ca
update data dictionaries to allow CODES
JackWilb Nov 11, 2021
c720144
Merge pull request #196 from visdesignlab/fix-cpt-per-surgery
JackWilb Feb 14, 2022
46504fd
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/frontend…
JackWilb Feb 14, 2022
5a5e485
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/frontend…
JackWilb Feb 14, 2022
d8ce10c
Merge pull request #204 from visdesignlab/dependabot/npm_and_yarn/fro…
JackWilb Feb 14, 2022
3077750
Bump axios from 0.21.1 to 0.21.2 in /frontend
dependabot[bot] Feb 14, 2022
1aaeeb4
Bump tmpl from 1.0.4 to 1.0.5 in /frontend
dependabot[bot] Feb 14, 2022
09137c3
reverse action
haihan-lin Feb 24, 2022
22ee5ff
fix search
haihan-lin Feb 24, 2022
8a02cef
always only on top, allows toggle open sublist regardless of selection'
haihan-lin Feb 24, 2022
1b66109
remove console log
haihan-lin Feb 25, 2022
b2f10c9
remove unused import
haihan-lin Feb 25, 2022
ac9be94
Merge branch 'main' into exclusive-counts
haihan-lin Feb 25, 2022
9120a6d
fix pr bug
haihan-lin Feb 27, 2022
39e0ee8
Merge branch 'exclusive-counts' of https://github.com/visdesignlab/Sa…
haihan-lin Feb 27, 2022
7cf23f7
Merge pull request #208 from visdesignlab/exclusive-counts
haihan-lin Feb 27, 2022
173e8f8
Bump url-parse from 1.5.1 to 1.5.10 in /frontend
dependabot[bot] Feb 28, 2022
273c760
seperate out surgery row
haihan-lin Mar 13, 2022
bdc5b7f
hide SVG if text overflows
haihan-lin Mar 13, 2022
7430ab6
Update SurgeryRow.tsx
haihan-lin Mar 15, 2022
92b052d
Merge pull request #211 from visdesignlab/sur-row-style
haihan-lin Mar 15, 2022
cf0211f
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/frontend…
JackWilb Mar 17, 2022
fe0c710
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/frontend…
JackWilb Mar 17, 2022
464cf3e
Merge pull request #209 from visdesignlab/dependabot/npm_and_yarn/fro…
JackWilb Mar 17, 2022
4948d7d
Bump tar from 6.1.0 to 6.1.11 in /frontend
dependabot[bot] Mar 17, 2022
c5a026b
Bump minimist from 1.2.5 to 1.2.6 in /frontend
dependabot[bot] Apr 1, 2022
e4cb446
Fix up state_unids
JackWilb Apr 7, 2022
0869190
Delete files in the wrong place
JackWilb Apr 7, 2022
1545401
Add surgeon_anest_names
JackWilb Apr 7, 2022
f3df7f3
Update README instructions for deployment
JackWilb Apr 7, 2022
6ba489b
swap name in private mode
haihan-lin Apr 7, 2022
bc61e7f
Merge pull request #215 from visdesignlab/surgeon_names
JackWilb Apr 8, 2022
1a92b24
always show range label
haihan-lin Apr 11, 2022
005a578
Merge pull request #216 from visdesignlab/range_label
haihan-lin Apr 11, 2022
4d97f92
Bump async from 2.6.3 to 2.6.4 in /frontend
dependabot[bot] Apr 29, 2022
e463902
Bump django to 3.2
JackWilb May 2, 2022
085a6cd
Uncomment the database in settings
JackWilb May 2, 2022
1b6142e
Set django-cas-ng to 4.1.1
JackWilb May 2, 2022
f3c3520
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/frontend…
JackWilb May 2, 2022
2bd6920
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/frontend…
JackWilb May 2, 2022
69d0212
Merge pull request #218 from visdesignlab/dependabot/npm_and_yarn/fro…
JackWilb May 2, 2022
299dcab
Merge pull request #219 from visdesignlab/upgrade-django
JackWilb May 10, 2022
8d51157
Create LICENSE.md
haihan-lin Jun 1, 2022
78212dd
Update LICENSE.md
haihan-lin Jun 1, 2022
c4f897f
make a unified tab pane
haihan-lin Jun 29, 2022
2da0f53
add a google chart library for sankey
haihan-lin Jun 30, 2022
4879529
working draggable chips
haihan-lin Jul 5, 2022
acf689c
change styling for the draggble
haihan-lin Jul 5, 2022
c1cf277
Bump django from 3.2.13 to 3.2.14 in /backend
dependabot[bot] Jul 5, 2022
15386a1
make sankey working
haihan-lin Jul 5, 2022
24341ed
change size, also check sankey data valid
haihan-lin Jul 5, 2022
23ec55f
styling
haihan-lin Jul 18, 2022
ff1df0a
styling
haihan-lin Jul 18, 2022
629b5c1
Merge pull request #224 from visdesignlab/sankey
haihan-lin Jul 18, 2022
d1960ac
Merge pull request #222 from visdesignlab/dependabot/pip/backend/djan…
JackWilb Jul 18, 2022
2ad8ebd
log process
haihan-lin Aug 3, 2022
c08ef1a
log process
haihan-lin Aug 3, 2022
1c79706
fix some styling
haihan-lin Aug 3, 2022
bd7de49
improving styles
haihan-lin Aug 4, 2022
6768755
fix extra pair tooltip broken issue
haihan-lin Aug 4, 2022
ddd645c
add more tooltips
haihan-lin Aug 4, 2022
31eccb6
fix patient list
haihan-lin Aug 4, 2022
b11aad2
fix surgery list font
haihan-lin Aug 4, 2022
9388ba9
fix dumbbell chart
haihan-lin Aug 4, 2022
0913f1d
fix a menu mui error
haihan-lin Aug 4, 2022
3c34ffb
fix dumbbell button color
haihan-lin Aug 4, 2022
335fcc0
remove all css styling
haihan-lin Aug 4, 2022
7e3cc27
remove unused import and change some map to foreach
haihan-lin Aug 4, 2022
e027461
move dialog states into components
haihan-lin Aug 5, 2022
0aa4ddf
fix variable names
haihan-lin Aug 5, 2022
88e6aec
remove import
haihan-lin Aug 5, 2022
aa97003
fix button group
haihan-lin Aug 5, 2022
da2b3d0
Bump django from 3.2.14 to 3.2.15 in /backend
dependabot[bot] Aug 11, 2022
3186ff7
Cleanup yarn issues and type issues
JackWilb Aug 16, 2022
d779438
Merge pull request #227 from visdesignlab/mui
haihan-lin Aug 16, 2022
def7f88
Merge pull request #228 from visdesignlab/dependabot/pip/backend/djan…
JackWilb Aug 16, 2022
ed8ecf8
fix name mode in dumbbbell
haihan-lin Jan 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/references
.vscode
.DS_Store

api.service
frontend.service

.venv/
29 changes: 29 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2022, University of Utah
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
68 changes: 68 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Sanguine Visualization Project

This project is a collaboration between VDL and ARUP at University of Utah. We visualize blood usage in cardiac surgeries and associated patient and surgery attributes. Through this interactive visualization tool, we hope to offer clinical practitioners a better overall view on the use of blood, thus facilitating better patient outcomes.

![Interface image](https://vdl.sci.utah.edu/assets/images/publications/2021_ivi_sanguine/2021_ivi_sanguine_interface.png)


## Table of Contents

1. [Access Sanguine on CHPC at Utah](#access-sanguine-on-chpc-at-utah)
1. [Quick start guide](#quick-start-guide)
- [Start the server](#start-the-server)
- [Start the frontend](#start-the-frontend)
1. [Deployment docs](#deployment-docs)


## Access Sanguine on CHPC at Utah

To use this, make sure you are on the campus network. If off-campus, use a VPN that ends in utah.edu. Navigate to https://bloodvis.chpc.utah.edu.

We restrict who can access this application through Utah's CAS server, using duo two-factor authentication. If you need access to this application, please reach out to the developers.


## Quick start guide

### Start the server

1. `cd` to the backend folder
1. Configure your .env file with the correct parameters based on the the .env.default
1. Configure the credentials you'll be using to connect to the database.
1. Run `pipenv install`
1. Run `pipenv run serve`

### Start the frontend

1. `cd` to the frontend folder
1. Configure your .env file with the correct parameters based on the the .env.default
1. Run `yarn install`
1. Run `yarn start`


## Deployment docs

Link the systemd service files to the correct place for the user

```
# First time set up
# systemctl enable $(pwd)/api.service
sudo systemctl status api.service
sudo systemctl start api.service

ln -s ../ANESTH_LOOKUP_040422.csv backend/api/ANESTH_LOOKUP_040422.csv
ln -s ../SURGEON_LOOKUP_040422.csv backend/api/SURGEON_LOOKUP_040422.csv
ln -s ../data_dictionary.csv backend/api/data_dictionary.csv
ln -s ../cpt_codes_cleaned.csv backend/api/cpt_codes_cleaned.csv

# Start/restart the frontend
cd frontend
/usr/bin/scl enable rh-nodejs10 -- yarn
/usr/bin/scl enable rh-nodejs10 -- yarn build
sudo /usr/bin/rsync -av /uufs/chpc.utah.edu/common/HIPAA/IRB_00124248/deployed-app/bloodvis/frontend/build/* /var/www/html
sudo /usr/bin/chown -R apache. /var/www/html
sudo systemctl restart httpd24-httpd

# Restart the api
sudo systemctl restart api.service
```

14 changes: 14 additions & 0 deletions backend/.env.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
LD_LIBRARY_PATH=/usr/local/pkg/sqlite/std/lib/
REQUIRE_LOGINS=False
DJANGO_SECRET_KEY=this-is-not-secret
DJANGO_DEBUG=True

MYSQL_USER=
MYSQL_PASS=
MYSQL_HOST=
MYSQL_PORT=
MYSQL_DB=

ORACLE_HOST=
ORACLE_PORT=
ORACLE_SERVICE_NAME=
11 changes: 10 additions & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
credential.json
data.json
data.json
api/db.sqlite3
api/static
*.DS_Store
*.coverage
.env
.env.prod
api/api/tests.py
sanguine.log*
*.bak
103 changes: 103 additions & 0 deletions backend/ANESTH_LOOKUP_040422.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
ANESTH_PROV_DWID,ANEST_LAST_NAME,ANEST_FIRST_NAME,ANEST_MIDDLE
294022,BOTT,STEVEN,I
663408,NEWBERRY,CYNTHIA,M
284740,BEHRENS,MICHAEL,N
277858,COYLE,DUSTIN,E
284050,CALL,TYLER,R
292827,JOHNSON,KENWARD,B
662448,SKAGGS,JOHN,D
278388,OVERTON,SEAN,D
293840,PORTH,JEFFERY,D
3576962,JESSOP,KATHERINE,MARIE
5744105,FALK,DANIEL,J
278962,TADLER,SCOTT,C
6210919,WAGNER,MICHAEL,J
278879,HOPF,HARRIET,DW
1199736,DESSO,REBECCA,R
292934,WETHINGTON,KEVIN,L
5736249,KONIUCH,KATHERINE,L
279079,CHORTKOFF,BEN,S
1024182,PECHA,TRAVIS,J
297343,KNECHT,LAUREN,E
1023328,FARRAR,JESSICA,L
278465,THACKERAY,ELIZABETH,MERRILL
280151,WARRIER,SMITHA,
293371,OGDEN,L,LAZARRE
2861685,VEDDER,BRIDGET,K
658002,HARIG,JASON,P
279685,MORGAN,DAVID,E
293397,HARRIS,MARK,J
685356,ALLEN,SCOTT,G
3478841,CAMPBELL,BLAKE,A
278247,DILLON,JEFFREY,DAVID
662456,HORN,JEFFREY,B
283570,RICHARDSON,SCOTT,P
291755,CLARK,NORMAN,JAMES
6175077,SAMS,STEPHEN,H
279416,JUNKINS,SCOTT,R
1022272,ODELL,DANIEL,W
280333,ORGAIN,NATHAN,G
278789,CHRISTENSEN,CLINT,L
6283759,ROLLINS,MARK,D
279681,AXELROD,DEBORAH,A
1019661,JACKMAN,CARINA,M
277825,BANKHEAD,BYRON,R
6726985,TAYLOR,NORMAN,E
2939485,BEHRENS,CHRISTOPHER,J
684439,ROMANELLI-GOBBI,MASSIMILIANO,
296713,MORRISSEY,CANDICE,K
297383,PULSIPHER,DANIEL,J
278223,ZIMMERMAN,JOSHUA,M
279950,SILVERTON,NATALIE,A
279922,PELEGRIN,PETER,C
278341,DECOU,JENNIFER,A
1022265,LEE,JAMES,P
271525,JESSOP,JACOB,E
2939507,CHANG,JEN,
293632,LOOSE,EVELYN,C
1024223,WARRICK,CHRISTINE,M
294496,BROGAN,SHANE,E
278965,LIU,PETER,S
280817,SPERRY,RICHARD,J
297404,BELZER,JENNIFER,S
5714245,JENKINSON,ROBERT,H
277352,SMITH,DAVID,WARNER
279407,GNADINGER,PHILIP,N
293573,RUNNELS,SEAN,T
658005,HEATH,ELISE,J
279917,BECK,MICHAEL,M
279791,CURTIS,MICHELLE,C
278647,GALAVIZ,CHARLES,E
284799,EGAN,TALMAGE,D
278597,STEHLIKOVA,ZUZANA,
294580,ROUSSEL,DANIELLE,L
280200,BIRGENHEIER,NATHANIEL,M
279532,BLEDSOE,AMBER,D
11751966,MOORE,BRAD,P
5736115,DORSEY,DAVID,P
297214,MORGAN,JOHN,S
5736920,MEIER,ADAM,W.
280260,HAGN,EMILY,E
280274,HOLMBERG,TIMOTHY,J
6202108,POLLOCK,KIMBERLY,A
3478920,HANSEN,BRADLEY,E
5745004,NGUYEN,LINDA,N
5586160,CHANG,CANDACE,C
5745009,POLLARD,JACOB,E
279801,LARSON,ADAM,L
279686,WHITTINGHAM,SARA,A
289213,LU,JEFFREY,K
809523,MONTZINGO,CANDICE,R
278833,DESJARDINS,GEORGES,
279123,BAKKE,PATRICK,G
684972,ALLEN,RACHEL,H
277237,GRIFFEE,MATTHEW,J
685387,MCCONVILLE,SARAH,SPERRY
11754166,SANFORD,KELSEY,M
876871,DRENNAN,EMILY,L
5606865,BORGMEIER,EMILEE,L
297367,GERA,PAUL,M
3423601,ROSENBERGER,DOROTHEA,S
3441708,BENSON,MICHAEL,J
5652797,GUENZER,JOSEPH,R
765548,BUYS,MICHAEL,J
Binary file added backend/ERD.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 18 additions & 1 deletion backend/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,29 @@ name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[requires]
python_version = "3.6"

[dev-packages]
pylint = "*"

[packages]
cx-oracle = "*"
flask = "*"
flask-cors = "*"
django = "~=3.2"
django-cors-headers = "*"
coverage = "*"
gunicorn = "*"
mysqlclient = "*"
django-cas-ng = "==4.1.1"

[scripts]
serve = "python app.py"
collectstatic = "python api/manage.py collectstatic"
coverage-report = "coverage report"
coverage-test = "coverage run --source='./api' api/manage.py test api"
makemigrations = "python api/manage.py makemigrations api"
migrate = "python api/manage.py migrate"
serve = "python api/manage.py runserver"
deploy = "python -c 'import os; os.chdir(\"api\"); os.system(\"gunicorn api.wsgi\")'"
test = "python -c 'import os; os.system(\"pipenv run coverage-test ; pipenv run coverage-report\")'"
Loading