Provider documents OSA by history / would that be a H/O OSA code?

Sometimes providers will document a diagnosis and write "per patient". Can someone give me feedback on this coding? We don't code because a patient states? Any guidelines relating to this. Hope i'm not confusing anyone. Thanks!