gefyra/FHIR CapabilityStatement Expander
Expands FHIR CapabilityStatements by recursively resolving imports and extracts all refer echo "" echo "📁 Copied Resources:" # Then show all other files (copied) - search recursively including subdirectories while IFS= read -r -d ' file; do resources
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| input_directory | Path to input directory with FHIR JSON files | yes | ./input |
| output_directory | Path to output directory for expanded resources | yes | ./output |
| capability_statement_url | Canonical URL(s) of the CapabilityStatement(s) to expand. Can be a single URL string or a JSON array of URLs (use toJSON() for YAML lists). | yes | — |
| verbose | Enable verbose logging | no | false |
| no_clean | Do not clean output directory before expansion (by default, output directory is cleaned) | no | false |
| expectation_filter | Filter imports by minimum expectation level. SHALL=only SHALL, SHOULD=SHALL+SHOULD, MAY=SHALL+SHOULD+MAY. Default: import all expectations. Note: SHOULD-NOT is never imported. | no | "" |
| python_version | Python version for execution | no | 3.11 |
Outputs
| name | description |
|---|---|
| expanded_files_count | Number of created expanded files |
| output_directory | Path to output directory with expanded resources |
| expanded_capability_statement | Filename of the expanded CapabilityStatement |