jordiejones
New Member
- Joined
- May 5, 2010
- Messages
- 31
So I am dealing with a big project, trying to tear apart written MD orders for reporting. I have hundreds of patients and pull a very long dense report and figured out some of the keys to make it bite size. Take for example the following:
right now I am trying to strip out the "50 mg". I've found that I can account for order with "mcg" by using the following formula
but it pulls all the text before the 50 mg.
Then I've found
will cut to the dosage whether it is "2000 mg" or "1mg" or "0.5 mcg". My problem is that I can't figure out a code to give me just the "50 mg" or "0.5 mcg" for example (NOTHING ELSE).
Any help would greatly be appreciated!
- Jordan
DiphenhydrAMINE HCl Tablet Give 50 mg by mouth at bedtime for sleep disturbance for 45 Days
right now I am trying to strip out the "50 mg". I've found that I can account for order with "mcg" by using the following formula
Code:
= LEFT('BETA Routine Meds Entry'!F15,(FIND("mg",'BETA Routine Meds Entry'!F15,1)+2))
Then I've found
Code:
=RIGHT('BETA Routine Meds Entry'!F15,LEN('BETA Routine Meds Entry'!F15) - MIN(SEARCH({0,1,2,3,4,5,6,7,8,9}, 'BETA Routine Meds Entry'!F15&"0123456789")) +1)
Any help would greatly be appreciated!
- Jordan
Last edited: