You will need a medical diagnosis for your care from a doctor and hospital in Thailand. Outlining the treatment plan and need for your care over extended time.
Otherwise get a METV multiple entry tourist visa, gives you up to 9 months Stay with planning.