Skip to content

Commit

Permalink
restructuring image rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMTheilig committed Jan 12, 2024
1 parent 1ac7dd9 commit a41a626
Show file tree
Hide file tree
Showing 14 changed files with 95 additions and 22 deletions.
47 changes: 26 additions & 21 deletions .github/workflows/RenderAllDiagrams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Render All Diagrams
on:
push:
paths:
- '**/Material/imgsrc/**/*.puml'
- '**/Material/imgsrc/**/*.drawio'
- '**/Material/images/src/**/*.puml'
- '**/Material/images/src/**/*.drawio'
branches-ignore:
- main**
- 'main**'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -41,40 +41,45 @@ jobs:
# Clean Folder
- name: Ensure and clean folder
run: |
img_dir=ImplementationGuide/images/diagrams
img_dir=Material/images/diagrams
mkdir -p $img_dir
rm -rf ImplementationGuide/images/diagrams/*.png
rm -rf Material/images/diagrams/*.svg
# Generate the PNGs from PUML
- name: Render PUML to PNG and Move files
# Generate the SVGs from PUML
- name: Render PUML to SVG and Move files
run: |
FileNamePaths=$(find . -path "*/imgsrc/*/*.puml" -exec dirname {} \; | sort -u)
FileNamePaths=$(find . -path "*/images/src/*/*.puml" -exec dirname {} \; | sort -u)
for dir in $FileNamePaths
do
# Render PNGs from PUMLs
find $dir -name "*.puml" -exec java -jar plantuml.jar -png {} \;
# Render SVGs from PUMLs
find $dir -name "*.puml" -exec java -jar plantuml.jar -tsvg {} \;
done
# Remove plantUML jar
- name: remove plantuml file
run: |
rm -f plantuml.jar
# Generate the PNGs from DrawIO
- name: Render DrawIO to PNG with predefined action
# Generate the SVGs from DrawIO
- name: Render DrawIO to SVG with predefined action
uses: rlespinasse/drawio-export-action@v2
with:
path: ./Material/imgsrc/drawio/
path: ./Material/images/src/drawio/
remove-page-suffix: true
output: .
format: png
format: svg
action-mode: all

# copies the created png & png files to the images/diagrams folder and deletes the drawio files
- name: Move PNGs to target image folder
# copies the created SVG files to the images/diagrams folder and deletes the drawio files
- name: Move SVGs to target image folder
run: |
img_dir=ImplementationGuide/images/diagrams
# Find all unique directories containing *.png files under any /imgsrc/ folder
FileNamePaths=$(find . -path "*/imgsrc/*/*.png" -exec dirname {} \; | sort -u)
img_dir=Material/images/diagrams
# Find all unique directories containing *.SVGs files under any /imgsrc/ folder
FileNamePaths=$(find . -path "*/images/src/*/*.svg" -exec dirname {} \; | sort -u)
for dir in $FileNamePaths
do
# Move PNGs to out directory
find $dir -name "*.png" -exec mv {} $img_dir \;
# Move SVGs to out directory
find $dir -name "*.svg" -exec mv {} $img_dir \;
done
## add and commit the new generated files
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/RenderPlantUML.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ jobs:
# Move PNGs to out directory
find $dir -name "*.png" -exec mv {} $out_dir \;
done


# Remove plantUML jar
- name: remove plantuml file
run: |
rm -f plantuml.jar
# # add and commit the new generated files
#- name: Create Pull Request
Expand Down
24 changes: 24 additions & 0 deletions ImplementationGuide/Einfuehrung.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Bitte Ins Markdown schauen, um zu sehen wie SVGs einzubinden sind.

<img src="https://raw.githubusercontent.com/gematik/spec-TemplateForSimplifierProjects/main/Material/images/Gematik_Logo_Flag.svg" alt="gematik logo" width="400"/>

----
Version: 3.0.1

Datum: 12.01.2024

Status: Aktiv

Realm: Deutschland

----

# Interoperabler Datenaustausch durch Informationssysteme im Beispiel (ISiK)

Die gematik wurde vom Gesetzgeber beauftragt, im Benehmen mit der Deutschen Krankenhausgesellschaft (DKG) und den maßgeblichen Bundesverbänden der Industrie im Gesundheitswesen, verbindliche Standards für den Austausch von Gesundheitsdaten mit Informationssystemen im Krankenhaus zu erarbeiten. Dieser FHIR ImplementationGuide (IG) beschreibt die für diesen Zweck entwickelten FHIR Profile und das [REST](https://de.wikipedia.org/wiki/Representational_State_Transfer)-basierte Application Programming Interface (API). Die REST-API wird im Wesentlichen [vom FHIR Standard vorgegeben](https://www.hl7.org/fhir/R4/http.html). Dieser Leitfaden konkretisiert die ISiK-relevanten Funktionen der Standard-REST-API und trifft inhaltliche Festlegungen zu den ISiK-relevanten Ressourcen in Form von Ressourcen-Profilen.

Hersteller bestätigungsrelevanter Systeme sollen durch diesen IG in die Lage versetzt werden, eine konforme Implementierung zu erstellen und das Bestätigungsverfahren der gematik erfolgreich zu absolvieren.

Weitere Informationen siehe [§373 SGB V](https://www.gesetze-im-internet.de/sgb_5/__373.html).

Hinweis: Sowohl für die Implementierung der ISiK-Spezifikation als auch für den Betrieb eines Produktes, das die ISiK-Spezifikation implementiert, ist eine SNOMED-CT-Lizenz notwendig. Diese kann beim [National Release Center für SNOMED CT in Deutschland](https://www.bfarm.de/DE/Kodiersysteme/Terminologien/SNOMED-CT/_node.html) beantragt werden.
Binary file removed ImplementationGuide/images/Gematik_Logo_Flag.png
Binary file not shown.
40 changes: 40 additions & 0 deletions Material/images/Gematik_Logo_Flag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a41a626

Please sign in to comment.