Skip to content

github Action and Docker image to build FHIR profiles using FSH Sushi

License

Notifications You must be signed in to change notification settings

cybernop/build-fhir-profiles

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build-fhir-profiles

Docker Images Latest Sushi Version

This repository provides a github action and a Docker image to build FHIR profiles using FSH Sushi.

github Action

This github action builds FHIR profiles using FSH Sushi and Firely Terminal. The Firely Terminal is used to download and inflate the project dependencies before building the JSON files using FSH Sushi.

see action.yaml

steps:
  - uses: actions/checkout@v3
  - uses: cybernop/build-fhir-profiles@v2
    with:
      project-dir: "."
      sushi-version: 3.11.0
      firely-terminal-version: 3.1.0
      node-version: lts/*
      dotnet-version: 6.0.x

Parameters

Input

Name Description Required Default
project-dir Root directory of the FSH Sushi project False .
sushi-version Version of FSH sushi for building True -
firely-terminal-version Version of Firely Terminal True -
node-version Version of NodeJS False lts/*
dotnet-version Version of .NET False 6.0.x

Docker Image

The build information can be found in docker/.

Build FHIR profiles for FSH sushi project in <project dir>.

docker run --rm -u $(id -u):$(id -g) \
    -v <project dir>:/project \
    ghcr.io/cybernop/build-fhir-profiles:<sushi version>

With <sushi version> one can specify which version of FSH Sushi to use for checking. Currently the following versions are supported:

  • 3.11.0

Script

A convenience script can be downloaded

wget https://raw.githubusercontent.com/cybernop/build-fhir-profiles/main/docker/scripts/build-fhir-profiles.sh

set executable permissions

chmod a+x build-fhir-profiles.sh

Call the script with

[SUSHI_VERSION=<sushi version>] build-fhir-profiles.sh [<project dir>]