-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,509 changed files
with
101,919 additions
and
103,274 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: Validate Examples | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
env: | ||
REFERENZVALIDATOR_VERSION: 2.0.2 | ||
PATH_TO_EXAMPLES: './temp_folder/' | ||
FHIR_VERSION: "4.0" | ||
INPUT_JAVA_VALIDATION_OPTIONS: "-tx http://tx.fhir.org -debug -allow-example-urls true" | ||
IG_DEPENDENCIES: "-ig de.basisprofil.r4#1.4.0 -ig hl7.fhir.r4.core#4.0.1 -ig kbv.ita.for#1.1.0 -ig kbv.ita.erp#1.1.x -ig de.gematik.erezept-workflow.r4" | ||
|
||
jobs: | ||
CI_EXAMPLES_VALIDATION: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
|
||
# Identify and Copy Changed .json and .xml Files | ||
- name: Identify and Copy Changed .json and .xml Files | ||
run: | | ||
mkdir -p $PATH_TO_EXAMPLES # Create a temp folder | ||
git fetch origin main:main | ||
git diff --name-only main | grep -E '\.(json|xml)$' | xargs -I {} cp {} $PATH_TO_EXAMPLES/ | ||
echo "Number of changed files to validate: " && ls -1 $PATH_TO_EXAMPLES | wc -l | ||
# Install Java runtime (only needed if you want to run the offical HL7 Java validator) | ||
- name: Setup Java JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'microsoft' | ||
java-version: '17' | ||
|
||
|
||
# --------------------------------------------------------------------------------------------------- # | ||
# JAVA Validator # | ||
# --------------------------------------------------------------------------------------------------- # | ||
|
||
- name: Check if Java is installed | ||
run: | | ||
if ! command -v java &> /dev/null | ||
then | ||
echo "java could not be found. Please see actions/setup-java to set it up before running this action." | ||
exit 1 | ||
fi | ||
shell: bash | ||
|
||
- name: Download Java Validator | ||
run: | | ||
CHECK_JAVA_VERSION=$(java -version 2>&1 | head -1 | cut -d'"' -f2) | ||
echo "JAVA_VERSION: $CHECK_JAVA_VERSION" | ||
wget -q https://github.com/gematik/app-referencevalidator/releases/download/$REFERENZVALIDATOR_VERSION/referencevalidator-cli-$REFERENZVALIDATOR_VERSION.jar | ||
echo "REFERENZVALIDATOR_VERSION: $REFERENZVALIDATOR_VERSION" | ||
shell: bash | ||
|
||
- name: Install jq | ||
run: | | ||
sudo apt-get update > /dev/null | ||
sudo apt-get install --no-install-recommends -y jq findutils curl ca-certificates > /dev/null | ||
shell: bash | ||
|
||
- name: Validate all example resources in scope of the repository | ||
run: | | ||
for p in $PATH_TO_EXAMPLES; | ||
do | ||
# Ensure directory ends with "/" | ||
if [[ ! "$p" =~ .*/$ ]]; then | ||
p="$p/" | ||
fi | ||
for f in $p*; | ||
do | ||
java -jar referencevalidator-cli-$REFERENZVALIDATOR_VERSION.jar erp $f --accepted-encodings xml --accepted-encodings json --no-profile-validity-period-check | ||
done | ||
done | ||
- name: Cleanup | ||
if: always() | ||
run: rm -rf temp_folder |
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
Binary file added
BIN
+54.4 KB
End-to-End-Examples/4_01.07.2023/PKV/Freitext-Verordnung/pdf_android_Freitext-Verordnung.pdf
Binary file not shown.
Binary file added
BIN
+45.9 KB
...to-End-Examples/4_01.07.2023/PKV/Freitext-Verordnung/pdf_ios_Freitext-Verordnung.json.pdf
Binary file not shown.
Binary file added
BIN
+47.2 KB
End-to-End-Examples/4_01.07.2023/PKV/PZN-Verordnung_Nr_1/pdf_android_PZN-Verordnung_Nr_1.pdf
Binary file not shown.
Binary file added
BIN
+45.7 KB
...to-End-Examples/4_01.07.2023/PKV/PZN-Verordnung_Nr_1/pdf_ios_PZN-Verordnung_Nr_1.json.pdf
Binary file not shown.
Binary file added
BIN
+50.8 KB
End-to-End-Examples/4_01.07.2023/PKV/PZN-Verordnung_Nr_2/pdf_android_PZN-Verordnung_Nr_2.pdf
Binary file not shown.
Binary file added
BIN
+46.5 KB
...to-End-Examples/4_01.07.2023/PKV/PZN-Verordnung_Nr_2/pdf_ios_PZN-Verordnung_Nr_2.json.pdf
Binary file not shown.
Binary file added
BIN
+53 KB
End-to-End-Examples/4_01.07.2023/PKV/PZN-Verordnung_Nr_3/pdf_android_PZN-Verordnung_Nr_3.pdf
Binary file not shown.
Binary file added
BIN
+46.7 KB
...to-End-Examples/4_01.07.2023/PKV/PZN-Verordnung_Nr_3/pdf_ios_PZN-Verordnung_Nr_3.json.pdf
Binary file not shown.
Binary file modified
BIN
-156 KB
(0.70%)
End-to-End-Examples/4_01.07.2023/PKV/PZN-Verordnung_Nr_5/PZN_Nr5_Kostenbeleg.pdf
Binary file not shown.
Binary file added
BIN
+48.9 KB
End-to-End-Examples/4_01.07.2023/PKV/PZN-Verordnung_Nr_5/pdf_android_PZN-Verordnung_Nr_5.pdf
Binary file not shown.
Binary file added
BIN
+45.8 KB
...to-End-Examples/4_01.07.2023/PKV/PZN-Verordnung_Nr_5/pdf_ios_PZN-Verordnung_Nr_5.json.pdf
Binary file not shown.
Binary file added
BIN
+48.6 KB
End-to-End-Examples/4_01.07.2023/PKV/PZN-Verordnung_Nr_6/pdf_android_PZN-Verordnung_Nr_6.pdf
Binary file not shown.
Binary file added
BIN
+46.1 KB
...to-End-Examples/4_01.07.2023/PKV/PZN-Verordnung_Nr_6/pdf_ios_PZN-Verordnung_Nr_6.json.pdf
Binary file not shown.
Binary file added
BIN
+53.6 KB
End-to-End-Examples/4_01.07.2023/PKV/PZN-Verordnung_Nr_7/pdf_android_PZN-Verordnung_Nr_7.pdf
Binary file not shown.
Binary file added
BIN
+46.4 KB
...to-End-Examples/4_01.07.2023/PKV/PZN-Verordnung_Nr_7/pdf_ios_PZN-Verordnung_Nr_7.json.pdf
Binary file not shown.
Binary file modified
BIN
-157 KB
(0.84%)
End-to-End-Examples/4_01.07.2023/PKV/PZN-Verordnung_Nr_8/PZN_Nr8_Kostenbeleg.pdf
Binary file not shown.
Binary file added
BIN
+50.2 KB
End-to-End-Examples/4_01.07.2023/PKV/PZN-Verordnung_Nr_8/pdf_android_PZN-Verordnung_Nr_8.pdf
Binary file not shown.
Binary file added
BIN
+46.1 KB
...to-End-Examples/4_01.07.2023/PKV/PZN-Verordnung_Nr_8/pdf_ios_PZN-Verordnung_Nr_8.json.pdf
Binary file not shown.
Binary file added
BIN
+50.6 KB
....2023/PKV/PZN_Mehrfachverordnung/PZN_MV_1/pdf_android_PZN_Mehrfachverordnung_PZN_MV_1.pdf
Binary file not shown.
Binary file added
BIN
+46.3 KB
...2023/PKV/PZN_Mehrfachverordnung/PZN_MV_1/pdf_ios_PZN_Mehrfachverordnung_PZN_MV_1.json.pdf
Binary file not shown.
Binary file added
BIN
+50.6 KB
....2023/PKV/PZN_Mehrfachverordnung/PZN_MV_2/pdf_android_PZN_Mehrfachverordnung_PZN_MV_2.pdf
Binary file not shown.
Binary file added
BIN
+46.3 KB
...2023/PKV/PZN_Mehrfachverordnung/PZN_MV_2/pdf_ios_PZN_Mehrfachverordnung_PZN_MV_2.json.pdf
Binary file not shown.
Binary file added
BIN
+50.3 KB
....2023/PKV/PZN_Mehrfachverordnung/PZN_MV_3/pdf_android_PZN_Mehrfachverordnung_PZN_MV_3.pdf
Binary file not shown.
Binary file added
BIN
+46.1 KB
...2023/PKV/PZN_Mehrfachverordnung/PZN_MV_3/pdf_ios_PZN_Mehrfachverordnung_PZN_MV_3.json.pdf
Binary file not shown.
Binary file added
BIN
+51.6 KB
....2023/PKV/PZN_Mehrfachverordnung/PZN_MV_4/pdf_android_PZN_Mehrfachverordnung_PZN_MV_4.pdf
Binary file not shown.
Binary file added
BIN
+46.4 KB
...2023/PKV/PZN_Mehrfachverordnung/PZN_MV_4/pdf_ios_PZN_Mehrfachverordnung_PZN_MV_4.json.pdf
Binary file not shown.
Binary file modified
BIN
-161 KB
(0.74%)
End-to-End-Examples/4_01.07.2023/PKV/Rezeptur-Verordnung_Nr_1/Rez_Nr1_Kostenbeleg.pdf
Binary file not shown.
Binary file added
BIN
+49.1 KB
...amples/4_01.07.2023/PKV/Rezeptur-Verordnung_Nr_1/pdf_android_Rezeptur-Verordnung_Nr_1.pdf
Binary file not shown.
Binary file added
BIN
+47.7 KB
...mples/4_01.07.2023/PKV/Rezeptur-Verordnung_Nr_1/pdf_ios_Rezeptur-Verordnung_Nr_1.json.pdf
Binary file not shown.
Binary file added
BIN
+47.7 KB
...mples/4_01.07.2023/PKV/Rezeptur-Verordnung_Nr_2/pdf_ios_Rezeptur-Verordnung_Nr_2.json.pdf
Binary file not shown.
Binary file added
BIN
+49.6 KB
...023/PKV/Rezeptur-parenterale_Zytostatika/pdf_android_Rezeptur-parenterale_Zytostatika.pdf
Binary file not shown.
Binary file added
BIN
+47.9 KB
...tika/pdf_ios_Rezeptur-parenterale_Zytostatika_Rezeptur-parenterale_Zytostatika_1.json.pdf
Binary file not shown.
Binary file added
BIN
+50.5 KB
...o-End-Examples/4_01.07.2023/PKV/Wirkstoff-Verordnung/pdf_android_Wirkstoff-Verordnung.pdf
Binary file not shown.
Binary file added
BIN
+46.2 KB
...-End-Examples/4_01.07.2023/PKV/Wirkstoff-Verordnung/pdf_ios_Wirkstoff-Verordnung.json.pdf
Binary file not shown.
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,7 @@ | ||
# Security Policy | ||
|
||
Please submit an issue or pull request for any non critical bugs | ||
or non critical vulnerabilities you find. | ||
|
||
In case of a responsible disclosure, please follow instructions | ||
on <https://www.gematik.de/datensicherheit#c1227>. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.