If I have $N$ repeated occurrences of a measurement $x$ with uncorrelated errors and identical uncertainties $u_x$, and take the mean $\langle x\rangle$, the uncertainty on the mean becomes:
$$u_{\langle x\rangle} = \frac{u_x}{\sqrt{N}}$$
where $N$ is the number of measurements I have taken. This is derived from the law of propagation of uncertainties (for example, see this answer).
If I take the median instead of the mean, I'm mathematically only propagating information from one or two data points, which would mean $N=1$ or $N=2$. But that seems unfair, for surely the principle should hold that if I repeat the measurement many times and take the median, the resulting uncertainty goes down.
Is there any established way of propagating the uncertainty when taking the median of a series of measurements?