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

# Functions

Annotation creates an R4 FHIR Annotation element with the specified text, author, and time of creation.
AnnotationReference creates an R4 FHIR Annotation element with the specified text, a reference to the author, and the time of creation.
Base64Binary creates an R4 FHIR Base64Binary element the specified bytes.
Boolean creates a Boolean proto from a primitive value.
Code creates an R4 FHIR Code element from a string value.
CodeableConcept creates an R4 FHIR CodeableConcept with the specified codings, and with the Text element if the given text argument is non-empty.
Coding creates an R4 FHIR Coding element with the provided system and code.
CodingWithVersion creates an R4 FHIR Coding element with the provided system, code, and version.
ContactDetail creates an R4 FHIR ContactDetail element from a string value and the specified contact-points.
ContactPoint creates an R4 FHIR ContactPoint element from the system and value.
Date creates an R4 FHIR Date element from a Time value, accurate to a given day.
DateNow creates an R4 FHIR Date element at the current time using the highest available precision.
DateTime creates an R4 FHIR DateTime element from a Time value, accurate to the microsecond.
DateTimeNow creates an R4 FHIR DateTime element at the current time using the highest available precision.
Days creates a Duration proto with the specified time value, rounded to day-accuracy.
Decimal creates an R4 FHIR Decimal element from a float64 (double) value.
Duration creates a Duration proto with the provided value, computing the largest whole-unit of time that can be used to represent the time.
DurationFromTime converts an R4 FHIR Time Element into an R4 FHIR Duration value.
EmailContactPoint creates an R4 FHIR ContactPoint element for the Email system given a value.
Escape values intended for use as a parameter in a FHIR Search.
FaxContactPoint creates an R4 FHIR ContactPoint element for the Fax system given a value.
Hours creates a Duration proto with the specified time value, rounded to hour-accuracy.
ID creates an R4 FHIR ID element from a string value.
Identifier creates an R4 FHIR Identifier element with the provided system and value.
Instant creates an R4 FHIR Instant element from a Time value, accurate to the microsecond.
InstantNow creates an R4 FHIR Instant element at the current time using the highest available precision.
Integer creates an R4 FHIR Integer element from an int32 value.
IntegerFromInt creates an R4 FHIR Integer element from an int value.
IntegerFromPositiveInt attempts to create an R4 FHIR Integer element from a PositiveInt value.
IntegerFromUnsignedInt attempts to create an R4 FHIR Integer element from an UnsignedInt value.
IsID returns true if the given string a valid FHIR ID.
Markdown creates an R4 FHIR Markdown element from a string value.
Microseconds creates a Duration proto with the specified time value, rounded to microsecond accuracy.
Milliseconds creates a Duration proto with the specified time value, rounded to millisecond accuracy.
Minutes creates a Duration proto with the specified time value, rounded to minute accuracy.
Money creates an R4 FHIR Money element from the money value.
MoneyQuantity creates an R4 FHIR MoneyQuantity element from the value and units.
MustParseDate parses a date as according to ParseDate, but panics if the date is invalid.
MustParseDateTime parses a date as according to ParseDateTime, but panics if the date is invalid.
MustParseInstant parses a date as according to ParseInstant, but panics if the time is invalid.
MustParseTime parses a date as according to ParseTime, but panics if the time is invalid.
Nanoseconds creates a Duration proto with the specified time value, rounded to nanosecond accuracy.
Narrative creates a R4 FHIR Narrative element from a string value.
OID creates an R4 FHIR OID element from a OID-string value, prepending the necessary "urn:oid:" to the value.
OtherContactPoint creates an R4 FHIR ContactPoint element for the Other system given a value.
PagerContactPoint creates an R4 FHIR ContactPoint element for the Pager system given a value.
ParseDate converts the input string into a FHIR Date element.
ParseDateTime converts the input string into a FHIR DateTime element.
ParseInstant converts the input string into a FHIR Instant element.
ParseTime converts the input string into a FHIR Time element.
Period creates an R4 FHIR Period element with the provided start and end times.
PhoneContactPoint creates an R4 FHIR ContactPoint element for the Phone system given a value.
PositiveInt creates an R4 FHIR PositiveInt element from a uint32 value.
Quantity creates an R4 FHIR Quantity element from the given value and units.
QuantityFromDuration is a convenience utility for converting a Duration to its base-class definition of Quantity.
QuantityFromMoneyQuantity is a convenience utility for converting a MoneyQuantity to its base-class definition of Quantity.
QuantityFromSimpleQuantity is a convenience utility for converting a SimpleQuantity to its base-class definition of Quantity.
RandomID generates a new random R4 FHIR ID element.
RandomUUID generates a random new UUID.
Range creates an R4 FHIR Range element with the given low and high end of the range, using the specified units.
Ratio creates an R4 FHIR Ratio element with the given numerator and denominator.
Seconds creates a Duration proto with the specified time value, rounded to second accuracy.
SimpleQuantity creates an R4 FHIR SimpleQuantity element from the given value and units.
SmsContactPoint creates an R4 FHIR ContactPoint element for the SMS system given a value.
String creates an R4 FHIR String element from a string value.
StringFromCode is a convenience utility for converting a Code to its base-class definition of String.
StringFromID is a convenience utility for converting an Id to its base-class definition of String.
StringFromMarkdown is a convenience utility for converting Markdown to its base-class definition of String.
Strings creates an array of R4 FHIR String elements from a string value.
Time creates an R4 FHIR Time element from a Time value.
TimeNow creates an R4 FHIR Time element at the current time using the highest available precision.
TimeOfDay creates a Time proto at the specified time.
Timing creates an R4 FHIR Timing element observing the events specified in `times`.
UCUMQuantity creates an R4 FHIR Quantity element representing a value and UCUM unit.
UnsignedInt creates an R4 FHIR UnsignedInt element from a uint32 value.
UnwrapValueX obtains the underlying Message for oneof ValueX elements, which use a nested Choice field.
URI creates an R4 FHIR URI element from a string value.
URIFromCanonical is a convenience utility for converting a canonical to its base-class definition of URI.
URIFromOID is a convenience utility for converting an OID to its base-class definition of URI.
URIFromURL is a convenience utility for converting a URL to its base-class definition of URI.
URIFromUUID is a convenience utility for converting a UUID to its base-class definition of URI.
URL creates an R4 FHIR URL element from a string value.
UUID creates an R4 FHIR UUID element from a uuid-string value, prepending the necessary "urn:uuid:" to the value.
XHTML creates an R4 FHIR XHTML element from a string value.

# Constants

These characters have special meaning in FHIR Search queries.

# Variables

ErrIntegerDataLoss is an error raised in APIs that might unintentionally truncate integral values that the user wouldn't expect.

# Interfaces

BackboneElement is the base definition for all elements that are defined inside a resource - but not those in a data type.
BackboneType is a constraint-definition of FHIR backbone element, which all support ID, Extension, and modifier-extension fields, in addition to their base values.
Base is the interface-definition of the FHIR abstract base type which is the ancestor of all FHIR objects (both resources and elements).
CanonicalResource represents resources that have a canonical URL: - They have a canonical URL (note: all resources with a canonical URL are specializations of this type) - They have version, status, and data properties to help manage their publication - They carry some additional metadata about their use, including copyright information CanonicalResource objects may be the logical target of Canonical references.
DataType is an constraint-definition of FHIR datatypes, which all support ID and Extension fields, in addition to their base values.
DomainResource is the interface-definition of the FHIR Abstract base type which is the ancestor of all FHIR domain resource objects (effectively everything that is not a datatype or bundle/contained-resource).
Element is the base definition for all elements in a resource.
Extendable is an interface for abstraction resources or data-types that have extension properties.
MetadataResource represents resources that carry additional publication metadata over other CanonicalResources, describing their review and use in more details.
PrimitiveType is a constraint-definition of FHIR datatypes, which all support ID and Extension fields, in addition to their base values.
Resource is the interface-definition of the FHIR Abstract base type which is the ancestor of all FHIR resources.