Issue instance #1:
line# 219 ----> WHERE DATE_PART('year', per.birth_datetime) < 1900
description of issue: non-existing table alias 'per' in 'per.birth_datetime'
Issue instance #2:
line# 240 ----> WHERE DATE_PART('year', per.birth_datetime) < 1900
description of issue: non-existing table alias 'per' in 'per.birth_datetime'
A couple of column names use table alias that are not appropriate. Please see details below. This is with reference to https://github.com/ncats/CTSA-Metrics/blob/master/Informatics%20Metric%20OMOP%20PostgreSQL.sql
Issue instance #1: line# 219 ---->
WHERE DATE_PART('year', per.birth_datetime) < 1900
description of issue: non-existing table alias 'per' in 'per.birth_datetime'Issue instance #2: line# 240 ---->
WHERE DATE_PART('year', per.birth_datetime) < 1900
description of issue: non-existing table alias 'per' in 'per.birth_datetime'