Written by Thomas Harlan, Jim McGrath; Reporting Services Team - iatricSystems
If you’ve been working with clinical documentation in the new SUR module in MEDITECH 6.1, you may have found that surgical interventions, assessments, query responses, and some standard fields are captured in this table:
SurCase_DocQuestions
Which you get at from the Visit by:
RegAcct_Main > CwsAppt_Main > SurCase_DocInstances > SurCase_DocQuestions
However, once you’re in the table with the question, you’ve got a variety of problems to overcome:
What to Do?
Well, the first thing is open a ticket with MEDITECH to get this DTS installed:
This will expand the DocumentQuestionValue field to a VARCHAR(1250) like the others. When you open that ticket, make sure to include a note requesting that the table be re-IL’d (if you don’t have SIL capability and can do it yourself).
If you’re trying to get at the Pre-Op/Post-Op Diagnosis, check to see if these tables are populated on your DR instance:
As they should be used instead. If they are empty, open a ticket to get them populated.
This structure holds any amount of text data in blocks of 250 characters per row.
If your MT 6.1 instance does have those tables, you can generate a concatenated field to hold the diagnosis responses like so:
Note the CHAR(10) prefixing each line (which the STUFF then strips off from the beginning of the string once the concatenation has finished up) lets you display this field in SSRS with line breaks.
Going back to the information stored in the DocumentQuestionValue field, however, your troubles are only beginning! The field uses PCS-style data capture, which means it can be multi-valued, packed, and sub-divided into elements within a packed section.
If you’re a subscriber to our DR Resource Center, we have a slate of functions like IatricMultiColumnValueBreakdown() that can help you get at the information you want from one of these packed fields. If you don't license DR Resource Center, my first recommendation is that you do, but you can also follow the approach detailed in this Parsing Packed Fields blog post.
None of it is pretty… So, the best approach here is to identify what specific items you are looking for, then construct a parsing pattern (using REPLACE, Split, etc. as needed) to pick out the specific piece of the packed string that you need. On a case by case basis.
An Example
Here’s an example of breaking down the ASA Class documentation from one of these SUR question fields:
If you need more help…
Our Report Writing team can help you fix reports, create new ones, make old ones run faster, and much more. Simply reach out to your Iatric Systems Account Executive, or our NPR report writing team at reportwriting@iatric.com, or click the button below to contact us and learn how we can help support your team!