In spite of the rule, normally the notification to the athletes for antidoping happens immediately at the end of the race. In every Championship, the top 3 already know they must have the antidoping control after the race, since this fact is part of the info everybody can have during the technical meeting preceding the race. In the case of WHMCh, for example, normally athletes and National Teams well know that the first 3 must be immediately available for the doping control, plus other 3 drawn not looking at the name (before the race), but at their position after the race (which of course nobody knows, apart the responsible of antidoping).
In the case of Vilamoura, I well remember that the presentation of the top 3 on the podium happened after no more than 5 minutes after the end of the race FOR THE FIRST GROUP OF ATHLETES (so the winners are on the podium while other athletes continue to arrive, same thing happens in every big Marathon), and the athletes MUST go to the control immediately after the winning ceremony, so no more than 20 minutes after the end of the race.
From that point, one referee with the responsibility to control the athletes is ALWAYS with the athletes, and they must stay in the proper special room, connected with the room where doctors of antidoping do their job, informing the doctors when they are ready for producing the required quantity of urine.
About the fact the analysis didn't
Coaches or team managers can stay with the athletes, can control the sample can be taken in the right way, and can be the whitness that doctors follow the rule and the right protocol till when the samples are packed in the containers in a way that nobody can open them till when there is the control in the lab.
In Vilamoura, I was in the antidoping area together with Martin Sulle, winner of the bronze medal in the men race, and I remember we remained there for almost 3 hours, since he was not able to produce valid urine, in spite to drink several bottles of water.
My..... personal record with some athlete in antidoping was in the European Cup of multiple events in Malmoe (1981), when I was the Italian Head Coach for Multiple events. After the end of decathlon (about 8pm), the captain of the Italian Team, Hubert Indra, remained with me in the room for antidoping, waiting to be ready for the urine, till... 2am of the next day (6 hours !), because for 3 times the concentration of the urine was not valid for being tested, respecting the requested parameters.
About the fact the analysis of the blood samples didn't take into account the weather conditions, I cant say anything, because this fact is part of the interpretation of the data resulting from the analysis of the lab.
In this case, we must suppose the final values are correct, because there is no reason to think the lab not able to find the real values of the blood.
The real problem is the INTERPRETATION of the values, not to suppose there is some mistake in the research of the values, and the interpretation doesn't have anything to do with the "technical validity" of the analysis.
Who works in the lab, and who must interpretate the values, are different persons, and there is a big difference in their job : the first is a "technician" who doesn't have room of interpretation, the second instead must use all the knowed parameters provoking differences in the interpretation of similar values in different conditions, and I can't say anything about this second part of the test.