Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit 2d17db8

Browse files
committed
fhir-bridge as CRR fhir server, option for blaze as DIC fhir server
1 parent 71c6b35 commit 2d17db8

3 files changed

Lines changed: 105 additions & 64 deletions

File tree

codex-processes-ap1-docker-test-setup/README.md

Lines changed: 46 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,18 @@ Add entries to your hosts file
1515

1616
*Start docker-compose commands from sub-folder:* `codex-processes-ap1/codex-processes-ap1-docker-test-setup`
1717

18-
Console 1: Start DIC HAPI FHIR Server
18+
Console 1: Start DIC HAPI FHIR Server or DIC blaze FHIR Server
1919
```sh
20-
docker-compose up dic-fhir-store
20+
docker-compose up dic-fhir-store-hapi
21+
docker-compose up dic-fhir-store-blaze
2122
```
22-
Access at http://localhost:8003/
23+
Access at http://localhost:8080/fhir/
2324

24-
Console 2: Start CRR HAPI FHIR Server
25+
Console 2: Start CRR fhir-bridge Server
2526
```sh
26-
docker-compose up crr-fhir-store
27+
docker-compose up crr-fhir-bridge
2728
```
28-
Access at http://localhost:8005/
29+
Access at http://localhost:8888/fhir-bridge/fhir/
2930

3031
Console 3: Start DIC DSF FHIR Server and wait till startet
3132
```sh
@@ -57,11 +58,40 @@ Console 5: Start CRR DSF BPE Server
5758
docker-compose up -d crr-bpe-app crr-bpe-db && docker-compose logs -f crr-fhir-app crr-bpe-app
5859
````
5960
60-
Webbrowser at http://localhost:8003/: Add Demo Data to DIC HAPI FHIR Server via Transaction-Bundle at
61-
[dic_fhir_store_demo_psn.json](../codex-process-data-transfer/src/test/resources/fhir/Bundle/dic_fhir_store_demo_psn.json) or
62-
[dic_fhir_store_demo_bf.json](../codex-process-data-transfer/src/test/resources/fhir/Bundle/dic_fhir_store_demo_bf.json)
61+
<!--
62+
Webbrowser at http://localhost:8080/fhir/: Add Demo Data to DIC HAPI FHIR Server via Transaction-Bundle at
63+
[dic_fhir_store_demo_psn_create.json](../codex-process-data-transfer/src/test/resources/fhir/Bundle/dic_fhir_store_demo_psn_create.json) or
64+
[dic_fhir_store_demo_bf_create.json](../codex-process-data-transfer/src/test/resources/fhir/Bundle/dic_fhir_store_demo_bf_create.json)
65+
-->
66+
67+
*Start curl commands from root-folder:* `codex-processes-ap1`
68+
69+
Console 6: Execute Demo Transaction-Bundle for HAPI
70+
```sh
71+
curl -H "Accept: application/xml+fhir" -H "Content-Type: application/fhir+json" \
72+
-d @codex-process-data-transfer/src/test/resources/fhir/Bundle/dic_fhir_store_demo_psn.json \
73+
http://localhost:8080/fhir
74+
```
75+
or
76+
```sh
77+
curl -H "Accept: application/xml+fhir" -H "Content-Type: application/fhir+json" \
78+
-d @codex-process-data-transfer/src/test/resources/fhir/Bundle/dic_fhir_store_demo_bf.json \
79+
http://localhost:8080/fhir
80+
```
81+
82+
Console 6: Execute Demo Transaction-Bundle for blaze
83+
```sh
84+
curl -H "Accept: application/xml+fhir" -H "Content-Type: application/fhir+json" \
85+
-d @codex-process-data-transfer/src/test/resources/fhir/Bundle/dic_fhir_store_demo_psn_create.json \
86+
http://localhost:8080/fhir
87+
```
88+
or
89+
```sh
90+
curl -H "Accept: application/xml+fhir" -H "Content-Type: application/fhir+json" \
91+
-d @codex-process-data-transfer/src/test/resources/fhir/Bundle/dic_fhir_store_demo_bf_create.json \
92+
http://localhost:8080/fhir
93+
```
6394
64-
*Start curl command from root-folder:* `codex-processes-ap1`
6595
6696
Console 6: Start Data Trigger Process at DIC using the following command
6797
```sh
@@ -73,7 +103,12 @@ curl -H "Accept: application/xml+fhir" -H "Content-Type: application/fhir+xml" \
73103
https://dic/fhir/Task
74104
```
75105
76-
Webbrowser at http://localhost:8005/: Check data transfered CRR HAPI FHIR Server
106+
Console 6: Check data transfered to CRR fhir-bridge
107+
````sh
108+
curl http://localhost:8888/fhir-bridge/fhir/Patient
109+
curl http://localhost:8888/fhir-bridge/fhir/Condition
110+
curl http://localhost:8888/fhir-bridge/fhir/Observation
111+
```
77112
78113
Console X: Stop everything
79114
```sh

codex-processes-ap1-docker-test-setup/crr/bpe/app/conf/config.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ org.highmed.dsf.bpe.process.excluded=dataTrigger/0.3.3,dataSend/0.3.3,dataTransl
6262
#org.highmed.dsf.bpe.process_plugin_directroy=process
6363

6464
de.netzwerk_universitaetsmedizin.codex.crr.privateKey=conf/crr_private-key.pem
65-
de.netzwerk_universitaetsmedizin.codex.fhir.serverBase=http://crr-fhir-store:8080/fhir
65+
de.netzwerk_universitaetsmedizin.codex.fhir.serverBase=http://crr-fhir-bridge:8888/fhir-bridge/fhir

codex-processes-ap1-docker-test-setup/docker-compose.yml

Lines changed: 58 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ services:
109109
depends_on:
110110
- dic-bpe-db
111111
- dic-fhir-proxy
112-
- dic-fhir-store
112+
# - dic-fhir-store not defining a dependency here, dic-fhir-store* needs to be started manually
113113
dic-bpe-db:
114114
image: postgres:13
115115
restart: on-failure
@@ -130,15 +130,27 @@ services:
130130
target: /var/lib/postgresql/data
131131
secrets:
132132
- dic-bpe-postgres_password
133-
dic-fhir-store:
133+
dic-fhir-store-hapi:
134134
build: ./dic/hapi
135135
restart: on-failure
136136
ports:
137-
- 127.0.0.1:8003:8080
137+
- 127.0.0.1:8080:8080
138138
environment:
139139
TZ: Europe/Berlin
140140
networks:
141-
- dic-bpe-backend
141+
dic-bpe-backend:
142+
aliases:
143+
- dic-fhir-store
144+
dic-fhir-store-blaze:
145+
image: ghcr.io/num-codex/blaze
146+
ports:
147+
- 127.0.0.1:8080:8080
148+
environment:
149+
TZ: Europe/Berlin
150+
networks:
151+
dic-bpe-backend:
152+
aliases:
153+
- dic-fhir-store
142154

143155

144156
gth-fhir-proxy:
@@ -349,8 +361,7 @@ services:
349361
depends_on:
350362
- crr-bpe-db
351363
- crr-fhir-proxy
352-
- crr-fhir-store
353-
# - crr-fhir-bridge
364+
# - crr-fhir-bridge not defining a dependency here, crr-fhir-bridge* needs to be started manually
354365
crr-bpe-db:
355366
image: postgres:13
356367
restart: on-failure
@@ -371,55 +382,50 @@ services:
371382
target: /var/lib/postgresql/data
372383
secrets:
373384
- crr-bpe-postgres_password
374-
crr-fhir-store:
375-
build: ./crr/hapi
376-
restart: on-failure
377-
ports:
378-
- 127.0.0.1:8005:8080
385+
crr-ehrbase-db:
386+
image: ehrbase/ehrbase-postgres:latest
387+
networks:
388+
- crr-ehrbase-network
389+
environment:
390+
POSTGRES_USER: postgres
391+
POSTGRES_PASSWORD: postgres
392+
EHRBASE_USER: ehrbase
393+
EHRBASE_PASSWORD: ehrbase
394+
TZ: Europe/Berlin
395+
crr-ehrbase:
396+
image: ehrbase/ehrbase:next
397+
networks:
398+
- crr-ehrbase-network
379399
environment:
400+
DB_URL: jdbc:postgresql://crr-ehrbase-db:5432/ehrbase
401+
DB_USER: ehrbase
402+
DB_PASS: ehrbase
403+
SECURITY_AUTHTYPE: BASIC
404+
SECURITY_AUTHUSER: myuser
405+
SECURITY_AUTHPASSWORD: myPassword432
406+
SECURITY_AUTHADMINUSER: myadmin
407+
SECURITY_AUTHADMINPASSWORD: mySuperAwesomePassword123
408+
SYSTEM_NAME: local.ehrbase.org
409+
ADMIN_API_ACTIVE: 'true'
380410
TZ: Europe/Berlin
411+
depends_on:
412+
- crr-ehrbase-db
413+
crr-fhir-bridge:
414+
image: ehrbase/fhir-bridge:next
415+
ports:
416+
- 127.0.0.1:8888:8888
417+
- 127.0.0.1:5006:5006
381418
networks:
419+
- crr-ehrbase-network
382420
- crr-bpe-backend
383-
# crr-ehrbase-db:
384-
# image: ehrbase/ehrbase-postgres:latest
385-
# networks:
386-
# - crr-ehrbase-network
387-
# environment:
388-
# POSTGRES_USER: postgres
389-
# POSTGRES_PASSWORD: postgres
390-
# EHRBASE_USER: ehrbase
391-
# EHRBASE_PASSWORD: ehrbase
392-
# crr-ehrbase:
393-
# image: ehrbase/ehrbase:next
394-
# networks:
395-
# - crr-ehrbase-network
396-
# environment:
397-
# DB_URL: jdbc:postgresql://crr-ehrbase-db:5432/ehrbase
398-
# DB_USER: ehrbase
399-
# DB_PASS: ehrbase
400-
# SECURITY_AUTHTYPE: BASIC
401-
# SECURITY_AUTHUSER: myuser
402-
# SECURITY_AUTHPASSWORD: myPassword432
403-
# SECURITY_AUTHADMINUSER: myadmin
404-
# SECURITY_AUTHADMINPASSWORD: mySuperAwesomePassword123
405-
# SYSTEM_NAME: local.ehrbase.org
406-
# ADMIN_API_ACTIVE: 'true'
407-
# depends_on:
408-
# - crr-ehrbase-db
409-
# crr-fhir-bridge:
410-
# image: ehrbase/fhir-bridge
411-
# ports:
412-
# - 127.0.0.1:8888:8888
413-
# - 127.0.0.1:5006:5006
414-
# networks:
415-
# - crr-ehrbase-network
416-
# - crr-bpe-backend
417-
# environment:
418-
# FHIR_BRIDGE_EHRBASE_BASE_URL: http://crr-ehrbase:8080/ehrbase/rest/openehr/v1/
419-
## SPRING_PROFILES_ACTIVE: dev
420-
# JAVA_TOOL_OPTIONS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5006
421-
# depends_on:
422-
# - crr-ehrbase
421+
environment:
422+
FHIR_BRIDGE_EHRBASE_BASE_URL: http://crr-ehrbase:8080/ehrbase/rest/openehr/v1/
423+
FHIR_BRIDGE_FHIR_VALIDATION_OPTIONAL_IDENTIFIER: 'true'
424+
TZ: Europe/Berlin
425+
# SPRING_PROFILES_ACTIVE: dev
426+
JAVA_TOOL_OPTIONS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5006
427+
depends_on:
428+
- crr-ehrbase
423429

424430

425431
secrets:
@@ -457,7 +463,7 @@ networks:
457463
crr-fhir-backend:
458464
crr-bpe-frontend:
459465
crr-bpe-backend:
460-
# crr-ehrbase-network:
466+
crr-ehrbase-network:
461467

462468

463469
volumes:

0 commit comments

Comments
 (0)