Skip to content

feat: added gleason score and PSA mapping #237

feat: added gleason score and PSA mapping

feat: added gleason score and PSA mapping #237

name: validate-fhir-resources
on:
pull_request:
branches: [master]
push:
branches: [master]
permissions: read-all
jobs:
validate-fhir-resource:
name: Validate FHIR resources
runs-on: ubuntu-22.04
container: ghcr.io/miracum/ig-build-tools:v2.0.49@sha256:ae83b8c5832cf67f4591c26113fa08d97bcaf0644b42fbecd6f1327f307c78c7
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Restore FHIR package dependencies
run: |
fhir restore
- name: Validate generated FHIR resources
# TODO: switch to 'xargs' or for loop so if any validation fails, the entire command fails.
# currently not done since we get false errors like:
# 'error: Code 'C72.0' from system 'http://fhir.de/CodeSystem/bfarm/icd-10-gm' does not exist in the value set 'ICD10GM' (http://fhir.de/ValueSet/bfarm/icd-10-gm)'
run: |
find src/test/java/snapshots -name "*.fhir.json" -exec echo "Validating: {}" \; -exec fhir validate --verbose --fail "{}" \;