summariseCodeUse function

Summarise code use in patient-level data.