Text this: An Entity Extraction Pipeline for Medical Text Records Using Large Language Models: Analytical Study