I am trying to automatically add BMI codes to the problem list based on the BMI value, but it is listing multiple times on the white board when going in and out of the encounter. Is there a way to prevent this?
{if PATIENT._AGEINMONTHS >215 and (OBSNOW("BMI")>=30.0 and OBSNOW("BMI")<=30.9) and (match(PROB_AFTER("LIST"),"ICD-Z68.30")==0) then MEL_ADD_PROBLEM("DX OF","Body mass index (BMI) 30.0-30.9, adult","ICD-Z68.30",str(._TODAYSDATE),ADDDATES(str(._TODAYSDATE),"0","0","14")) else if PATIENT._AGEINMONTHS >=216 and OBSNOW("BMI")>=31.0 and OBSNOW("BMI")<=31.9 and (match(PROB_AFTER("LIST"),"ICD-Z68.30")==0) then MEL_ADD_PROBLEM("DX OF","Body mass index (BMI) 31.0-31.9,adult","ICD-Z68.31",str(._TODAYSDATE),ADDDATES(str(._TODAYSDATE),"0","0","14")) else "" endif endif}
Thank you in advance for any and all suggestions
Rosemary Lust, RN
Ambulatory Systems
Management Information Systems
North Mississippi Health Services
Cardiology Associates of North Mississippi
662.620.6806
Perhaps intentional, but:
The second match for BMI Range (31-31.9) adds a different problem code -- Z68.31 -- and this might be creating an infinite loop to your logic.
Rosemary posted this for me. I actually have about 15 different codes in all that I want to automatically add based on the BMI, but just showed a couple of them on here. also tried it with just one match/code and it still listed multiple times when going in and out of the encounter.
Thanks, Cindy
Cindy Parrish, R.N.
Ambulatory Analyst/Educator
Management Information Services
North Mississippi Health Services
Office: (662) 377-2504
Fax: (662) 377-7632
[email protected]
If all of your possible codes for BMI contain the phrase "Body Mass Index (BMI)", Then I would match on that instead of on the diagnoses code. that way, no matter what ICD-code is selected, it would pick up that BMI is on the list and will not re-add it. You could then use a conditional loop to add the different codes based on the BMI level.
Example:
if match(PROB_AFTER(“LIST”),“Body Mass Index (BMI)″)== 0 then
cond
case OBSNOW("BMI") <= 30.9
MEL_ADD_PROBLEM(“DX OF”,“Body mass index (BMI) 30.0-30.9, adult”,“ICD- Z68.30″,str(._TODAYSDATE),ADDDATES(str(._TODAYSDATE),“0″,“0″,“14″))
case OBSNOW("BMI") >30.9
MEL_ADD_PROBLEM.....
endcond
endif
Please let me know if you have any questions on this
You need need to code your match to look for ICD10-Z68.30 rather than ICD-Z68.30 I believe.
David Shower,
Thank you! You were exactly right! I did not notice that I had left off the 10.
Thanks again,
Cindy