Can doctors write medical notes that last longer than 4 weeks?

Prescription? Are you asking about how long a pharmacy will honor a prescription? This varies from state to state but usually is several months to two years. Medical notes in records of course do not expire.