io.github.diz-uker.ig-codegen 0.2.18

dotnet tool install --global io.github.diz-uker.ig-codegen --version 0.2.18
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local io.github.diz-uker.ig-codegen --version 0.2.18
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=io.github.diz-uker.ig-codegen&version=0.2.18
                    
nuke :add-package io.github.diz-uker.ig-codegen --version 0.2.18
                    

to-fhir

OpenSSF Scorecard

Collection of utilities for mapping FHIR resources.

This repository contains two artifacts:

  • to-fhir — the core library. Plain Java, no Spring Boot dependency.
  • to-fhir-starter — a Spring Boot starter that auto-configures FhirProperties (overridable via fhir.* properties) on top of to-fhir.

Installation

Gradle

implementation "io.github.diz-uker:to-fhir:0.2.18"

// optional, for Spring Boot auto-configuration
implementation "io.github.diz-uker:to-fhir-starter:0.2.18"

Maven

<dependency>
    <groupId>io.github.diz-uker</groupId>
    <artifactId>to-fhir</artifactId>
    <version>0.2.18</version>
</dependency>


<dependency>
    <groupId>io.github.diz-uker</groupId>
    <artifactId>to-fhir-starter</artifactId>
    <version>0.2.18</version>
</dependency>

Development

Generating FHIR IG constants

The generated constant classes in fhir-ig-constants/src/main/java/ (Java), fhir-ig-constants-cs/src/ (C#), and fhir-ig-constants-py/src/ (Python) are all produced from fhir-ig-constants/package.json and must be re-generated whenever the package manifest or the codegen tools change.

1. Install FHIR packages

cd fhir-ig-constants && npm install

2a. Re-generate Java

./gradlew :fhir-ig-constants:generateIgConstants

Spotless formatting is applied automatically. Review the diff, then commit.

2b. Re-generate C#

dotnet msbuild fhir-ig-constants-cs -t:GenerateIgConstants
dotnet tool restore && dotnet csharpier format fhir-ig-constants-cs/src/

2c. Re-generate Python

cd ig-codegen-py
uv run ig-codegen \
  ../fhir-ig-constants/package.json \
  ../fhir-ig-constants/node_modules \
  ../fhir-ig-constants-py/src/
uv run ruff format \
  --config ../fhir-ig-constants-py/pyproject.toml \
  ../fhir-ig-constants-py/src/

Review the diff, then commit.

Snapshot testing

Auto-approve snapshot changes

Usually, approving a changed snapshots requires manually renaming or moving the snapshot file from .received. to .approved.. If you are facing a lot of changed snapshots and are certain that your changes are valid, you can automatically approve them:

APPROVAL_TESTS_USE_REPORTER=AutoApproveReporter ./gradlew test

Source: https://github.com/approvals/ApprovalTests.Java/issues/590.

You can also run this in a loop to approve indexed snapshots:

for i in {1..10};
    do APPROVAL_TESTS_USE_REPORTER=AutoApproveReporter ./gradlew test;
done
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.2.18 137 8/27/2026
0.2.17 125 8/23/2026
0.2.16 133 8/18/2026
0.2.15 125 8/16/2026
0.2.14 113 8/15/2026
0.2.13 117 8/15/2026
0.2.12 138 8/14/2026