-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ETL for Orthopaedic form #488
Open
gabriel090
wants to merge
3
commits into
palladiumkenya:master
Choose a base branch
from
gabriel090:KHP3-6835
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,7 @@ DROP TABLE IF EXISTS kenyaemr_etl.etl_hts_referral; | |
DROP TABLE IF EXISTS kenyaemr_etl.etl_prep_behaviour_risk_assessment; | ||
DROP TABLE IF EXISTS kenyaemr_etl.etl_prep_monthly_refill; | ||
DROP TABLE IF EXISTS kenyaemr_etl.etl_prep_discontinuation; | ||
DROP TABLE IF EXISTS kenyaemr_etl.etl_orthopaedic_clinic_visit; | ||
DROP TABLE IF EXISTS kenyaemr_etl.etl_prep_enrollment; | ||
DROP TABLE IF EXISTS kenyaemr_etl.etl_prep_followup; | ||
DROP TABLE IF EXISTS kenyaemr_etl.etl_progress_note; | ||
|
@@ -1793,6 +1794,68 @@ SELECT "Successfully created etl_ART_preparation table"; | |
); | ||
SELECT "Successfully created etl_prep_discontinuation table"; | ||
|
||
------------------- create table etl_orthopaedic_clinic_visit ----------------------- | ||
CREATE TABLE kenyaemr_etl.etl_orthopaedic_clinic_visit ( | ||
uuid CHAR(38), | ||
encounter_id INT(11) NOT NULL PRIMARY KEY, | ||
patient_id INT(11) NOT NULL , | ||
location_id INT(11) DEFAULT NULL, | ||
visit_date DATE, | ||
visit_id INT(11), | ||
encounter_provider INT(11), | ||
date_created DATETIME NOT NULL, | ||
date_last_modified DATETIME, | ||
visit_type INT(11), | ||
referral_form INT(11), | ||
other_facility_name VARCHAR(255), | ||
facility_name VARCHAR(255), | ||
service_area INT(11), | ||
other_unit_name VARCHAR(255), | ||
orthopaedic_number INT (11), | ||
select_symptoms VARCHAR(255), | ||
symptoms_for_otc_other VARCHAR(255), | ||
location VARCHAR(255), | ||
otc_duration INT(11), | ||
onset_otc VARCHAR(255), | ||
hpi VARCHAR(255), | ||
past_prescribed_drugs VARCHAR(255), | ||
-- previous_physiotherapy INT(11), | ||
trauma_history INT(11), | ||
surgical_history INT(11), | ||
type_of_surgery VARCHAR(255), | ||
surgical_date DATE, | ||
surgery_indication VARCHAR(255), | ||
underlying_condition INT(11), | ||
specify_condition VARCHAR(255), | ||
specify_condition_other VARCHAR(255), | ||
family_history INT(11), | ||
musculoskeletal_system_conditions VARCHAR(255), | ||
musculoskeletal_system_conditions_other VARCHAR(255), | ||
musculoskeletal_examination_findings VARCHAR(255), | ||
musculoskeletal_findings VARCHAR(255), | ||
musculoskeletal_findings_other VARCHAR(255), | ||
joint_assessed VARCHAR(255), | ||
joint_movement INT(11), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This won't handle multi-select. Check data type. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
angle_degrees INT(11), | ||
clinician_findings_notes VARCHAR(255), | ||
intervention_given VARCHAR(255), | ||
intervention_given_other VARCHAR(255), | ||
management_plan VARCHAR(255), | ||
procedure_done VARCHAR(255), | ||
procedure_done_other VARCHAR(255), | ||
patient_referral VARCHAR(255), | ||
name_of_the_facility VARCHAR(255), | ||
voided INT(11), | ||
CONSTRAINT FOREIGN KEY (patient_id) REFERENCES kenyaemr_etl.etl_patient_demographics(patient_id), | ||
CONSTRAINT unique_uuid UNIQUE(uuid), | ||
INDEX(visit_date), | ||
INDEX(encounter_id), | ||
INDEX(patient_id, visit_date) | ||
); | ||
|
||
SELECT "Successfully created etl_orthopaedic_clinic_visit table"; | ||
|
||
|
||
-- ------------ create table etl_prep_enrollment----------------------- | ||
CREATE TABLE kenyaemr_etl.etl_prep_enrolment ( | ||
uuid char(38), | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check typo