package
1.0.6-ti4health
Repository: https://github.com/tuneinsight/geco-i2b2-data-source.git
Documentation: pkg.go.dev

# README

Package pkg/datasource/database

This package implements the database access of the data source to its postgresql database.

# Functions

NewPostgresDatabase initializes a connection to a postgres database, and loads its structure if not present.

# Constants

TestSchemaName defines the database schema name used for tests.

# Structs

Events contains the number of events of interest and censoring events occurring at the same relative time.
ExploreQuery is an explore query such as stored in the database.
OntologyElement is an i2b2 ontology element as stored in the database.
PostgresDatabase wraps the Postgres database of the data source.
PostgresDatabaseConfig is the config used to connect to the postgres database.
SavedCohort is a cohort such as stored in the database.
StatsObservation contains a patient observation.