careplanservice

package
v0.0.0-...-1022bbc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: GPL-3.0 Imports: 28 Imported by: 0

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

func (Config) Validate

func (c Config) Validate() error

type FHIRHandler

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 FHIRHandlerRequest struct {
	ResourceId   string
	ResourcePath string
	ResourceData json.RawMessage
	HttpMethod   string
	RequestUrl   *url.URL
	FullUrl      string
}

type FHIRHandlerResult

type FHIRHandlerResult func(txResult *fhir.Bundle) (*fhir.BundleEntry, []any, error)

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 New

func New(config Config, profile profile.Provider, orcaPublicURL *url.URL) (*Service, error)

func (*Service) RegisterHandlers

func (s *Service) RegisterHandlers(mux *http.ServeMux)

type TestStruct

type TestStruct[T any] struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL