Measurements of profiles of soft x-ray emissivity with 1.5 mm radial resolution are combined with high resolution electron density and temperature measurements in the edge region of the Alcator C-Mod tokamak to facilitate transport analysis of medium-Z impurities during Hmodes. Results from detailed modelling of the radiation and transport of fluorine are compared with the experimental measurements, yielding information about the transport coefficients in the H-mode transport barrier region. We find evidence for a strong inward impurity pinch just inside the separatrix. The region of strong inward pinch agrees very well with the region of strong electron density gradient, suggesting that the inward pinch could be driven by the ion density gradient, as predicted by neoclassical theory. Simulations using the neoclassical impurity convection profile agree very well with experiments. Transport modelling shows that the x-ray pedestal width is largely determined by the diffusion coefficient in the transport barrier. This allows us to diagnose changes in the edge diffusion coefficient on the basis of observations of x-ray pedestal width changes. Significant differences in the edge diffusion coefficient are seen between different types of H-modes. Several scalings for the edge diffusion coefficient in the Enhanced Dα H-mode are also identified. This may help us understand the physical processes responsible for this attractive confinement mode.