Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { FHIR coolfhir.ClientConfig `koanf:"fhir"` Enabled bool `koanf:"enabled"` // Defaults to false, should not be set true in Test or Prod AllowUnmanagedFHIROperations bool `koanf:"allowunmanagedfhiroperations"` }
func DefaultConfig ¶
func DefaultConfig() Config
type FHIRHandler ¶
type FHIRHandler func(http.ResponseWriter, *http.Request, *coolfhir.BundleBuilder) (FHIRHandlerResult, error)
FHIRHandler defines a function that handles a FHIR request and returns a function to write the response. It may be executed singular, or be part of a Bundle that causes multiple handlers to be executed. It is provided with a BundleBuilder to add FHIR resource operations that must be executed on the backing FHIR server. The handler itself must not cause side-effects in the FHIR server: those MUST be effectuated through the transaction.
type FHIRHandlerRequest ¶
type FHIRHandlerResult ¶
FHIRHandlerResult is the result of a FHIRHandler execution. It returns: - the resource that should be returned, given the transaction result - a list of resources that should be notified to subscribers
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) RegisterHandlers ¶
type TestStruct ¶
type TestStruct[T any] struct { // contains filtered or unexported fields }