Skip to content

Commit 295bb77

Browse files
committed
add checks for new tables in v2.0
1 parent 3393129 commit 295bb77

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

build-db/postgres/postgres_checks.sql

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,22 @@ select 'careplaneol' as tbl, 1433 as row_count UNION
1616
select 'careplangeneral' as tbl, 3115018 as row_count UNION
1717
select 'careplangoal' as tbl, 504139 as row_count UNION
1818
select 'careplaninfectiousdisease' as tbl, 8056 as row_count UNION
19+
SELECT 'customlab' as tbl, 1082 AS row_count UNION
1920
select 'diagnosis' as tbl, 2710672 as row_count UNION
2021
select 'hospital' as tbl, 208 as row_count UNION
2122
select 'infusiondrug' as tbl, 4803719 as row_count UNION
23+
SELECT 'intakeoutput' as tbl, 12030289 AS row_count UNION
2224
select 'lab' as tbl, 39132531 as row_count UNION
2325
select 'medication' as tbl, 7301853 as row_count UNION
26+
SELECT 'microlab' as tbl, 16996 AS row_count UNION
27+
SELECT 'note' as tbl, 2254179 AS row_count UNION
28+
SELECT 'nurseassessment' as tbl, 15602498 AS row_count UNION
29+
SELECT 'nursecare' as tbl, 8311132 AS row_count UNION
30+
SELECT 'nursecharting' as tbl, 151604232 AS row_count UNION
2431
select 'pasthistory' as tbl, 1149180 as row_count UNION
32+
SELECT 'physicalexam' as tbl, 9212316 AS row_count UNION
33+
SELECT 'respiratorycare' as tbl, 865381 AS row_count UNION
34+
SELECT 'respiratorycharting' as tbl, 20168176 AS row_count UNION
2535
select 'patient' as tbl, 200859 as row_count UNION
2636
select 'treatment' as tbl, 3688745 as row_count UNION
2737
select 'vitalaperiodic' as tbl, 25075074 as row_count UNION
@@ -40,12 +50,22 @@ select 'careplaneol' as tbl, count(*) as row_count from careplaneo
4050
select 'careplangeneral' as tbl, count(*) as row_count from careplangeneral UNION
4151
select 'careplangoal' as tbl, count(*) as row_count from careplangoal UNION
4252
select 'careplaninfectiousdisease' as tbl, count(*) as row_count from careplaninfectiousdisease UNION
53+
SELECT 'customlab' as tbl, COUNT(*) AS row_count FROM customlab UNION
4354
select 'diagnosis' as tbl, count(*) as row_count from diagnosis UNION
4455
select 'hospital' as tbl, count(*) as row_count from hospital UNION
4556
select 'infusiondrug' as tbl, count(*) as row_count from infusiondrug UNION
57+
SELECT 'intakeoutput' as tbl, COUNT(*) AS row_count FROM intakeoutput UNION
4658
select 'lab' as tbl, count(*) as row_count from lab UNION
4759
select 'medication' as tbl, count(*) as row_count from medication UNION
60+
SELECT 'microlab' as tbl, COUNT(*) AS row_count FROM microlab UNION
61+
SELECT 'note' as tbl, COUNT(*) AS row_count FROM note UNION
62+
SELECT 'nurseassessment' as tbl, COUNT(*) AS row_count FROM nurseassessment UNION
63+
SELECT 'nursecare' as tbl, COUNT(*) AS row_count FROM nursecare UNION
64+
SELECT 'nursecharting' as tbl, COUNT(*) AS row_count FROM nursecharting UNION
4865
select 'pasthistory' as tbl, count(*) as row_count from pasthistory UNION
66+
SELECT 'physicalexam' as tbl, COUNT(*) AS row_count FROM physicalexam UNION
67+
SELECT 'respiratorycare' as tbl, COUNT(*) AS row_count FROM respiratorycare UNION
68+
SELECT 'respiratorycharting' as tbl, COUNT(*) AS row_count FROM respiratorycharting UNION
4969
select 'patient' as tbl, count(*) as row_count from patient UNION
5070
select 'treatment' as tbl, count(*) as row_count from treatment UNION
5171
select 'vitalaperiodic' as tbl, count(*) as row_count from vitalaperiodic UNION

0 commit comments

Comments
 (0)