Patent is a technical scheme of protection, that is, the substance of other people's medicine can't be the same as yours, but the name can be the same.
It is suggested that the two protection methods be used at the same time, applying for both trademark and patent.