Skip to content

Commit

Permalink
Merge pull request #33 from medizininformatik-initiative/dev/IGv2024
Browse files Browse the repository at this point in the history
Updated gh action and qc rules
  • Loading branch information
julsas authored Nov 13, 2023
2 parents f131cae + 29f1a07 commit 4c765c3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
steps:

- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

# Java and .NET are already installed on ubuntu-latest

Expand All @@ -37,11 +37,10 @@ jobs:
PATH_TO_QUALITY_CONTROL_RULES: qc/custom
DOTNET_VALIDATION_ENABLED: true
JAVA_VALIDATION_ENABLED: true
#The Coding provided (http://fhir.de/CodeSystem/bfarm/ops#5-470) is not in the value set 'OpsVS' (http://fhir.de/ValueSet/bfarm/ops|1.4.0), and a code is required from this value set.
EXPECTED_FAILS: VALIDATION_CONFORMANCE_DOTNET VALIDATION_CONFORMANCE_JAVA VALIDATION_EXAMPLES_JAVA
OUTPUT_FORMAT: RAW
JAVA_VALIDATION_OPTIONS: -allow-example-urls true
JAVA_VALIDATION_OPTIONS: -allow-example-urls true -tx n/a
SIMPLIFIER_USERNAME: ${{ secrets.SIMPLIFIER_USERNAME }}
SIMPLIFIER_PASSWORD: ${{ secrets.SIMPLIFIER_PASSWORD }}
JAVA_VALIDATOR_VERSION: 6.2.3

#The Coding provided (http://fhir.de/CodeSystem/bfarm/ops#5-470) is not in the value set 'OpsVS' (http://fhir.de/ValueSet/bfarm/ops|1.4.0), and a code is required from this value set.
EXPECTED_FAILS: VALIDATION_EXAMPLES_JAVA
21 changes: 19 additions & 2 deletions qc/custom.rules.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
- include: recommended
name: include-recommended
# This is the minimal rule series
# removed 'action: unique' due to multiple versions of OPS CodeSystem

- action: parse
name: parse-fhir-resources
status: "Checking if all FHIR Resource files can be parsed"
files:
- /**/*.xml
- /**/*.json
- "!package.json"
- "!fhirpkg.lock.json"

- name: resource-validation
status: "Validating resources against the FHIR standard and their profiles"
action: validate
category: Resource
suppress:
- 6005
- eld-16

- name: version-filled
filter: (StructureDefinition or ValueSet or CodeSystem or ConceptMap or StructureMap or NamingSystem or SearchParameter or CapabilityStatement or OperationDefinition or ImplementationGuide).exists()
Expand Down

0 comments on commit 4c765c3

Please sign in to comment.