-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for fhirpath evaluation #1650
Labels
Comments
oliveregger
added a commit
to ahdis/org.hl7.fhir.core
that referenced
this issue
Jun 15, 2024
Merged
grahamegrieve
added a commit
that referenced
this issue
Jun 25, 2024
markiantorno
added a commit
that referenced
this issue
Jun 27, 2024
## Validator Changes * Change how count is calculated when expanding value sets * Fix value set expansion bugs * Fix for fhirpath issue on command line (#1650) * Add IG dependency validator * work around bad r4 extension definitions * don't reload different sub-version of extensions pack ## Other code changes * Rework rendering library from ground up * Merge Fix: Fix split logic of canonical into url and version in several places (#1663) * Suppress spurious message when code system is unknown * don't raise needless and wrong exceptions about extension definitions when rendering * fix duplicate link creation * Stop recursive rendering crash * Obligation rendering improvements * Handle extra profiles on resources in an IG when converting between versions * Fixed issue with actor title not rendering in obligations * Test and adaption for dateOp #1655 * Use assertj instead of hamcrest (#1662) * More transifex work * Add support for local packages during testing ***NO_CI***
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using fhirpath option, with the command line
java -jar '.\validator_cli.jar' -version R4 -fhirpath "Bundle.entry[0].resourceType" .\peroniv3.json
I get an error "no parent on root resource" - it's not clear if I am doing something wrong. Can we have a working example or a
Full error log:
FHIR Validation tool Version 6.2.4 (Git# 29b1cd9). Built 2023-11-15T19:28:56.792Z (204 days old)
Java: 17.0.7 from c:\work\jdk-17.0.7 on amd64 (64bit). 15288MB available
WARNING: Default file encoding is windows-1252 which may cause unexpected results.
To fix this issue, run this program with the parameter '-Dfile.encoding=UTF-8'
Future releases may not be able to run at all with encoding windows-1252
Paths: Current = C:\Users\Jose\Downloads, Package Cache = C:\Users\Jose.fhir\packages
Params: -version R4 -fhirpath Bundle.entry[0].resource.resourceType .\peroniv3.json -debug
Locale: United Kingdom/GB
Jurisdiction: United Kingdom of Great Britain and Northern Ireland
Loading
Load FHIR v4.0.1 from hl7.fhir.r4.core#4.0.1 - 4576 resources (00:03.134)
Load hl7.fhir.uv.extensions.r4#1.0.0 - 1328 resources (00:01.338)
Load hl7.terminology#5.5.0 - 4224 resources (00:00.661)
Load hl7.terminology.r5#5.5.0 - 4224 resources (00:00.403)
Load hl7.fhir.uv.extensions#5.1.0 - 1396 resources (00:00.708)
Terminology server http://tx.fhir.org - Version 3.4.6 (00:01.047)
Package Summary: [hl7.fhir.r4.core#4.0.1, hl7.fhir.xver-extensions#0.0.12, hl7.fhir.uv.extensions.r4#1.0.0, hl7.terminology#5.5.0, hl7.terminology.r5#5.5.0, hl7.fhir.uv.extensions#5.1.0]
Get set... Generating snapshot for http://hl7.org/fhir/StructureDefinition/string|4.0.1
go (00:00.141)
...evaluating Bundle.entry[0].resource.resourceType
Exception in thread "main" java.lang.Error: No parent on root resource
at org.hl7.fhir.validation.instance.utils.ValidationContext.check(ValidationContext.java:47)
at org.hl7.fhir.validation.instance.utils.ValidationContext.(ValidationContext.java:39)
at org.hl7.fhir.validation.ValidationEngine.evaluateFhirPath(ValidationEngine.java:802)
at org.hl7.fhir.validation.cli.services.ValidationService.evaluateFhirpath(ValidationService.java:321)
at org.hl7.fhir.validation.cli.tasks.FhirpathTask.executeTask(FhirpathTask.java:41)
at org.hl7.fhir.validation.ValidatorCli.readParamsAndExecuteTask(ValidatorCli.java:393)
at org.hl7.fhir.validation.ValidatorCli.readParamsAndExecuteTask(ValidatorCli.java:188)
at org.hl7.fhir.validation.ValidatorCli.main(ValidatorCli.java:223)
The text was updated successfully, but these errors were encountered: