G
Guest
I am developing a database to analyze drug use patterns. The data comes from
different sources such that the field "drug name" can have different
spellings from different sources. An example would be "acetaminophen
w/codeine", "acetaminophen-codeine", "acetaminophen w-codeine",
"acetaminophen/codeine" and others. I need to know the utilization of the
drug, regardless of how it is spelled.
I can build a separate table containing each of these different spellings,
but I don't know how to build a query to check the incoming data against this
"reference table" so that the result would be that all "aceptaminophen with
codeine" entries would end up counted as the number of uses of that drug,
regardless of how it is spelled.
Can someone suggest how I could build a query like this? It won't be
feasible to build a query to search for each drug individually because there
are thousands of drugs where this situation can occur so I need a methodology
that can be applied to all the drugs in the dataset. Thanks for any help.
different sources such that the field "drug name" can have different
spellings from different sources. An example would be "acetaminophen
w/codeine", "acetaminophen-codeine", "acetaminophen w-codeine",
"acetaminophen/codeine" and others. I need to know the utilization of the
drug, regardless of how it is spelled.
I can build a separate table containing each of these different spellings,
but I don't know how to build a query to check the incoming data against this
"reference table" so that the result would be that all "aceptaminophen with
codeine" entries would end up counted as the number of uses of that drug,
regardless of how it is spelled.
Can someone suggest how I could build a query like this? It won't be
feasible to build a query to search for each drug individually because there
are thousands of drugs where this situation can occur so I need a methodology
that can be applied to all the drugs in the dataset. Thanks for any help.