WARNING: This page is about a different car, the 2005 Infiniti G35. However, it is still accessible from the selected car via links, so may be relevant.
These self-diagnoses have the one trip detection logic.
Fig 1: On Board Diagnosis Logic (DTC P0122 & P0123)