Anyone know of a way to code a QuickText or MEL statement (form button) to fulfill the below request from one of my providers?
They want the assessment from the last visit, for the first diagnosis (assessment #1 from the CPOE form) to pull into their current note.
Thanks
Sam,
I'm familiar with that form and there are two things that would hinder/prevent this request:
- I know of no MEL function that will pull all of the historical assessments on a patient for every diagnosis; you would have to use LIST_ASSESSMENTS() to pull all of the assessments for a particular diagnosis, which would then require you to step through every single active problem (i.e. way too complicated and prone to errors)
- There is also no MEL function that would expose the timestamp of when a particular problem was assessed; you only get the clinical date, so their would really be no way to identify the problem that was assessed first.
One way around this is to develop your own assessment form that follows the design of the CCC form (i.e. pick a problem from active problems and document assessment in multi-line edit field) and utilize a function that ALSO records the first problem/diagnosis assessed to an OBS Term. At subsequent visits, you could then have a Quicktext item that would spit out the previous assessment. You could request an OBS Term from GE; e.g. "FIRST_ASSESS", and use this OBS term to store their first (assuming primary) assessment with that form. Then use "{OBSPREV("FIRST_ASSESS")} in your quicktext to pull it at a subsequent visit. Hope that makes sense.
You could also use a third party tool to query the database and pull the information needed. User "jfitzmd" has developed a tool that can query the database and return the data you need in caret/pipe delimited format for parameter/record separation. He seems willing to help folks with stuff like this if you need guidance.
Thanks