package
1.1.0
Repository: https://github.com/verily-src/fhirpath-go.git
Documentation: pkg.go.dev

# Functions

EntryReference generates a FHIR Reference proto pointing to the Entry's resource.
Extend extends an existing bundle with the provided bundle options.
IdentityOfResponse returns a complete Identity (Type and ID always set, VersionID set if applicable) representing the location contained in the given bundle entry response.
New creates a new New by building it from the bundle options.
NewBatch is a helper function for building a batch bundle.
NewCollection is a helper function for building a collection bundle.
NewCollectionEntry takes in a FHIR Resource and creates a BundleEntry for the resource.
NewDeleteEntry constructs a delete resource operation via a DELETE request.
NewGetEntry constructs a bundle entry with a GET request for the head value of a resource.
NewHistory is a helper function for building a history bundle.
NewPostEntry wraps a FHIR Resource for a transaction bundle to be written to storage via a POST request.
NewPutEntry wraps a FHIR Resource for a transaction bundle to be written to storage via a PUT request.
NewSearchset is a helper function for building a searchset bundle.
NewTransaction is a helper function for building a transaction bundle.
NewVersionedGetEntry constructs a bundle entry with a GET request for the versioned value of a resource.
PatchEntryFromBytes takes in a Resource Identity and a byte array payload, and returns a BundleEntry corresponding to a JSON Patch for the resource.
SetEntryIfMatch sets the entry.Request.IfMatch based on entry.Resource.Meta.VersionId.
Unwrap unwraps a bundle into a slice of resources.
UnwrapEntry unwraps a bundle entry into a FHIR Resource.
UnwrapMap unwraps a bundle into a map indexed by resource type.
WithEntries adds bundle entries to a bundle.
WithFullURL adds a FullUrl field to a BundleEntry.
WithGeneratedFullURL adds a randomly generated FullUrl field to a BundleEntry, taking the form urn:uuid:$UUID.
WithIfNoneExist adds an identifier to the If-None-Exist request header of a POST BundleEntry, in the format `identifier=system|value`.
WithTimestamp adds a given time to the bundle's timestamp.
WithTimestampNow adds the current time to the bundle's timestamp.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

EntryOption is an option interface for constructing bundle entries from raw data.

# Type aliases

Option is an option interface for constructing bundles from raw data.