Ignixa.SqlOnFhir.Cli
0.0.96
See the version list below for details.
dotnet tool install --global Ignixa.SqlOnFhir.Cli --version 0.0.96
dotnet new tool-manifest
dotnet tool install --local Ignixa.SqlOnFhir.Cli --version 0.0.96
#tool dotnet:?package=Ignixa.SqlOnFhir.Cli&version=0.0.96
nuke :add-package Ignixa.SqlOnFhir.Cli --version 0.0.96
Ignixa SQL on FHIR CLI
Command-line tool for processing FHIR resources using SQL on FHIR ViewDefinitions.
Installation
dotnet tool install -g Ignixa.SqlOnFhir.Cli
Usage
All commands require specifying the FHIR version first (stu3, r4, r4b, r5, or r6), followed by the operation.
Convert FHIR Resources to Parquet
Convert FHIR resources from NDJSON to Parquet format using a ViewDefinition. The output format is automatically detected from the file extension (.parquet or .csv):
ignixa-sqlonfhir r4 convert --viewdefinition myview.json --input mypatients.ndjson --out myparquetfile.parquet
Convert FHIR Resources to CSV
Convert FHIR resources from NDJSON to CSV format using a ViewDefinition:
ignixa-sqlonfhir r4 convert --viewdefinition myview.json --input mypatients.ndjson --out mycsvfile.csv
Preview Schema and Sample Data
Extract schema from a ViewDefinition and show a preview of converted rows:
ignixa-sqlonfhir r4 preview --viewdefinition myview.json --input mypatients.ndjson
This displays:
- The extracted schema (column names and types)
- A few sample rows formatted for console display
Validate ViewDefinition
Validate a ViewDefinition file for correctness:
ignixa-sqlonfhir r4 validate --viewdefinition myview.json
Examples
Sample ViewDefinition
Create a file patient-view.json:
{
"resourceType": "ViewDefinition",
"resource": "Patient",
"select": [
{
"column": [
{
"name": "id",
"path": "id",
"type": "string"
},
{
"name": "family_name",
"path": "name.where(use='official').first().family",
"type": "string"
},
{
"name": "given_name",
"path": "name.where(use='official').first().given.first()",
"type": "string"
},
{
"name": "birth_date",
"path": "birthDate",
"type": "date"
}
]
}
]
}
Convert to Parquet
ignixa-sqlonfhir r4 convert \
--viewdefinition patient-view.json \
--input patients.ndjson \
--out patients.parquet
Convert to CSV
ignixa-sqlonfhir r4 convert \
--viewdefinition patient-view.json \
--input patients.ndjson \
--out patients.csv
Preview Results
ignixa-sqlonfhir r4 preview \
--viewdefinition patient-view.json \
--input patients.ndjson
FHIR Version Support
The tool supports multiple FHIR versions through explicit version selection:
- stu3 - FHIR STU3 specification
- r4 - FHIR R4 specification (most common)
- r4b - FHIR R4B specification
- r5 - FHIR R5 specification
- r6 - FHIR R6 specification
Specify the version as the first argument to any command.
Output Format Detection
The convert command automatically detects the output format based on the file extension:
.parquet- Parquet format (columnar, compressed).csv- CSV format (comma-separated values)
Invalid extensions will be rejected with an error message.
| 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 | 80 | 2/9/2026 |
| 0.0.155 | 94 | 1/24/2026 |
| 0.0.151 | 83 | 1/21/2026 |
| 0.0.150 | 80 | 1/20/2026 |
| 0.0.149 | 87 | 1/19/2026 |
| 0.0.148 | 87 | 1/18/2026 |
| 0.0.142 | 88 | 1/12/2026 |
| 0.0.137 | 96 | 1/9/2026 |
| 0.0.127 | 104 | 12/29/2025 |
| 0.0.109 | 279 | 12/18/2025 |
| 0.0.101 | 273 | 12/16/2025 |
| 0.0.96 | 423 | 12/10/2025 |
| 0.0.87 | 421 | 12/8/2025 |