io.github.diz-uker.ig-codegen-core
0.2.18
dotnet add package io.github.diz-uker.ig-codegen-core --version 0.2.18
NuGet\Install-Package io.github.diz-uker.ig-codegen-core -Version 0.2.18
<PackageReference Include="io.github.diz-uker.ig-codegen-core" Version="0.2.18" />
<PackageVersion Include="io.github.diz-uker.ig-codegen-core" Version="0.2.18" />
<PackageReference Include="io.github.diz-uker.ig-codegen-core" />
paket add io.github.diz-uker.ig-codegen-core --version 0.2.18
#r "nuget: io.github.diz-uker.ig-codegen-core, 0.2.18"
#:package io.github.diz-uker.ig-codegen-core@0.2.18
#addin nuget:?package=io.github.diz-uker.ig-codegen-core&version=0.2.18
#tool nuget:?package=io.github.diz-uker.ig-codegen-core&version=0.2.18
to-fhir
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-configuresFhirProperties(overridable viafhir.*properties) on top ofto-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 | Versions 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. |
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.