In the following coding, where would I put the number for the number of days I want the code to be valid for? For example, we only leave our V codes on the problem list for 30 days, but with this I can't seem to figure out where to put the expiration in without crashing the form.... I believe the coding came from a form made by Ernie posted on the old CHUG boards...
{fn preopunspec()
{if match(prob_after("list"),"V72.84")>0 then "" else if
PROB_ACTIVE() <> "V72.84" THEN MEL_ADD_PROBLEM("dx of", "Pre Op Exam Unspec", "ICD-V72.84", str(._TODAYSDATE), "", "") else ""
endif
endif ""}
after the TODAYSDATE parameter:
description Adds a new problem and/or assessment comment to the patient’s problem list. Note. Do not use this function outside of a chart update; otherwise, the note will not be signed. type Data symbol function syntax MEL_ADD_PROBLEM(type, description, code, onset_date, end_date, annotate, assessment, comment) arguments
when to evaluate This function does not support the ability to evaluate continuously. returns Add the specified problem to the patient’s problem list, with an optional problem comment, assessment, and assessment comment. comment Uncoded problems may be added to the problem list using MEL_ADD_PROBLEM, even if the application is set up not to allow uncoded problems. error handling If you’ve used this function in an encounter form, the error code is not returned to the text translation. It is captured in MEL and can be used in conjunction with USEROK or USERYESNO to pop up an alert to the user, indicating that there is a problem with their data entry. To determine what type of error occurred, use the following error codes: 0 success -1 Type is not provided or is invalid -2 Description is blank, the wrong type, or too long -3 Code is the wrong type or too long -4 Onset is the wrong type or format -5 End is the wrong type or format -6 Problem comment is the wrong type or too long -7 Assessment is the wrong type or too long -8 Assessment comment is the wrong type or too long -9 Can't get the clinical list lock -10 Can't add problem for some other reason example {MEL_ADD_PROBLEM(‘DX OF’,’Cholera’,’ICD-001.9’,str(._todaysdate),’’,’Pt. traveled in Africa’,’N’,’monitor for improvement’)} Add as diagnosis of Cholera to the patient’s problem list with a start date of today’s date, no end date, a comment, an assessment of New, and an assessment comment. |
Thank you! That post will be very helpful to me in all MEL language! I have never taken any classes, I have learned by a co-worker and CHUG members!!