Skip to content

Commit dffdbff

Browse files
authored
Merge pull request #19 from mcode/dev
Dev
2 parents 55e31fc + 329d873 commit dffdbff

File tree

16 files changed

+676
-5
lines changed

16 files changed

+676
-5
lines changed

.docker-sync/daemon.log

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
objc[62277]: +[NSPlaceholderMutableString initialize] may have been in progress in another thread when fork() was called.
2+
objc[62277]: +[NSPlaceholderMutableString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
3+
objc[71443]: +[NSPlaceholderMutableString initialize] may have been in progress in another thread when fork() was called.
4+
objc[71443]: +[NSPlaceholderMutableString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.

.docker-sync/daemon.pid

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
71443

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
VSAC_API_KEY=#Replace_me_with_your_api_key
1+
VSAC_API_KEY=f6486e93-5f75-481c-a5c1-b6395d7a217d
22
COMPOSE_PROJECT_NAME=rems_demo

.github/workflows/playwright.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Playwright Tests
2+
on:
3+
push:
4+
branches: [ main, master ]
5+
pull_request:
6+
branches: [ main, master ]
7+
jobs:
8+
test:
9+
# timeout-minutes: 60
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 18
16+
- name: Install dependencies
17+
run: npm ci
18+
- name: Install Playwright Browsers
19+
run: npx playwright install --with-deps
20+
# - name: Run Playwright tests
21+
# run: npx playwright test
22+
# - uses: actions/upload-artifact@v3
23+
# if: always()
24+
# with:
25+
# name: playwright-report
26+
# path: playwright-report/
27+
# retention-days: 30

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
.env
22
.env.local
3-
3+
/playwright-report/
4+
/playwright/.cache/
5+
/test-results/
6+
node_modules/

EnvironmentVariables.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,14 @@
6868
- `REACT_APP_PHARMACY_SERVER_BASE`: `http://localhost:5051`
6969
- `REACT_APP_ETASU_STATUS_ENABLED`: `true`
7070
- `REACT_APP_PHARMACY_STATUS_ENABLED`: `true`
71+
- `REACT_APP_SEND_RX_ENABLED` = `true`
72+
- `REACT_APP_SEND_FHIR_AUTH_ENABLED` = `false`
7173
- `PORT`: `4040`
74+
- `REACT_APP_CLIENT_ID`: `app-login`
75+
- `REACT_APP_CLIENT_SCOPES`: `launch openid profile user/Patient.read patient/Patient.read user/Practitioner.read`
76+
- `REACT_APP_DEVELOPER_MODE`: `true`
77+
- `GENERATE_SOURCEMAP`: `false`
78+
- `BROWSER`: `none`
7279

7380
- mcode/test-ehr
7481
- src/main/resources/application.yml
@@ -151,6 +158,7 @@
151158
- `REACT_APP_PUBLIC_KEYS`
152159
- src/util/data.js
153160
- `REACT_APP_EHR_SERVER`
161+
- `REACT_APP_EHR_SERVER_TO_BE_SENT_TO_REMS_ADMIN_FOR_PREFETCH`
154162
- `REACT_APP_CDS_SERVICE`
155163
- `REACT_APP_ORDER_SELECT`
156164
- `REACT_APP_ORDER_SIGN`
@@ -188,7 +196,14 @@
188196
- mcode/rems-smart-on-fhir
189197
- src/views/Patient/MedReqDropDown/MedReqDropDown.tsx
190198
- `REACT_APP_REMS_ADMIN_SERVER_BASE`
199+
- `REACT_APP_SEND_RX_ENABLED`
200+
- `REACT_APP_SEND_FHIR_AUTH_ENABLED`
191201
- src/views/Patient/MedReqDropDown/etasuStatus/EtasuStatus.tsx
192202
- `REACT_APP_REMS_ADMIN_SERVER_BASE`
193203
- src/views/Patient/MedReqDropDown/pharmacyStatus/PharmacyStatus.tsx
194204
- `REACT_APP_REMS_ADMIN_SERVER_BASE`
205+
- src/index.tsx
206+
- `REACT_APP_CLIENT_ID`
207+
- `REACT_APP_CLIENT_SCOPES`
208+
- src/views/Questionnaire/SmartApp.tsx
209+
- `REACT_APP_DEVELOPER_MODE`

REMS.code-workspace

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,14 @@
107107
"debug.onTaskErrors": "debugAnyway",
108108
"cSpell.words": [
109109
"BUILDKIT",
110+
"Codeable",
110111
"davinci",
112+
"deidentify",
111113
"DRLS",
112114
"drlsroot",
113115
"ehrserver",
114116
"ETASU",
117+
"glyphicon",
115118
"INITDB",
116119
"Keycloak",
117120
"mcode",
@@ -130,7 +133,8 @@
130133
"mitre-health.vscode-language-fsh",
131134
"redhat.java",
132135
"mongodb.mongodb-vscode",
133-
"VisualStudioExptTeam.vscodeintellicode"
136+
"VisualStudioExptTeam.vscodeintellicode",
137+
"streetsidesoftware.code-spell-checker"
134138
]
135139
},
136140

docker-compose-dev.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ services:
5353
dockerfile: Dockerfile.dev
5454
container_name: rems_dev_request-generator
5555
environment:
56-
- REACT_APP_REMS_CONFIG=true
56+
- REACT_APP_EHR_SERVER_TO_BE_SENT_TO_REMS_ADMIN_FOR_PREFETCH=http://host.docker.internal:8080/test-ehr/r4
5757
ports:
5858
- "3000:3000"
5959
- "3001:3001"
@@ -63,6 +63,8 @@ services:
6363
- rems_dev_request-generator-databaseData:/home/node/app/request-generator/databaseData
6464
- rems_dev_request-generator-build:/home/node/app/request-generator/build
6565
- rems_dev_request-generator-logs:/home/node/app/request-generator/logs
66+
extra_hosts:
67+
- "host.docker.internal:host-gateway"
6668

6769
rems-smart-on-fhir:
6870
build:

docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ services:
2929
image: codexrems/request-generator:REMSvCurrent
3030
container_name: rems_prod_request-generator
3131
environment:
32-
- REACT_APP_REMS_CONFIG=true
32+
- REACT_APP_EHR_SERVER_TO_BE_SENT_TO_REMS_ADMIN_FOR_PREFETCH=http://host.docker.internal:8080/test-ehr/r4
3333
ports: # Port binding to host from docker container
3434
- "3000:3000" # Bind port 3000 of host to 3000 of container
3535
- "3001:3001"
36+
extra_hosts:
37+
- "host.docker.internal:host-gateway"
3638

3739
# Create rems-smart-on-fhir container
3840
rems-smart-on-fhir:

package-lock.json

Lines changed: 93 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)