Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tianj7 committed Apr 2, 2024
1 parent fd98caf commit ff78c06
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions models/datadictionary.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ type DataDictionary struct {

type DataDictionaryModel struct {
Total int64 `json:"total"`
Data []*DataDictionaryEntry `json:"Data"`
Data []*DataDictionaryEntry `json:"data"`
}

type DataDictionaryEntry struct {
VocabularyID string `json:"vocabularyID"`
ConceptID int64 `json:"conceptID"`
Expand Down Expand Up @@ -66,7 +67,7 @@ func (u DataDictionary) GenerateDataDictionary() (*DataDictionaryModel, error) {

//Get total number of concept ids
query = omopDataSource.Db.Table(omopDataSource.Schema + ".observation_continuous as observation" + omopDataSource.GetViewDirective()).
Select("count(distinct observation.observation_concept_id) as total, NULL as data")
Select("count(distinct observation.observation_concept_id) as total")

query, cancel = utils.AddSpecificTimeoutToQuery(query, 600*time.Second)
defer cancel()
Expand Down

0 comments on commit ff78c06

Please sign in to comment.