package
0.0.0-20180827153403-cd152e6130c6
Repository: https://github.com/intervention-engine/fhir.git
Documentation: pkg.go.dev
# Functions
ExtractPrefixAndValue parses a string parameter value into an optional prefix and value.
GlobalMongoRegistry returns an instance of the global search parameter registry.
GlobalRegistry returns an instance of the global search parameter registry.
NewMongoSearcher creates a new instance of a MongoSearcher, given a pointer to an mgo.Database.
NewQueryOptions constructs a new QueryOptions with default values (offset = 0, Count = 100).
ParseCompositeParam parses a composite query string and returns a pointer to a CompositeParam based on the query and the parameter definition.
ParseDate parses a FHIR date string (roughly ISO 8601) into a Date object, maintaining the value and the precision supplied.
ParseDateParam parses a date-based query string and returns a pointer to a DateParam based on the query and the parameter definition.
ParseNumber parses a numeric string into a Number object, maintaining the value and precision supplied.
ParseNumberParam parses a number-based query string and returns a pointer to a NumberParam based on the query and the parameter definition.
ParseOrParam parses a slice of values to be ORed and returns a pointer to an OrParam based on the query and the parameter definition.
ParseParamNameModifierAndPostFix parses a full parameter key and returns the parameter name, modifier, and postfix components.
ParseQuantityParam parses a quantity-based query string and returns a pointer to a QuantityParam based on the query and the parameter definition.
ParseQuery provides an alternative to url.ParseQuery when the order of parameters must be retained.
ParseReferenceParam parses a reference-based query string and returns a pointer to a ReferenceParam based on the query and the parameter definition.
ParseStringParam parses a string-based query string and returns a pointer to a StringParam based on the query and the parameter definition.
ParseTokenParam parses a token-based query string and returns a pointer to a TokenParam based on the query and the parameter definition.
ParseURIParam parses an uri-based query string and returns a pointer to an URIParam based on the query and the parameter definition.
# Constants
Constant values for the Prefix enum.
Constant values for search paramaters and search result parameters.
Constant values for search paramaters and search result parameters.
Constant values for search paramaters and search result parameters.
Constant values for search paramaters and search result parameters.
Constant values for the DatePrecision enum.
Constant values for the Prefix enum.
Constant values for search paramaters and search result parameters.
Constant values for the Prefix enum.
Constant values for search paramaters and search result parameters.
Constant values for the Prefix enum.
Constant values for the Prefix enum.
Constant values for search paramaters and search result parameters.
Constant values for search paramaters and search result parameters.
Constant values for search paramaters and search result parameters.
Constant values for the Prefix enum.
Constant values for search paramaters and search result parameters.
Constant values for the Prefix enum.
Constant values for the DatePrecision enum.
Constant values for the DatePrecision enum.
Constant values for the DatePrecision enum.
Constant values for the Prefix enum.
Custom param, not in FHIR spec.
Constant values for search paramaters and search result parameters.
Constant values for search paramaters and search result parameters.
Constant values for search paramaters and search result parameters.
Constant values for the Prefix enum.
Constant values for the DatePrecision enum.
Constant values for search paramaters and search result parameters.
Constant values for search paramaters and search result parameters.
Constant values for search paramaters and search result parameters.
Constant values for search paramaters and search result parameters.
Constant values for search paramaters and search result parameters.
Constant values for the DatePrecision enum.
# Variables
SearchParameterDictionary provides a mapping from FHIR resource names to a list of the search parameters they support.
# Structs
ChainedQueryReference represents a chained query.
CompositeParam represents a composite-flavored search parameter.
Date represents a date in a search query.
DateParam represents a date-flavored search parameter.
Error is an interface for search errors, providing an HTTP status and operation outcome.
ExternalReference represents an external reference by URL.
IncludeOption describes the data that should be included in query results.
LocalReference represents a local reference by ID (and potentially Type).
MongoRegistry supports the registration and lookup of Mongo search parameter implementations as BSON builders.
MongoSearcher implements FHIR searches using the Mongo database.
Number represents a number in a search query.
NumberParam represents a number-flavored search parameter.
OrParam represents a search parameter that has multiple OR values.
QuantityParam represents a quantity-flavored search parameter.
Query describes a string-based FHIR query and the resource it is associated with.
QueryOptions contains option values such as count and offset.
ReferenceParam represents a reference-flavored search parameter.
Registry supports the registration and lookup of FHIR search parameters, both standard and custom.
RevIncludeOption describes the data that should be included in query results.
SearchParamData represents the data associated to an instance of a search param.
SearchParamInfo contains information about a FHIR search parameter, including its name, type, and paths or composites.
SearchParamPath indicates a dot-separated path to the property that should be searched, as well as the FHIR type of that property (e.g., "dateTime").
SortOption indicates what parameter to sort on and the sort order.
StringParam represents a string-flavored search parameter.
TokenParam represents a token-flavored search parameter.
URIParam represents a uri-flavored search parameter.
URLQueryParameter represents a query parameter as a key/value pair.
URLQueryParameters represents an ordered list of query parameters that can be manipulated in several different ways.
# Interfaces
SearchParam is an interface for all search parameter classes that exposes the SearchParamInfo.
# Type aliases
BSONBuilder returns a BSON object representing the passed in search parameter.
DatePrecision is an enum representing the precision of a date.
ParameterParser parses search parameter data into a SearchParam implementation.
Prefix is an enum representing FHIR parameter prefixes.