You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I used the new(ish) FHIRPath cli jar to build up a complex FHIRPath expression.
One thing that would have helped me is to see the names of the fields in the objects that I was getting back as I build up the expression.
For example, while java -jar fhir-path-4.9.0-cli.jar --file bundle.json --path "Bundle.entry.resource.as(Claim) emits the selected resources as list of json objects, an expression like Bundle.entry.resource.as(Claim).item.detail emits a flattened list of just the leaf node values:
What I'd really like at this point is to know which fields those are and what, if any, hierarchy they have so that I can continue to expand on the FHIRPath from here.
Describe the solution you'd like
Use the FHIR model's toString for FHIRPath cli output that results from fhir-path FHIRElementNodes.
This approach would also have the benefit of helping users distinguish between FHIRElementNode results and FHIRPath primitive value results.
Describe alternatives you've considered
Use some other columnar output where the field names are listed with their path from the current location in the leftmost column.
* issue #2702 - use Element.toString to print element nodes
Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
* Update fhir-path/src/main/java/com/ibm/fhir/path/tool/Main.java
Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
Is your feature request related to a problem? Please describe.
I used the new(ish) FHIRPath cli jar to build up a complex FHIRPath expression.
One thing that would have helped me is to see the names of the fields in the objects that I was getting back as I build up the expression.
For example, while
java -jar fhir-path-4.9.0-cli.jar --file bundle.json --path "Bundle.entry.resource.as(Claim)
emits the selected resources as list of json objects, an expression likeBundle.entry.resource.as(Claim).item.detail
emits a flattened list of just the leaf node values:What I'd really like at this point is to know which fields those are and what, if any, hierarchy they have so that I can continue to expand on the FHIRPath from here.
Describe the solution you'd like
Use the FHIR model's toString for FHIRPath cli output that results from fhir-path FHIRElementNodes.
This approach would also have the benefit of helping users distinguish between FHIRElementNode results and FHIRPath primitive value results.
Describe alternatives you've considered
Use some other columnar output where the field names are listed with their path from the current location in the leftmost column.
Acceptance Criteria
AND [another precondition]
WHEN [test step]
AND [test step]
THEN [verification step]
AND [verification step]
Additional context
The text was updated successfully, but these errors were encountered: