From f16119a81fce049ddfdddf8f0c567091cf694f7c Mon Sep 17 00:00:00 2001 From: jp Date: Mon, 24 Jun 2024 21:48:19 +0800 Subject: [PATCH] updated data and description for derm_treatment and ewallet --- defog_data/derm_treatment/derm_treatment.sql | 12 ++++++------ defog_data/ewallet/ewallet.json | 4 ++-- defog_data/ewallet/ewallet.sql | 16 +++++++++++++--- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/defog_data/derm_treatment/derm_treatment.sql b/defog_data/derm_treatment/derm_treatment.sql index 3951a17..82b62d7 100644 --- a/defog_data/derm_treatment/derm_treatment.sql +++ b/defog_data/derm_treatment/derm_treatment.sql @@ -113,15 +113,15 @@ CREATE TABLE concomitant_meds ( INSERT INTO doctors (doc_id, first_name, last_name, specialty, year_reg, med_school_name, loc_city, loc_state, loc_zip, bd_cert_num) VALUES -(1, 'John', 'Doe', 'dermatology', 2005, 'Johns Hopkins University', 'Baltimore', 'MD', '21201', 'ABC123'), -(2,'Jane', 'Smith', 'immunology', 2010, 'Harvard Medical School', 'Boston', 'MA', '02115', 'XYZ789'), +(1, 'John', 'Doe', 'dermatology', EXTRACT(YEAR FROM CURRENT_DATE) - 2, 'Johns Hopkins University', 'Baltimore', 'MD', '21201', 'ABC123'), +(2,'Jane', 'Smith', 'immunology', EXTRACT(YEAR FROM CURRENT_DATE) - 2, 'Harvard Medical School', 'Boston', 'MA', '02115', 'XYZ789'), (3, 'David', 'Johnson', 'general', 1998, 'University of Pennsylvania', 'Philadelphia', 'PA', '19104', 'DEF456'), (4, 'Emily', 'Brown', 'dermatology', 2015, 'Stanford University', 'Palo Alto', 'CA', '94304', 'GHI012'), (5, 'Michael', 'Davis', 'immunology', 2008, 'Duke University', 'Durham', 'NC', '27708', 'JKL345'), -(6, 'Sarah', 'Wilson', 'oncology', 2003, 'University of California, San Francisco', 'San Francisco', 'CA', '94143', 'MNO678'), +(6, 'Sarah', 'Wilson', 'oncology', EXTRACT(YEAR FROM CURRENT_DATE) - 1, 'University of California, San Francisco', 'San Francisco', 'CA', '94143', 'MNO678'), (7, 'Robert', 'Taylor', 'dermatology', 2012, 'Yale University', 'New Haven', 'CT', '06510', 'PQR901'), (8, 'Laura', 'Martinez', 'immunology', 2006, 'University of Michigan', 'Ann Arbor', 'MI', '48109', 'STU234'), -(9, 'Daniel', 'Garcia', 'general', 2000, 'University of Chicago', 'Chicago', 'IL', '60637', 'VWX567'), +(9, 'Daniel', 'Garcia', 'general', EXTRACT(YEAR FROM CURRENT_DATE) - 3, 'University of Chicago', 'Chicago', 'IL', '60637', 'VWX567'), (10, 'Olivia', 'Anderson', 'dermatology', 2018, 'Columbia University', 'New York', 'NY', '10027', 'YZA890'); INSERT INTO patients (patient_id, first_name, last_name, date_of_birth, date_of_registration, gender, email, phone, addr_street, addr_city, addr_state, addr_zip, ins_type, ins_policy_num, height_cm, weight_kg) @@ -228,8 +228,8 @@ VALUES (4, 5, '2022-05-20', 'Upper respiratory infection'), (5, 7, '2022-07-22', 'Mild injection site reaction'), (6, 9, '2022-09-18', 'Diarrhea'), -(7, 11, '2022-11-30', 'Elevated liver enzymes'), -(8, 14, '2023-02-25', 'Mild skin rash'); +(7, 11, '2022-11-12', 'Elevated liver enzymes'), +(8, 14, '2023-02-05', 'Mild skin rash'); INSERT INTO concomitant_meds (id, treatment_id, med_name, start_dt, end_dt, dose_amt, dose_unit, freq_hrs) VALUES diff --git a/defog_data/ewallet/ewallet.json b/defog_data/ewallet/ewallet.json index 2eb9407..8f6a67b 100644 --- a/defog_data/ewallet/ewallet.json +++ b/defog_data/ewallet/ewallet.json @@ -163,12 +163,12 @@ { "data_type": "BIGINT", "column_name": "cid", - "column_description": "" + "column_description": "Unique identifier for the coupon" }, { "data_type": "BIGINT", "column_name": "merchant_id", - "column_description": "" + "column_description": "ID of merchant that issued the coupon" }, { "data_type": "VARCHAR(20)", diff --git a/defog_data/ewallet/ewallet.sql b/defog_data/ewallet/ewallet.sql index 3c2f3f7..8983c23 100644 --- a/defog_data/ewallet/ewallet.sql +++ b/defog_data/ewallet/ewallet.sql @@ -244,8 +244,18 @@ VALUES (7, 172.98, '2023-06-07 23:59:59'), (8, 0.00, '2023-06-07 23:59:59'), (9, 125.00, '2023-06-07 23:59:59'), - (10, 219.98, '2023-06-07 23:59:59'); - + (10, 219.98, '2023-06-07 23:59:59'), + (1, 82.10, CURRENT_DATE - INTERVAL '8 days'), + (2, 82.12, CURRENT_DATE - INTERVAL '8 days'), + (1, 82.92, CURRENT_DATE - INTERVAL '7 days'), + (2, 55.24, CURRENT_DATE - INTERVAL '7 days'), + (3, 75.25, CURRENT_DATE - INTERVAL '7 days'), + (1, 50.00, CURRENT_DATE), + (2, 55.99, CURRENT_DATE), + (3, 29.95, CURRENT_DATE), + (4, 89.99, CURRENT_DATE), + (5, 599.99, CURRENT_DATE); + -- notifications INSERT INTO consumer_div.notifications (id, user_id, message, type, status, created_at, device_type, device_id, action_url) VALUES @@ -307,5 +317,5 @@ VALUES (8, '2023-06-07', 200.00, 1000.00, 0, 'bcryptHash(K1dzPlay!&Rt8)', NULL, 'web_d8180kaf, mobile_q3mz8n', '8.26.53.165, 68.85.32.201', false, false, '2023-06-07 00:00:00'), (9, '2023-06-07', 150.00, 1000.00, 2, 'bcryptHash(Gl0wUp7!9zy)', NULL, 'mobile_g3mjfz', '203.96.81.36', true, true, '2023-06-07 00:00:00'), (10, '2023-06-07', 300.00, 2000.00, 1, 'bcryptHash(GamzRu1ez*&99!)', NULL, 'web_d8180kaf', '8.26.53.165', false, true, '2023-06-07 00:00:00'), -(1, '2023-06-01', 500.00, 1000.00, 2, 'bcryptHash($2yz9!&ka1)', '9d61c49b-8977-4914-a36b-80d1445e38fa', 'mobile_8fh2k1', '192.168.0.1', false, true, '2023-06-01 06:00:00'), +(1, '2023-06-01', 502.00, 1000.00, 2, 'bcryptHash($2yz9!&ka1)', '9d61c49b-8977-4914-a36b-80d1445e38fa', 'mobile_8fh2k1', '192.168.0.1', false, true, '2023-06-01 06:00:00'), (2, '2023-06-01', 500.00, 2500.00, 1, 'bcryptHash(qpwo9874zyGk!)', NULL, 'mobile_yjp08q', '198.51.100.233, 70.121.39.25', true, false, '2023-06-01 09:00:00');