Hi Angela, when you use the conjunctions want, maar, en, of to link to sentences, both sentences keep their original work order.
sentence 1: Vandaag heb ik thuis gewerkt
sentence 2: ik moest naar de dokter .
Vandaag heb ik thuis gewerkt WANT ik moest naar de dokter.
When you use other words to connect the sentences, then all the verbs move towards the back of the subclause.
Ik heb vandaag thuis gewerkt OMDAT ik naar de dokter moest.