Class TSHCompiler

java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
org.fhirfrog.frog.shorthand.TSHBaseVisitor<Object>
org.fhirfrog.frog.shorthand.TSHCompiler
All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Object>, TSHVisitor<Object>

public class TSHCompiler extends TSHBaseVisitor<Object>
Compiles TSH AST to FHIR TestScript resources.

This class uses the visitor pattern to traverse the ANTLR-generated AST and build FHIR TestScript resources using the HAPI FHIR model.

The compiler handles:

  • TestScript metadata (id, title, description, status, url)
  • Setup, test, and teardown phases
  • Operations (read, create, update, delete, search)
  • Assertions (responseCode, resource, expression, etc.)
  • Variables and fixtures
See Also: