capabilityparser

package
v0.0.0-...-33bd6cc Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapabilityStatement

type CapabilityStatement interface {
	GetPublisher() (string, error)
	GetFHIRVersion() (string, error)
	GetSoftware() (map[string]interface{}, error)
	GetSoftwareName() (string, error)
	GetSoftwareVersion() (string, error)
	GetCopyright() (string, error)
	GetRest() ([]map[string]interface{}, error)
	GetResourceList(map[string]interface{}) ([]map[string]interface{}, error)
	GetKind() (string, error)
	GetImplementation() (map[string]interface{}, error)
	GetMessaging() ([]map[string]interface{}, error)
	GetMessagingEndpoint(map[string]interface{}) ([]map[string]interface{}, error)
	GetDocument() ([]map[string]interface{}, error)
	GetDescription() (string, error)

	Equal(CapabilityStatement) bool
	EqualIgnore(CapabilityStatement) bool
	GetJSON() ([]byte, error)
}

CapabilityStatement provides access to key fields of the capability statement. It wraps the capability statements so users don't need to worry about the capability statement version.

func NewCapabilityStatement

func NewCapabilityStatement(capJSON []byte) (CapabilityStatement, error)

NewCapabilityStatement is a factory method for creating a CapabilityStatement. It determines what version the capability statement JSON is and creates the relevant implementation of the CapabilityStatement interface.

func NewCapabilityStatementFromInterface

func NewCapabilityStatementFromInterface(capStat map[string]interface{}) (CapabilityStatement, error)

NewCapabilityStatementFromInterface is a factory method for creating a CapabilityStatement. It determines what version the capability statement JSON map[string]interface{} object is and creates the relevant implementation of the CapabilityStatement interface.

Jump to

Keyboard shortcuts

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