Sleep coding and billing