You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -75,7 +76,7 @@ update temp_diagnoses set diagnosis = value_text where value_text is not null;
75
76
update temp_diagnoses set diagnosis = concept_name(value_coded, @locale) where value_coded is not null;
76
77
update temp_diagnoses set diagnosis_icd10_code = retrieveICD10(value_coded) where value_coded is not null;
77
78
update temp_diagnoses d setd.diagnosis_order= (select concept_name(value_coded, @locale) from temp_obs o whereo.obs_group_id=d.obs_group_idando.concept_id= @diagnosisOrder limit1);
78
-
update temp_diagnoses d setd.first_time= (select if(value_coded = @confirmed, true, false) from temp_obs o whereo.obs_group_id=d.obs_group_idando.concept_id= @diagnosisCertainty limit1);
79
+
update temp_diagnoses d setd.first_time= (select if(value_coded = @confirmed, @yes, null) from temp_obs o whereo.obs_group_id=d.obs_group_idando.concept_id= @diagnosisCertainty limit1);
79
80
80
81
altertable temp_diagnoses drop column obs_id;
81
82
altertable temp_diagnoses drop column obs_group_id;
0 commit comments