Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[FEMR-117] Prevented users from entering conflicting age information
about a patient [FEMR-280] Added specific message when age and age group are conflicting [FEMR-71] Allowed entering only 1 value for height to save a patient [FEMR-21] Enhanced height input to convert large inch/cm values to feet/m [FEMR-360] Added range values to vital validation, showing errors when out of range values were entered Added files to support manual deployment with AWS CodeBuild and ElasticBeanstalk
- Loading branch information
Showing
27 changed files
with
468 additions
and
209 deletions.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
## `dist` Folder | ||
- manually put in S3 for now, maybe track in a repo later | ||
- mirror femr defaults, but configurable via ENV vars | ||
- Folder Structure | ||
- `public/img/defaultProfile.png` | ||
- `Uploads/CSV` | ||
- `Procfile` - tells EB how to run the app | ||
- `web: ./bin/femr -Dhttp.port=5000 -Dconfig.file=conf/demo.conf` | ||
|
||
|
||
## Code Pipeline Setup | ||
- Code Build | ||
- buildspec.yml: what does it do | ||
- Setup environment | ||
- run tests | ||
- run build | ||
- package build artifacts | ||
- start EB deployment | ||
- How to setup initially | ||
- manually add buildsepc: `ci/aws/buildspec.yml` | ||
- Secondary Sources: `DistFolder` name in setup matters? | ||
- Approval Step | ||
|
||
## Elastic Beanstalk Setup | ||
- How the deployment works, what tasks are performed | ||
- How to setup in EB initially | ||
|
||
|
||
## TODO | ||
- run this whole thing with code files and remove manual setups |
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,20 @@ | ||
version: 0.2 | ||
|
||
phases: | ||
install: | ||
runtime-versions: | ||
java: openjdk8 | ||
pre_build: | ||
commands: | ||
- sbt test | ||
build: | ||
commands: | ||
- sbt clean compile dist | ||
post_build: | ||
commands: | ||
- unzip $CODEBUILD_SRC_DIR/target/universal/femr-*.zip -d $CODEBUILD_SRC_DIR | ||
- cp -R $CODEBUILD_SRC_DIR_DistFolder/dist/* $CODEBUILD_SRC_DIR/femr-* | ||
- cd $CODEBUILD_SRC_DIR/femr-* && mkdir -p Upload/CSV | ||
artifacts: | ||
files: | ||
- femr-*/**/* |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,24 @@ | ||
include "application.conf" | ||
|
||
# Should be set to the EB hostname | ||
#play.filters.hosts { | ||
# allowed = ["localhost:5000", "127.0.0.1:5000", "femr-demo.us-east-1.elasticbeanstalk.com"] | ||
#} | ||
|
||
default.admin.username=${?DEFAULT_ADMIN_USERNAME} | ||
default.admin.password=${?DEFAULT_ADMIN_PASSWORD} | ||
|
||
default.superuser.username=${?DEFAULT_SUPERUSER_USERNAME} | ||
default.superuser.password=${?DEFAULT_SUPERUSER_PASSWORD} | ||
play.http.secret.key=${?PLAY_HTTP_SECRET_KEY} | ||
|
||
db.default.url=${?DB_DEFAULT_URL} | ||
db.default.username=${?DB_DEFAULT_USERNAME} | ||
db.default.password=${?DB_DEFAULT_PASSWORD} | ||
|
||
# If needed, but EB will default to application.conf values | ||
photos.useDbStorage=${?PHOTOS_USE_DB_STORAGE} | ||
photos.path=${?PHOTOS_PATH} | ||
photos.encounterPath=${?PHOTOS_ENCOUNTER_PATH} | ||
photos.defaultProfilePhoto=${?DEFAULT_PROFILE_PHOTO} | ||
csv.path=${?CSV_PATH} |
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.