I'm looking for a way to add to Dx with 1 button.
I currently have my form only adding a problem if one doesn't currently exisit but I have a few items such as diabetic neuropahty that not only uses code 250.60 but also requres the addition of ICD-357.2. I would like to create a button that adds both of these.
Thank you for any help.
The simplest way I can think of is to have a RUNPROCESS button that contains:
{
MEL_ADD_PROBLEM(some stuff you have to type related to the problem)
MEL_ADD_PROBLEM(some stuff you have to type related to the problem)
}
The syntax for MEL_ADD_PROBLEM() is as follows:
syntax
MEL_ADD_PROBLEM(type, description, code, onset_date, end_date, annotate, assessment, comment)
arguments
type |
The problem prefix. Use one of the following: DX OF = Diagnosis of H/F = Hospitalized for HX OF = History of S/P = Status Post R/O = Rule out ? OF = Question of SX OF = Symptom of RS OF = Risk of NOTE: = Take Note of FH OF = Family History of |
description |
The description of the problem. |
code |
Optional. ICD-9 code for the problem. If no ICD-9 code is present, the problem is added as uncoded. See the Comment below for more details. |
onset_date | Optional. The date when the problem started. Must be in the MM/DD/YYYY format. If ._TODAYSDATE is used, it must be used with the str function (see example below). Approximate dates are not accepted. |
end_date |
Optional. The date the problem stopped. Must be in the MM/DD/YYYY format. This will only be used if the TYPE is MDX_OF. |
annotate |
Optional. A comment about the problem. |
assessment |
Optional. New or N Improved or I Unchanged or U Deteriorated or D Comment only or C Note. Codes that were supported in previous releases may also appear as Better (B), Same (S), or Worse (W). |
comment |
Optional. A text value for the problem assessment comment (up to 2,000 characters in size) |
If you don't want to add the problem more than once, make the RUNPROCESS button code like this:
{
if(match(PROB_AFTER("comma"),"ICD-XX.X")>0)then
MEL_ADD_PROBLEM(some stuff about the problem)
else
userok("Problem XX.X already exists")
endif
if(match(PROB_AFTER("comma"),"ICD-YY.Y")>0)then
MEL_ADD_PROBLEM(some stuff about the problem)
else
userok("Problem YY.Y already exists")
endif
}
Change that '>' to '==' ......my bad