I want to pasre a text file, create 5 variables and then insert the data into a table.
The text file is a set of dictation from a medical office, the text file will have a variable amount of records so the sollution I need will need to be in an array of some type.
/////////////Here is the format of the text file
08/01/2003
Patten, Derek
DOB: 09/21/1976
Patient is here complaining of chills and night sweats, headaches, and dizziness continues. Eyes are getting better however from last visit. Patient's examination reveals that oropharynx is slightly erythematous, lungs are clear, and eye infection is better. A/P: Patient is not doing well on amoxicillin. We will switch him to Augmentin at this time and advised Tylenol and Motrin for fever. We will follow.
DD: 08/01/2003 # 148 DT: 08/06/2003 DZ: ws/git/crp/psg
08/01/2003
Pate, Jack
DOB: 04/18/1917
Patient is here complaining of needing prescription refills. Patient also needs a checkup. He has history of high blood pressure and diabetes. He is on lisinopril 10 mg q. daily for high blood pressure control, also on Lasix. Blood pressure is 140/52. Patient with no complaints of any headaches or chest pain. Examination reveals cardiovascular, regular rate and rhythm with faint heart sounds, lungs are clear, abdomen benign, extremities no edema. A/P: Patient with the above-listed medical conditions. We will continue current management. We will get lab including hemoglobin AIc today. We will follow.
DD: 08/01/2003 # 149 DT: 08/06/2003 DZ: ws/git/crp/psg
08/01/2003
William, Jack
DOB: 01/20/1984
Patient is here for followup on cough. Patient was seen on 07/25/2003, was given Tequin. Patient now complains of having a whitish stuff on his tongue. Examination reveals that patient with whitish layer on his tongue and neck with no lymphadenopathy, lungs are clear. A/P: Patient with thrush following antibiotic use and we will give a course of Nystatin. Also, patient will need to be checked for gonorrhea and chlamydia and HIV. We will follow.
DD: 08/01/2003 # 150 DT: 08/06/2003 DZ: ws/git/crp/psg
The 5 variables will be
date: line 1
name line 2
dob: Date Of Birth
Note: notes
author: last line