# README
Package pkg/datasource/models
This package contains the models of the data source plugin. It implements the JSON messages exchanged through the GeCo Data Manager.
# Functions
NewCohortFromDbModel creates a new Cohort from a database.SavedCohort.
NewSearchResultFromI2b2Concept creates a new SearchResultElement from an i2b2 concept.
NewSearchResultFromI2b2Modifier creates a new SearchResultElement from an i2b2 modifier.
NewSearchResultFromI2b2OntologyElement creates a new SearchResultElement from an i2b2 ontology element (concept or modifier).
# Constants
SearchChildrenOperation is the identifier of the "children" operation.
SearchConceptOperation is the identifier of the "concept" operation.
SearchInfoOperation is the identifier of the "info" operation.
SequentialOperatorWhenEqual captures enum value "EQUAL".
SequentialOperatorWhenLess captures enum value "LESS".
SequentialOperatorWhenLessEqual captures enum value "LESSEQUAL".
SequentialOperatorWhichDateEnd captures enum value "ENDDATE".
SequentialOperatorWhichDateStart captures enum value "STARTDATE".
SequentialOperatorWhichObservationAny captures enum value "Any".
SequentialOperatorWhichObservationFirst captures enum value "FIRST".
SequentialOperatorWhichObservationLast captures enum value "LAST".
SpanOperatorEqual captures enum value "EQUAL".
SpanOperatorGreater captures enum value "GREATER".
SpanOperatorGreaterEqual captures enum value "GREATEREQUAL".
SpanOperatorLess captures enum value "LESS".
SpanOperatorLessEqual captures enum value "LESSEQUAL".
SpanUnitDay captures enum value "DAY".
SpanUnitHour captures enum value "HOUR".
SpanUnitMonth captures enum value "MONTH".
SpanUnitYear captures enum value "YEAR".
TimingAny captures enum value "any".
TimingSameinstancenum captures enum value "sameinstancenum".
TimingSamevisit captures enum value "samevisit".
WhenEarliest captures enum value "earliest".
WhenLatest captures enum value "latest".
# Structs
AddDeleteCohortParameters is the parameter for the AddCohort and DeleteCohort operations.
Bucket represents a bucket.
Cohort is a result part of the GetCohorts operation.
CohortResults is the result of the GetCohorts operation.
ConceptItem is part of a Panel.
ConvertingUnitJSON is a converting unit of a UnitValueJSON.
EventGroup holds the group name, the encryption of the initial group size and the list of encrypted time points.
Events contains the number of events of interest and censoring events occurring at the same relative time.
ExploreQueryDefinition is the query definition of ExploreQueryParameters.
ExploreQueryParameters is the parameter for the ExploreQuery operation.
GetCohortsParameters is the parameter for the GetCohorts operation.
MetadataJSON is the JSON representation of the XML metadata of an i2b2 ontology element.
Panel is part of an ExploreQueryDefinition.
Result holds information about time point, events, execution times and error.
SearchConceptParameters are the parameters for the searchConcept operation.
SearchModifierParameters are the parameters for the searchModifier Operation.
SearchOntologyParameters are the parameter for the searchOntology Operation.
SearchResult is the result of the Search operations.
SearchResultElement is an element (concept of modifier) of SearchResult.
SequentialOperator contains the info according to which the temporal relation between two panels is determined.
Span contains the info defining one of the two endpoints of a time range.
StatisticsQueryParameters are the parameters for the OperationStatisticsQuery operation.
StatsResult contains the information to build the histogram of observations for an analyte.
SubGroupDefinition is the definition of a subgroup used in a survival query.
SurvivalQueryModifier is a modifier used in a survival query.
SurvivalQueryParameters are the parameters for the OperationSurvivalQuery operation.
TimePoint contains a relative time, the numbers of events of interest and censoring events occured at that time.
TimePointResult holds information about time point, events, execution times and error.
UnitValueJSON is a unit value of a MetadataJSON.
# Type aliases
EventGroups holds a list of EventGroup instances.
TimePoints is a slice containing the time points and respective counts of censoring events and events of interest.