I need to write a query which will select specific patients with a particular Medical History. The history for each patient has been entered in a field (Med_Hist) with numerous options. The history has been categorised.. eg.. Cardiovascular is entered as CAO and Epilepsy is entered as EP.
The problem is that each patient can have more than one of these in their history, so the Med_Hist field (String type) could be any length. Each relevant entry is separated by a space, so someone who has both Cardiovascular and Epilepsy would have a Med_Hist of CAO EP.
I need to determine the number of patients who have each specific Med_Hist "side effect" and need to know how to write a query that searches through the entire Med_Hist string looking for specific values.
Hope this is clear and that someone can be of assistance. Cheers
The problem is that each patient can have more than one of these in their history, so the Med_Hist field (String type) could be any length. Each relevant entry is separated by a space, so someone who has both Cardiovascular and Epilepsy would have a Med_Hist of CAO EP.
I need to determine the number of patients who have each specific Med_Hist "side effect" and need to know how to write a query that searches through the entire Med_Hist string looking for specific values.
Hope this is clear and that someone can be of assistance. Cheers