model

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeDefinition

type AttributeDefinition struct {
	AttributeDefinitionID  int         `gorm:"column:attribute_definition_id;primary_key" json:"attribute_definition_id"`
	AttributeName          string      `gorm:"column:attribute_name" json:"attribute_name"`
	AttributeDescription   null.String `gorm:"column:attribute_description" json:"attribute_description"`
	AttributeTypeConceptID int         `gorm:"column:attribute_type_concept_id" json:"attribute_type_concept_id"`
	AttributeSyntax        null.String `gorm:"column:attribute_syntax" json:"attribute_syntax"`
}

func (*AttributeDefinition) TableName

func (a *AttributeDefinition) TableName() string

TableName sets the insert table name for this struct type

type CareSite

type CareSite struct {
	CareSiteID                int64       `gorm:"column:care_site_id;primary_key" json:"care_site_id"`
	CareSiteName              null.String `gorm:"column:care_site_name" json:"care_site_name"`
	PlaceOfServiceConceptID   int         `gorm:"column:place_of_service_concept_id" json:"place_of_service_concept_id"`
	LocationID                null.Int    `gorm:"column:location_id" json:"location_id"`
	CareSiteSourceValue       null.String `gorm:"column:care_site_source_value" json:"care_site_source_value"`
	PlaceOfServiceSourceValue null.String `gorm:"column:place_of_service_source_value" json:"place_of_service_source_value"`
}

func (*CareSite) TableName

func (c *CareSite) TableName() string

TableName sets the insert table name for this struct type

type CdmSource

type CdmSource struct {
	CdmSourceName                string      `gorm:"column:cdm_source_name;primary_key" json:"cdm_source_name"`
	CdmSourceAbbreviation        null.String `gorm:"column:cdm_source_abbreviation" json:"cdm_source_abbreviation"`
	CdmHolder                    null.String `gorm:"column:cdm_holder" json:"cdm_holder"`
	SourceDescription            null.String `gorm:"column:source_description" json:"source_description"`
	SourceDocumentationReference null.String `gorm:"column:source_documentation_reference" json:"source_documentation_reference"`
	CdmEtlReference              null.String `gorm:"column:cdm_etl_reference" json:"cdm_etl_reference"`
	SourceReleaseDate            null.Time   `gorm:"column:source_release_date" json:"source_release_date"`
	CdmReleaseDate               null.Time   `gorm:"column:cdm_release_date" json:"cdm_release_date"`
	CdmVersion                   null.String `gorm:"column:cdm_version" json:"cdm_version"`
	VocabularyVersion            null.String `gorm:"column:vocabulary_version" json:"vocabulary_version"`
}

func (*CdmSource) TableName

func (c *CdmSource) TableName() string

TableName sets the insert table name for this struct type

type Concept

type Concept struct {
	ConceptID       int         `gorm:"column:concept_id;primary_key" json:"concept_id"`
	ConceptName     string      `gorm:"column:concept_name" json:"concept_name"`
	DomainID        string      `gorm:"column:domain_id" json:"domain_id"`
	VocabularyID    string      `gorm:"column:vocabulary_id" json:"vocabulary_id"`
	ConceptClassID  string      `gorm:"column:concept_class_id" json:"concept_class_id"`
	StandardConcept null.String `gorm:"column:standard_concept" json:"standard_concept"`
	ConceptCode     string      `gorm:"column:concept_code" json:"concept_code"`
	ValidStartDate  time.Time   `gorm:"column:valid_start_date" json:"valid_start_date"`
	ValidEndDate    time.Time   `gorm:"column:valid_end_date" json:"valid_end_date"`
	InvalidReason   null.String `gorm:"column:invalid_reason" json:"invalid_reason"`
}

func (*Concept) TableName

func (c *Concept) TableName() string

TableName sets the insert table name for this struct type

type ConceptAncestor

type ConceptAncestor struct {
	AncestorConceptID     int `gorm:"column:ancestor_concept_id;primary_key" json:"ancestor_concept_id"`
	DescendantConceptID   int `gorm:"column:descendant_concept_id" json:"descendant_concept_id"`
	MinLevelsOfSeparation int `gorm:"column:min_levels_of_separation" json:"min_levels_of_separation"`
	MaxLevelsOfSeparation int `gorm:"column:max_levels_of_separation" json:"max_levels_of_separation"`
}

func (*ConceptAncestor) TableName

func (c *ConceptAncestor) TableName() string

TableName sets the insert table name for this struct type

type ConceptClass

type ConceptClass struct {
	ConceptClassID        string `gorm:"column:concept_class_id;primary_key" json:"concept_class_id"`
	ConceptClassName      string `gorm:"column:concept_class_name" json:"concept_class_name"`
	ConceptClassConceptID int    `gorm:"column:concept_class_concept_id" json:"concept_class_concept_id"`
}

func (*ConceptClass) TableName

func (c *ConceptClass) TableName() string

TableName sets the insert table name for this struct type

type ConceptRelationship

type ConceptRelationship struct {
	ConceptID1     int         `gorm:"column:concept_id_1;primary_key" json:"concept_id_1"`
	ConceptID2     int         `gorm:"column:concept_id_2" json:"concept_id_2"`
	RelationshipID string      `gorm:"column:relationship_id" json:"relationship_id"`
	ValidStartDate time.Time   `gorm:"column:valid_start_date" json:"valid_start_date"`
	ValidEndDate   time.Time   `gorm:"column:valid_end_date" json:"valid_end_date"`
	InvalidReason  null.String `gorm:"column:invalid_reason" json:"invalid_reason"`
}

func (*ConceptRelationship) TableName

func (c *ConceptRelationship) TableName() string

TableName sets the insert table name for this struct type

type ConceptSynonym

type ConceptSynonym struct {
	ConceptID          int    `gorm:"column:concept_id;primary_key" json:"concept_id"`
	ConceptSynonymName string `gorm:"column:concept_synonym_name" json:"concept_synonym_name"`
	LanguageConceptID  int    `gorm:"column:language_concept_id" json:"language_concept_id"`
}

func (*ConceptSynonym) TableName

func (c *ConceptSynonym) TableName() string

TableName sets the insert table name for this struct type

type ConditionEra

type ConditionEra struct {
	ConditionEraID            int64     `gorm:"column:condition_era_id;primary_key" json:"condition_era_id"`
	PersonID                  int64     `gorm:"column:person_id" json:"person_id"`
	ConditionConceptID        int       `gorm:"column:condition_concept_id" json:"condition_concept_id"`
	ConditionEraStartDatetime time.Time `gorm:"column:condition_era_start_datetime" json:"condition_era_start_datetime"`
	ConditionEraEndDatetime   time.Time `gorm:"column:condition_era_end_datetime" json:"condition_era_end_datetime"`
	ConditionOccurrenceCount  null.Int  `gorm:"column:condition_occurrence_count" json:"condition_occurrence_count"`
}

func (*ConditionEra) TableName

func (c *ConditionEra) TableName() string

TableName sets the insert table name for this struct type

type ConditionOccurrence

type ConditionOccurrence struct {
	ConditionOccurrenceID      int64       `gorm:"column:condition_occurrence_id;primary_key" json:"condition_occurrence_id"`
	PersonID                   int64       `gorm:"column:person_id" json:"person_id"`
	ConditionConceptID         int         `gorm:"column:condition_concept_id" json:"condition_concept_id"`
	ConditionStartDate         null.Time   `gorm:"column:condition_start_date" json:"condition_start_date"`
	ConditionStartDatetime     time.Time   `gorm:"column:condition_start_datetime" json:"condition_start_datetime"`
	ConditionEndDate           null.Time   `gorm:"column:condition_end_date" json:"condition_end_date"`
	ConditionEndDatetime       null.Time   `gorm:"column:condition_end_datetime" json:"condition_end_datetime"`
	ConditionTypeConceptID     int         `gorm:"column:condition_type_concept_id" json:"condition_type_concept_id"`
	ConditionStatusConceptID   int         `gorm:"column:condition_status_concept_id" json:"condition_status_concept_id"`
	StopReason                 null.String `gorm:"column:stop_reason" json:"stop_reason"`
	ProviderID                 null.Int    `gorm:"column:provider_id" json:"provider_id"`
	VisitOccurrenceID          null.Int    `gorm:"column:visit_occurrence_id" json:"visit_occurrence_id"`
	VisitDetailID              null.Int    `gorm:"column:visit_detail_id" json:"visit_detail_id"`
	ConditionSourceValue       null.String `gorm:"column:condition_source_value" json:"condition_source_value"`
	ConditionSourceConceptID   int         `gorm:"column:condition_source_concept_id" json:"condition_source_concept_id"`
	ConditionStatusSourceValue null.String `gorm:"column:condition_status_source_value" json:"condition_status_source_value"`
}

func (*ConditionOccurrence) TableName

func (c *ConditionOccurrence) TableName() string

TableName sets the insert table name for this struct type

type Cost

type Cost struct {
	CostID                  int64       `gorm:"column:cost_id;primary_key" json:"cost_id"`
	PersonID                int64       `gorm:"column:person_id" json:"person_id"`
	CostEventID             int64       `gorm:"column:cost_event_id" json:"cost_event_id"`
	CostEventFieldConceptID int         `gorm:"column:cost_event_field_concept_id" json:"cost_event_field_concept_id"`
	CostConceptID           int         `gorm:"column:cost_concept_id" json:"cost_concept_id"`
	CostTypeConceptID       int         `gorm:"column:cost_type_concept_id" json:"cost_type_concept_id"`
	CurrencyConceptID       int         `gorm:"column:currency_concept_id" json:"currency_concept_id"`
	Cost                    null.Float  `gorm:"column:cost" json:"cost"`
	IncurredDate            time.Time   `gorm:"column:incurred_date" json:"incurred_date"`
	BilledDate              null.Time   `gorm:"column:billed_date" json:"billed_date"`
	PaidDate                null.Time   `gorm:"column:paid_date" json:"paid_date"`
	RevenueCodeConceptID    int         `gorm:"column:revenue_code_concept_id" json:"revenue_code_concept_id"`
	DrgConceptID            int         `gorm:"column:drg_concept_id" json:"drg_concept_id"`
	CostSourceValue         null.String `gorm:"column:cost_source_value" json:"cost_source_value"`
	CostSourceConceptID     int         `gorm:"column:cost_source_concept_id" json:"cost_source_concept_id"`
	RevenueCodeSourceValue  null.String `gorm:"column:revenue_code_source_value" json:"revenue_code_source_value"`
	DrgSourceValue          null.String `gorm:"column:drg_source_value" json:"drg_source_value"`
	PayerPlanPeriodID       null.Int    `gorm:"column:payer_plan_period_id" json:"payer_plan_period_id"`
}

func (*Cost) TableName

func (c *Cost) TableName() string

TableName sets the insert table name for this struct type

type DeviceExposure

type DeviceExposure struct {
	DeviceExposureID            int64       `gorm:"column:device_exposure_id;primary_key" json:"device_exposure_id"`
	PersonID                    int64       `gorm:"column:person_id" json:"person_id"`
	DeviceConceptID             int         `gorm:"column:device_concept_id" json:"device_concept_id"`
	DeviceExposureStartDate     null.Time   `gorm:"column:device_exposure_start_date" json:"device_exposure_start_date"`
	DeviceExposureStartDatetime time.Time   `gorm:"column:device_exposure_start_datetime" json:"device_exposure_start_datetime"`
	DeviceExposureEndDate       null.Time   `gorm:"column:device_exposure_end_date" json:"device_exposure_end_date"`
	DeviceExposureEndDatetime   null.Time   `gorm:"column:device_exposure_end_datetime" json:"device_exposure_end_datetime"`
	DeviceTypeConceptID         int         `gorm:"column:device_type_concept_id" json:"device_type_concept_id"`
	UniqueDeviceID              null.String `gorm:"column:unique_device_id" json:"unique_device_id"`
	Quantity                    null.Int    `gorm:"column:quantity" json:"quantity"`
	ProviderID                  null.Int    `gorm:"column:provider_id" json:"provider_id"`
	VisitOccurrenceID           null.Int    `gorm:"column:visit_occurrence_id" json:"visit_occurrence_id"`
	VisitDetailID               null.Int    `gorm:"column:visit_detail_id" json:"visit_detail_id"`
	DeviceSourceValue           null.String `gorm:"column:device_source_value" json:"device_source_value"`
	DeviceSourceConceptID       int         `gorm:"column:device_source_concept_id" json:"device_source_concept_id"`
}

func (*DeviceExposure) TableName

func (d *DeviceExposure) TableName() string

TableName sets the insert table name for this struct type

type Domain

type Domain struct {
	DomainID        string `gorm:"column:domain_id;primary_key" json:"domain_id"`
	DomainName      string `gorm:"column:domain_name" json:"domain_name"`
	DomainConceptID int    `gorm:"column:domain_concept_id" json:"domain_concept_id"`
}

func (*Domain) TableName

func (d *Domain) TableName() string

TableName sets the insert table name for this struct type

type DoseEra

type DoseEra struct {
	DoseEraID            int64     `gorm:"column:dose_era_id;primary_key" json:"dose_era_id"`
	PersonID             int64     `gorm:"column:person_id" json:"person_id"`
	DrugConceptID        int       `gorm:"column:drug_concept_id" json:"drug_concept_id"`
	UnitConceptID        int       `gorm:"column:unit_concept_id" json:"unit_concept_id"`
	DoseValue            float64   `gorm:"column:dose_value" json:"dose_value"`
	DoseEraStartDatetime time.Time `gorm:"column:dose_era_start_datetime" json:"dose_era_start_datetime"`
	DoseEraEndDatetime   time.Time `gorm:"column:dose_era_end_datetime" json:"dose_era_end_datetime"`
}

func (*DoseEra) TableName

func (d *DoseEra) TableName() string

TableName sets the insert table name for this struct type

type DrugEra

type DrugEra struct {
	DrugEraID            int64     `gorm:"column:drug_era_id;primary_key" json:"drug_era_id"`
	PersonID             int64     `gorm:"column:person_id" json:"person_id"`
	DrugConceptID        int       `gorm:"column:drug_concept_id" json:"drug_concept_id"`
	DrugEraStartDatetime time.Time `gorm:"column:drug_era_start_datetime" json:"drug_era_start_datetime"`
	DrugEraEndDatetime   time.Time `gorm:"column:drug_era_end_datetime" json:"drug_era_end_datetime"`
	DrugExposureCount    null.Int  `gorm:"column:drug_exposure_count" json:"drug_exposure_count"`
	GapDays              null.Int  `gorm:"column:gap_days" json:"gap_days"`
}

func (*DrugEra) TableName

func (d *DrugEra) TableName() string

TableName sets the insert table name for this struct type

type DrugExposure

type DrugExposure struct {
	DrugExposureID            int64       `gorm:"column:drug_exposure_id;primary_key" json:"drug_exposure_id"`
	PersonID                  int64       `gorm:"column:person_id" json:"person_id"`
	DrugConceptID             int         `gorm:"column:drug_concept_id" json:"drug_concept_id"`
	DrugExposureStartDate     null.Time   `gorm:"column:drug_exposure_start_date" json:"drug_exposure_start_date"`
	DrugExposureStartDatetime time.Time   `gorm:"column:drug_exposure_start_datetime" json:"drug_exposure_start_datetime"`
	DrugExposureEndDate       null.Time   `gorm:"column:drug_exposure_end_date" json:"drug_exposure_end_date"`
	DrugExposureEndDatetime   time.Time   `gorm:"column:drug_exposure_end_datetime" json:"drug_exposure_end_datetime"`
	VerbatimEndDate           null.Time   `gorm:"column:verbatim_end_date" json:"verbatim_end_date"`
	DrugTypeConceptID         int         `gorm:"column:drug_type_concept_id" json:"drug_type_concept_id"`
	StopReason                null.String `gorm:"column:stop_reason" json:"stop_reason"`
	Refills                   null.Int    `gorm:"column:refills" json:"refills"`
	Quantity                  null.Float  `gorm:"column:quantity" json:"quantity"`
	DaysSupply                null.Int    `gorm:"column:days_supply" json:"days_supply"`
	Sig                       null.String `gorm:"column:sig" json:"sig"`
	RouteConceptID            int         `gorm:"column:route_concept_id" json:"route_concept_id"`
	LotNumber                 null.String `gorm:"column:lot_number" json:"lot_number"`
	ProviderID                null.Int    `gorm:"column:provider_id" json:"provider_id"`
	VisitOccurrenceID         null.Int    `gorm:"column:visit_occurrence_id" json:"visit_occurrence_id"`
	VisitDetailID             null.Int    `gorm:"column:visit_detail_id" json:"visit_detail_id"`
	DrugSourceValue           null.String `gorm:"column:drug_source_value" json:"drug_source_value"`
	DrugSourceConceptID       int         `gorm:"column:drug_source_concept_id" json:"drug_source_concept_id"`
	RouteSourceValue          null.String `gorm:"column:route_source_value" json:"route_source_value"`
	DoseUnitSourceValue       null.String `gorm:"column:dose_unit_source_value" json:"dose_unit_source_value"`
}

func (*DrugExposure) TableName

func (d *DrugExposure) TableName() string

TableName sets the insert table name for this struct type

type DrugStrength

type DrugStrength struct {
	DrugConceptID            int         `gorm:"column:drug_concept_id;primary_key" json:"drug_concept_id"`
	IngredientConceptID      int         `gorm:"column:ingredient_concept_id" json:"ingredient_concept_id"`
	AmountValue              null.Float  `gorm:"column:amount_value" json:"amount_value"`
	AmountUnitConceptID      null.Int    `gorm:"column:amount_unit_concept_id" json:"amount_unit_concept_id"`
	NumeratorValue           null.Float  `gorm:"column:numerator_value" json:"numerator_value"`
	NumeratorUnitConceptID   null.Int    `gorm:"column:numerator_unit_concept_id" json:"numerator_unit_concept_id"`
	DenominatorValue         null.Float  `gorm:"column:denominator_value" json:"denominator_value"`
	DenominatorUnitConceptID null.Int    `gorm:"column:denominator_unit_concept_id" json:"denominator_unit_concept_id"`
	BoxSize                  null.Int    `gorm:"column:box_size" json:"box_size"`
	ValidStartDate           time.Time   `gorm:"column:valid_start_date" json:"valid_start_date"`
	ValidEndDate             time.Time   `gorm:"column:valid_end_date" json:"valid_end_date"`
	InvalidReason            null.String `gorm:"column:invalid_reason" json:"invalid_reason"`
}

func (*DrugStrength) TableName

func (d *DrugStrength) TableName() string

TableName sets the insert table name for this struct type

type FactRelationship

type FactRelationship struct {
	DomainConceptID1      int   `gorm:"column:domain_concept_id_1;primary_key" json:"domain_concept_id_1"`
	FactID1               int64 `gorm:"column:fact_id_1" json:"fact_id_1"`
	DomainConceptID2      int   `gorm:"column:domain_concept_id_2" json:"domain_concept_id_2"`
	FactID2               int64 `gorm:"column:fact_id_2" json:"fact_id_2"`
	RelationshipConceptID int   `gorm:"column:relationship_concept_id" json:"relationship_concept_id"`
}

func (*FactRelationship) TableName

func (f *FactRelationship) TableName() string

TableName sets the insert table name for this struct type

type Location

type Location struct {
	LocationID          int64       `gorm:"column:location_id;primary_key" json:"location_id"`
	Address1            null.String `gorm:"column:address_1" json:"address_1"`
	Address2            null.String `gorm:"column:address_2" json:"address_2"`
	City                null.String `gorm:"column:city" json:"city"`
	State               null.String `gorm:"column:state" json:"state"`
	Zip                 null.String `gorm:"column:zip" json:"zip"`
	County              null.String `gorm:"column:county" json:"county"`
	Country             null.String `gorm:"column:country" json:"country"`
	LocationSourceValue null.String `gorm:"column:location_source_value" json:"location_source_value"`
	Latitude            null.Float  `gorm:"column:latitude" json:"latitude"`
	Longitude           null.Float  `gorm:"column:longitude" json:"longitude"`
}

func (*Location) TableName

func (l *Location) TableName() string

TableName sets the insert table name for this struct type

type LocationHistory

type LocationHistory struct {
	LocationHistoryID         int64     `gorm:"column:location_history_id;primary_key" json:"location_history_id"`
	LocationID                int64     `gorm:"column:location_id" json:"location_id"`
	RelationshipTypeConceptID int       `gorm:"column:relationship_type_concept_id" json:"relationship_type_concept_id"`
	DomainID                  string    `gorm:"column:domain_id" json:"domain_id"`
	EntityID                  int64     `gorm:"column:entity_id" json:"entity_id"`
	StartDate                 time.Time `gorm:"column:start_date" json:"start_date"`
	EndDate                   null.Time `gorm:"column:end_date" json:"end_date"`
}

LocationHistory : LocationHistory

func (*LocationHistory) TableName

func (l *LocationHistory) TableName() string

TableName sets the insert table name for this struct type

type Measurement

type Measurement struct {
	MeasurementID              int64       `gorm:"column:measurement_id;primary_key" json:"measurement_id"`
	PersonID                   int64       `gorm:"column:person_id" json:"person_id"`
	MeasurementConceptID       int         `gorm:"column:measurement_concept_id" json:"measurement_concept_id"`
	MeasurementDate            null.Time   `gorm:"column:measurement_date" json:"measurement_date"`
	MeasurementDatetime        time.Time   `gorm:"column:measurement_datetime" json:"measurement_datetime"`
	MeasurementTime            null.String `gorm:"column:measurement_time" json:"measurement_time"`
	MeasurementTypeConceptID   int         `gorm:"column:measurement_type_concept_id" json:"measurement_type_concept_id"`
	OperatorConceptID          null.Int    `gorm:"column:operator_concept_id" json:"operator_concept_id"`
	ValueAsNumber              null.Float  `gorm:"column:value_as_number" json:"value_as_number"`
	ValueAsConceptID           null.Int    `gorm:"column:value_as_concept_id" json:"value_as_concept_id"`
	UnitConceptID              null.Int    `gorm:"column:unit_concept_id" json:"unit_concept_id"`
	RangeLow                   null.Float  `gorm:"column:range_low" json:"range_low"`
	RangeHigh                  null.Float  `gorm:"column:range_high" json:"range_high"`
	ProviderID                 null.Int    `gorm:"column:provider_id" json:"provider_id"`
	VisitOccurrenceID          null.Int    `gorm:"column:visit_occurrence_id" json:"visit_occurrence_id"`
	VisitDetailID              null.Int    `gorm:"column:visit_detail_id" json:"visit_detail_id"`
	MeasurementSourceValue     null.String `gorm:"column:measurement_source_value" json:"measurement_source_value"`
	MeasurementSourceConceptID int         `gorm:"column:measurement_source_concept_id" json:"measurement_source_concept_id"`
	UnitSourceValue            null.String `gorm:"column:unit_source_value" json:"unit_source_value"`
	ValueSourceValue           null.String `gorm:"column:value_source_value" json:"value_source_value"`
}

func (*Measurement) TableName

func (m *Measurement) TableName() string

TableName sets the insert table name for this struct type

type Metadatum

type Metadatum struct {
	MetadataConceptID     int         `gorm:"column:metadata_concept_id;primary_key" json:"metadata_concept_id"`
	MetadataTypeConceptID int         `gorm:"column:metadata_type_concept_id" json:"metadata_type_concept_id"`
	Name                  string      `gorm:"column:name" json:"name"`
	ValueAsString         null.String `gorm:"column:value_as_string" json:"value_as_string"`
	ValueAsConceptID      null.Int    `gorm:"column:value_as_concept_id" json:"value_as_concept_id"`
	MetadataDate          null.Time   `gorm:"column:metadata_date" json:"metadata_date"`
	MetadataDatetime      null.Time   `gorm:"column:metadata_datetime" json:"metadata_datetime"`
}

func (*Metadatum) TableName

func (m *Metadatum) TableName() string

TableName sets the insert table name for this struct type

type Note

type Note struct {
	NoteID                  int64       `gorm:"column:note_id;primary_key" json:"note_id"`
	PersonID                int64       `gorm:"column:person_id" json:"person_id"`
	NoteEventID             null.Int    `gorm:"column:note_event_id" json:"note_event_id"`
	NoteEventFieldConceptID int         `gorm:"column:note_event_field_concept_id" json:"note_event_field_concept_id"`
	NoteDate                null.Time   `gorm:"column:note_date" json:"note_date"`
	NoteDatetime            time.Time   `gorm:"column:note_datetime" json:"note_datetime"`
	NoteTypeConceptID       int         `gorm:"column:note_type_concept_id" json:"note_type_concept_id"`
	NoteClassConceptID      int         `gorm:"column:note_class_concept_id" json:"note_class_concept_id"`
	NoteTitle               null.String `gorm:"column:note_title" json:"note_title"`
	NoteText                null.String `gorm:"column:note_text" json:"note_text"`
	EncodingConceptID       int         `gorm:"column:encoding_concept_id" json:"encoding_concept_id"`
	LanguageConceptID       int         `gorm:"column:language_concept_id" json:"language_concept_id"`
	ProviderID              null.Int    `gorm:"column:provider_id" json:"provider_id"`
	VisitOccurrenceID       null.Int    `gorm:"column:visit_occurrence_id" json:"visit_occurrence_id"`
	VisitDetailID           null.Int    `gorm:"column:visit_detail_id" json:"visit_detail_id"`
	NoteSourceValue         null.String `gorm:"column:note_source_value" json:"note_source_value"`
}

func (*Note) TableName

func (n *Note) TableName() string

TableName sets the insert table name for this struct type

type NoteNlp

type NoteNlp struct {
	NoteNlpID              int64       `gorm:"column:note_nlp_id;primary_key" json:"note_nlp_id"`
	NoteID                 int64       `gorm:"column:note_id" json:"note_id"`
	SectionConceptID       int         `gorm:"column:section_concept_id" json:"section_concept_id"`
	Snippet                null.String `gorm:"column:snippet" json:"snippet"`
	Offset                 null.String `gorm:"column:offset" json:"offset"`
	LexicalVariant         string      `gorm:"column:lexical_variant" json:"lexical_variant"`
	NoteNlpConceptID       int         `gorm:"column:note_nlp_concept_id" json:"note_nlp_concept_id"`
	NlpSystem              null.String `gorm:"column:nlp_system" json:"nlp_system"`
	NlpDate                time.Time   `gorm:"column:nlp_date" json:"nlp_date"`
	NlpDatetime            null.Time   `gorm:"column:nlp_datetime" json:"nlp_datetime"`
	TermExists             null.String `gorm:"column:term_exists" json:"term_exists"`
	TermTemporal           null.String `gorm:"column:term_temporal" json:"term_temporal"`
	TermModifiers          null.String `gorm:"column:term_modifiers" json:"term_modifiers"`
	NoteNlpSourceConceptID int         `gorm:"column:note_nlp_source_concept_id" json:"note_nlp_source_concept_id"`
}

func (*NoteNlp) TableName

func (n *NoteNlp) TableName() string

TableName sets the insert table name for this struct type

type Observation

type Observation struct {
	ObservationID              int64       `gorm:"column:observation_id;primary_key" json:"observation_id"`
	PersonID                   int64       `gorm:"column:person_id" json:"person_id"`
	ObservationConceptID       int         `gorm:"column:observation_concept_id" json:"observation_concept_id"`
	ObservationDate            null.Time   `gorm:"column:observation_date" json:"observation_date"`
	ObservationDatetime        time.Time   `gorm:"column:observation_datetime" json:"observation_datetime"`
	ObservationTypeConceptID   int         `gorm:"column:observation_type_concept_id" json:"observation_type_concept_id"`
	ValueAsNumber              null.Float  `gorm:"column:value_as_number" json:"value_as_number"`
	ValueAsString              null.String `gorm:"column:value_as_string" json:"value_as_string"`
	ValueAsConceptID           null.Int    `gorm:"column:value_as_concept_id" json:"value_as_concept_id"`
	QualifierConceptID         null.Int    `gorm:"column:qualifier_concept_id" json:"qualifier_concept_id"`
	UnitConceptID              null.Int    `gorm:"column:unit_concept_id" json:"unit_concept_id"`
	ProviderID                 null.Int    `gorm:"column:provider_id" json:"provider_id"`
	VisitOccurrenceID          null.Int    `gorm:"column:visit_occurrence_id" json:"visit_occurrence_id"`
	VisitDetailID              null.Int    `gorm:"column:visit_detail_id" json:"visit_detail_id"`
	ObservationSourceValue     null.String `gorm:"column:observation_source_value" json:"observation_source_value"`
	ObservationSourceConceptID int         `gorm:"column:observation_source_concept_id" json:"observation_source_concept_id"`
	UnitSourceValue            null.String `gorm:"column:unit_source_value" json:"unit_source_value"`
	QualifierSourceValue       null.String `gorm:"column:qualifier_source_value" json:"qualifier_source_value"`
	ObservationEventID         null.Int    `gorm:"column:observation_event_id" json:"observation_event_id"`
	ObsEventFieldConceptID     int         `gorm:"column:obs_event_field_concept_id" json:"obs_event_field_concept_id"`
	ValueAsDatetime            null.Time   `gorm:"column:value_as_datetime" json:"value_as_datetime"`
}

func (*Observation) TableName

func (o *Observation) TableName() string

TableName sets the insert table name for this struct type

type ObservationPeriod

type ObservationPeriod struct {
	ObservationPeriodID        int64     `gorm:"column:observation_period_id;primary_key" json:"observation_period_id"`
	PersonID                   int64     `gorm:"column:person_id" json:"person_id"`
	ObservationPeriodStartDate time.Time `gorm:"column:observation_period_start_date" json:"observation_period_start_date"`
	ObservationPeriodEndDate   time.Time `gorm:"column:observation_period_end_date" json:"observation_period_end_date"`
	PeriodTypeConceptID        int       `gorm:"column:period_type_concept_id" json:"period_type_concept_id"`
}

func (*ObservationPeriod) TableName

func (o *ObservationPeriod) TableName() string

TableName sets the insert table name for this struct type

type PayerPlanPeriod

type PayerPlanPeriod struct {
	PayerPlanPeriodID         int64       `gorm:"column:payer_plan_period_id;primary_key" json:"payer_plan_period_id"`
	PersonID                  int64       `gorm:"column:person_id" json:"person_id"`
	ContractPersonID          null.Int    `gorm:"column:contract_person_id" json:"contract_person_id"`
	PayerPlanPeriodStartDate  time.Time   `gorm:"column:payer_plan_period_start_date" json:"payer_plan_period_start_date"`
	PayerPlanPeriodEndDate    time.Time   `gorm:"column:payer_plan_period_end_date" json:"payer_plan_period_end_date"`
	PayerConceptID            int         `gorm:"column:payer_concept_id" json:"payer_concept_id"`
	PlanConceptID             int         `gorm:"column:plan_concept_id" json:"plan_concept_id"`
	ContractConceptID         int         `gorm:"column:contract_concept_id" json:"contract_concept_id"`
	SponsorConceptID          int         `gorm:"column:sponsor_concept_id" json:"sponsor_concept_id"`
	StopReasonConceptID       int         `gorm:"column:stop_reason_concept_id" json:"stop_reason_concept_id"`
	PayerSourceValue          null.String `gorm:"column:payer_source_value" json:"payer_source_value"`
	PayerSourceConceptID      int         `gorm:"column:payer_source_concept_id" json:"payer_source_concept_id"`
	PlanSourceValue           null.String `gorm:"column:plan_source_value" json:"plan_source_value"`
	PlanSourceConceptID       int         `gorm:"column:plan_source_concept_id" json:"plan_source_concept_id"`
	ContractSourceValue       null.String `gorm:"column:contract_source_value" json:"contract_source_value"`
	ContractSourceConceptID   int         `gorm:"column:contract_source_concept_id" json:"contract_source_concept_id"`
	SponsorSourceValue        null.String `gorm:"column:sponsor_source_value" json:"sponsor_source_value"`
	SponsorSourceConceptID    int         `gorm:"column:sponsor_source_concept_id" json:"sponsor_source_concept_id"`
	FamilySourceValue         null.String `gorm:"column:family_source_value" json:"family_source_value"`
	StopReasonSourceValue     null.String `gorm:"column:stop_reason_source_value" json:"stop_reason_source_value"`
	StopReasonSourceConceptID int         `gorm:"column:stop_reason_source_concept_id" json:"stop_reason_source_concept_id"`
}

func (*PayerPlanPeriod) TableName

func (p *PayerPlanPeriod) TableName() string

TableName sets the insert table name for this struct type

type Person

type Person struct {
	PersonID                 int64       `gorm:"column:person_id;primary_key" json:"person_id"`
	GenderConceptID          int         `gorm:"column:gender_concept_id" json:"gender_concept_id"`
	YearOfBirth              int         `gorm:"column:year_of_birth" json:"year_of_birth"`
	MonthOfBirth             null.Int    `gorm:"column:month_of_birth" json:"month_of_birth"`
	DayOfBirth               null.Int    `gorm:"column:day_of_birth" json:"day_of_birth"`
	BirthDatetime            null.Time   `gorm:"column:birth_datetime" json:"birth_datetime"`
	DeathDatetime            null.Time   `gorm:"column:death_datetime" json:"death_datetime"`
	RaceConceptID            int         `gorm:"column:race_concept_id" json:"race_concept_id"`
	EthnicityConceptID       int         `gorm:"column:ethnicity_concept_id" json:"ethnicity_concept_id"`
	LocationID               null.Int    `gorm:"column:location_id" json:"location_id"`
	ProviderID               null.Int    `gorm:"column:provider_id" json:"provider_id"`
	CareSiteID               null.Int    `gorm:"column:care_site_id" json:"care_site_id"`
	PersonSourceValue        null.String `gorm:"column:person_source_value" json:"person_source_value"`
	GenderSourceValue        null.String `gorm:"column:gender_source_value" json:"gender_source_value"`
	GenderSourceConceptID    int         `gorm:"column:gender_source_concept_id" json:"gender_source_concept_id"`
	RaceSourceValue          null.String `gorm:"column:race_source_value" json:"race_source_value"`
	RaceSourceConceptID      int         `gorm:"column:race_source_concept_id" json:"race_source_concept_id"`
	EthnicitySourceValue     null.String `gorm:"column:ethnicity_source_value" json:"ethnicity_source_value"`
	EthnicitySourceConceptID int         `gorm:"column:ethnicity_source_concept_id" json:"ethnicity_source_concept_id"`
}

func (*Person) TableName

func (p *Person) TableName() string

TableName sets the insert table name for this struct type

type ProcedureOccurrence

type ProcedureOccurrence struct {
	ProcedureOccurrenceID    int64       `gorm:"column:procedure_occurrence_id;primary_key" json:"procedure_occurrence_id"`
	PersonID                 int64       `gorm:"column:person_id" json:"person_id"`
	ProcedureConceptID       int         `gorm:"column:procedure_concept_id" json:"procedure_concept_id"`
	ProcedureDate            null.Time   `gorm:"column:procedure_date" json:"procedure_date"`
	ProcedureDatetime        time.Time   `gorm:"column:procedure_datetime" json:"procedure_datetime"`
	ProcedureTypeConceptID   int         `gorm:"column:procedure_type_concept_id" json:"procedure_type_concept_id"`
	ModifierConceptID        int         `gorm:"column:modifier_concept_id" json:"modifier_concept_id"`
	Quantity                 null.Int    `gorm:"column:quantity" json:"quantity"`
	ProviderID               null.Int    `gorm:"column:provider_id" json:"provider_id"`
	VisitOccurrenceID        null.Int    `gorm:"column:visit_occurrence_id" json:"visit_occurrence_id"`
	VisitDetailID            null.Int    `gorm:"column:visit_detail_id" json:"visit_detail_id"`
	ProcedureSourceValue     null.String `gorm:"column:procedure_source_value" json:"procedure_source_value"`
	ProcedureSourceConceptID int         `gorm:"column:procedure_source_concept_id" json:"procedure_source_concept_id"`
	ModifierSourceValue      null.String `gorm:"column:modifier_source_value" json:"modifier_source_value"`
}

func (*ProcedureOccurrence) TableName

func (p *ProcedureOccurrence) TableName() string

TableName sets the insert table name for this struct type

type Provider

type Provider struct {
	ProviderID               int64       `gorm:"column:provider_id;primary_key" json:"provider_id"`
	ProviderName             null.String `gorm:"column:provider_name" json:"provider_name"`
	NPI                      null.String `gorm:"column:NPI" json:"NPI"`
	DEA                      null.String `gorm:"column:DEA" json:"DEA"`
	SpecialtyConceptID       int         `gorm:"column:specialty_concept_id" json:"specialty_concept_id"`
	CareSiteID               null.Int    `gorm:"column:care_site_id" json:"care_site_id"`
	YearOfBirth              null.Int    `gorm:"column:year_of_birth" json:"year_of_birth"`
	GenderConceptID          int         `gorm:"column:gender_concept_id" json:"gender_concept_id"`
	ProviderSourceValue      null.String `gorm:"column:provider_source_value" json:"provider_source_value"`
	SpecialtySourceValue     null.String `gorm:"column:specialty_source_value" json:"specialty_source_value"`
	SpecialtySourceConceptID null.Int    `gorm:"column:specialty_source_concept_id" json:"specialty_source_concept_id"`
	GenderSourceValue        null.String `gorm:"column:gender_source_value" json:"gender_source_value"`
	GenderSourceConceptID    int         `gorm:"column:gender_source_concept_id" json:"gender_source_concept_id"`
}

func (*Provider) TableName

func (p *Provider) TableName() string

TableName sets the insert table name for this struct type

type Relationship

type Relationship struct {
	RelationshipID        string `gorm:"column:relationship_id;primary_key" json:"relationship_id"`
	RelationshipName      string `gorm:"column:relationship_name" json:"relationship_name"`
	IsHierarchical        string `gorm:"column:is_hierarchical" json:"is_hierarchical"`
	DefinesAncestry       string `gorm:"column:defines_ancestry" json:"defines_ancestry"`
	ReverseRelationshipID string `gorm:"column:reverse_relationship_id" json:"reverse_relationship_id"`
	RelationshipConceptID int    `gorm:"column:relationship_concept_id" json:"relationship_concept_id"`
}

func (*Relationship) TableName

func (r *Relationship) TableName() string

TableName sets the insert table name for this struct type

type SourceToConceptMap

type SourceToConceptMap struct {
	SourceCode            string      `gorm:"column:source_code;primary_key" json:"source_code"`
	SourceConceptID       int         `gorm:"column:source_concept_id" json:"source_concept_id"`
	SourceVocabularyID    string      `gorm:"column:source_vocabulary_id" json:"source_vocabulary_id"`
	SourceCodeDescription null.String `gorm:"column:source_code_description" json:"source_code_description"`
	TargetConceptID       int         `gorm:"column:target_concept_id" json:"target_concept_id"`
	TargetVocabularyID    string      `gorm:"column:target_vocabulary_id" json:"target_vocabulary_id"`
	ValidStartDate        time.Time   `gorm:"column:valid_start_date" json:"valid_start_date"`
	ValidEndDate          time.Time   `gorm:"column:valid_end_date" json:"valid_end_date"`
	InvalidReason         null.String `gorm:"column:invalid_reason" json:"invalid_reason"`
}

func (*SourceToConceptMap) TableName

func (s *SourceToConceptMap) TableName() string

TableName sets the insert table name for this struct type

type Speciman

type Speciman struct {
	SpecimenID               int64       `gorm:"column:specimen_id;primary_key" json:"specimen_id"`
	PersonID                 int64       `gorm:"column:person_id" json:"person_id"`
	SpecimenConceptID        int         `gorm:"column:specimen_concept_id" json:"specimen_concept_id"`
	SpecimenTypeConceptID    int         `gorm:"column:specimen_type_concept_id" json:"specimen_type_concept_id"`
	SpecimenDate             null.Time   `gorm:"column:specimen_date" json:"specimen_date"`
	SpecimenDatetime         time.Time   `gorm:"column:specimen_datetime" json:"specimen_datetime"`
	Quantity                 null.Float  `gorm:"column:quantity" json:"quantity"`
	UnitConceptID            null.Int    `gorm:"column:unit_concept_id" json:"unit_concept_id"`
	AnatomicSiteConceptID    int         `gorm:"column:anatomic_site_concept_id" json:"anatomic_site_concept_id"`
	DiseaseStatusConceptID   int         `gorm:"column:disease_status_concept_id" json:"disease_status_concept_id"`
	SpecimenSourceID         null.String `gorm:"column:specimen_source_id" json:"specimen_source_id"`
	SpecimenSourceValue      null.String `gorm:"column:specimen_source_value" json:"specimen_source_value"`
	UnitSourceValue          null.String `gorm:"column:unit_source_value" json:"unit_source_value"`
	AnatomicSiteSourceValue  null.String `gorm:"column:anatomic_site_source_value" json:"anatomic_site_source_value"`
	DiseaseStatusSourceValue null.String `gorm:"column:disease_status_source_value" json:"disease_status_source_value"`
}

func (*Speciman) TableName

func (s *Speciman) TableName() string

TableName sets the insert table name for this struct type

type SurveyConduct

type SurveyConduct struct {
	SurveyConductID             int64       `gorm:"column:survey_conduct_id;primary_key" json:"survey_conduct_id"`
	PersonID                    int64       `gorm:"column:person_id" json:"person_id"`
	SurveyConceptID             int         `gorm:"column:survey_concept_id" json:"survey_concept_id"`
	SurveyStartDate             null.Time   `gorm:"column:survey_start_date" json:"survey_start_date"`
	SurveyStartDatetime         null.Time   `gorm:"column:survey_start_datetime" json:"survey_start_datetime"`
	SurveyEndDate               null.Time   `gorm:"column:survey_end_date" json:"survey_end_date"`
	SurveyEndDatetime           time.Time   `gorm:"column:survey_end_datetime" json:"survey_end_datetime"`
	ProviderID                  null.Int    `gorm:"column:provider_id" json:"provider_id"`
	AssistedConceptID           int         `gorm:"column:assisted_concept_id" json:"assisted_concept_id"`
	RespondentTypeConceptID     int         `gorm:"column:respondent_type_concept_id" json:"respondent_type_concept_id"`
	TimingConceptID             int         `gorm:"column:timing_concept_id" json:"timing_concept_id"`
	CollectionMethodConceptID   int         `gorm:"column:collection_method_concept_id" json:"collection_method_concept_id"`
	AssistedSourceValue         null.String `gorm:"column:assisted_source_value" json:"assisted_source_value"`
	RespondentTypeSourceValue   null.String `gorm:"column:respondent_type_source_value" json:"respondent_type_source_value"`
	TimingSourceValue           null.String `gorm:"column:timing_source_value" json:"timing_source_value"`
	CollectionMethodSourceValue null.String `gorm:"column:collection_method_source_value" json:"collection_method_source_value"`
	SurveySourceValue           null.String `gorm:"column:survey_source_value" json:"survey_source_value"`
	SurveySourceConceptID       int         `gorm:"column:survey_source_concept_id" json:"survey_source_concept_id"`
	SurveySourceIdentifier      null.String `gorm:"column:survey_source_identifier" json:"survey_source_identifier"`
	ValidatedSurveyConceptID    int         `gorm:"column:validated_survey_concept_id" json:"validated_survey_concept_id"`
	ValidatedSurveySourceValue  null.String `gorm:"column:validated_survey_source_value" json:"validated_survey_source_value"`
	SurveyVersionNumber         null.String `gorm:"column:survey_version_number" json:"survey_version_number"`
	VisitOccurrenceID           null.Int    `gorm:"column:visit_occurrence_id" json:"visit_occurrence_id"`
	VisitDetailID               null.Int    `gorm:"column:visit_detail_id" json:"visit_detail_id"`
	ResponseVisitOccurrenceID   null.Int    `gorm:"column:response_visit_occurrence_id" json:"response_visit_occurrence_id"`
}

func (*SurveyConduct) TableName

func (s *SurveyConduct) TableName() string

TableName sets the insert table name for this struct type

type VisitDetail

type VisitDetail struct {
	VisitDetailID              int64       `gorm:"column:visit_detail_id;primary_key" json:"visit_detail_id"`
	PersonID                   int64       `gorm:"column:person_id" json:"person_id"`
	VisitDetailConceptID       int         `gorm:"column:visit_detail_concept_id" json:"visit_detail_concept_id"`
	VisitDetailStartDate       null.Time   `gorm:"column:visit_detail_start_date" json:"visit_detail_start_date"`
	VisitDetailStartDatetime   time.Time   `gorm:"column:visit_detail_start_datetime" json:"visit_detail_start_datetime"`
	VisitDetailEndDate         null.Time   `gorm:"column:visit_detail_end_date" json:"visit_detail_end_date"`
	VisitDetailEndDatetime     time.Time   `gorm:"column:visit_detail_end_datetime" json:"visit_detail_end_datetime"`
	VisitDetailTypeConceptID   int         `gorm:"column:visit_detail_type_concept_id" json:"visit_detail_type_concept_id"`
	ProviderID                 null.Int    `gorm:"column:provider_id" json:"provider_id"`
	CareSiteID                 null.Int    `gorm:"column:care_site_id" json:"care_site_id"`
	DischargeToConceptID       int         `gorm:"column:discharge_to_concept_id" json:"discharge_to_concept_id"`
	AdmittedFromConceptID      int         `gorm:"column:admitted_from_concept_id" json:"admitted_from_concept_id"`
	AdmittedFromSourceValue    null.String `gorm:"column:admitted_from_source_value" json:"admitted_from_source_value"`
	VisitDetailSourceValue     null.String `gorm:"column:visit_detail_source_value" json:"visit_detail_source_value"`
	VisitDetailSourceConceptID int         `gorm:"column:visit_detail_source_concept_id" json:"visit_detail_source_concept_id"`
	DischargeToSourceValue     null.String `gorm:"column:discharge_to_source_value" json:"discharge_to_source_value"`
	PrecedingVisitDetailID     null.Int    `gorm:"column:preceding_visit_detail_id" json:"preceding_visit_detail_id"`
	VisitDetailParentID        null.Int    `gorm:"column:visit_detail_parent_id" json:"visit_detail_parent_id"`
	VisitOccurrenceID          int64       `gorm:"column:visit_occurrence_id" json:"visit_occurrence_id"`
}

func (*VisitDetail) TableName

func (v *VisitDetail) TableName() string

TableName sets the insert table name for this struct type

type VisitOccurrence

type VisitOccurrence struct {
	VisitOccurrenceID          int64       `gorm:"column:visit_occurrence_id;primary_key" json:"visit_occurrence_id"`
	PersonID                   int64       `gorm:"column:person_id" json:"person_id"`
	VisitConceptID             int         `gorm:"column:visit_concept_id" json:"visit_concept_id"`
	VisitStartDate             null.Time   `gorm:"column:visit_start_date" json:"visit_start_date"`
	VisitStartDatetime         time.Time   `gorm:"column:visit_start_datetime" json:"visit_start_datetime"`
	VisitEndDate               null.Time   `gorm:"column:visit_end_date" json:"visit_end_date"`
	VisitEndDatetime           time.Time   `gorm:"column:visit_end_datetime" json:"visit_end_datetime"`
	VisitTypeConceptID         int         `gorm:"column:visit_type_concept_id" json:"visit_type_concept_id"`
	ProviderID                 null.Int    `gorm:"column:provider_id" json:"provider_id"`
	CareSiteID                 null.Int    `gorm:"column:care_site_id" json:"care_site_id"`
	VisitSourceValue           null.String `gorm:"column:visit_source_value" json:"visit_source_value"`
	VisitSourceConceptID       int         `gorm:"column:visit_source_concept_id" json:"visit_source_concept_id"`
	AdmittedFromConceptID      int         `gorm:"column:admitted_from_concept_id" json:"admitted_from_concept_id"`
	AdmittedFromSourceValue    null.String `gorm:"column:admitted_from_source_value" json:"admitted_from_source_value"`
	DischargeToSourceValue     null.String `gorm:"column:discharge_to_source_value" json:"discharge_to_source_value"`
	DischargeToConceptID       int         `gorm:"column:discharge_to_concept_id" json:"discharge_to_concept_id"`
	PrecedingVisitOccurrenceID null.Int    `gorm:"column:preceding_visit_occurrence_id" json:"preceding_visit_occurrence_id"`
}

func (*VisitOccurrence) TableName

func (v *VisitOccurrence) TableName() string

TableName sets the insert table name for this struct type

type Vocabulary

type Vocabulary struct {
	VocabularyID        string      `gorm:"column:vocabulary_id;primary_key" json:"vocabulary_id"`
	VocabularyName      string      `gorm:"column:vocabulary_name" json:"vocabulary_name"`
	VocabularyReference string      `gorm:"column:vocabulary_reference" json:"vocabulary_reference"`
	VocabularyVersion   null.String `gorm:"column:vocabulary_version" json:"vocabulary_version"`
	VocabularyConceptID int         `gorm:"column:vocabulary_concept_id" json:"vocabulary_concept_id"`
}

func (*Vocabulary) TableName

func (v *Vocabulary) TableName() string

TableName sets the insert table name for this struct type

Jump to

Keyboard shortcuts

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