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 ¶
func New(in *r4pb.ContainedResource) *ResourceWrapper
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.
Click to show internal directories.
Click to hide internal directories.