Study Table — Rebuild

Copies eight raw fields from ptdatacomplete into study_vintage. No calculated fields — the source of truth for later analyses.
Page loaded: 2026-11-06 18:37
What happens on click
1
TRUNCATE study_vintage — deletes every existing row from the study table. ptdatacomplete is never modified.
2
INSERT the 8 raw fields — ptname, sex, place, dx, state, DOB, SOT, EOT — copied as-is. No transformations, no calculations. Rows with an empty ptname are skipped.
3
All later queries run against study_vintage. When you decide which calculated fields you need (vintage, age, buckets, censoring), they will be added here in a future version — one place, one rebuild.
Rows in study table
612
Distinct ptname
612
Rows in source
612
Last load
2026-09-21 09:55:39

This will delete every row in study_vintage and repopulate it from ptdatacomplete. The source table is never modified.

Sample (first 10 rows currently in the study table)
idptnamesexplace dxstateDOBSOTEOTloaded_at
1 ميسر محمود اسماعيل صافي F مستفى DM dead 1939-01-01 2010-07-21 2011-01-01 2026-09-21 09:55:39
2 ابتسام غالب فارس الخطيب F GN on dialysis 1970-12-08 2022-10-24 0000-00-00 2026-09-21 09:55:39
3 ابتسام اسماعيل علي عبدالله F مستفى GN dead 1959-01-01 2020-09-05 2021-06-06 2026-09-21 09:55:39
4 ابراهيم خليل محمد احمد يوسف M مستفى GN dead 1954-01-01 2018-08-13 2020-10-15 2026-09-21 09:55:39
5 ابراهيم رزق محمد حسين M البشير DM dead 1970-01-01 2023-05-20 2024-02-14 2026-09-21 09:55:39
6 ابراهيم سليم خميس عز M GN on dialysis 1958-02-25 2022-11-17 0000-00-00 2026-09-21 09:55:39
7 ابراهيم عبدالحليم محمود اطميزي M GN on dialysis 1956-07-29 1998-08-26 0000-00-00 2026-09-21 09:55:39
8 ابراهيم عبدالرزاق محمد خريسات M GN dead 1971-05-30 2021-12-14 2022-11-17 2026-09-21 09:55:39
9 ابراهيم علي ابراهيم محمد M GN Kidney Dx 1988-01-01 2019-01-23 2021-07-21 2026-09-21 09:55:39
10 ابراهيم عمر ابراهيم الفرح M GN dead 1974-09-10 2021-09-18 2022-03-05 2026-09-21 09:55:39
This is a read-only preview. Fields come straight from the source table — no calculations.