https://github.com/trifork/fhir-validator
A dockerized version of the FHIR validator
https://github.com/trifork/fhir-validator
fhir fhir-ig fhir-implementation-guide
Last synced: 4 months ago
JSON representation
A dockerized version of the FHIR validator
- Host: GitHub
- URL: https://github.com/trifork/fhir-validator
- Owner: trifork
- Created: 2025-10-08T18:15:55.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-10-15T15:08:11.000Z (8 months ago)
- Last Synced: 2025-10-16T12:19:34.493Z (8 months ago)
- Topics: fhir, fhir-ig, fhir-implementation-guide
- Language: Dockerfile
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repo wraps and releases the FHIR validator CLI in Docker - as found on https://github.com/hapifhir/org.hl7.fhir.core/releases . New releases are automatically wrapped and published as Docker images.
Documentation for the CLI can be found on https://confluence.hl7.org/spaces/FHIR/pages/35718580/Using+the+FHIR+Validator#UsingtheFHIRValidator-PackageRegeneration (in regards to repackaging).
Example use of the Github Actions also located in this repo is as follows:
```
ci-build-repackage:
name: Build repackaged IG tarball
runs-on: ubuntu-latest-4-cores
container: ghcr.io/trifork/fhir-validator:latest
needs: ci-build
env:
NEW_VERSION: ${{ needs.ci-build.outputs.new_version }}
steps:
- uses: actions/download-artifact@v4
with:
name: output-directory
path: "./output"
- name: Add package to FHIR cache
shell: bash
run: |
echo "New version: ${NEW_VERSION}"
DAEMON_CACHE_DIR="/root/.fhir/packages/x.y.z#${NEW_VERSION}"
rm -rf "${DAEMON_CACHE_DIR}"
mkdir -p "${DAEMON_CACHE_DIR}"
tar -xzf output/package.tgz -C "${DAEMON_CACHE_DIR}"
- name: Repackage Implementation Guide
uses: trifork/fhir-validator/.github/actions/repackage@main
with:
fhir_ig_id: x.y.z#${{ env.NEW_VERSION }}
output: ./output/package-repackaged.tgz
package_name: x.y.z.repackaged#${{ env.NEW_VERSION }}
expansion_parameters: ${{ env.FHIR_CACHE_DIR }}/package/Parameters-expParam.json
```