My understanding is that when we say "this morning", it refers to a definite time in the past.
If yes, then, "did you take your medicine this morning?" , is the correct question.
If no, then, it should be "have you taken the medicine this morning?".
Or can they be interchanged without any impact on the meaning?
Does "this morning" implies to a definite time in the past?