Harnessing Large Language Models for Medical Data Processing: Structured Information Extraction, Disease Classification, and RAG Integration