Skip to content

Totalnum: c_operator issue in pcornet_enc table #1

Description

@sguptawustl

This issue affects the execution of totalnum script on pcornet_enc metadata table. We encountered this in PostgreSQL.

Value in c_operator in one of the rows is incompatible with the c_dimcode. For c_dimcode '\PCORI\ENCOUNTER\VERSION', the current c_operator is 'IN'. This creates the following erroneous sql during totalnum execution:

select count(distinct(patient_num)) from i2b2demodata.visit_dimension where patient_num in (select patient_num from i2b2demodata.visit_dimension where location_zip in (\PCORI\ENCOUNTER\VERSION));
ERROR: syntax error at or near ""
LINE 1: ...b2demodata.visit_dimension where location_zip in (\PCORI\ENC...

To correct this issue, c_operator should be 'LIKE' in the metadata table.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions