-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Icd10 gm docker #12
Open
DavidCroftDKFZ
wants to merge
9
commits into
main
Choose a base branch
from
icd10-gm-docker
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Icd10 gm docker #12
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
55ae0d0
Bump Dev Version
alexanderkiel 10aea11
Add Health Check
TasDeniz 8b1ef7f
Merge pull request #14 from samply/feature/defaultCheck
alexanderkiel 9f9f780
Helpful additions for admins of an ICD10 dictionary service
5daa335
Documented the new functionality
ec41212
Minor corrections to documentation
6bbac9d
Improved documentation
DavidCroftDKFZ 7d12794
Further corrections to documentation
36cfee2
Curl not needed
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM maven:3.8.1-openjdk-11 AS build | ||
|
||
RUN mkdir -p /workingdir | ||
WORKDIR /workingdir | ||
|
||
RUN apt update -y && apt install -y git | ||
|
||
# Clone fhir-claml repo | ||
# Build the JAR file for fhir-claml | ||
RUN git clone https://github.com/aehrc/fhir-claml.git && cd fhir-claml && mvn clean && mvn install | ||
|
||
FROM openjdk:11-jdk-slim AS convert | ||
|
||
RUN mkdir -p /workingdir | ||
WORKDIR /workingdir | ||
|
||
RUN apt update -y && apt install -y zip unzip | ||
|
||
COPY --from=build /workingdir/fhir-claml/target/*.jar /workingdir | ||
COPY run-fhir-claml-in-container.sh /workingdir/run-fhir-claml-in-container.sh | ||
RUN chmod a+rx /workingdir/run-fhir-claml-in-container.sh | ||
|
||
RUN ls -la /workingdir | ||
|
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,22 @@ | ||
Convert CLAML to FHIR | ||
--------------------- | ||
|
||
ICD10 dictionaries can be downloaded from: | ||
|
||
https://www.dimdi.de/dynamic/de/klassifikationen/downloads/ | ||
|
||
in CLAML format. However, the ICD10 chooser requires data in FHIR format. | ||
|
||
This directory contains everything you need to do the conversion in one | ||
step, using the fhir-claml.sh script like this: | ||
|
||
sh fhir-claml.sh CLAML-format-dictionary.zip > FHIR-format-dictionary.json | ||
|
||
Files | ||
----- | ||
|
||
Dockerfile Builds conversion image | ||
fhir-claml.sh Runs conversion, using container | ||
run-fhir-claml-in-container.sh Conversion script that runs inside container | ||
*.zip Input to conversion script | ||
*.json Output from conversion script |
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,3 @@ | ||
ICD10GM_ZIP=$1 | ||
docker build -t local/icd10-gm . # --no-cache | ||
cat $ICD10GM_ZIP | docker run -i local/icd10-gm sh //workingdir/run-fhir-claml-in-container.sh > codesystem-icd10gm.json |
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,14 @@ | ||
cat > /workingdir/icd10gm-syst-claml.zip | ||
cd /workingdir | ||
unzip icd10gm-syst-claml.zip > /dev/null | ||
cp Klassifikationsdateien/icd10gm2021syst_claml_20200918_20201111.xml /workingdir/icd10gm_syst_claml.xml | ||
|
||
java -jar fhir-claml-0.0.1-SNAPSHOT.jar \ | ||
-i /workingdir/icd10gm_syst_claml.xml \ | ||
-designations preferredLong \ | ||
-o codesystem-icd10gm.json \ | ||
-id icd10gm2020 \ | ||
-url http://hl7.org/fhir/sid/icd-10-gm \ | ||
-valueSet http://hl7.org/fhir/sid/icd-10-gm/vs > /dev/null | ||
cat codesystem-icd10gm.json | ||
|
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,36 @@ | ||
version: '3.4' | ||
services: | ||
icd-postgres: | ||
container_name: "icd-postgres" | ||
image: "postgres:alpine" | ||
environment: | ||
POSTGRES_USER: "icd10" | ||
POSTGRES_PASSWORD: "icd10" | ||
POSTGRES_DB: "icd10" | ||
networks: | ||
- "icd-net" | ||
volumes: | ||
- "icd-postgres-data:/var/lib/postgresql/data" | ||
restart: "always" | ||
icd-dictionary: | ||
container_name: "icd-dictionary" | ||
#image: "icd-dictionary" | ||
image: "samply/icd-dictionary:0.3.1" | ||
environment: | ||
ICD_DB_HOST: "icd-postgres" | ||
ICD_DB_USER: "icd10" | ||
ICD_DB_PASSWORD: "icd10" | ||
ICD_DB_NAME: "icd10" | ||
networks: | ||
- "icd-net" | ||
ports: | ||
- "8081:8080" | ||
restart: "always" | ||
|
||
networks: | ||
icd-net: | ||
driver: "bridge" | ||
|
||
volumes: | ||
icd-postgres-data: | ||
name: "icd-postgres-data" |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather use GitHub Actions to build the JAR file instead of a build container. Please see https://github.com/samply/store-fhir-adapter/blob/main/.github/workflows/ci.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not familiar with Actions, so it could be some time before I can make the requested change.
Would it be possible to incorporate the build container for the time being, and upgrade to GitHub Actions at a later date?