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.