Usually the codes I will get for that type of scenario will be
A41.51 - Sepsis with e. coli
N13.6 - infectious/obstructive nephrolithiasis/pyelonephritis
R65.21 - septic shock
from the above statement, you might be looking at the above codes, now depending on what exactly the patient was admitted for, you codes may vary in which one goes first. Was the patient admitted for sepsis? or for the underlying infectious condition?
You can definitely find more informatino on ICD-10-CM guidelines for Chapter 1.