Documentation ¶
Overview ¶
Package testfhir contains utilities for testing with FHIR resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetReferenceID ¶
GetReferenceID returns the ID embedded in `ref`.
func GetStringValue ¶
GetStringValue returns the StringValue from the extension.
Types ¶
type ByteOutput ¶
ByteOutput is a resource output that writes to a byte buffer.
func (*ByteOutput) New ¶
func (o *ByteOutput) New(_ string) (io.WriteCloser, error)
New returns the ByteWriteCloser.
type Writer ¶
type Writer struct { Resources []*ir.PatientInfo // contains filtered or unexported fields }
Writer is a resource writer that exposes the resources it has written to be retrieved by tests.
func NewWriter ¶
func NewWriter() *Writer
NewWriter initialises gob encoders and returns a new TestWriter.
Click to show internal directories.
Click to hide internal directories.