Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
play

GitHub Action

Firely.Terminal (GitHub Actions)

v0.3.5

Firely.Terminal (GitHub Actions)

play

Firely.Terminal (GitHub Actions)

Run Firely.Terminal and the offical FHIR Java Validator in a GitHub Actions pipeline

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Firely.Terminal (GitHub Actions)

uses: FirelyTeam/[email protected]

Learn more about this action in FirelyTeam/firely-terminal-pipeline

Choose a version

firely-terminal-pipeline

Run Firely Terminal, and optionally the Java Validator too, as GitHub Actions on your FHIR GitHub repository. Validate conformance resource and examples against the FHIR specification and your custom business rules on every commit and pull request.

Example setup can be found on this project:

  • Copy the contents of or download this example main.yml setup file.
  • Add the contents to a main.yml file in your GitHub repository in the .github/workflows folder.
  • You should now see the pipeline on your Actions tab and it should run on every push or pull request to the main or master branch. This can be configured in the yml file.

You can add a badge to your repository with the current pipeline status:

  • Go to the Actions tab on your repository
  • Select the Firely Validation pipeline
  • Select the three dots and click 'Create status badge'
  • Paste this code in the beginning of your README.md file.

Input (FHIR Conformance resources)

The Firely Terminal Pipeline allows to validate all FHIR conformnce resources and corresponding examples. The pipeline expects the following content to be present in the repository:

  • package.json containing all dependencies of the project (required, root-level of the project)
  • project.yaml containing canonical claims (optional, root-level of the project)
  • A folder containing all terminology resources (optional, path can be configured. See PATH_TO_CONFORMANCE_RESOURCES)
  • A folder containing all StructureDefinitions (optional, path can be configured. See PATH_TO_CONFORMANCE_RESOURCES)
  • A folder containing all examples (optional, path can be configured. See PATH_TO_EXAMPLES)

Options

You can specify the following options using the "with" syntax in your GitHub Actions yml configuration:

  • PATH_TO_CONFORMANCE_RESOURCES:
    • description: 'Relative paths of the folder(s) containing FHIR Conformance resources (StructureDefinition, ValueSet, CodeSystem).'
    • required: true
  • PATH_TO_EXAMPLES:
    • description: 'Relative paths of the folder(s) containing examples for the FHIR Conformance resources defined by the project'
    • required: false
  • PATH_TO_QUALITY_CONTROL_RULES:
    • description: 'Relative path pointing to Quality Control rules. Path MUST not include the .rules.yaml part of the file. Runs minimal.rules.yaml by default.'
    • required: false
  • DOTNET_VALIDATION_ENABLED:
    • description: 'Boolean flag to run the .NET validator to validate conformance resources and examples'
    • required: false
    • default: true
  • JAVA_VALIDATION_ENABLED:
    • description: 'Boolean flag to run the offical HL7 Java validator to validate conformance resources and examples'
    • required: false
    • default: false
  • EXPECTED_FAILS:
    • description: Specify which steps in your validation workflow are expected to fail due to possible bugs in the validator(s). Allowed values: 'VALIDATION_CONFORMANCE_JAVA', 'VALIDATION_CONFORMANCE_DOTNET', 'VALIDATION_EXAMPLES_JAVA', 'VALIDATION_EXAMPLES_DOTNET'
    • required: false
  • OUTPUT_FORMAT:
    • description: Specify the format of the validation output: Allowed values: 'RAW', 'SUMMARY' (produces a markdown compatible overview of all validation issues)
    • required: false
  • JAVA_VALIDATION_OPTIONS:
  • SIMPLIFIER_USERNAME:
    • description: 'Simplifier email address (not username), needed for running Quality Control checks. Please use GitHub Secrets for this variable.'
    • required: true
  • SIMPLIFIER_PASSWORD:
    • description: 'Simplifier password, needed for running Quality Control checks. Please use GitHub Secrets for this variable.'
    • required: true

Changelog

v0.2.1 - 2021-06-26

  • Feature: Upgrade Java validator to version 5.4.6

v0.2.0 - 2021-06-23

  • Feature: Enable Quality Control if DOTNET_VALIDATION_ENABLED is enabled. A Simplifier Login is required to use this feature. See SIMPLIFIER_USERNAME and SIMPLIFIER_PASSWORD option.
  • Feature: Upgrade Java validator to version 5.4.5

v0.1.0-beta2 - 2021-04-22

  • Feature: Upgrade Java validator to version 5.3.11

v0.1.0-beta1 - 2021-04-14

  • Feature: Upgrade Java validator to version 5.3.9

Intital Release - 2021-04-08

Known Issues

  • PATH_TO_EXAMPLES is currently not supported in combination with DOTNET_VALIDATION_ENABLED. The .NET part will currently ignore examples.
  • All folders in PATH_TO_CONFORMANCE_RESOURCES are currently validated individually in the Java validator. Each folders therefore is validated in it's own context with no access to the other folders