csd

package
v0.0.0-...-a70b9b0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEntryNotFound = errors.New("CSD does not contain the specified entry")

Functions

This section is empty.

Types

type Directory

type Directory interface {
	// LookupEndpoint searches for endpoints with the given name of the given owner.
	// If the owner is nil, it will search for all endpoints in the CSD.
	LookupEndpoint(ctx context.Context, owner *fhir.Identifier, endpointName string) ([]fhir.Endpoint, error)
	// LookupEntity searches for an entity with the given identifier, returning it as reference.
	// The reference then might contain more information on the entity, like a human-readable display name.
	// If the entity is not found, it returns ErrEntryNotFound.
	LookupEntity(ctx context.Context, identifier fhir.Identifier) (*fhir.Reference, error)
}

Directory defines the primary interface to discovery Care Services in the CSD.

Jump to

Keyboard shortcuts

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