Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dav_update' into dav_update
Browse files Browse the repository at this point in the history
# Conflicts:
#	End-to-End-Examples/4_01.07.2023/PKV/PZN-Verordnung_Nr_8/PZN_Nr8_Kostenbeleg.pdf
  • Loading branch information
ABDA-FHIR committed May 29, 2024
2 parents 8098b2e + 4998e28 commit 219b451
Show file tree
Hide file tree
Showing 1,508 changed files with 101,919 additions and 103,274 deletions.
97 changes: 97 additions & 0 deletions .github/workflows/main.yml
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<value value="200.334.138.469.717.92"/>
</identifier>
<type value="document"/>
<timestamp value="2023-07-07T23:30:00Z"/>
<timestamp value="2023-07-03T23:30:00Z"/>
<entry>
<fullUrl value="urn:uuid:88bdd6b0-ee45-4015-8ebc-b90d5d4cdd4a"/>
<resource>
Expand All @@ -31,7 +31,7 @@
<code value="ERezeptAbgabedaten"/>
</coding>
</type>
<date value="2023-07-07T23:30:00Z"/>
<date value="2023-07-03T23:30:00Z"/>
<author>
<reference value="urn:uuid:2abed40e-b730-4be2-a632-cfd5c446050c"/>
</author>
Expand Down Expand Up @@ -126,7 +126,7 @@
<code value="Abgabeinformationen"/>
</coding>
</type>
<whenHandedOver value="2023-07-07"/>
<whenHandedOver value="2023-07-03"/>
</MedicationDispense>
</resource>
</entry>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img width="200" height="37" src="images/Gematik_Logo_Flag.png"/> <br/>
<img width="200" height="37" src="images/Gematik_Logo_Flag_With_Background.png"/> <br/>

# E-Rezept Examples

Expand Down
7 changes: 7 additions & 0 deletions SECURITY.md
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>.
Loading

0 comments on commit 219b451

Please sign in to comment.