proto

package module
v0.0.0-...-36461b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MappingType_name = map[int32]string{
		0: "INVALID",
		1: "RAW_PROTO",
		2: "MAPPING_LANGUAGE",
	}
	MappingType_value = map[string]int32{
		"INVALID":          0,
		"RAW_PROTO":        1,
		"MAPPING_LANGUAGE": 2,
	}
)

Enum value maps for MappingType.

View Source
var File_proto_data_harmonization_proto protoreflect.FileDescriptor
View Source
var File_proto_harmonization_proto protoreflect.FileDescriptor
View Source
var File_proto_http_proto protoreflect.FileDescriptor
View Source
var File_proto_library_proto protoreflect.FileDescriptor
View Source
var File_proto_mapping_proto protoreflect.FileDescriptor
View Source
var File_proto_unit_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CloudFunction

type CloudFunction struct {

	// TODO(): Evaluate the @ convention.
	// The name of the cloud function, and it should start with '@' to indicate
	// it is a cloud function as a projector.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The request url to call the cloud function.
	RequestUrl string `protobuf:"bytes,2,opt,name=request_url,json=requestUrl,proto3" json:"request_url,omitempty"`
	// contains filtered or unexported fields
}

The CloudFunction message defines a cloud function that can be called as a projector.

func (*CloudFunction) Descriptor deprecated

func (*CloudFunction) Descriptor() ([]byte, []int)

Deprecated: Use CloudFunction.ProtoReflect.Descriptor instead.

func (*CloudFunction) GetName

func (x *CloudFunction) GetName() string

func (*CloudFunction) GetRequestUrl

func (x *CloudFunction) GetRequestUrl() string

func (*CloudFunction) ProtoMessage

func (*CloudFunction) ProtoMessage()

func (*CloudFunction) ProtoReflect

func (x *CloudFunction) ProtoReflect() protoreflect.Message

func (*CloudFunction) Reset

func (x *CloudFunction) Reset()

func (*CloudFunction) String

func (x *CloudFunction) String() string

type CodeHarmonizationConfig

type CodeHarmonizationConfig struct {

	// If harmonization is done using FHIR Store translate operation, the location
	// should be the URL of the FHIR Store containing the concept map resources.
	// E.g.
	// https://healthcare.googleapis.com/v1alpha2/projects/*/locations/*/datasets/*/fhirStores/*.
	CodeLookup []*Location `protobuf:"bytes,1,rep,name=code_lookup,json=codeLookup,proto3" json:"code_lookup,omitempty"`
	// Specifies the amount of time in seconds that a code will be kept in cache.
	// Only applies to harmonization with a remote server. If not provided or
	// provided a negative value, codes will not be cached.
	CacheTtlSeconds int32 `protobuf:"varint,2,opt,name=cache_ttl_seconds,json=cacheTtlSeconds,proto3" json:"cache_ttl_seconds,omitempty"`
	// Specifies the amount of time in seconds that all expired codes will be
	// cleared from the cache. Only applies to harmonization with a remote server.
	// If not provided or provided a negative value, no cleanup will run.
	CleanupIntervalSeconds int32 `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

Specifies how do the code harmonization.

func (*CodeHarmonizationConfig) Descriptor deprecated

func (*CodeHarmonizationConfig) Descriptor() ([]byte, []int)

Deprecated: Use CodeHarmonizationConfig.ProtoReflect.Descriptor instead.

func (*CodeHarmonizationConfig) GetCacheTtlSeconds

func (x *CodeHarmonizationConfig) GetCacheTtlSeconds() int32

func (*CodeHarmonizationConfig) GetCleanupIntervalSeconds

func (x *CodeHarmonizationConfig) GetCleanupIntervalSeconds() int32

func (*CodeHarmonizationConfig) GetCodeLookup

func (x *CodeHarmonizationConfig) GetCodeLookup() []*Location

func (*CodeHarmonizationConfig) ProtoMessage

func (*CodeHarmonizationConfig) ProtoMessage()

func (*CodeHarmonizationConfig) ProtoReflect

func (x *CodeHarmonizationConfig) ProtoReflect() protoreflect.Message

func (*CodeHarmonizationConfig) Reset

func (x *CodeHarmonizationConfig) Reset()

func (*CodeHarmonizationConfig) String

func (x *CodeHarmonizationConfig) String() string

type CustomGCPConfig

type CustomGCPConfig struct {

	// Location of client secret JSON
	ClientSecretFile *Location `protobuf:"bytes,1,opt,name=client_secret_file,json=clientSecretFile,proto3" json:"client_secret_file,omitempty"`
	// Scopes
	Scopes []string `protobuf:"bytes,2,rep,name=scopes,proto3" json:"scopes,omitempty"`
	// contains filtered or unexported fields
}

TODO(): Remove since its not needed anymore.

func (*CustomGCPConfig) Descriptor deprecated

func (*CustomGCPConfig) Descriptor() ([]byte, []int)

Deprecated: Use CustomGCPConfig.ProtoReflect.Descriptor instead.

func (*CustomGCPConfig) GetClientSecretFile

func (x *CustomGCPConfig) GetClientSecretFile() *Location

func (*CustomGCPConfig) GetScopes

func (x *CustomGCPConfig) GetScopes() []string

func (*CustomGCPConfig) ProtoMessage

func (*CustomGCPConfig) ProtoMessage()

func (*CustomGCPConfig) ProtoReflect

func (x *CustomGCPConfig) ProtoReflect() protoreflect.Message

func (*CustomGCPConfig) Reset

func (x *CustomGCPConfig) Reset()

func (*CustomGCPConfig) String

func (x *CustomGCPConfig) String() string

type DataHarmonizationConfig

type DataHarmonizationConfig struct {

	// The shared library configurations for structure mapping.
	LibraryConfig []*LibraryConfig `protobuf:"bytes,1,rep,name=library_config,json=libraryConfig,proto3" json:"library_config,omitempty"`
	// The configuration defining the code harmonization.
	HarmonizationConfig *CodeHarmonizationConfig `protobuf:"bytes,3,opt,name=harmonization_config,json=harmonizationConfig,proto3" json:"harmonization_config,omitempty"`
	// The configuration defining the unit harmonization.
	UnitHarmonizationConfig *UnitHarmonizationConfig `` /* 132-byte string literal not displayed */
	// The configuration defining the structure mapping.
	StructureMappingConfig *StructureMappingConfig `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

Specification of how data should be harmonized including 1) Structure Mapping 2) Code harmonization and normalization 3) Unit harmonization and normalization

func (*DataHarmonizationConfig) Descriptor deprecated

func (*DataHarmonizationConfig) Descriptor() ([]byte, []int)

Deprecated: Use DataHarmonizationConfig.ProtoReflect.Descriptor instead.

func (*DataHarmonizationConfig) GetHarmonizationConfig

func (x *DataHarmonizationConfig) GetHarmonizationConfig() *CodeHarmonizationConfig

func (*DataHarmonizationConfig) GetLibraryConfig

func (x *DataHarmonizationConfig) GetLibraryConfig() []*LibraryConfig

func (*DataHarmonizationConfig) GetStructureMappingConfig

func (x *DataHarmonizationConfig) GetStructureMappingConfig() *StructureMappingConfig

func (*DataHarmonizationConfig) GetUnitHarmonizationConfig

func (x *DataHarmonizationConfig) GetUnitHarmonizationConfig() *UnitHarmonizationConfig

func (*DataHarmonizationConfig) ProtoMessage

func (*DataHarmonizationConfig) ProtoMessage()

func (*DataHarmonizationConfig) ProtoReflect

func (x *DataHarmonizationConfig) ProtoReflect() protoreflect.Message

func (*DataHarmonizationConfig) Reset

func (x *DataHarmonizationConfig) Reset()

func (*DataHarmonizationConfig) String

func (x *DataHarmonizationConfig) String() string

type FieldMapping

type FieldMapping struct {
	Meta *Meta `protobuf:"bytes,7,opt,name=meta,proto3" json:"meta,omitempty"`
	// The source sub-element selector. Each one is a consequent argument
	// to the projector (unless one is an array, in which case it is expanded
	// and each element passed to the projector in individual invocations).
	ValueSource *ValueSource `protobuf:"bytes,1,opt,name=value_source,json=valueSource,proto3" json:"value_source,omitempty"`
	// The target element to set to the output of the source. Should be in JSON
	// dot notation. This can be a complex JSON object, or a JSON value field,
	// or an array (arrays must be suffixed with []).
	//
	// Types that are assignable to Target:
	//	*FieldMapping_TargetField
	//	*FieldMapping_TargetLocalVar
	//	*FieldMapping_TargetObject
	//	*FieldMapping_TargetRootField
	Target isFieldMapping_Target `protobuf_oneof:"target"`
	// Metadata associated with the target field.
	TargetMeta *Meta `protobuf:"bytes,8,opt,name=target_meta,json=targetMeta,proto3" json:"target_meta,omitempty"`
	// A value that determines whether to apply this field mapping.
	// It is only applied if this value is true.
	Condition *ValueSource `protobuf:"bytes,5,opt,name=condition,proto3" json:"condition,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldMapping) Descriptor deprecated

func (*FieldMapping) Descriptor() ([]byte, []int)

Deprecated: Use FieldMapping.ProtoReflect.Descriptor instead.

func (*FieldMapping) GetCondition

func (x *FieldMapping) GetCondition() *ValueSource

func (*FieldMapping) GetMeta

func (x *FieldMapping) GetMeta() *Meta

func (*FieldMapping) GetTarget

func (m *FieldMapping) GetTarget() isFieldMapping_Target

func (*FieldMapping) GetTargetField

func (x *FieldMapping) GetTargetField() string

func (*FieldMapping) GetTargetLocalVar

func (x *FieldMapping) GetTargetLocalVar() string

func (*FieldMapping) GetTargetMeta

func (x *FieldMapping) GetTargetMeta() *Meta

func (*FieldMapping) GetTargetObject deprecated

func (x *FieldMapping) GetTargetObject() string

Deprecated: Do not use.

func (*FieldMapping) GetTargetRootField

func (x *FieldMapping) GetTargetRootField() string

func (*FieldMapping) GetValueSource

func (x *FieldMapping) GetValueSource() *ValueSource

func (*FieldMapping) ProtoMessage

func (*FieldMapping) ProtoMessage()

func (*FieldMapping) ProtoReflect

func (x *FieldMapping) ProtoReflect() protoreflect.Message

func (*FieldMapping) Reset

func (x *FieldMapping) Reset()

func (*FieldMapping) String

func (x *FieldMapping) String() string

type FieldMapping_TargetField

type FieldMapping_TargetField struct {
	// Target a leaf or non-leaf field in the output. Be aware that any data
	// written to an output field cannot be overwritten. Use target_local_var
	// for outputting data that needs to be changed before ending up in a field.
	TargetField string `protobuf:"bytes,2,opt,name=target_field,json=targetField,proto3,oneof"`
}

type FieldMapping_TargetLocalVar

type FieldMapping_TargetLocalVar struct {
	// Target a variable that will not be output (all projectors called by this
	// one or its descendants can access this variable). This may overwrite
	// existing variable values/fields.
	TargetLocalVar string `protobuf:"bytes,3,opt,name=target_local_var,json=targetLocalVar,proto3,oneof"`
}

type FieldMapping_TargetObject

type FieldMapping_TargetObject struct {
	// DEPRECATED(b/148284692): Use target_root_field instead.
	//
	// Deprecated: Do not use.
	TargetObject string `protobuf:"bytes,4,opt,name=target_object,json=targetObject,proto3,oneof"`
}

type FieldMapping_TargetRootField

type FieldMapping_TargetRootField struct {
	// Target a field from the root mappings.
	TargetRootField string `protobuf:"bytes,6,opt,name=target_root_field,json=targetRootField,proto3,oneof"`
}

type HttpFetchQuery

type HttpFetchQuery struct {

	// The name of the fetch query, to be referenced in a projector field.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Should evaluate to an HTTP Method. Parameters passed along from caller.
	RequestMethod *ValueSource `protobuf:"bytes,2,opt,name=request_method,json=requestMethod,proto3" json:"request_method,omitempty"`
	// Should evaluate to a REST URL. Parameters passed along from caller.
	RequestUrl *ValueSource `protobuf:"bytes,3,opt,name=request_url,json=requestUrl,proto3" json:"request_url,omitempty"`
	// Specifies which server type we will be making requests to.  The server type
	// should be defined in Servers.
	// If left blank, the pipeline will attempt to use its application default
	// credentials to authenticate.
	Server string `protobuf:"bytes,4,opt,name=server,proto3" json:"server,omitempty"`
	// contains filtered or unexported fields
}

This defines a projector that will obtain its return value from an HTTP endpoint.

func (*HttpFetchQuery) Descriptor deprecated

func (*HttpFetchQuery) Descriptor() ([]byte, []int)

Deprecated: Use HttpFetchQuery.ProtoReflect.Descriptor instead.

func (*HttpFetchQuery) GetName

func (x *HttpFetchQuery) GetName() string

func (*HttpFetchQuery) GetRequestMethod

func (x *HttpFetchQuery) GetRequestMethod() *ValueSource

func (*HttpFetchQuery) GetRequestUrl

func (x *HttpFetchQuery) GetRequestUrl() *ValueSource

func (*HttpFetchQuery) GetServer

func (x *HttpFetchQuery) GetServer() string

func (*HttpFetchQuery) ProtoMessage

func (*HttpFetchQuery) ProtoMessage()

func (*HttpFetchQuery) ProtoReflect

func (x *HttpFetchQuery) ProtoReflect() protoreflect.Message

func (*HttpFetchQuery) Reset

func (x *HttpFetchQuery) Reset()

func (*HttpFetchQuery) String

func (x *HttpFetchQuery) String() string

type LibraryConfig

type LibraryConfig struct {

	// Basic projectors that can be shared across various mappings.
	Projector []*ProjectorDefinition `protobuf:"bytes,1,rep,name=projector,proto3" json:"projector,omitempty"`
	// The remote servers that the configuration can call.
	Servers []*ServerDefinition `protobuf:"bytes,2,rep,name=servers,proto3" json:"servers,omitempty"`
	// The CloudFunction message defines a cloud function that can be called
	// as a projector.
	CloudFunction []*CloudFunction `protobuf:"bytes,3,rep,name=cloud_function,json=cloudFunction,proto3" json:"cloud_function,omitempty"`
	// HttpQuery defines a list of fetch queries, which are essentially projectors
	// with external lookup. All fetch query configs are expected to contain a
	// name field to be used as the projector name.
	HttpQuery []*HttpFetchQuery `protobuf:"bytes,4,rep,name=http_query,json=httpQuery,proto3" json:"http_query,omitempty"`
	// DEPRECATED: Builtin projector libraries.
	//
	// Deprecated: Do not use.
	DeprecateImportedLibraries []string `` /* 141-byte string literal not displayed */
	// User-defined projector libraries that will be included in the mappings.
	UserLibraries []*UserLibrary `protobuf:"bytes,6,rep,name=user_libraries,json=userLibraries,proto3" json:"user_libraries,omitempty"`
	// contains filtered or unexported fields
}

The LibraryConfig message defines a set of standalone projectors and Google cloud functions that can be loaded along-side and shared between mappings.

func (*LibraryConfig) Descriptor deprecated

func (*LibraryConfig) Descriptor() ([]byte, []int)

Deprecated: Use LibraryConfig.ProtoReflect.Descriptor instead.

func (*LibraryConfig) GetCloudFunction

func (x *LibraryConfig) GetCloudFunction() []*CloudFunction

func (*LibraryConfig) GetDeprecateImportedLibraries deprecated

func (x *LibraryConfig) GetDeprecateImportedLibraries() []string

Deprecated: Do not use.

func (*LibraryConfig) GetHttpQuery

func (x *LibraryConfig) GetHttpQuery() []*HttpFetchQuery

func (*LibraryConfig) GetProjector

func (x *LibraryConfig) GetProjector() []*ProjectorDefinition

func (*LibraryConfig) GetServers

func (x *LibraryConfig) GetServers() []*ServerDefinition

func (*LibraryConfig) GetUserLibraries

func (x *LibraryConfig) GetUserLibraries() []*UserLibrary

func (*LibraryConfig) ProtoMessage

func (*LibraryConfig) ProtoMessage()

func (*LibraryConfig) ProtoReflect

func (x *LibraryConfig) ProtoReflect() protoreflect.Message

func (*LibraryConfig) Reset

func (x *LibraryConfig) Reset()

func (*LibraryConfig) String

func (x *LibraryConfig) String() string

type Location

type Location struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are assignable to Location:
	//	*Location_GcsLocation
	//	*Location_LocalPath
	//	*Location_UrlPath
	Location isLocation_Location `protobuf_oneof:"location"`
	// contains filtered or unexported fields
}

func (*Location) Descriptor deprecated

func (*Location) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetGcsLocation

func (x *Location) GetGcsLocation() string

func (*Location) GetLocalPath

func (x *Location) GetLocalPath() string

func (*Location) GetLocation

func (m *Location) GetLocation() isLocation_Location

func (*Location) GetName

func (x *Location) GetName() string

func (*Location) GetUrlPath

func (x *Location) GetUrlPath() string

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

func (x *Location) ProtoReflect() protoreflect.Message

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

type Location_GcsLocation

type Location_GcsLocation struct {
	// Location in Cloud Storage.
	GcsLocation string `protobuf:"bytes,2,opt,name=gcs_location,json=gcsLocation,proto3,oneof"`
}

type Location_LocalPath

type Location_LocalPath struct {
	// Local path.
	LocalPath string `protobuf:"bytes,3,opt,name=local_path,json=localPath,proto3,oneof"`
}

type Location_UrlPath

type Location_UrlPath struct {
	// URL path.
	UrlPath string `protobuf:"bytes,4,opt,name=url_path,json=urlPath,proto3,oneof"`
}

type MappingConfig

type MappingConfig struct {

	// Mapping of the root model elements.
	RootMapping []*FieldMapping `protobuf:"bytes,1,rep,name=root_mapping,json=rootMapping,proto3" json:"root_mapping,omitempty"`
	// All projectors to use.
	Projector []*ProjectorDefinition `protobuf:"bytes,2,rep,name=projector,proto3" json:"projector,omitempty"`
	// Post processing projectors that will run uniformly over all the converted
	// data.
	//
	// Types that are assignable to PostProcess:
	//	*MappingConfig_PostProcessProjectorName
	//	*MappingConfig_PostProcessProjectorDefinition
	PostProcess isMappingConfig_PostProcess `protobuf_oneof:"post_process"`
	// Metadata associated with the post_process field.
	PostProcessMeta *Meta `protobuf:"bytes,5,opt,name=post_process_meta,json=postProcessMeta,proto3" json:"post_process_meta,omitempty"`
	// contains filtered or unexported fields
}

The mapping phase defines a conversion from some source to some destination model schema. The input to this phase is the output of the ingestion phase, and the output of this phase is an object like

{
    models: [{...}, {...}]
}

where {...} are generated from the root_mappings below.

func (*MappingConfig) Descriptor deprecated

func (*MappingConfig) Descriptor() ([]byte, []int)

Deprecated: Use MappingConfig.ProtoReflect.Descriptor instead.

func (*MappingConfig) GetPostProcess

func (m *MappingConfig) GetPostProcess() isMappingConfig_PostProcess

func (*MappingConfig) GetPostProcessMeta

func (x *MappingConfig) GetPostProcessMeta() *Meta

func (*MappingConfig) GetPostProcessProjectorDefinition

func (x *MappingConfig) GetPostProcessProjectorDefinition() *ProjectorDefinition

func (*MappingConfig) GetPostProcessProjectorName

func (x *MappingConfig) GetPostProcessProjectorName() string

func (*MappingConfig) GetProjector

func (x *MappingConfig) GetProjector() []*ProjectorDefinition

func (*MappingConfig) GetRootMapping

func (x *MappingConfig) GetRootMapping() []*FieldMapping

func (*MappingConfig) ProtoMessage

func (*MappingConfig) ProtoMessage()

func (*MappingConfig) ProtoReflect

func (x *MappingConfig) ProtoReflect() protoreflect.Message

func (*MappingConfig) Reset

func (x *MappingConfig) Reset()

func (*MappingConfig) String

func (x *MappingConfig) String() string

type MappingConfig_PostProcessProjectorDefinition

type MappingConfig_PostProcessProjectorDefinition struct {
	// The inline projector definition to use to post-process the
	// resources.
	PostProcessProjectorDefinition *ProjectorDefinition `protobuf:"bytes,4,opt,name=post_process_projector_definition,json=postProcessProjectorDefinition,proto3,oneof"`
}

type MappingConfig_PostProcessProjectorName

type MappingConfig_PostProcessProjectorName struct {
	// The name of a preexisting projector to use to post-process the
	// resources.
	PostProcessProjectorName string `protobuf:"bytes,3,opt,name=post_process_projector_name,json=postProcessProjectorName,proto3,oneof"`
}

type MappingPathConfig

type MappingPathConfig struct {

	// The type of mapping.
	MappingType MappingType `` /* 151-byte string literal not displayed */
	// The path defining the structure mapping configuration file.
	MappingConfigPath *Location `protobuf:"bytes,2,opt,name=mapping_config_path,json=mappingConfigPath,proto3" json:"mapping_config_path,omitempty"`
	// contains filtered or unexported fields
}

func (*MappingPathConfig) Descriptor deprecated

func (*MappingPathConfig) Descriptor() ([]byte, []int)

Deprecated: Use MappingPathConfig.ProtoReflect.Descriptor instead.

func (*MappingPathConfig) GetMappingConfigPath

func (x *MappingPathConfig) GetMappingConfigPath() *Location

func (*MappingPathConfig) GetMappingType

func (x *MappingPathConfig) GetMappingType() MappingType

func (*MappingPathConfig) ProtoMessage

func (*MappingPathConfig) ProtoMessage()

func (*MappingPathConfig) ProtoReflect

func (x *MappingPathConfig) ProtoReflect() protoreflect.Message

func (*MappingPathConfig) Reset

func (x *MappingPathConfig) Reset()

func (*MappingPathConfig) String

func (x *MappingPathConfig) String() string

type MappingType

type MappingType int32
const (
	MappingType_INVALID          MappingType = 0
	MappingType_RAW_PROTO        MappingType = 1
	MappingType_MAPPING_LANGUAGE MappingType = 2
)

func (MappingType) Descriptor

func (MappingType) Enum

func (x MappingType) Enum() *MappingType

func (MappingType) EnumDescriptor deprecated

func (MappingType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MappingType.Descriptor instead.

func (MappingType) Number

func (x MappingType) Number() protoreflect.EnumNumber

func (MappingType) String

func (x MappingType) String() string

func (MappingType) Type

type Meta

type Meta struct {

	// Entry type to metadata map.
	Entries map[string]*any1.Any `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

Custom metadata entries.

func (*Meta) Descriptor deprecated

func (*Meta) Descriptor() ([]byte, []int)

Deprecated: Use Meta.ProtoReflect.Descriptor instead.

func (*Meta) GetEntries

func (x *Meta) GetEntries() map[string]*any1.Any

func (*Meta) ProtoMessage

func (*Meta) ProtoMessage()

func (*Meta) ProtoReflect

func (x *Meta) ProtoReflect() protoreflect.Message

func (*Meta) Reset

func (x *Meta) Reset()

func (*Meta) String

func (x *Meta) String() string

type ProjectorDefinition

type ProjectorDefinition struct {
	Meta *Meta `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"`
	// The name of the projector, as referred to by the ValueSource.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A list of mappings for this projector.
	Mapping []*FieldMapping `protobuf:"bytes,2,rep,name=mapping,proto3" json:"mapping,omitempty"`
	// contains filtered or unexported fields
}

A projector is a function that converts one or more input elements into one output element.

func (*ProjectorDefinition) Descriptor deprecated

func (*ProjectorDefinition) Descriptor() ([]byte, []int)

Deprecated: Use ProjectorDefinition.ProtoReflect.Descriptor instead.

func (*ProjectorDefinition) GetMapping

func (x *ProjectorDefinition) GetMapping() []*FieldMapping

func (*ProjectorDefinition) GetMeta

func (x *ProjectorDefinition) GetMeta() *Meta

func (*ProjectorDefinition) GetName

func (x *ProjectorDefinition) GetName() string

func (*ProjectorDefinition) ProtoMessage

func (*ProjectorDefinition) ProtoMessage()

func (*ProjectorDefinition) ProtoReflect

func (x *ProjectorDefinition) ProtoReflect() protoreflect.Message

func (*ProjectorDefinition) Reset

func (x *ProjectorDefinition) Reset()

func (*ProjectorDefinition) String

func (x *ProjectorDefinition) String() string

type ServerDefinition

type ServerDefinition struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Config that provides the information for authenticating with the server.
	//
	// Types that are assignable to AuthenticationConfig:
	//	*ServerDefinition_CustomGcp
	AuthenticationConfig isServerDefinition_AuthenticationConfig `protobuf_oneof:"authentication_config"`
	// contains filtered or unexported fields
}

func (*ServerDefinition) Descriptor deprecated

func (*ServerDefinition) Descriptor() ([]byte, []int)

Deprecated: Use ServerDefinition.ProtoReflect.Descriptor instead.

func (*ServerDefinition) GetAuthenticationConfig

func (m *ServerDefinition) GetAuthenticationConfig() isServerDefinition_AuthenticationConfig

func (*ServerDefinition) GetCustomGcp

func (x *ServerDefinition) GetCustomGcp() *CustomGCPConfig

func (*ServerDefinition) GetName

func (x *ServerDefinition) GetName() string

func (*ServerDefinition) ProtoMessage

func (*ServerDefinition) ProtoMessage()

func (*ServerDefinition) ProtoReflect

func (x *ServerDefinition) ProtoReflect() protoreflect.Message

func (*ServerDefinition) Reset

func (x *ServerDefinition) Reset()

func (*ServerDefinition) String

func (x *ServerDefinition) String() string

type ServerDefinition_CustomGcp

type ServerDefinition_CustomGcp struct {
	CustomGcp *CustomGCPConfig `protobuf:"bytes,2,opt,name=custom_gcp,json=customGcp,proto3,oneof"` // TODO (): Support additional server types.
}

type SourcePosition

type SourcePosition struct {

	// Line number, starting at 1.
	Line int32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"`
	// Column number, starting at 0 (byte count).
	Column int32 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"`
	// contains filtered or unexported fields
}

Represents a position in Whistle source code.

func (*SourcePosition) Descriptor deprecated

func (*SourcePosition) Descriptor() ([]byte, []int)

Deprecated: Use SourcePosition.ProtoReflect.Descriptor instead.

func (*SourcePosition) GetColumn

func (x *SourcePosition) GetColumn() int32

func (*SourcePosition) GetLine

func (x *SourcePosition) GetLine() int32

func (*SourcePosition) ProtoMessage

func (*SourcePosition) ProtoMessage()

func (*SourcePosition) ProtoReflect

func (x *SourcePosition) ProtoReflect() protoreflect.Message

func (*SourcePosition) Reset

func (x *SourcePosition) Reset()

func (*SourcePosition) String

func (x *SourcePosition) String() string

type StructureMappingConfig

type StructureMappingConfig struct {

	// Types that are assignable to Mapping:
	//	*StructureMappingConfig_MappingConfig
	//	*StructureMappingConfig_MappingLanguageString
	//	*StructureMappingConfig_MappingPathConfig
	Mapping isStructureMappingConfig_Mapping `protobuf_oneof:"mapping"`
	// contains filtered or unexported fields
}

Specifies the structure mapping for harmonization.

func (*StructureMappingConfig) Descriptor deprecated

func (*StructureMappingConfig) Descriptor() ([]byte, []int)

Deprecated: Use StructureMappingConfig.ProtoReflect.Descriptor instead.

func (*StructureMappingConfig) GetMapping

func (m *StructureMappingConfig) GetMapping() isStructureMappingConfig_Mapping

func (*StructureMappingConfig) GetMappingConfig

func (x *StructureMappingConfig) GetMappingConfig() *MappingConfig

func (*StructureMappingConfig) GetMappingLanguageString

func (x *StructureMappingConfig) GetMappingLanguageString() string

func (*StructureMappingConfig) GetMappingPathConfig

func (x *StructureMappingConfig) GetMappingPathConfig() *MappingPathConfig

func (*StructureMappingConfig) ProtoMessage

func (*StructureMappingConfig) ProtoMessage()

func (*StructureMappingConfig) ProtoReflect

func (x *StructureMappingConfig) ProtoReflect() protoreflect.Message

func (*StructureMappingConfig) Reset

func (x *StructureMappingConfig) Reset()

func (*StructureMappingConfig) String

func (x *StructureMappingConfig) String() string

type StructureMappingConfig_MappingConfig

type StructureMappingConfig_MappingConfig struct {
	// The configuration defining the structure mapping.
	MappingConfig *MappingConfig `protobuf:"bytes,1,opt,name=mapping_config,json=mappingConfig,proto3,oneof"`
}

type StructureMappingConfig_MappingLanguageString

type StructureMappingConfig_MappingLanguageString struct {
	// The mapping config described in the mapping language.
	MappingLanguageString string `protobuf:"bytes,2,opt,name=mapping_language_string,json=mappingLanguageString,proto3,oneof"`
}

type StructureMappingConfig_MappingPathConfig

type StructureMappingConfig_MappingPathConfig struct {
	// The location of the mapping config.
	MappingPathConfig *MappingPathConfig `protobuf:"bytes,3,opt,name=mapping_path_config,json=mappingPathConfig,proto3,oneof"`
}

type UnitConfiguration

type UnitConfiguration struct {
	Conversion []*UnitConversion `protobuf:"bytes,1,rep,name=conversion,proto3" json:"conversion,omitempty"`
	// Version of the unit configs we are using.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// Target system of the destination unit configs.
	System string `protobuf:"bytes,3,opt,name=system,proto3" json:"system,omitempty"`
	// Number of decimal places to keep in the harmonized unit quantity. Leaving
	// this field unset or setting to zero means all decimals will be preserved.
	Decimals int32 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"`
	// contains filtered or unexported fields
}

func (*UnitConfiguration) Descriptor deprecated

func (*UnitConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use UnitConfiguration.ProtoReflect.Descriptor instead.

func (*UnitConfiguration) GetConversion

func (x *UnitConfiguration) GetConversion() []*UnitConversion

func (*UnitConfiguration) GetDecimals

func (x *UnitConfiguration) GetDecimals() int32

func (*UnitConfiguration) GetSystem

func (x *UnitConfiguration) GetSystem() string

func (*UnitConfiguration) GetVersion

func (x *UnitConfiguration) GetVersion() string

func (*UnitConfiguration) ProtoMessage

func (*UnitConfiguration) ProtoMessage()

func (*UnitConfiguration) ProtoReflect

func (x *UnitConfiguration) ProtoReflect() protoreflect.Message

func (*UnitConfiguration) Reset

func (x *UnitConfiguration) Reset()

func (*UnitConfiguration) String

func (x *UnitConfiguration) String() string

type UnitConversion

type UnitConversion struct {

	// The source units we are converting from.
	// This field is repeated so we can map multiple source strings such as 'mG'
	// and 'mg'.
	SourceUnit []string `protobuf:"bytes,1,rep,name=source_unit,json=sourceUnit,proto3" json:"source_unit,omitempty"`
	// The destination unit we are converting to.
	DestUnit string `protobuf:"bytes,2,opt,name=dest_unit,json=destUnit,proto3" json:"dest_unit,omitempty"`
	// (Optional): use if the unit conversion factor depends on the
	// observation code. For example, 'calcium' conversion from mmol_l to meq/l
	// is dependent on valence of calcium.
	Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	// Codesystem associated with the code for unit conversions.
	Codesystem string `protobuf:"bytes,4,opt,name=codesystem,proto3" json:"codesystem,omitempty"`
	// Unit calculation is: constant + scalar * source_unit_value.
	// Constant factor associated with the conversion.
	Constant float64 `protobuf:"fixed64,5,opt,name=constant,proto3" json:"constant,omitempty"`
	// Scalar multiplier associated with the conversion.
	Scalar float64 `protobuf:"fixed64,6,opt,name=scalar,proto3" json:"scalar,omitempty"`
	// Whether to in the conversion use the constant term first
	// i.e. (degF + const ) * scalar
	ConstantFirst bool `protobuf:"varint,8,opt,name=constant_first,json=constantFirst,proto3" json:"constant_first,omitempty"`
	// contains filtered or unexported fields
}

func (*UnitConversion) Descriptor deprecated

func (*UnitConversion) Descriptor() ([]byte, []int)

Deprecated: Use UnitConversion.ProtoReflect.Descriptor instead.

func (*UnitConversion) GetCode

func (x *UnitConversion) GetCode() string

func (*UnitConversion) GetCodesystem

func (x *UnitConversion) GetCodesystem() string

func (*UnitConversion) GetConstant

func (x *UnitConversion) GetConstant() float64

func (*UnitConversion) GetConstantFirst

func (x *UnitConversion) GetConstantFirst() bool

func (*UnitConversion) GetDestUnit

func (x *UnitConversion) GetDestUnit() string

func (*UnitConversion) GetScalar

func (x *UnitConversion) GetScalar() float64

func (*UnitConversion) GetSourceUnit

func (x *UnitConversion) GetSourceUnit() []string

func (*UnitConversion) ProtoMessage

func (*UnitConversion) ProtoMessage()

func (*UnitConversion) ProtoReflect

func (x *UnitConversion) ProtoReflect() protoreflect.Message

func (*UnitConversion) Reset

func (x *UnitConversion) Reset()

func (*UnitConversion) String

func (x *UnitConversion) String() string

type UnitHarmonizationConfig

type UnitHarmonizationConfig struct {
	UnitConversion *Location `protobuf:"bytes,2,opt,name=unit_conversion,json=unitConversion,proto3" json:"unit_conversion,omitempty"`
	// contains filtered or unexported fields
}

Specifies how units should be normalized and harmonized.

func (*UnitHarmonizationConfig) Descriptor deprecated

func (*UnitHarmonizationConfig) Descriptor() ([]byte, []int)

Deprecated: Use UnitHarmonizationConfig.ProtoReflect.Descriptor instead.

func (*UnitHarmonizationConfig) GetUnitConversion

func (x *UnitHarmonizationConfig) GetUnitConversion() *Location

func (*UnitHarmonizationConfig) ProtoMessage

func (*UnitHarmonizationConfig) ProtoMessage()

func (*UnitHarmonizationConfig) ProtoReflect

func (x *UnitHarmonizationConfig) ProtoReflect() protoreflect.Message

func (*UnitHarmonizationConfig) Reset

func (x *UnitHarmonizationConfig) Reset()

func (*UnitHarmonizationConfig) String

func (x *UnitHarmonizationConfig) String() string

type UserLibrary

type UserLibrary struct {

	// The type of mapping.
	Type MappingType `protobuf:"varint,1,opt,name=type,proto3,enum=cloud.healthcare.cdw.etl.mapping.proto.MappingType" json:"type,omitempty"`
	// The path defining the custom mapping library file.
	Path *Location `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Specifies a user-defined projector library.

func (*UserLibrary) Descriptor deprecated

func (*UserLibrary) Descriptor() ([]byte, []int)

Deprecated: Use UserLibrary.ProtoReflect.Descriptor instead.

func (*UserLibrary) GetPath

func (x *UserLibrary) GetPath() *Location

func (*UserLibrary) GetType

func (x *UserLibrary) GetType() MappingType

func (*UserLibrary) ProtoMessage

func (*UserLibrary) ProtoMessage()

func (*UserLibrary) ProtoReflect

func (x *UserLibrary) ProtoReflect() protoreflect.Message

func (*UserLibrary) Reset

func (x *UserLibrary) Reset()

func (*UserLibrary) String

func (x *UserLibrary) String() string

type ValueSource

type ValueSource struct {
	Meta *Meta `protobuf:"bytes,13,opt,name=meta,proto3" json:"meta,omitempty"`
	// Types that are assignable to Source:
	//	*ValueSource_FromSource
	//	*ValueSource_FromLocalVar
	//	*ValueSource_FromDestination
	//	*ValueSource_ProjectedValue
	//	*ValueSource_ConstString
	//	*ValueSource_ConstInt
	//	*ValueSource_ConstFloat
	//	*ValueSource_ConstBool
	//	*ValueSource_FromArg
	//	*ValueSource_FromInput
	Source isValueSource_Source `protobuf_oneof:"source"`
	// Metadata associated with the source field.
	SourceMeta *Meta `protobuf:"bytes,14,opt,name=source_meta,json=sourceMeta,proto3" json:"source_meta,omitempty"`
	// Additional arguments for the projector used to preprocess this argument. If
	// set, projector must be specified.
	AdditionalArg []*ValueSource `protobuf:"bytes,9,rep,name=additional_arg,json=additionalArg,proto3" json:"additional_arg,omitempty"`
	// Projector to use to preprocess this argument. Defaults to identity
	// function. Projectors prefixed with _ are built-ins.
	Projector string `protobuf:"bytes,10,opt,name=projector,proto3" json:"projector,omitempty"`
	// contains filtered or unexported fields
}

Represents a value to be set in the output.

func (*ValueSource) Descriptor deprecated

func (*ValueSource) Descriptor() ([]byte, []int)

Deprecated: Use ValueSource.ProtoReflect.Descriptor instead.

func (*ValueSource) GetAdditionalArg

func (x *ValueSource) GetAdditionalArg() []*ValueSource

func (*ValueSource) GetConstBool

func (x *ValueSource) GetConstBool() bool

func (*ValueSource) GetConstFloat

func (x *ValueSource) GetConstFloat() float32

func (*ValueSource) GetConstInt

func (x *ValueSource) GetConstInt() int32

func (*ValueSource) GetConstString

func (x *ValueSource) GetConstString() string

func (*ValueSource) GetFromArg deprecated

func (x *ValueSource) GetFromArg() int32

Deprecated: Do not use.

func (*ValueSource) GetFromDestination

func (x *ValueSource) GetFromDestination() string

func (*ValueSource) GetFromInput

func (x *ValueSource) GetFromInput() *ValueSource_InputSource

func (*ValueSource) GetFromLocalVar

func (x *ValueSource) GetFromLocalVar() string

func (*ValueSource) GetFromSource deprecated

func (x *ValueSource) GetFromSource() string

Deprecated: Do not use.

func (*ValueSource) GetMeta

func (x *ValueSource) GetMeta() *Meta

func (*ValueSource) GetProjectedValue

func (x *ValueSource) GetProjectedValue() *ValueSource

func (*ValueSource) GetProjector

func (x *ValueSource) GetProjector() string

func (*ValueSource) GetSource

func (m *ValueSource) GetSource() isValueSource_Source

func (*ValueSource) GetSourceMeta

func (x *ValueSource) GetSourceMeta() *Meta

func (*ValueSource) ProtoMessage

func (*ValueSource) ProtoMessage()

func (*ValueSource) ProtoReflect

func (x *ValueSource) ProtoReflect() protoreflect.Message

func (*ValueSource) Reset

func (x *ValueSource) Reset()

func (*ValueSource) String

func (x *ValueSource) String() string

type ValueSource_ConstBool

type ValueSource_ConstBool struct {
	// A hard-coded boolean value.
	ConstBool bool `protobuf:"varint,8,opt,name=const_bool,json=constBool,proto3,oneof"`
}

type ValueSource_ConstFloat

type ValueSource_ConstFloat struct {
	// A hard-coded floating point value.
	ConstFloat float32 `protobuf:"fixed32,7,opt,name=const_float,json=constFloat,proto3,oneof"`
}

type ValueSource_ConstInt

type ValueSource_ConstInt struct {
	// A hard-coded integer value.
	ConstInt int32 `protobuf:"varint,6,opt,name=const_int,json=constInt,proto3,oneof"`
}

type ValueSource_ConstString

type ValueSource_ConstString struct {
	// A hard-coded string value.
	ConstString string `protobuf:"bytes,5,opt,name=const_string,json=constString,proto3,oneof"`
}

type ValueSource_FromArg

type ValueSource_FromArg struct {
	// Refer to a specific argument. This is a simpler version of from_source.
	// 1 refers to the 1st argument, 2 to the second, etc. 0 refers to the whole
	// arguments array.
	//
	// DEPRECATED: Use from_input instead.
	//
	// Deprecated: Do not use.
	FromArg int32 `protobuf:"varint,11,opt,name=from_arg,json=fromArg,proto3,oneof"`
}

type ValueSource_FromDestination

type ValueSource_FromDestination struct {
	// A field that is set at some point during the conversion in the mapping
	// destination JSON.
	FromDestination string `protobuf:"bytes,3,opt,name=from_destination,json=fromDestination,proto3,oneof"`
}

type ValueSource_FromInput

type ValueSource_FromInput struct {
	FromInput *ValueSource_InputSource `protobuf:"bytes,12,opt,name=from_input,json=fromInput,proto3,oneof"`
}

type ValueSource_FromLocalVar

type ValueSource_FromLocalVar struct {
	// Data coming from a local variable. This must have been set by the current
	// or parent projector.
	// If the variable is an array, appending "[]" means that the following
	// projector is applied to each element.
	FromLocalVar string `protobuf:"bytes,2,opt,name=from_local_var,json=fromLocalVar,proto3,oneof"`
}

type ValueSource_FromSource

type ValueSource_FromSource struct {
	// A field that comes from the source/input data. This refers to the
	// arguments of the projector or context.
	// If given multiple arguments, then:
	//
	//  - "1" refers to the first argument
	//  - "2" refers to the second, and so on.
	//
	// If given only one argument, then:
	//
	//  - "." refers to the argument
	//  - "1" or "xyz" refers to its first sub-element/child with that key
	//  - "2" or "abc" refers to the second sub-element/child with that key
	//    etc.
	// If that sole argument is an array, then:
	//
	//  - "0" or "[0]" refers to its first element
	//  - "1" or "[1]" refers to the second
	//  - "." refers to the whole array
	//  - "[]" means that the following projector is applied to each element
	//
	// DEPRECATED: Use from_input instead.
	//
	// Deprecated: Do not use.
	FromSource string `protobuf:"bytes,1,opt,name=from_source,json=fromSource,proto3,oneof"`
}

type ValueSource_InputSource

type ValueSource_InputSource struct {

	// The number (1-based) of the projector argument to reference. If omitted
	// or set to 0, will search for the given field in context values. A context
	// value references a sibling (or as close as possible) to one of this
	// projector's arguments, that has an absolute path as specified in field
	// (omitting array indices). For example, if a projector gets an argument
	// with full path foo[3].bar[0].baz.bonk, and arg is set to 0, and field is
	// set to foo.bar.quip, then this InputSource resolves to the value at
	// foo[3].bar[0].quip.
	Arg int32 `protobuf:"varint,1,opt,name=arg,proto3" json:"arg,omitempty"`
	// Optionally, the JSON field/path on the argument to extract, e.g.
	// "foo.bar". Can be suffixed with [] to enumerate an array, invoking the
	// projector passed to on every element individually.
	Field string `protobuf:"bytes,2,opt,name=field,proto3" json:"field,omitempty"`
	// contains filtered or unexported fields
}

func (*ValueSource_InputSource) Descriptor deprecated

func (*ValueSource_InputSource) Descriptor() ([]byte, []int)

Deprecated: Use ValueSource_InputSource.ProtoReflect.Descriptor instead.

func (*ValueSource_InputSource) GetArg

func (x *ValueSource_InputSource) GetArg() int32

func (*ValueSource_InputSource) GetField

func (x *ValueSource_InputSource) GetField() string

func (*ValueSource_InputSource) ProtoMessage

func (*ValueSource_InputSource) ProtoMessage()

func (*ValueSource_InputSource) ProtoReflect

func (x *ValueSource_InputSource) ProtoReflect() protoreflect.Message

func (*ValueSource_InputSource) Reset

func (x *ValueSource_InputSource) Reset()

func (*ValueSource_InputSource) String

func (x *ValueSource_InputSource) String() string

type ValueSource_ProjectedValue

type ValueSource_ProjectedValue struct {
	// A value preprocessed with a projector.
	ProjectedValue *ValueSource `protobuf:"bytes,4,opt,name=projected_value,json=projectedValue,proto3,oneof"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL