resourcewrapper

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package resourcewrapper provides helper methods to work with R4 FHIR Resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceWrapper

type ResourceWrapper struct {
	Resource *r4pb.ContainedResource
}

ResourceWrapper holds helper methods to work with R4 FHIR Contained Resources.

func New

New returns a ResourceWrapper that wraps the R4 ContainedResource.

func (*ResourceWrapper) ResourceID

func (m *ResourceWrapper) ResourceID() (string, error)

ResourceID gets the ID of the underlying resource or an error.

func (*ResourceWrapper) ResourceMessageField

func (m *ResourceWrapper) ResourceMessageField() (proto.Message, error)

ResourceMessageField returns the resource from within the ContainedResource.

func (*ResourceWrapper) ResourceType

func (m *ResourceWrapper) ResourceType() (string, error)

ResourceType gets the type of the underlying resource or an error.

Jump to

Keyboard shortcuts

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