Ignixa.Validation.Cli
0.0.87
See the version list below for details.
dotnet tool install --global Ignixa.Validation.Cli --version 0.0.87
dotnet new tool-manifest
dotnet tool install --local Ignixa.Validation.Cli --version 0.0.87
#tool dotnet:?package=Ignixa.Validation.Cli&version=0.0.87
nuke :add-package Ignixa.Validation.Cli --version 0.0.87
FHIR Validation CLI
A command-line tool for validating FHIR resources using the Ignixa.Validation library.
Installation
Install as a .NET global tool:
dotnet tool install --global Ignixa.Validation.Cli
Or install locally in a project:
dotnet tool install Ignixa.Validation.Cli
Usage
All commands start with a FHIR version:
ignixa-validator <version> [options]
Available FHIR versions: stu3, r4, r4b, r5, r6
Validation Options
The tool supports three different usage modes:
1. Validate a JSON file and save results
Validate a FHIR resource from a file and save the validation results (as an OperationOutcome resource):
ignixa-validator r4 --input patient.json --out validation-results.json
2. Validate a JSON string
Validate a FHIR resource from a JSON string (useful for CI/CD pipelines):
Bash/Linux/macOS:
ignixa-validator r4 --json '{"resourceType":"Patient","id":"example"}' --console
PowerShell:
# Use here-string for complex JSON
ignixa-validator r4 --json '{"resourceType":"Patient","id":"example"}' --console
# Or escape quotes
ignixa-validator r4 --json '{\"resourceType\":\"Patient\",\"id\":\"example\"}' --console
Note: When using PowerShell, storing JSON in a variable can cause quoting issues. Use the JSON directly in the command or escape inner quotes properly.
3. Display formatted results in console
Validate and display nicely formatted results in the console:
ignixa-validator r4 --input patient.json --console
You can also combine --out and --console to get both file output and console display:
ignixa-validator r4 --input patient.json --out results.json --console
Output Formats
OperationOutcome (JSON file)
When using --out, the tool generates a FHIR OperationOutcome resource containing all validation issues. This format is compatible with FHIR servers and can be processed programmatically.
Console Output
When using --console, the tool displays a formatted summary similar to validator.fhir.org:
═══════════════════════════════════════════════════════════════
FHIR Validation Results (R4)
═══════════════════════════════════════════════════════════════
Resource Type: Patient
Status: ✗ INVALID
═══════════════════════════════════════════════════════════════
Issue Summary:
Fatal: 0
Error: 2
Warning: 1
Information: 0
Total: 3
───────────────────────────────────────────────────────────────
Validation Issues:
───────────────────────────────────────────────────────────────
❌ ERROR @ Patient.identifier[0].system
cardinality-violation: Patient.identifier[0].system must have at least 1 occurrence(s), but found 0
❌ ERROR @ Patient.name[0]
ele-1: All FHIR elements must have a @value or children
⚠️ WARNING @ Patient.telecom[0].value
Recommended element is missing
═══════════════════════════════════════════════════════════════
Examples
# Validate an R4 Patient resource with console output
ignixa-validator r4 --input patient.json --console
# Validate and save OperationOutcome to file
ignixa-validator r4 --input observation.json --out validation.json
# Validate a JSON string (bash)
ignixa-validator r4 --json '{"resourceType":"Patient","id":"test"}' --console
# Validate using different FHIR versions
ignixa-validator stu3 --input patient-stu3.json --console
ignixa-validator r5 --input patient-r5.json --console
# Both file and console output
ignixa-validator r4 --input bundle.json --out results.json --console
Exit Codes
0- Validation successful (no errors)1- Validation failed (errors found) or tool error
FHIR Versions
Supported FHIR versions:
- stu3 - FHIR STU3 (v3.0.2)
- r4 - FHIR R4 (v4.0.1)
- r4b - FHIR R4B (v4.3.0)
- r5 - FHIR R5 (v5.0.0)
- r6 - FHIR R6 (v6.0.0)
More Information
Visit the Ignixa FHIR repository for more information.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.163 | 31 | 2/11/2026 |
| 0.0.160 | 79 | 2/9/2026 |
| 0.0.155 | 102 | 1/24/2026 |
| 0.0.151 | 94 | 1/21/2026 |
| 0.0.150 | 91 | 1/20/2026 |
| 0.0.149 | 84 | 1/19/2026 |
| 0.0.148 | 88 | 1/18/2026 |
| 0.0.142 | 98 | 1/12/2026 |
| 0.0.137 | 92 | 1/9/2026 |
| 0.0.127 | 100 | 12/29/2025 |
| 0.0.109 | 286 | 12/18/2025 |
| 0.0.101 | 279 | 12/16/2025 |
| 0.0.96 | 429 | 12/10/2025 |
| 0.0.87 | 424 | 12/8/2025 |