# Functions
AddFieldToPath extends a JSON path with another field.
AddIndexToPath extends a JSON path with an index.
AddInternalExtension adds a Google-internal extension ext if it is not existing in proto pb.
AnnotateUnmarshalErrorWithPath to help the user in debugging what field caused the error.
AnnotateUnmarshalErrorWithSeverity to help the user distinguish different error severity levels.
AppendUnmarshalError to the current error list, or ignore it if another type of fatal error has occurred.
CamelToSnake converts a CamelCase string into snake_case by putting one '_' character before each uppercase char and lowercasing all characters.
ExtensionFieldName takes the extension url and returns the field name for the extension.
ExtensionHasURL checks if an extension proto has the given URL.
ExtensionURL returns the extension URL value.
ExtensionValue returns the extension value proto.
ExtractTimezone returns the timezone from time.
ExtractTimezoneFromLoc returns the timezone from locale.
FieldMap returns a lookup table for a message's fields from the FHIR JSON field names.
FullExtensionFieldName uses the url to construct a full extension field name that's compliant with BigQuery field name requirement.
GetExtension returns the first extension in pb whose URL matches the given url, and nil if there is no match.
GetExtensionFieldDesc returns the extension field descriptor.
GetField returns the field descriptor.
GetInternalExtension returns the first extension in pb whose URL matches that of extension ext from proto pb, and nil if there is no match.
GetLocation parses tz as an IANA location or a UTC offset.
GetOneofField returns the oneof field, ensuring the given field is part of the given oneof.
GetTimeFromUsec generates a time.Time object from the given usec and timezone.
GetTimestampUsec converts t to a unix timestamp.
HasExtension returns true iff the proto message has an extension with the given url.
HasInternalExtension returns true iff the proto message pb contains a Google-internal FHIR extension ext.
InternalExtensionURL returns the internal extension URL.
IsChoice returns true iff the message type d is a FHIR choice type.
IsPrimitiveType returns true iff the message type d is a primitive FHIR data type.
IsResourceType returns true iff the message type d is a FHIR resource type.
IsSubmilli checks if the date input is sub-millisecond.
IsSubmilliTime checks if the time input is sub-millisecond.
IsSubsecond checks if the input is sub-second.
IsSubsecondTime checks if the time input is sub-second.
IsTimeLike FHIR data type.
IsUnmarshalError returns true if the provided error is an UnmarshalError or UnmarshalErrorList.
ParseTime parses a time into a struct that provides the time from midnight in microseconds and the precision of the original time.
PrintUnmarshalError to a string.
ReferenceFieldForType returns the reference field that should be populated for the supplied resource type.
RemoveExtension removes extension with given url from proto pb if it exists.
RemoveInternalExtension removes extension ext from proto pb if it exists.
ResourceIDField returns the resource-typed field that is populated in this reference, or nil if this is another type of reference.
ResourceTypeForReference returns the resource type that is associated with this reference field.
SerializeTime serializes the values from a Time proto message to a JSON string.
SnakeToCamel converts a snake_case string into a CamelCase string.
SnakeToLowerCamel converts the snake case to lower camel case.
UnmarshalCode interprets `rm` as a value of the enum that is the same type as `in`.
ValidateReferenceType returns an error is `ref` is a strongly typed reference that is not compatible with the types allowed by `msgField`.
ValidateRequiredFields returns an error if any field isn't populated in pb that should be, according to the ValidationRequirement annotation.
ValidateString returns an error is the string does not conform to FHIR requirements for size and control characters.
# Constants
Base64BinarySeparatorStrideURL is the canonical structure definition URL for internal extension Base64BinarySeparatorStride.
ContainedField is the JSON field name of inline resources.
DefaultAnalyticsRecurExpansionDepth indicates the default max depth for recursive expansion in marshalling to analytics schema.
Values for IssueSeverity.
Values for IssueSeverity.
Values for IssueSeverity.
Extension field constant.
LayoutDay for day layout.
LayoutMicros for microsecond layout.
LayoutMicrosUTC for microsecond layout plus UTC.
LayoutMillis for millisecond layout.
LayoutMillisUTC for millisecond layout plus UTC.
LayoutMinutes for minute layout.
LayoutMinutesNoTZ for minute layout without timezone.
LayoutMinutesUTC for minute layout plus UTC.
LayoutMonth for month layout.
LayoutSeconds for second layout.
LayoutSecondsNoTZ for second layout without timezone.
LayoutSecondsUTC for second layout plus UTC.
LayoutTimeMicroSecond for microsecond time layout.
LayoutTimeMilliSecond for millisecond time layout.
LayoutTimeSecond for time layout.
LayoutYear for year layout.
MicroToNano records the conversion between microsecond and nanosecond.
MidnightTimeStr for midnight time string.
OneofName field constant.
ParsingError is the error occurred during json parsing.
PrecisionMicrosecond indicates that the precision of the ValueUs field in a Time is to the microsecond.
PrecisionMillisecond indicates that the precision of the ValueUs field in a Time is to the millisecond.
PrecisionSecond indicates that the precision of the ValueUs field in a Time is to the second.
PrecisionUnspecified indicates that the precision of the ValueUs field in a Time is unknown.
PrimitiveHasNoValueURL is the canonical structure definition URL for internal extension PrimitiveHasNoValue.
RefAnyResource is the reference ID type name that fits any FHIR resources.
ReferenceTypeError is the error occurred during reference type validation.
RefFieldSuffix for reference field suffix.
RefFragment for reference fragment.
RefFragmentPrefix for reference fragment prefix.
RefHistory for reference history.
RefOneofName for oneof reference name.
RefRawURI for reference raw URI.
RequiredFieldError is the error occurred during required field validation.
ResourceTypeField constant.
SecondToMicro records the conversion between second and microsecond.
UTC represents the UTC timezone string.
# Variables
DateCompiledRegex for date regex.
DateTimeCompiledRegex for datetime regex.
InstantCompiledRegex for instant regex.
JSP for JSP regex.
PositiveIntCompiledRegex for positive integer regex.
RegexValues stores the proto message full names and the regex validation for its value fields.
SearchDateCompiledRegex for date regex used within searches only.
TimeCompiledRegex for time regex.
UnsignedIntCompiledRegex for unsigned integer regex.
# Structs
Time contains the result of a parsed FHIR time.
UnmarshalError is a public error message for an error that occurred during unmarshaling.
# Interfaces
IsJSON defines JSON related interface.
# Type aliases
ErrorSeverity represents different UnmarshalError severity levels.
ErrorType is the type of validation error.
JSONArray defines JSON array.
JSONObject defines JSON map.
JSONRawValue defines JSON bytes.
JSONString defines JSON string.
Precision is used to indicate the precision of the ValueUs field of a Time.
UnmarshalErrorList is a list of UnmarshalError that implements the Error interface itself.