capabilityhandler

package
v0.0.0-...-64bf489 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReceiveCapabilityStatements

func ReceiveCapabilityStatements(ctx context.Context,
	store *postgresql.Store,
	messageQueue lanternmq.MessageQueue,
	channelID lanternmq.ChannelID,
	qName string) error

ReceiveCapabilityStatements connects to the given message queue channel and receives the capability statements from it. It then adds the capability statements to the given store.

func ReceiveVersionResponses

func ReceiveVersionResponses(ctx context.Context,
	store *postgresql.Store,
	messageQueue lanternmq.MessageQueue,
	channelID lanternmq.ChannelID,
	qName string,
	capQueryQueue lanternmq.MessageQueue,
	capQueryChannelID lanternmq.ChannelID) error

ReceiveVersionResponses connects to the given message queue channel (qname) and receives the versions response from it. It then saves the versions response and queries the versions advertized

func RunIncludedExtensionsChecks

func RunIncludedExtensionsChecks(capInt map[string]interface{}, includedFields []endpointmanager.IncludedField, fhirVersion string) []endpointmanager.IncludedField

RunIncludedExtensionsChecks stores whether each extension in capability statement is populated or not populated

func RunIncludedFieldsAndExtensionsChecks

func RunIncludedFieldsAndExtensionsChecks(capInt map[string]interface{}, fhirVersion string) []endpointmanager.IncludedField

RunIncludedFieldsAndExtensionsChecks returns an interface that contains information about whether fields and extensions are supported or not

func RunIncludedFieldsChecks

func RunIncludedFieldsChecks(capInt map[string]interface{}, includedFields []endpointmanager.IncludedField, fhirVersion string) []endpointmanager.IncludedField

RunIncludedFieldsChecks stores whether each field in capability statement is populated or not populated

func RunSupportedProfilesCheck

func RunSupportedProfilesCheck(capInt map[string]interface{}, fhirVersion string) []endpointmanager.SupportedProfile

RunSupportedProfilesCheck returns an interface that contains information about what profiles the server supports

func RunSupportedResourcesChecks

func RunSupportedResourcesChecks(capInt map[string]interface{}) map[string][]string

RunSupportedResourcesChecks takes the given capability statement and creates a map of the operations to the endpoint's resources that specified that operation. Example: { "read": ["AllergyInformation", "Medication"...],

"search-type": ["Medication", "Document"...], ...}

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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