Skip to content
Documentation

Documentation

Welcome to the FHIRPath Go documentation. This library provides a complete, production-ready implementation of the FHIRPath 2.0 specification for evaluating expressions against FHIR® resources in Go.

Where to Start

Key Features

  • 95+ built-in functions covering existence, filtering, subsetting, string manipulation, math, type checking, date/time operations, aggregation, and more.
  • Full FHIRPath 2.0 compliance including three-valued Boolean logic, partial date/time precision, and UCUM quantity normalization.
  • Production ready with thread-safe evaluation, LRU expression caching, configurable timeouts, and memory-efficient pooling.
  • Zero FHIR® model dependency – works directly with raw JSON bytes, so you can use any FHIR® model library or none at all.

Package Overview

PackageDescription
github.com/gofhir/fhirpathTop-level API: Evaluate, Compile, EvaluateCached, convenience helpers
github.com/gofhir/fhirpath/typesFHIRPath type system: Value, Collection, Boolean, Integer, Decimal, String, Date, DateTime, Time, Quantity
github.com/gofhir/fhirpath/evalInternal evaluation engine and operator implementations
github.com/gofhir/fhirpath/funcsBuilt-in function registry (existence, filtering, strings, math, etc.)
Last updated on