Skip to content

Commit

Permalink
Merge pull request #385 from patryllus/merging-oncology
Browse files Browse the repository at this point in the history
Creating updated cancer screening tables for methods and results and factoring historical data
  • Loading branch information
njorocs authored Oct 11, 2023
2 parents ad2487c + 59a9816 commit 891e412
Show file tree
Hide file tree
Showing 4 changed files with 580 additions and 162 deletions.
31 changes: 26 additions & 5 deletions omod/src/main/resources/sql/DDL.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2086,14 +2086,35 @@ CREATE TABLE kenyaemr_etl.etl_patient_program (
screening_type VARCHAR(255) DEFAULT NULL,
post_treatment_complication_cause VARCHAR(255) DEFAULT NULL,
post_treatment_complication_other VARCHAR(255) DEFAULT NULL,
screening_method VARCHAR(255) DEFAULT NULL,
screening_result VARCHAR(255) DEFAULT NULL,
treatment_method VARCHAR(255) DEFAULT NULL,
treatment_method_other VARCHAR(255) DEFAULT NULL,
cancer_type VARCHAR(255) DEFAULT NULL,
colposcopy_screening_method VARCHAR(255) DEFAULT NULL,
hpv_screening_method VARCHAR(255) DEFAULT NULL,
pap_smear_screening_method VARCHAR(255) DEFAULT NULL,
via_vili_screening_method VARCHAR(255) DEFAULT NULL,
colposcopy_screening_result VARCHAR(255) DEFAULT NULL,
hpv_screening_result VARCHAR(255) DEFAULT NULL,
pap_smear_screening_result VARCHAR(255) DEFAULT NULL,
via_vili_screening_result VARCHAR(255) DEFAULT NULL,
colposcopy_treatment_method VARCHAR(255) DEFAULT NULL,
hpv_treatment_method VARCHAR(255) DEFAULT NULL,
pap_smear_treatment_method VARCHAR(255) DEFAULT NULL,
via_vili_treatment_method VARCHAR(255) DEFAULT NULL,
referred_out VARCHAR(100) DEFAULT NULL,
referral_facility VARCHAR(100) DEFAULT NULL,
referral_reason VARCHAR(255) DEFAULT NULL,
next_appointment_date DATETIME,
followup_date DATETIME,
hiv_status VARCHAR(100) DEFAULT NULL,
smoke_cigarattes VARCHAR(255) DEFAULT NULL,
other_forms_tobacco VARCHAR(255) DEFAULT NULL,
take_alcohol VARCHAR(255) DEFAULT NULL,
previous_treatment VARCHAR(255) DEFAULT NULL,
previous_treatment_specify VARCHAR(255) DEFAULT NULL,
signs_symptoms VARCHAR(500) DEFAULT NULL,
signs_symptoms_specify VARCHAR(500) DEFAULT NULL,
family_history VARCHAR(100) DEFAULT NULL,
number_of_years_smoked VARCHAR(100) DEFAULT NULL,
number_of_cigarette_per_day VARCHAR(100) DEFAULT NULL,
clinical_notes VARCHAR(500) DEFAULT NULL,
voided INT(11),
CONSTRAINT FOREIGN KEY (patient_id) REFERENCES kenyaemr_etl.etl_patient_demographics(patient_id),
CONSTRAINT unique_uuid UNIQUE(uuid),
Expand Down
Loading

0 comments on commit 891e412

Please sign in to comment.