Welcome back to the Wefugees Community and sorry for the late reply.
I am also very sorry to hear about your diagnosis and the negative outcome at the court. I think it will be very important now to collect high quality medical reports and to submit them to the immigration office. Did a lawyer support you in your appeal in court? Did you inform him/her about your health situation? I am afraid that you need to prove now as detailed and specific as possible that you would face serious difficulties in terms of the medical treatment and care in your country of origin.
I will link our dear expert @alla_fka here. Maybe she can give any advice on your next steps.
However, please always feel free to reach out to us again.
All the best for you,