- Aug 12, 2004
- 106
- 0
- 76
Hello.
I am the sys admin of the EMR for a division at my hospital.
(Note, I am not a professional database expert. My IT area of expertise is hard ware leaning towards biomed more than anything, but I enough about access and am willing to teach myself what I don't given time to deal with most of these problems.)
Essentially this application exports its data, periodically to an access database.
One of the tasks I have to do is adding custom reports and such to the database, over and above the default ones built into it.
Part of the problem is that the people who set this up prior to me, between the company and the people who work for my organization, not only did not account for multiple doctors working on one patient for one procedure, but they did not build in controls on proper name spelling, proper enumeration in various data items etc. Over time I wish to fix that.
However what I have is a very unwieldy data base, which for example, if I were to run the report of procedures by doctor or by RN might return say 200 separate entries, due to common name misspelling.
So, I made a copy of the export database and have begun creating various queries to clean up this mess.
My first major problem is basically that in the field where the physician or the RN or the anesthesiologist are entered, occasionally, more than one person is entered.
To give you an idea of how this database is structured I will use an airplane/airport analogy, since due to legal restrictions I don't want to be specific about the database itself.
There are two main tables (and a couple of smaller tables which the databases automatic import functions, which I don't use and have disabled, uses). Each tables entry has a two part primary key.
This primary key is the airplanes serial number + the time the flight lands.
One of the fields in this table (analogous to Doctors) is pilot.
Now one thought that I have is to make a unique primary key field, replacing the existing split one, and then splitting each record into multiples, with differing items such as pilots and or navigators now being different in each record. Given that less than 10% of the records, probably closer to 2% or 4% have this problem, and that even 10 years from now, there will be at most say 30,000 total primary key records under the old system, I would basically be taking advantage of small size plus modern computing power to work around this issue.
Another idea is to make another table and segregate this data into that table, use the same primary key setup and let that table contain multiple pilots for each trip, so to speak.
But what I was wondering, which would grossly simplify things is if it is possible to, in the correction query, not to override the whole record but only the part with the misspelling. I know how to use wild cards in my searches so it is perfectly fine in the short term, to keep more than one pilot in the pilot field.
I am the sys admin of the EMR for a division at my hospital.
(Note, I am not a professional database expert. My IT area of expertise is hard ware leaning towards biomed more than anything, but I enough about access and am willing to teach myself what I don't given time to deal with most of these problems.)
Essentially this application exports its data, periodically to an access database.
One of the tasks I have to do is adding custom reports and such to the database, over and above the default ones built into it.
Part of the problem is that the people who set this up prior to me, between the company and the people who work for my organization, not only did not account for multiple doctors working on one patient for one procedure, but they did not build in controls on proper name spelling, proper enumeration in various data items etc. Over time I wish to fix that.
However what I have is a very unwieldy data base, which for example, if I were to run the report of procedures by doctor or by RN might return say 200 separate entries, due to common name misspelling.
So, I made a copy of the export database and have begun creating various queries to clean up this mess.
My first major problem is basically that in the field where the physician or the RN or the anesthesiologist are entered, occasionally, more than one person is entered.
To give you an idea of how this database is structured I will use an airplane/airport analogy, since due to legal restrictions I don't want to be specific about the database itself.
There are two main tables (and a couple of smaller tables which the databases automatic import functions, which I don't use and have disabled, uses). Each tables entry has a two part primary key.
This primary key is the airplanes serial number + the time the flight lands.
One of the fields in this table (analogous to Doctors) is pilot.
Now one thought that I have is to make a unique primary key field, replacing the existing split one, and then splitting each record into multiples, with differing items such as pilots and or navigators now being different in each record. Given that less than 10% of the records, probably closer to 2% or 4% have this problem, and that even 10 years from now, there will be at most say 30,000 total primary key records under the old system, I would basically be taking advantage of small size plus modern computing power to work around this issue.
Another idea is to make another table and segregate this data into that table, use the same primary key setup and let that table contain multiple pilots for each trip, so to speak.
But what I was wondering, which would grossly simplify things is if it is possible to, in the correction query, not to override the whole record but only the part with the misspelling. I know how to use wild cards in my searches so it is perfectly fine in the short term, to keep more than one pilot in the pilot field.