Commit 470876d3 authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Add in surgery data.

parent 12026008
select E.MRN, D.*, A.START_DATE, A.ENCOUNTER_NUM, A.PROVIDER_ID, A.LOCATION_CD, A.OBSERVATION_BLOB
from kidney_obs_fact A
right join (select C.CPT, B.c_name
from I2B2_TERMINOLOGY B, SURGERY_MAP C
where B.c_basecode = C.CPT)
D
on A.concept_cd = D.CPT
inner join KIDNEY_MRN_LIST E
on A.PATIENT_NUM = E.PATIENT_NUM
inner join "MRN_Filter_KCE" F
on E.MRN = F.MRN;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment