Versions in this module Expand all Collapse all v0 v0.2.1 Sep 26, 2026 v0.2.0 Sep 22, 2026 Changes in this version + func NewHandler(cfg Config) (http.Handler, error) + func NewRateLimitMiddleware(cfg RateLimitConfig) func(http.Handler) http.Handler + func NewRootHandler(fhir http.Handler, sync hasync.HubServer) http.Handler + func NewRootHandlerFromConfig(cfg RootConfig) http.Handler + func NewRootHandlerWithSyncMiddleware(fhir http.Handler, sync hasync.HubServer, ...) http.Handler + func NewSyncHandler(hub hasync.HubServer) http.Handler + func NotImplemented(path string) error + func SMARTBearerAuthMiddleware(cfg smart.BearerAuthConfig) func(http.Handler) http.Handler + func ValidateSyncRequest(nodeID, tenantID string) error + func WithHealthEndpoints(next nethttp.Handler, ready func() bool) nethttp.Handler + type AuthBundleResolver func(ctx context.Context, r *http.Request) (smart.AuthBundle, bool) + func SMARTBackendAssertionBundleResolver(cfg smart.BackendAssertionAuthConfig) AuthBundleResolver + func SMARTBearerBundleResolver(cfg smart.BearerAuthConfig) AuthBundleResolver + type AuthChecker interface + AuthorizeExport func(ctx context.Context, principal auth.Principal, tenant auth.TenantContext, ...) (auth.Decision, error) + AuthorizeRead func(ctx context.Context, principal auth.Principal, tenant auth.TenantContext, ...) (auth.Decision, error) + AuthorizeSearch func(ctx context.Context, principal auth.Principal, tenant auth.TenantContext, ...) (auth.Decision, error) + AuthorizeWrite func(ctx context.Context, principal auth.Principal, tenant auth.TenantContext, ...) (auth.Decision, error) + type BulkExportService interface + Cancel func(ctx context.Context, jobID string) error + GetFile func(ctx context.Context, jobID, filename string) ([]byte, string, error) + GetJob func(ctx context.Context, jobID string) (*export.Job, error) + Kickoff func(ctx context.Context, req export.KickoffRequest) (*export.Job, error) + Manifest func(job *export.Job) *export.Manifest + OpenFile func(ctx context.Context, jobID, filename string) (io.ReadCloser, string, error) + StatusURL func(jobID string) string + type BulkImportService interface + Cancel func(ctx context.Context, jobID string) error + GetFile func(ctx context.Context, jobID, filename string) ([]byte, string, error) + GetJob func(ctx context.Context, jobID string) (*bulkimport.Job, error) + Kickoff func(ctx context.Context, req bulkimport.KickoffRequest) (*bulkimport.Job, error) + Manifest func(job *bulkimport.Job) *bulkimport.Manifest + StatusURL func(jobID string) string + type CapabilitySource interface + CapabilitySnapshot func() registry.CapabilitySnapshot + type ConditionalResourceService interface + DeleteIfMatch func(ctx context.Context, resourceType, id, expectedVersion string) error + PatchIfMatch func(ctx context.Context, resourceType, id string, patchJSON []byte, ...) (*types.ResourceEnvelope, error) + UpdateIfMatch func(ctx context.Context, resource *types.ResourceEnvelope, expectedVersion string) (*types.ResourceEnvelope, error) + type Config struct + AuthBundleResolver AuthBundleResolver + AuthChecker AuthChecker + AuthMiddleware func(http.Handler) http.Handler + BasePath string + BulkExportService BulkExportService + BulkImportService BulkImportService + CapabilitySource CapabilitySource + Codec types.ResourceCodec + ConformanceRefresher ConformanceRefresher + DefaultTerminologyTenantID string + Hooks hooks.Hooks + JobStatusService JobStatusService + MeasureEvaluateService MeasureEvaluateService + ModuleInstallService ModuleInstallService + ModulePaths []string + OperationService OperationService + PackageInstallService PackageInstallService + PatientReferenceResolver auth.ResourcePatientResolver + PrincipalResolver PrincipalResolver + RateLimit RateLimitConfig + ResourceService ResourceService + SDCService SDCService + SQLQueryService SQLQueryService + ScopeFilterMatcher smart.ScopeFilterMatcher + SearchService SearchService + ServerMetadata ServerMetadata + TerminologyEnableService TerminologyEnableService + TerminologyInstallFactory store.TerminologyInstallStoreFactory + TerminologyInstallService TerminologyInstallService + TerminologyScope string + TerminologyService TerminologyService + ValidateService ValidateService + ViewExportService ViewExportService + ViewMaterializeService ViewMaterializeService + ViewRunService ViewRunService + type ConformanceRefresher interface + Refresh func(ctx context.Context) error + type ConformanceRuntime interface + Engine func() validate.Engine + Refresh func(ctx context.Context) (*registry.Snapshot, error) + Snapshot func() *registry.Snapshot + type CoreJobStatusService struct + JobStore store.JobStore + func (s CoreJobStatusService) GetJob(ctx context.Context, id string) (*store.JobRecord, error) + type CoreMeasureService struct + Engine *cql.Engine + Libraries cql.LibraryResolver + Resources store.ResourceStore + Retriever cql.Retriever + func (s CoreMeasureService) EvaluateMeasure(ctx context.Context, req MeasureEvaluateRequest) (*types.ResourceEnvelope, error) + type CoreModuleInstallService struct + JobStore store.JobStore + func (s CoreModuleInstallService) EnqueueInstall(ctx context.Context, path string, upgradeOnly bool) (store.JobRecord, error) + type CorePackageInstallService struct + JobStore store.JobStore + func (s CorePackageInstallService) EnqueueArchiveInstall(ctx context.Context, packageID, version string, r io.Reader) (store.JobRecord, error) + func (s CorePackageInstallService) EnqueueRegistryInstall(ctx context.Context, packageID, version string) (store.JobRecord, error) + type CoreResourceService struct + Svc *core.ResourceService + func (a CoreResourceService) Create(ctx context.Context, resource *types.ResourceEnvelope) (*types.ResourceEnvelope, error) + func (a CoreResourceService) Delete(ctx context.Context, resourceType, id string) error + func (a CoreResourceService) DeleteIfMatch(ctx context.Context, resourceType, id, expectedVersion string) error + func (a CoreResourceService) Everything(ctx context.Context, patientID string, q core.EverythingQuery) ([]*types.ResourceEnvelope, error) + func (a CoreResourceService) History(ctx context.Context, resourceType, id string) ([]store.ResourceVersion, error) + func (a CoreResourceService) Patch(ctx context.Context, resourceType, id string, patchJSON []byte) (*types.ResourceEnvelope, error) + func (a CoreResourceService) PatchIfMatch(ctx context.Context, resourceType, id string, patchJSON []byte, ...) (*types.ResourceEnvelope, error) + func (a CoreResourceService) ProcessBatchBundle(ctx context.Context, bundle *types.ResourceEnvelope) (*types.ResourceEnvelope, error) + func (a CoreResourceService) ProcessTransactionBundle(ctx context.Context, bundle *types.ResourceEnvelope) (*types.ResourceEnvelope, error) + func (a CoreResourceService) Read(ctx context.Context, resourceType, id string) (*types.ResourceEnvelope, error) + func (a CoreResourceService) Update(ctx context.Context, resource *types.ResourceEnvelope) (*types.ResourceEnvelope, error) + func (a CoreResourceService) UpdateIfMatch(ctx context.Context, resource *types.ResourceEnvelope, expectedVersion string) (*types.ResourceEnvelope, error) + func (a CoreResourceService) VRead(ctx context.Context, resourceType, id, versionID string) (*types.ResourceEnvelope, error) + type CoreSDCService struct + AdaptiveEngine sdc.AdaptiveEngine + Elements sdc.DefinitionElementResolver + Extractor sdc.Extractor + Provider sdc.ExpressionProvider + Resolver sdc.QuestionnaireResolver + Resources *core.ResourceService + Terminology sdc.TerminologyResolver + func (a CoreSDCService) Adaptive(ctx context.Context, op string, req SDCRequest) (*types.ResourceEnvelope, error) + func (a CoreSDCService) Assemble(ctx context.Context, req SDCRequest) (*types.ResourceEnvelope, error) + func (a CoreSDCService) Extract(ctx context.Context, req SDCRequest) (*types.ResourceEnvelope, error) + func (a CoreSDCService) Populate(ctx context.Context, req SDCRequest) (*types.ResourceEnvelope, error) + func (a CoreSDCService) Validate(ctx context.Context, req SDCRequest) (*types.OperationOutcome, error) + type CoreTerminologyEnableService struct + DefaultTenantID string + Definitions store.DefinitionStore + Global store.TerminologyStore + InstallFactory store.TerminologyInstallStoreFactory + func (s CoreTerminologyEnableService) Enable(ctx context.Context, record store.TerminologyInstallRecord) (terminology.EnableResult, error) + type CoreTerminologyInstallService struct + DefaultScope string + JobStore store.JobStore + func (s CoreTerminologyInstallService) EnqueueRebuild(ctx context.Context, scopeID string, preExpandValueSets bool) (store.JobRecord, error) + type CoreValidateService struct + Codec types.ResourceCodec + Engine validate.Engine + Options validate.ValidateOptions + Profiles []string + Resources ResourceService + Runtime ConformanceRuntime + func (s CoreValidateService) Validate(ctx context.Context, req ValidateRequest) (*types.OperationOutcome, error) + type DirectPackageInstallService struct + Installer *packages.Installer + func (s DirectPackageInstallService) EnqueueArchiveInstall(ctx context.Context, packageID, version string, r io.Reader) (store.JobRecord, error) + func (s DirectPackageInstallService) EnqueueRegistryInstall(ctx context.Context, packageID, version string) (store.JobRecord, error) + type JobStatusService interface + GetJob func(ctx context.Context, id string) (*store.JobRecord, error) + type LiveCapabilitySource struct + Runtime ConformanceRuntime + func (s LiveCapabilitySource) CapabilitySnapshot() registry.CapabilitySnapshot + type LivePatientSearchParamResolver struct + Runtime ConformanceRuntime + func (r LivePatientSearchParamResolver) PatientSearchParameterCode(resourceType string) (string, bool) + type MeasureEvaluateRequest struct + Body []byte + ID string + Query url.Values + type MeasureEvaluateService interface + EvaluateMeasure func(context.Context, MeasureEvaluateRequest) (*types.ResourceEnvelope, error) + type ModuleInstallService interface + EnqueueInstall func(ctx context.Context, path string, upgradeOnly bool) (store.JobRecord, error) + type OperationAuthChecker interface + AuthorizeOperation func(ctx context.Context, principal auth.Principal, tenant auth.TenantContext, ...) (auth.Decision, error) + type OperationRequest struct + Body []byte + ID string + Operation string + Query url.Values + ResourceType string + type OperationService interface + Execute func(context.Context, OperationRequest) (*types.ResourceEnvelope, error) + type PackageInstallService interface + EnqueueArchiveInstall func(ctx context.Context, packageID, version string, r io.Reader) (store.JobRecord, error) + EnqueueRegistryInstall func(ctx context.Context, packageID, version string) (store.JobRecord, error) + type PatientScopedSearchService interface + SearchBundleForPatient func(ctx context.Context, resourceType, patientID string, params url.Values) (*search.SearchBundle, error) + type PolicyAuthChecker struct + Engine auth.PolicyEngine + func (c PolicyAuthChecker) AuthorizeExport(ctx context.Context, principal auth.Principal, tenant auth.TenantContext, ...) (auth.Decision, error) + func (c PolicyAuthChecker) AuthorizeRead(ctx context.Context, principal auth.Principal, tenant auth.TenantContext, ...) (auth.Decision, error) + func (c PolicyAuthChecker) AuthorizeSearch(ctx context.Context, principal auth.Principal, tenant auth.TenantContext, ...) (auth.Decision, error) + func (c PolicyAuthChecker) AuthorizeWrite(ctx context.Context, principal auth.Principal, tenant auth.TenantContext, ...) (auth.Decision, error) + type PrincipalResolver func(ctx context.Context, r *http.Request) (auth.Principal, auth.TenantContext, error) + func SMARTBackendAssertionPrincipalResolver(cfg smart.BackendAssertionAuthConfig) PrincipalResolver + func SMARTBearerPrincipalResolver(cfg smart.BearerAuthConfig) PrincipalResolver + type RateLimitConfig struct + Key func(*http.Request) string + MaxEntries int + Requests int + Window time.Duration + type RegistryCapabilitySource struct + Snapshot *registry.Snapshot + func (s RegistryCapabilitySource) CapabilitySnapshot() registry.CapabilitySnapshot + type ResourceService interface + Create func(ctx context.Context, resource *types.ResourceEnvelope) (*types.ResourceEnvelope, error) + Delete func(ctx context.Context, resourceType, id string) error + History func(ctx context.Context, resourceType, id string) ([]store.ResourceVersion, error) + Patch func(ctx context.Context, resourceType, id string, patchJSON []byte) (*types.ResourceEnvelope, error) + ProcessBatchBundle func(ctx context.Context, bundle *types.ResourceEnvelope) (*types.ResourceEnvelope, error) + ProcessTransactionBundle func(ctx context.Context, bundle *types.ResourceEnvelope) (*types.ResourceEnvelope, error) + Read func(ctx context.Context, resourceType, id string) (*types.ResourceEnvelope, error) + Update func(ctx context.Context, resource *types.ResourceEnvelope) (*types.ResourceEnvelope, error) + type RootConfig struct + FHIR http.Handler + OAuth http.Handler + Sync SyncHubServer + SyncMiddleware func(http.Handler) http.Handler + type SDCRequest struct + Body *types.ResourceEnvelope + Parameters *types.ResourceEnvelope + Query url.Values + Questionnaire *types.ResourceEnvelope + QuestionnaireResponse *types.ResourceEnvelope + type SDCService interface + Adaptive func(context.Context, string, SDCRequest) (*types.ResourceEnvelope, error) + Assemble func(context.Context, SDCRequest) (*types.ResourceEnvelope, error) + Extract func(context.Context, SDCRequest) (*types.ResourceEnvelope, error) + Populate func(context.Context, SDCRequest) (*types.ResourceEnvelope, error) + Validate func(context.Context, SDCRequest) (*types.OperationOutcome, error) + type SQLQueryService interface + Execute func(ctx context.Context, req view.SQLQueryRequest) ([]byte, string, error) + type SearchService interface + SearchBundle func(ctx context.Context, resourceType string, params url.Values) (*search.SearchBundle, error) + type SearchServiceAdapter struct + PatientSearchParamResolver auth.PatientSearchParamResolver + Svc searchBundleExecutor + func (a SearchServiceAdapter) SearchBundle(ctx context.Context, resourceType string, params url.Values) (*search.SearchBundle, error) + func (a SearchServiceAdapter) SearchBundleForPatient(ctx context.Context, resourceType, patientID string, params url.Values) (*search.SearchBundle, error) + type ServerMetadata struct + Description string + ServerName string + SoftwareName string + SoftwareVersion string + type SyncHubServer = hasync.HubServer + type TerminologyEnableService interface + Enable func(ctx context.Context, record store.TerminologyInstallRecord) (terminology.EnableResult, error) + type TerminologyInstallService interface + EnqueueRebuild func(ctx context.Context, scopeID string, preExpandValueSets bool) (store.JobRecord, error) + type TerminologyService = terminology.Service + type ValidateRequest struct + Body []byte + ContentType string + ID string + Query url.Values + ResourceType string + type ValidateService interface + Validate func(context.Context, ValidateRequest) (*types.OperationOutcome, error) + type ViewExportService interface + Cancel func(ctx context.Context, jobID string) error + FileURL func(jobID, filename string) string + GetFile func(ctx context.Context, jobID, filename string) ([]byte, string, error) + GetJob func(ctx context.Context, jobID string) (*view.ViewExportJob, error) + Kickoff func(ctx context.Context, req view.ViewExportRequest) (*view.ViewExportJob, error) + OpenFile func(ctx context.Context, jobID, filename string) (io.ReadCloser, string, error) + StatusURL func(jobID string) string + type ViewMaterializeService interface + Cancel func(ctx context.Context, jobID string) error + GetJob func(ctx context.Context, jobID string) (*view.MaterializeJob, error) + Kickoff func(ctx context.Context, req view.MaterializeRequest) (*view.MaterializeJob, error) + Result func(job *view.MaterializeJob) *view.MaterializeResult + StatusURL func(jobID string) string + type ViewRunService interface + Execute func(ctx context.Context, req view.ViewRunRequest) ([]byte, string, error)