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

Merging tEMinatoRs into the starting super-femr branch #735

Merged
merged 296 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
296 commits
Select commit Hold shift + click to select a range
9edda9f
Fixed server issues
mhayes2772 Feb 6, 2024
9bb9e87
Added local Marian model use and refactored Marian backup
noah1013 Feb 14, 2024
ef4fcb3
added stub objects and classes for translation
Har150n Feb 14, 2024
c40b2a3
Merge remote-tracking branch 'refs/remotes/origin/temr-dev' into temr…
Har150n Feb 14, 2024
8f8a12b
Added local Marian model use and refactored Marian backup
noah1013 Feb 14, 2024
a71c667
added stub objects and classes for translation
Har150n Feb 14, 2024
bee6189
Merge branch 'temr-dev' of https://github.com/FEMR/femr into temr-dev
Har150n Feb 14, 2024
b2927e9
Updated gitignore
mhayes2772 Feb 15, 2024
eda2c28
Merge branch 'temr-dev' of https://github.com/FEMR/femr into temr-dev
mhayes2772 Feb 15, 2024
df2b528
Updated gitignore and install_packages in server
mhayes2772 Feb 15, 2024
34d2651
Pointed server at correct argos models folder
mhayes2772 Feb 15, 2024
71410f3
started the text to json text list restructuring of the translation call
SeanHershey Feb 15, 2024
8c206b5
cleared log.txt we should add to gitignore in the future
SeanHershey Feb 15, 2024
b493039
sql changes from feminators-main (will require a evolution when pulling)
SeanHershey Feb 15, 2024
391c98b
Updated server log so now ignore by git
mhayes2772 Feb 15, 2024
8efdbf0
Merge branch 'temr-dev' of https://github.com/FEMR/femr into temr-dev
mhayes2772 Feb 15, 2024
9584085
added a delim temp solution for translating mutiple feilds
SeanHershey Feb 22, 2024
d191b3a
Merge remote-tracking branch 'origin/temr-dev' into temr-dev
SeanHershey Feb 22, 2024
72db4b7
Refactored the translation flow and fixed unavailable port errors
mhayes2772 Feb 27, 2024
a5e35ef
Demo Changes
TheBear1616 Feb 27, 2024
0c0ae70
Json Pack
TheBear1616 Feb 27, 2024
a2543b4
- extended PatientEncounterItems to include language code
Har150n Feb 27, 2024
a4628c0
removed stub class
Har150n Feb 27, 2024
b1f8ace
Updated Language Translation
TheBear1616 Feb 28, 2024
79e57e1
French added to language pack for home page
hmaziz Feb 29, 2024
b93284e
Added speedtest pycache to git ignore
mhayes2772 Mar 5, 2024
0902628
Fixes to speedtest code
mhayes2772 Mar 5, 2024
bf566df
Changes re-added to solve build issue
hmaziz Mar 5, 2024
fa7617d
Changes removed and added back to solve build issue.
hmaziz Mar 5, 2024
ed64c28
Added "English in the Middle" Argos functionality to server.py
noah1013 Mar 6, 2024
a9b7a71
Added "English in the Middle" Argos functionality to server.py
noah1013 Mar 6, 2024
08f46e8
Reverted last push
noah1013 Mar 6, 2024
777f1f8
Added "English in the Middle" functionality to Server.py
noah1013 Mar 6, 2024
002c46e
Revert previous changes
noah1013 Mar 6, 2024
bce2b95
Added 'English in the Middle' functionality to server.py
noah1013 Mar 7, 2024
36fc432
Added more port options for server
mhayes2772 Mar 7, 2024
80619c3
Merge branch 'temr-dev' into temr-dev-michael
mhayes2772 Mar 7, 2024
75fb992
Merge pull request #713 from FEMR/temr-dev-michael
mhayes2772 Mar 7, 2024
1cae14c
Added toggle functionality for the show original button, included lib…
DJump13 Mar 7, 2024
c7004c3
Made 'English in the Middle' functionality in server.py work for Argo…
noah1013 Mar 7, 2024
3ea721f
Merge pull request #714 from FEMR/temr-dev-noah
noah1013 Mar 8, 2024
71d172e
Added more translations to JSON
jasonbarba19 Mar 9, 2024
88a0953
Merge branch 'temr-dev' into temr-dev-david
DJump13 Mar 10, 2024
f0e030b
Merge pull request #715 from FEMR/temr-dev-david
DJump13 Mar 10, 2024
9e2157c
Fixed BackEndControllerHelper compilation error
mhayes2772 Mar 12, 2024
926ea9b
Fixed server.py
mhayes2772 Mar 12, 2024
8e540bb
Minor Tweaks
TheBear1616 Mar 12, 2024
19d8fea
Temp fix for CreationException error
mhayes2772 Mar 14, 2024
465025c
Better fix for CreationException error
mhayes2772 Mar 14, 2024
96a201d
Added defer keyword to delay the script execution
TheBear1616 Mar 14, 2024
30be34a
Fixed build?!
hmaziz Mar 14, 2024
0962b9d
Code Clean Up.
TheBear1616 Mar 19, 2024
3db5b21
The language update logic is now controlled by the dropdown
TheBear1616 Mar 19, 2024
c9e9b06
Add Remaining Triage Translations
jasonbarba19 Mar 20, 2024
0b942e9
test translation for json
hmaziz Mar 20, 2024
c9e4676
test translation for json
hmaziz Mar 20, 2024
0692630
Converted the Manager and Admin Pages
TheBear1616 Mar 20, 2024
1431dff
Merge remote-tracking branch 'origin/feminators-main' into feminators…
TheBear1616 Mar 20, 2024
316e0d7
adding changes for fields on triage page.
hmaziz Mar 20, 2024
17261b0
toggles original and translated with hidden stores
SeanHershey Mar 21, 2024
4a3095a
Incorporated Local Caching
TheBear1616 Mar 21, 2024
89c9ee6
Support functions and changes added to support translation on triage …
hmaziz Mar 21, 2024
7fc29fb
Merge conflicts resolved.
hmaziz Mar 21, 2024
6b000ef
Code Clean-Up!
TheBear1616 Mar 22, 2024
a357af6
Add files via upload
DJump13 Mar 22, 2024
31d6984
Created frontend for downloads/updates; Started backend changes for d…
mhayes2772 Apr 2, 2024
01a4f5f
Fixed age box translation
hmaziz Apr 2, 2024
f101883
added translating animation and suppressed ssl errors
SeanHershey Apr 4, 2024
03aebc2
Merge remote-tracking branch 'origin/temr-dev' into temr-dev
SeanHershey Apr 4, 2024
b7d516b
Added language codes to mock Patient Encounter, Prescription, and Use…
noah1013 Apr 9, 2024
ef76d5e
Added language codes to mock Patient Encounter, Prescription, and Use…
noah1013 Apr 9, 2024
51a1bc2
Added language codes as member fields for mock Patient Encounter, Pre…
noah1013 Apr 9, 2024
d213099
Merge pull request #716 from FEMR/temr-dev-noah
DJump13 Apr 9, 2024
bcf7a42
right to left translation
Har150n Apr 11, 2024
cd4f369
merge
Har150n Apr 11, 2024
c6ab018
implemented show original text directionality
Har150n Apr 11, 2024
2b6b7bc
Shading applied to choose file button.
hmaziz Apr 11, 2024
038cd05
Improvements to translation server for development
mhayes2772 Apr 16, 2024
aeb3d31
Merge pull request #717 from FEMR/temr-dev-michael-two
mhayes2772 Apr 16, 2024
6e6d7c5
Merge pull request #718 from FEMR/rtl-translation
Har150n Apr 16, 2024
eb2903d
changed delim to @
SeanHershey Apr 16, 2024
53c8251
Merge branch 'temr-dev' of https://github.com/FEMR/femr into temr-dev…
mhayes2772 Apr 17, 2024
e5a3326
translate get added to MedicalController.java
hmaziz Apr 18, 2024
7c1cb4e
Added initialize functionality for language table
mhayes2772 Apr 18, 2024
e9ee414
Changes for extended language pack and drop down menu
hmaziz Apr 18, 2024
6870a95
Added new field to language_code and renamed status field
mhayes2772 Apr 21, 2024
bd66598
Scheduled Languages table now pulls data from language_codes table
mhayes2772 Apr 21, 2024
20e29b3
Implemented package downloads
mhayes2772 Apr 30, 2024
18392f5
implemented URL encoding for Arabic and Hebrew translations
Har150n Apr 30, 2024
8e695ee
Merge branch 'temr-dev' into translate_url_encoding
Har150n Apr 30, 2024
39f0a93
Merge pull request #719 from FEMR/translate_url_encoding
Har150n Apr 30, 2024
e2bd16e
Revert "implemented URL encoding for Arabic and Hebrew translations"
Har150n Apr 30, 2024
679ea0d
Merge pull request #720 from FEMR/revert-719-translate_url_encoding
Har150n Apr 30, 2024
be8c62e
language pack troubleshooting
hmaziz Apr 30, 2024
52940c1
added at filter and backup translation for delim errors
SeanHershey Apr 30, 2024
d207d11
Merge branch 'temr-dev' of https://github.com/FEMR/femr into temr-dev
SeanHershey Apr 30, 2024
92030a4
Updated initLanguages and added loading gif
mhayes2772 Apr 30, 2024
0d1bdd3
Merge pull request #721 from FEMR/temr-dev-michael
mhayes2772 Apr 30, 2024
dae9786
Added check so that pushes can no longer occur without a LICENSE file…
noah1013 Apr 30, 2024
12546f5
Added check so that pushes can no longer occur without a LICENSE file…
noah1013 Apr 30, 2024
9184dc3
Merge remote-tracking branch 'origin/temr-dev' into temr-dev
noah1013 Apr 30, 2024
801edcc
Check to see whether we can push without a license file
noah1013 Apr 30, 2024
a3be637
Remove LICENSE check comments
noah1013 Apr 30, 2024
6582fa0
Fixed syntax error in license check yaml file
noah1013 Apr 30, 2024
5f23cc7
Fixed path error in license check yaml file
noah1013 Apr 30, 2024
d3cb001
Delete .github/workflows/license_check.yml
noah1013 Apr 30, 2024
1de4a9e
Delete LICENSE
noah1013 Apr 30, 2024
7e18caf
Added github workflow to check for LICENSE file
noah1013 Apr 30, 2024
ec6d88a
Merge remote-tracking branch 'origin/temr-dev-noah' into temr-dev-noah
noah1013 Apr 30, 2024
ba07b2c
Added LICENSE to branch
noah1013 Apr 30, 2024
3fabf2b
Delete LICENSE.txt
noah1013 Apr 30, 2024
cd292bf
Added LICENSE to branch
noah1013 Apr 30, 2024
b2baa01
Added debug code to license checker
noah1013 Apr 30, 2024
dcfc07f
Attempt to fix license detector
noah1013 May 1, 2024
3200c43
Attempt to fix license detector
noah1013 May 1, 2024
0beb59e
Same to same translation handled, URL encoding added back, and toggle…
SeanHershey May 1, 2024
78d5a1a
Merge remote-tracking branch 'origin/temr-dev' into temr-dev
SeanHershey May 1, 2024
5e01adf
Added option to select language on research page
SeanHershey May 1, 2024
8366ec3
Feedback page translated.
hmaziz May 3, 2024
282b8dc
Admin panel translated
hmaziz May 4, 2024
fef2cc5
test
DJump13 May 9, 2024
348f0fc
test 2
DJump13 May 9, 2024
2c4240e
refactored response map using the Break out Method Object
Har150n May 9, 2024
33a96e1
Merge pull request #724 from FEMR/temr-refactor-harrison
Har150n May 9, 2024
010a107
fixed to arabic only one field translating error by always backup tra…
SeanHershey May 10, 2024
4c6beab
Research page & primary dataset submenu done.
hmaziz May 14, 2024
c4b37cd
Changed license check script to view current directory instead of fem…
noah1013 May 15, 2024
c7c5491
Delete LICENSE
noah1013 May 15, 2024
69e53e9
Added LICENSE back to test pathing script
noah1013 May 15, 2024
c7abfde
Removed debug code to license_check.yml
noah1013 May 15, 2024
a52f8fe
added register user functionality on login page in preparation for la…
SeanHershey May 15, 2024
380d3cf
Add license checker functionality to work on all branches
noah1013 May 15, 2024
c3b3346
Delete LICENSE
noah1013 May 15, 2024
1858009
Ensure functionality of license checker script
noah1013 May 15, 2024
a60ab74
Merge pull request #725 from FEMR/temr-dev-noah
mhayes2772 May 15, 2024
1753670
Refactoring and testing
mhayes2772 May 15, 2024
2f69a19
Research page translation complete. Patch applied to Filter date bug.…
hmaziz May 16, 2024
f354bbc
working docker build from project Dockerfile
DJump13 May 16, 2024
ebf3207
Trip menu buttons in administration page translated.
hmaziz May 16, 2024
a6bf6ca
Creating patient encounter saves langCode from user session
mhayes2772 May 16, 2024
4e9affc
POST requests functionality added
mhayes2772 May 16, 2024
e9815a7
Troubleshooting select trip placeholder not rendering
hmaziz May 22, 2024
47c1ccd
Admin panel > Inventory page error messages integrated.
hmaziz May 22, 2024
cc3d162
Attempting to integrate translation in admin>users page, not working.
hmaziz May 22, 2024
c3abfde
femr/ui/views/admin/trips/manage.scala.html
hmaziz May 22, 2024
617daa4
Merge pull request #727 from FEMR/feminators-main-hamza
noah1013 May 22, 2024
c0f1e45
Code Commit
connor-addison-h Jan 25, 2024
13ca0c0
Added Pages and Page_Elements Tables
TheBear1616 Jan 25, 2024
2d69d11
Changes for FK in 123.sql
hmaziz Jan 31, 2024
63659f2
MeasurementCategory Table Added
connor-addison-h Jan 31, 2024
ae6f61d
Demo Changes
TheBear1616 Feb 27, 2024
f181852
Json Pack
TheBear1616 Feb 27, 2024
2fec069
Updated Language Translation
TheBear1616 Feb 28, 2024
38abc0d
French added to language pack for home page
hmaziz Feb 29, 2024
c6ff582
Changes re-added to solve build issue
hmaziz Mar 5, 2024
199babe
Added more translations to JSON
jasonbarba19 Mar 9, 2024
633f65c
Minor Tweaks
TheBear1616 Mar 12, 2024
31aad72
Added defer keyword to delay the script execution
TheBear1616 Mar 14, 2024
78d3d7e
Fixed build?!
hmaziz Mar 14, 2024
16edc9e
Code Clean Up.
TheBear1616 Mar 19, 2024
4c70e02
The language update logic is now controlled by the dropdown
TheBear1616 Mar 19, 2024
c9e15f1
test translation for json
hmaziz Mar 20, 2024
131071e
Add Remaining Triage Translations
jasonbarba19 Mar 20, 2024
fc269f9
adding changes for fields on triage page.
hmaziz Mar 20, 2024
8b1510e
Support functions and changes added to support translation on triage …
hmaziz Mar 21, 2024
c2c8b0d
Converted the Manager and Admin Pages
TheBear1616 Mar 20, 2024
0965700
Incorporated Local Caching
TheBear1616 Mar 21, 2024
a57f847
Code Clean-Up!
TheBear1616 Mar 22, 2024
ea02afb
Fixed age box translation
hmaziz Apr 2, 2024
385be7e
Shading applied to choose file button.
hmaziz Apr 11, 2024
467cce9
translate get added to MedicalController.java
hmaziz Apr 18, 2024
959bfbb
Changes for extended language pack and drop down menu
hmaziz Apr 18, 2024
f4bbb5a
language pack troubleshooting
hmaziz Apr 30, 2024
3125ab3
Feedback page translated.
hmaziz May 3, 2024
c6d3217
Admin panel translated
hmaziz May 4, 2024
b2570bc
Research page & primary dataset submenu done.
hmaziz May 14, 2024
a22ad7e
Research page translation complete. Patch applied to Filter date bug.…
hmaziz May 16, 2024
1abfba7
Trip menu buttons in administration page translated.
hmaziz May 16, 2024
8fc4468
Troubleshooting select trip placeholder not rendering
hmaziz May 22, 2024
0ae968a
Admin panel > Inventory page error messages integrated.
hmaziz May 22, 2024
0dd726d
Attempting to integrate translation in admin>users page, not working.
hmaziz May 22, 2024
7fdf701
femr/ui/views/admin/trips/manage.scala.html
hmaziz May 22, 2024
8f0e44b
Merge remote-tracking branch 'origin/tEMinatoRs' into tEMinatoRs
noah1013 May 23, 2024
1c8a7f5
json replace and translateGet dup fix
SeanHershey May 23, 2024
7e5b0cf
TranslationServer and server fixes, TranslationServer tests
mhayes2772 May 23, 2024
962d698
Create index.scala.html
connor-addison-h May 23, 2024
960e767
Merge branch 'temr-dev' into temr-dev-michael
mhayes2772 May 23, 2024
9cb8091
Create SettingsController.java
connor-addison-h May 23, 2024
b8ac715
Merge pull request #726 from FEMR/temr-dev-michael
mhayes2772 May 23, 2024
2fabac1
Fixed merge conflicts
mhayes2772 May 23, 2024
d267cd2
Merge pull request #728 from FEMR/temr-dev
mhayes2772 May 24, 2024
19008c4
Added Tests for Argos, English in the Middle, and Invalid Translations.
noah1013 May 27, 2024
cd7996e
Added Sprout Method to make checking for argos and marian paths easie…
noah1013 May 28, 2024
72bd02f
Updated UI for language updates
mhayes2772 May 28, 2024
dd2c5ed
added tests for the TranslationResponseMap Class
Har150n May 30, 2024
ff2da6f
Merge pull request #731 from FEMR/teminators-harrison
Har150n May 30, 2024
8d965fe
routes and settings controller
connor-addison-h May 30, 2024
a0cfcb0
dependencies added.
hmaziz May 30, 2024
f6f3ab6
user Item Edit view model and index view model
connor-addison-h May 30, 2024
1e1dfe1
Settings Page working with dropdown
jasonbarba19 May 30, 2024
9bbd83f
Settings Page working with dropdown
jasonbarba19 May 30, 2024
5ade11a
update and settings controller changed.
connor-addison-h May 30, 2024
0c36779
updated user service to include language code
connor-addison-h May 30, 2024
8f5ee9f
updated userService to include language code
connor-addison-h May 30, 2024
7d4ebda
update user without new password
connor-addison-h May 30, 2024
68533a1
removed seperate function
connor-addison-h May 30, 2024
022caba
language pack updated & dropdown matching argos list
hmaziz May 30, 2024
507cb4f
Merge branch 'tEMinators-I18n' of https://github.com/FEMR/femr into t…
hmaziz May 30, 2024
ebae8ac
Testing drop down
hmaziz May 30, 2024
20e0107
Adding in updated drowndown to match argos
hmaziz May 30, 2024
c25881d
Fixed tests for TranslationServices
mhayes2772 May 30, 2024
428114f
Reimplemented translation backup when delimiters fail
mhayes2772 May 30, 2024
eb97cca
Merge branch 'tEMinatoRs' of https://github.com/FEMR/femr into tEMina…
mhayes2772 May 30, 2024
9ac9bd3
Merge pull request #729 from FEMR/tEMinatoRs-server-tests
mhayes2772 May 30, 2024
52cb54e
Merge pull request #730 from FEMR/tEMinatoRs-WELC-noah
mhayes2772 May 30, 2024
10108a6
updated settings controller index
connor-addison-h Jun 5, 2024
0e34e38
wrong parenthesis
connor-addison-h Jun 5, 2024
b76d0a3
Update Settings UI
jasonbarba19 Jun 5, 2024
6436e37
Updated Settings UI
jasonbarba19 Jun 5, 2024
7a3aa13
restructuring local storage
connor-addison-h Jun 5, 2024
e78784b
console log
connor-addison-h Jun 5, 2024
5cee9f9
updating everything to the current user
connor-addison-h Jun 6, 2024
25474cd
Settings Form
jasonbarba19 Jun 6, 2024
ebcd443
Merge branch 'tEMinators-I18n' of https://github.com/FEMR/femr into t…
jasonbarba19 Jun 6, 2024
d71085b
updates to the search box
connor-addison-h Jun 6, 2024
6696dfe
Merge branch 'tEMinators-I18n' of https://github.com/FEMR/femr into t…
jasonbarba19 Jun 6, 2024
3f97766
update to search box
connor-addison-h Jun 6, 2024
d81d75d
Merge branch 'tEMinators-I18n' of https://github.com/FEMR/femr into t…
jasonbarba19 Jun 6, 2024
7a71044
l
connor-addison-h Jun 6, 2024
950a794
Merge branch 'tEMinators-I18n' of https://github.com/FEMR/femr into t…
jasonbarba19 Jun 6, 2024
5253f6e
Attempted Changes
jasonbarba19 Jun 6, 2024
d0ab911
Revert "Updated Settings UI"
connor-addison-h Jun 6, 2024
981542e
New users registered from home page start deactivated
SeanHershey Jun 6, 2024
e9ada88
Stash
jasonbarba19 Jun 7, 2024
2c33bc1
removed footer from register new user form
SeanHershey Jun 8, 2024
4483246
Working w/Settings tab - Local Storage
jasonbarba19 Jun 10, 2024
ca59c4b
Merge branch 'tEMinators-I18n' of https://github.com/FEMR/femr into t…
Aiden-Jacobs Jun 10, 2024
722e243
Added translation update id's
Aiden-Jacobs Jun 11, 2024
dd4f2e0
Added translation update id's
Aiden-Jacobs Jun 11, 2024
3833851
Added translations es only
Aiden-Jacobs Jun 11, 2024
bd22fe7
Added missed id
Aiden-Jacobs Jun 11, 2024
8dd1601
getLanguageCode() functonality added
jasonbarba19 Jun 11, 2024
c5c25f4
Merge branch 'tEMinators-I18n' of https://github.com/FEMR/femr into t…
Aiden-Jacobs Jun 11, 2024
1dde28d
Fix
Aiden-Jacobs Jun 11, 2024
52e6d72
Fix
Aiden-Jacobs Jun 11, 2024
0e35f67
Merge branch 'tEMinators-I18n' into tEMinatoRs
Aiden-Jacobs Jun 11, 2024
ca760ef
Update languages.json
hmaziz Jun 11, 2024
f948bc3
fix for always setting english patient encounter set
SeanHershey Jun 11, 2024
b1091dc
Research select Language Fix
Aiden-Jacobs Jun 17, 2024
ce75453
Merge remote-tracking branch 'origin/tEMinatoRs' into tEMinatoRs
Aiden-Jacobs Jun 17, 2024
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
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
apt-get update
apt-get install -y python-pip git
pip install awscli
pip install argostranslate
apt-get clean && apt-get autoclean
- checkout
- restore_cache:
Expand Down Expand Up @@ -52,6 +53,7 @@ jobs:
apt-get update
apt-get install -y python-pip git
pip install awscli
pip install argostranslate
apt-get clean && apt-get autoclean
- checkout
- restore_cache:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/license_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Check for LICENSE File in femr Directory

on:
push:

jobs:
check-license-file:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Check if file exists
run: |
if [ ! -f "./LICENSE" ]; then
echo "File does not exist. Exiting with failure."
exit 1
fi
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,10 @@ util/PhotoMigration.class

#development database
docker-compose.yml

speedtest/__pycache__

#Translation Models and Log
translator/argos_models
translator/marian_models
translator/__pycache__
3 changes: 2 additions & 1 deletion Build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ val appDependencies = Seq(
evolutions,
jodaForms,
guice,
"org.json" % "json" % "20240303",
"mysql" % "mysql-connector-java" % "5.1.49",
"org.mindrot" % "jbcrypt" % "0.3m",
"org.apache.commons" % "commons-collections4" % "4.0",
"org.apache.commons" % "commons-text" % "1.3",
"org.mockito" % "mockito-core" % "3.5.13",
"org.mockito" % "mockito-inline" % "3.5.13",
"com.google.code.gson" % "gson" % "2.3.1",
"com.itextpdf" % "itextpdf" % "5.5.6",
"com.itextpdf.tool" % "xmlworker" % "5.5.6",
Expand Down
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ RUN mkdir -p $PROJECT_HOME/activator $PROJECT_HOME/app
WORKDIR $PROJECT_WORKPLACE/activator

# Install Play Framework
RUN curl -O http://downloads.typesafe.com/typesafe-activator/1.3.6/typesafe-activator-1.3.6.zip
RUN curl -O https://downloads.typesafe.com/typesafe-activator/1.3.6/typesafe-activator-1.3.6.zip

RUN unzip typesafe-activator-1.3.6.zip -d / && rm typesafe-activator-1.3.6.zip && ls && sudo chmod a+x /activator-dist-1.3.6/activator
ENV PATH $PATH:/activator-1.3.6

Expand All @@ -35,11 +36,16 @@ RUN \

# Install sbt
RUN \
curl -L -o sbt-$SBT_VERSION.deb https://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb && \
mkdir /working/ && \
cd /working/ && \
curl -L -o sbt-$SBT_VERSION.deb https://repo.scala-sbt.org/scalasbt/debian/sbt-$SBT_VERSION.deb && \
dpkg -i sbt-$SBT_VERSION.deb && \
rm sbt-$SBT_VERSION.deb && \
apt-get update && \
apt-get install sbt
apt-get install sbt && \
cd && \
rm -r /working/ && \
sbt sbtVersion

# Setup path variables and copy fEMR into container
ENV PATH $PROJECT_HOME/activator/activator-dist-1.3.10/bin:$PATH
Expand Down
26 changes: 19 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# FEMR - Fast Electronic Medical Records
# tEMR - Dynamic Translation for FEMR

![Build Status](https://codebuild.us-east-1.amazonaws.com/badges?uuid=eyJlbmNyeXB0ZWREYXRhIjoiMVBXNWNSMnZsYkgxb05IYS9rclF4eE9QcVdZT1JBNWI1V3RucFd1cXd4ZVEzTzZ5ZWREaEJJRXRDbExyY243eG05VVV4cWVkQXlMelN1bnkxY2dHUUlZPSIsIml2UGFyYW1ldGVyU3BlYyI6IjlCTnI2U0hvU00yNjROQnQiLCJtYXRlcmlhbFNldFNlcmlhbCI6MX0%3D&branch=master)

Expand All @@ -8,15 +8,25 @@

fEMR is a fast EMR solution for remote clinics who depend on speed and ease of use rather than complex features. Check out [Team fEMR's website](https://teamfemr.org) for more information and a live demo.

### tEMR Dynamic Translation

tEMR is working on a dynamic translation service for physicians and healthcare coders who may write and read in different languages but must be on the same page. Our dynamic translation involves neural networks like Argos (OpenNMT) working in the background in python.

### Community
1. [Slack](http://teamfemr.org/slack.html)
2. [JIRA](https://teamfemr.atlassian.net)
3. [Team FEMR](https://teamfemr.org)

### tEMR Community
1. [JIRA](https://platinum.cscaws.com:8443/projects/TEMR/summary)

### Dependencies

* [Play Framework](http://www.playframework.com/)

### Technical Specification
For further specification of tEMR contributions, please see the tEMRTechSpec.pdf file.

### Contributing
For more information on contributing, please see the CONTRIBUTING.md file. For details regarding installation and deployment, continue reading.

Expand Down Expand Up @@ -65,16 +75,17 @@ Email: [email protected]
- `git checkout super-femr`

### Step 3: Setting up the DB
1. Open the MySQL Workbench.
2. Select the db icon to create a new schema and call it `femr_db`.
1. Make sure your MySQL server is running on your machine.
2. Open the MySQL Workbench.
3. Select the db icon to create a new schema and call it `femr_db`.

<details> <summary> screenshot </summary>

![Image](https://github.com/kylene-phillips/femr-installation/blob/gh-pages/images/mysqlworkbench1.png?raw=true)

</details>

3. Under the Administration tab, select `User and Priviliges`. Then `Add account` and add `Login name` and `Password` of your preference. Save the login and password because you will need it in the later steps.
4. Under the Administration tab, select `User and Priviliges`. Then `Add account` and add `Login name` and `Password` of your preference. Save the login and password because you will need it in the later steps.
- For this example, the username is `testing` and password is `password`.

<details> <summary> screenshot </summary>
Expand All @@ -83,7 +94,7 @@ Email: [email protected]

</details>

4. Then go to the `Schema Privileges` tab, select `Add Entry...` for the user you created in the previous step, and select the `femr_db` schema.
5. Then go to the `Schema Privileges` tab, select `Add Entry...` for the user you created in the previous step, and select the `femr_db` schema.

<details> <summary> screenshot </summary>

Expand All @@ -93,7 +104,7 @@ Email: [email protected]

</details>

5. Give all of the rights, except the `GRANT OPTION`.
6. Give all of the rights, except the `GRANT OPTION`.

<details> <summary> screenshot </summary>

Expand All @@ -113,14 +124,15 @@ Email: [email protected]
```
include "application.conf"
settings.researchOnly=0
db.default.url="jdbc:mysql://127.0.0.1:3306/femr_db?characterEncoding=UTF-8"
db.default.url="jdbc:mysql://127.0.0.1:3306/femr_db?characterEncoding=UTF-8&useSSL=false"
db.default.username="testing"
db.default.password="password"
photos.defaultProfilePhoto="./public/img/defaultProfile.png"
csv.path="./Upload/CSV"
```

5. Go to `Run` -> `Edit Configurations` -> click on the `+` sign -> `Play 2 App`.
- If `Play 2 App` doesn't appear, try restarting the IDE.

<details> <summary> screenshot </summary>

Expand Down
2 changes: 2 additions & 0 deletions app/femr/business/helpers/QueryProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,6 @@ public static Query<ResearchEncounterVital> getResearchEncounterVitalQuery() {
public static Query<InternetStatus> getInternetStatusQuery() {
return Ebean.find(InternetStatus.class);
}

public static Query<LanguageCode> getLanguage() {return Ebean.find(LanguageCode.class);}
}
9 changes: 9 additions & 0 deletions app/femr/business/services/core/IUpdatesService.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@

import femr.common.dtos.ServiceResponse;
import femr.data.models.core.IKitStatus;
import femr.data.models.core.ILanguageCode;
import femr.data.models.core.INetworkStatus;
import femr.data.models.core.IDatabaseStatus;

import java.util.ArrayList;
import java.util.List;

public interface IUpdatesService {
Expand Down Expand Up @@ -68,4 +70,11 @@ public interface IUpdatesService {
* @return a list of kit database status.
*/
ServiceResponse<List<? extends IDatabaseStatus>> updateDatabaseStatuses();

ServiceResponse<List<? extends ILanguageCode>> retrieveLanguages();
ServiceResponse<List<? extends ILanguageCode>> initializeLanguages();

ServiceResponse<List<? extends ILanguageCode>> downloadPackages(String langCode);

ServiceResponse<List<? extends ILanguageCode>> updateLanguage(String code, boolean updateScheduled);
}
13 changes: 10 additions & 3 deletions app/femr/business/services/system/EncounterService.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@
*/
package femr.business.services.system;

import femr.business.services.core.ISessionService;
import femr.common.dtos.CurrentUser;
import io.ebean.ExpressionList;
import io.ebean.Query;
import com.google.inject.Inject;
import com.google.inject.name.Named;
import femr.business.helpers.QueryProvider;
import femr.business.services.core.IEncounterService;
import femr.business.services.core.ISessionService;
import femr.common.IItemModelMapper;
import femr.common.dtos.ServiceResponse;
import femr.common.models.*;
Expand All @@ -46,6 +49,7 @@ public class EncounterService implements IEncounterService {
private final IRepository<IChiefComplaint> chiefComplaintRepository;
private final IPatientRepository patientRepository;
private final IEncounterRepository patientEncounterRepository;
private final ISessionService sessionService;
private final IRepository<IPatientEncounterTabField> patientEncounterTabFieldRepository;
private final IRepository<ITabField> tabFieldRepository;
private final IUserRepository userRepository;
Expand All @@ -56,6 +60,7 @@ public class EncounterService implements IEncounterService {
public EncounterService(IRepository<IChiefComplaint> chiefComplaintRepository,
IPatientRepository patientRepository,
IEncounterRepository patientEncounterRepository,
ISessionService sessionService,
IRepository<IPatientEncounterTabField> patientEncounterTabFieldRepository,
IRepository<ITabField> tabFieldRepository,
IUserRepository userRepository,
Expand All @@ -65,6 +70,7 @@ public EncounterService(IRepository<IChiefComplaint> chiefComplaintRepository,
this.chiefComplaintRepository = chiefComplaintRepository;
this.patientRepository = patientRepository;
this.patientEncounterRepository = patientEncounterRepository;
this.sessionService = sessionService;
this.patientEncounterTabFieldRepository = patientEncounterTabFieldRepository;
this.tabFieldRepository = tabFieldRepository;
this.userRepository = userRepository;
Expand All @@ -77,7 +83,7 @@ public EncounterService(IRepository<IChiefComplaint> chiefComplaintRepository,
*/
@Override
public ServiceResponse<PatientEncounterItem> createPatientEncounter(int patientId, int userId, Integer tripId, String ageClassification, List<String> chiefComplaints) {

System.out.println("Create Patient Encounter");
ServiceResponse<PatientEncounterItem> response = new ServiceResponse<>();

try {
Expand All @@ -98,8 +104,9 @@ public ServiceResponse<PatientEncounterItem> createPatientEncounter(int patientI
if (patientAgeClassification != null)
patientAgeClassificationId = patientAgeClassification.getId();

IPatientEncounter newPatientEncounter = patientEncounterRepository.createPatientEncounter(patientId, dateUtils.getCurrentDateTime(), nurseUser.getId(), patientAgeClassificationId, tripId);

CurrentUser currentUserSession = sessionService.retrieveCurrentUserSession();
String languageCode = currentUserSession.getLanguageCode();
IPatientEncounter newPatientEncounter = patientEncounterRepository.createPatientEncounter(patientId, dateUtils.getCurrentDateTime(), nurseUser.getId(), patientAgeClassificationId, tripId, languageCode);
List<IChiefComplaint> chiefComplaintBeans = new ArrayList<>();
Integer chiefComplaintSortOrder = 0;
for (String cc : chiefComplaints) {
Expand Down
6 changes: 4 additions & 2 deletions app/femr/business/services/system/PatientService.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ public ServiceResponse<PatientItem> updatePatientPhoneNumber(int id, String phon
null,
null,
null,
null);
null
);
//Osman

response.setResponseObject(patientItem);
Expand Down Expand Up @@ -304,7 +305,8 @@ public ServiceResponse<PatientItem> updatePatientAddress(int id, String address)
null,
null,
null,
null);
null
);
//Osman
response.setResponseObject(patientItem);
}
Expand Down
3 changes: 2 additions & 1 deletion app/femr/business/services/system/SessionService.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ public void invalidateCurrentUserSession() {
private CurrentUser createCurrentUser(IUser user, Integer tripId) {

long timeout = Long.valueOf(configuration.getString("sessionTimeout")) * 1000 * 60;
return new CurrentUser(user.getId(), user.getFirstName(), user.getLastName(), user.getEmail(), user.getRoles(), tripId, timeout);
return new CurrentUser(user.getId(), user.getFirstName(), user.getLastName(),
user.getEmail(), user.getRoles(), tripId, timeout, user.getLanguageCode());
}
}

Loading
Loading