From c3c1b3f315810331571d6a48e96d51c6442f8b5f Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Thu, 27 Jan 2022 09:57:57 -0500 Subject: [PATCH 1/4] set up guide updates --- DockerDevSetupGuideForMacOS.md | 28 ++++++++++++++------------ DockerProdSetupGuideForMacOS.md | 35 ++++++++++++++++----------------- 2 files changed, 32 insertions(+), 31 deletions(-) diff --git a/DockerDevSetupGuideForMacOS.md b/DockerDevSetupGuideForMacOS.md index ff563381..e28bed48 100644 --- a/DockerDevSetupGuideForMacOS.md +++ b/DockerDevSetupGuideForMacOS.md @@ -287,19 +287,21 @@ Reference: https://docker-sync.readthedocs.io/en/latest/getting-started/commands 1. Go to http://localhost:3000/ehr-server/reqgen. 2. Click **Patient Select** button in upper left. -3. Find **William Oster** in the list of patients and click the dropdown menu next to his name. -4. Select **E0470** in the dropdown menu. -5. Click anywhere in the row for William Oster. -6. Click **Submit** at the bottom of the page. -7. After several seconds you should receive a response in the form of two **CDS cards**: - - **Respiratory Assist Device** - - **Positive Airway Pressure Device** -8. Select **Order Form** on one of those CDS cards. -9. If you are asked for login credentials, use **alice** for username and **alice** for password. -10. A webpage should open in a new tab, and after a few seconds, a questionnaire should appear. -11. Fill out questionnaire and hit next - -13. Submit PAS request to https://davinci-prior-auth.logicahealth.org/fhir +3. Find **Jon Snow** in the list of patients and click the dropdown menu next to his name. +4. Select **2183126 - Turalio 200 MG Oral Capsule** in the dropdown menu. +5. Click anywhere in the row to select Jon Snow. +6. After several seconds you should receive a response in the form of a **CDS card**: + - **Turalio 200 MG Oral Capsule has REMS** +7. Click **Submit** at the bottom of the page. +8. After several seconds you should receive a response in the form of a **CDS card**: + - **Drug Has REMS: Documentation Required.** +9. Select **Patient Enrollment Form** on the returned CDS card. +10. If you are asked for login credentials, use **alice** for username and **alice** for password. +11. A webpage should open in a new tab, and after a few seconds, a questionnaire should appear. +12. Fill out questionnaire and hit **Proceed to Prior Auth** + +14. Submit PAS request to https://davinci-prior-auth.logicahealth.org/fhir with **OAuth** enabled +15. Subscribe to updates using **WebSockets** or another option Congratulations! DRLS is fully installed and ready for you to use! diff --git a/DockerProdSetupGuideForMacOS.md b/DockerProdSetupGuideForMacOS.md index 34f28d00..9b400b34 100644 --- a/DockerProdSetupGuideForMacOS.md +++ b/DockerProdSetupGuideForMacOS.md @@ -223,21 +223,20 @@ Note: The project will keep running in the background when you "ctrl + c" out of 1. Go to http://localhost:3000/ehr-server/reqgen. 2. Click **Patient Select** button in upper left. -3. Find **William Oster** in the list of patients and click the dropdown menu next to his name. -4. Select **E0470** in the dropdown menu. -5. Click anywhere in the row for William Oster. -6. Click **Submit** at the bottom of the page. -7. After several seconds you should receive a response in the form of two **CDS cards**: - - **Respiratory Assist Device** - - **Positive Airway Pressure Device** -8. Select **Order Form** on one of those CDS cards. -9. If you are asked for login credentials, use **alice** for username and **alice** for password. -10. A webpage should open in a new tab, and after a few seconds, a questionnaire should appear. -11. Fill out questionnaire and hit next - -13. Submit PAS request to https://davinci-prior-auth.logicahealth.org/fhir - -Congratulations! DRLS is fully installed and ready for you to use! - -## Troubleshooting docker-sync -Reference: https://docker-sync.readthedocs.io/en/latest/troubleshooting/sync-stopping.html +3. Find **Jon Snow** in the list of patients and click the dropdown menu next to his name. +4. Select **2183126 - Turalio 200 MG Oral Capsule** in the dropdown menu. +5. Click anywhere in the row to select Jon Snow. +6. After several seconds you should receive a response in the form of a **CDS card**: + - **Turalio 200 MG Oral Capsule has REMS** +7. Click **Submit** at the bottom of the page. +8. After several seconds you should receive a response in the form of a **CDS card**: + - **Drug Has REMS: Documentation Required.** +9. Select **Patient Enrollment Form** on the returned CDS card. +10. If you are asked for login credentials, use **alice** for username and **alice** for password. +11. A webpage should open in a new tab, and after a few seconds, a questionnaire should appear. +12. Fill out questionnaire and hit **Proceed to Prior Auth** + +14. Submit PAS request to https://davinci-prior-auth.logicahealth.org/fhir with **OAuth** enabled +15. Subscribe to updates using **WebSockets** or another option + +Congratulations! DRLS is fully installed and ready for you to use! \ No newline at end of file From 3ae3a0a1bc07ae0a457ca97bf0ebd337c8a64fa5 Mon Sep 17 00:00:00 2001 From: Sahil Malhotra <88040167+smalho01@users.noreply.github.com> Date: Thu, 27 Jan 2022 12:35:45 -0500 Subject: [PATCH 2/4] Delete .env --- .env | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 .env diff --git a/.env b/.env deleted file mode 100644 index 98b368c9..00000000 --- a/.env +++ /dev/null @@ -1,2 +0,0 @@ -VSAC_API_KEY=#Replace_me_with_your_api_key -COMPOSE_PROJECT_NAME=rems_dev From 91f900e46ca1e60537c5040394ee7a533c60875f Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Thu, 27 Jan 2022 12:39:17 -0500 Subject: [PATCH 3/4] updates --- .env.example | 3 +++ docker-compose-porter.yml | 14 +++++++------- porter.yaml | 37 ++++++++++++++++++++++++++++++++++++- 3 files changed, 46 insertions(+), 8 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 00000000..8bbd9c03 --- /dev/null +++ b/.env.example @@ -0,0 +1,3 @@ +VSAC_API_KEY=#Replace_me_with_your_api_key +COMPOSE_PROJECT_NAME=rems_dev +PORTER_ALLOW_DOCKER_HOST_ACCESS=true \ No newline at end of file diff --git a/docker-compose-porter.yml b/docker-compose-porter.yml index f679c054..cbdd8d41 100644 --- a/docker-compose-porter.yml +++ b/docker-compose-porter.yml @@ -13,21 +13,21 @@ services: volumes: - keycloak-data:/opt/jboss/keycloak/standalone/data/ # - './resources/ClientFhirServerRealm.json:/resources/ClientFhirServerRealm.json' - image: codexrems/keycloak + image: codexrems/keycloak:REMSv0.1 # Create test-ehr container test-ehr: # Name of our service container_name: rems_porter_test-ehr ports: # Port binding to host from docker container - '8080:8080' # Bind port 3000 of host to 3000 of container - image: codexrems/test-ehr + image: codexrems/test-ehr:REMSv0.1 environment: - DOCKER_DEV_PROFILE=true # Create crd container crd: # Name of our service - image: codexrems/crd + image: codexrems/crd:REMSv0.1 container_name: rems_porter_crd ports: # Port binding to host from docker container - "8090:8090" # Bind port 3000 of host to 3000 of container @@ -37,7 +37,7 @@ services: # Create crd request generator container crd-request-generator: # Name of our service - image: codexrems/crd-request-generator + image: codexrems/crd-request-generator:REMSv0.1 container_name: rems_porter_crd-request-generator environment: - REACT_APP_REMS_CONFIG=true @@ -48,20 +48,20 @@ services: # Create dtr container dtr: # Name of our service - image: codexrems/dtr + image: codexrems/dtr:REMSv0.1 container_name: rems_porter_dtr ports: # Port binding to host from docker container - "3005:3005" # Bind port 3000 of host to 3000 of container # # Create rems container rems: # Name of our service - image: codexrems/rems + image: codexrems/rems:REMSv0.1 container_name: rems_porter_rems ports: # Port binding to host from docker container - "9015:9015" # Bind port 3000 of host to 3000 of container pharmacy-information-system: # Name of our service - image: codexrems/pharmacy-information-system + image: codexrems/pharmacy-information-system:REMSv0.1 container_name: rems_porter_pharmacy-information-system environment: - PORT=3010 diff --git a/porter.yaml b/porter.yaml index 213700bd..812bd425 100644 --- a/porter.yaml +++ b/porter.yaml @@ -26,16 +26,42 @@ build: install: - docker-compose: - description: Docker Compose up + description: docker-compose up arguments: - -f - docker-compose-porter.yml - up + + +upgrade: + - docker-compose: + description: docker-compose pull + arguments: + - -f + - docker-compose-porter.yml + - pull + - docker-compose: + description: docker-compose build + arguments: + - -f + - docker-compose-porter.yml + - build + - --pull + - --no-cache + - docker-compose: + description: docker-compose up + arguments: + - -f + - docker-compose-porter.yml + - up + - --force-recreate ps: - docker-compose: description: Docker Compose ps arguments: + - -f + - docker-compose-porter.yml - ps uninstall: @@ -46,3 +72,12 @@ uninstall: - docker-compose-porter.yml - down - --remove-orphans + +customActions: +stop: + - docker-compose: + description: Stop Running Application Images + arguments: + - -f + - docker-compose-porter.yml + - stop \ No newline at end of file From 18ab7ab78585da2efaa49fa9c0eee432159726d1 Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Thu, 27 Jan 2022 12:39:27 -0500 Subject: [PATCH 4/4] release updates --- .dockerignore | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 7b85d678..00000000 --- a/.dockerignore +++ /dev/null @@ -1,5 +0,0 @@ -# See https://docs.docker.com/engine/reference/builder/#dockerignore-file -# Put files here that you don't want copied into your bundle's invocation image -.gitignore -Dockerfile.tmpl -.docker-sync/ \ No newline at end of file