Inpatient coding uses the principal diagnosis, which is the condition responsible for admitting the patient to the hospital. Outpatient coding uses the first-listed diagnosis, which is the sign or symptom that is the reason for the visit. While uncertain diagnoses like "probable" or "rule out" can be coded as if the condition existed for inpatients, these uncertain diagnoses should never be coded for outpatients.