Skip to content

Advanced Topics

Beyond basic resource construction and serialization, the gofhir/models library provides several advanced features that support building production FHIR infrastructure. These capabilities are generated alongside the resource structs and expose the rich metadata embedded in the FHIR specification.

Topics

Overview

FeaturePackage ExportPurpose
FHIRPath modelFHIRPathModel()Runtime type information for FHIRPath engines
Summary fieldsSummaryFieldsField lists for _summary=true server behavior
Code generatorcmd/generatorRegenerate all Go code from FHIR StructureDefinitions
Multi-versiongo.workImport R4, R4B, and R5 in the same project

Each of these features is designed to be used independently. You do not need a FHIRPath engine to use summary fields, and you do not need the code generator to use the library at all – the generated code is already committed and published as Go modules.

Last updated on