Should your medical treatment demand a longer stay than the visa allows, you can indeed petition for an extension through the relevant Turkish authorities.