Skip to main content

expression_to_debug_tree

Function expression_to_debug_tree 

Source
pub fn expression_to_debug_tree(
    expr: &Expression,
    context: &TypeContext,
) -> Value
Expand description

Convert a FHIRPath expression AST to a JSON debug tree

The output format matches the structure expected by fhirpath-lab:

{
  "ExpressionType": "BinaryExpression",
  "Name": "|",
  "Arguments": [...],
  "ReturnType": "string[]"
}