From Latin medicus. The -ie- may be an unexpected outcome (cf. pît < Latin pĕdem); if so, there may have been influence from Venetan m(i)edego.
miedi m (plural miedis)