Skip to content

Commit 2bb608c

Browse files
committed
add fhir swagger ui
1 parent b75f177 commit 2bb608c

File tree

6 files changed

+56213
-11
lines changed

6 files changed

+56213
-11
lines changed

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"files.associations": {
3-
3+
44
"Dockerfile*": "dockerfile",
55
"iris.script": "objectscript"
66
},
@@ -16,7 +16,7 @@
1616
"links": {
1717
"FHIR UI Portal": "http://localhost:${port}/fhir/portal/patientlist.html",
1818
"FHIR UI Demo": "http://localhost:${port}/fhirUI/FHIRAppDemo.html",
19-
"FHIR server test": "http://localhost:${port}/fhir/r4/metadata"
19+
"FHIR Swagger": "http://localhost:${port}/swagger-ui/index.html"
2020
}
2121
},
2222
"sqltools.connections": [

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ RUN --mount=type=bind,src=.,dst=. \
1111
iris session IRIS < iris.script && \
1212
iris stop IRIS quietly
1313

14+
15+
RUN old=http://localhost:52773/crud/_spec && \
16+
new=/fhirUI/irisfhir_swagger.json && \
17+
sed -i "s|$old|$new|g" /usr/irissys/csp/swagger-ui/index.html
18+
1419
FROM $IMAGE as final
1520

1621
ADD --chown=${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} https://github.com/grongierisc/iris-docker-multi-stage-script/releases/latest/download/copy-data.py /irisdev/app/copy-data.py

dev.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ docker system prune -f
66

77
## build container with no cache
88
```
9-
docker-compose build --no-cache
9+
docker compose build --no-cache --progress=plain
1010
```
1111

1212
## start container
1313
```
14-
docker-compose up -d
14+
docker compose up -d
1515
```
1616

1717
## open terminal to docker
1818
```
19-
docker-compose exec iris iris session iris -U FHIRServer
19+
docker compose exec iris iris session iris -U FHIRServer
2020
```
2121

2222
## FHIR Namespace setup
@@ -41,3 +41,6 @@ set ^%ISCLOG=3
4141
4242
4343
44+
http://localhost:32783/fhirUI/irisfhir.json
45+
http://localhost:32783/fhirUI/irisfhir_swagger.json
46+

docker-compose.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
version: '3.6'
1+
22
services:
33
iris:
4-
build:
4+
build:
55
context: .
66
dockerfile: Dockerfile
77
restart: always
88
hostname: fhir-template
99
container_name: fhir-template
1010
# command: --check-caps false
11-
ports:
11+
ports:
1212
- 32782:1972
1313
- 32783:52773
1414
- 32784:53773
15-
command:
15+
command:
1616
- -a
1717
- iris session iris -U%SYS '##class(Security.Users).UnExpireUserPasswords("*")'
1818
- --check-caps false
1919
volumes:
2020
- ./data:/data
21+
- ./fhirUI:/usr/irissys/csp/fhirUI
2122
- ./:/home/irisowner/irisdev

0 commit comments

Comments
 (0)