r4

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: 9 Imported by: 0

Documentation

Overview

Package r4 contains helper methods for use with CDR

Index

Constants

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

Variables

This section is empty.

Functions

func NewOrganization

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

NewOrganization returns a CDR R4 organization in Google FHIR proto format

func NewSubscription

func NewSubscription(options ...WithFunc) (*r4pbsub.Subscription, error)

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

Types

type StringValue

type StringValue func(sub *r4pbsub.Subscription) string

func DeleteEndpointValue

func DeleteEndpointValue() StringValue

DeleteEndpointValue returns the URI if set, empty string otherwise

type WithFunc

type WithFunc func(sub *r4pbsub.Subscription) error

func WithContact

func WithContact(system, value, use string) WithFunc

func WithCriteria

func WithCriteria(critera string) WithFunc

func WithDeleteEndpoint

func WithDeleteEndpoint(endpoint string) WithFunc

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

func WithEndpoint

func WithEndpoint(endpoint string) WithFunc

func WithEndtime

func WithEndtime(at time.Time) WithFunc

WithEndtime sets the end time of the subscription

func WithHeaders

func WithHeaders(headers []string) WithFunc

func WithReason

func WithReason(reason string) WithFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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