Doctor note

My body feels as if is falling apart I went to get a doctors note and they gave me a note for a day off. Do they have to honor the note. Will I get in trouble for using it and how do I go about using the note