stu3

package
v0.85.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Overview

Package stu3 contains helper methods for use with CDR

Index

Constants

View Source
const (
	ExtDeleteURL = "http://hsdp.com/cdr/Subscription/deletionUri"
)

Variables

This section is empty.

Functions

func NewOrganization

func NewOrganization(timeZone, orgID, name string) (*rpb.Organization, error)

NewOrganization returns a CDR STU3 organization in Google FHIR proto format

func NewSubscription added in v0.27.1

func NewSubscription(options ...WithSubscriptionFunc) (*stu3pb.Subscription, error)

NewSubscription creates a FHIR Subscription proto resource The WithSubscriptionFunc option methods should be used to build the structure

Types

type StringValue added in v0.28.0

type StringValue func(sub *stu3pb.Subscription) string

func DeleteEndpointValue added in v0.28.0

func DeleteEndpointValue() StringValue

DeleteEndpointValue returns the URI if set, empty string otherwise

type WithSubscriptionFunc added in v0.70.0

type WithSubscriptionFunc func(sub *stu3pb.Subscription) error

func WithContact added in v0.27.1

func WithContact(system, value, use string) WithSubscriptionFunc

func WithCriteria added in v0.27.1

func WithCriteria(critera string) WithSubscriptionFunc

func WithDeleteEndpoint added in v0.28.0

func WithDeleteEndpoint(endpoint string) WithSubscriptionFunc

WithDeleteEndpoint adds an endpoint which is called a Resource is deleted This is an extension supported by CDR

func WithEndpoint added in v0.27.1

func WithEndpoint(endpoint string) WithSubscriptionFunc

func WithEndtime added in v0.27.1

func WithEndtime(at time.Time) WithSubscriptionFunc

WithEndtime sets the end time of the subscription

func WithHeaders added in v0.27.1

func WithHeaders(headers []string) WithSubscriptionFunc

func WithReason added in v0.27.1

func WithReason(reason string) WithSubscriptionFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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