Below is an instruction from Human. Write a response.
    ### Instruction:
    How to diagnose Pyelonephritis: Kidney Infection ?
    ### Response:
    The tests used to diagnose pyelonephritis depend on the patients age, gender, and response to treatment and include the following:
                
- Urinalysis. Urinalysis is testing of a urine sample. The urine sample is collected in a special container in a health care providers office or commercial facility and can be tested in the same location or sent to a lab for analysis.
    