Hello,
We currently have an EMR consultant onsite, and he mentioned that an EMR that he used, allowed them to insert previous values (exams, hpi, etc) from a previous visit that they select. I know I can use OBSPREV to pull in the most recently entered observations, but in the case where a patient comes in for multiple visits, and different exams were performed in unrelated visits(different problem, etc.), using OBSPREV to pull in the previously entered value for all exam text boxes could combine values from multiple visits.
In the EMR system that the consultant referred to, it sounds like they were presented with a list of previous visits, and they could select which visit to pull the previous data from.
Has anyone implemented any functionality similar to this, or do you know if something like this can be done with CPS?
Thanks for any assistance.
This can be done but not with intrinsic functionality of Centricity. It is possible to directly query the document table, filter on the desired document type and/summary, display enough information to allow selection of the correct document. Then retrieve the desired obs terms associated with this document. This is a non-trivial problem. Contact me directly if you would like more information.
With MEL code, just pick an observation that is recorded EVERY visit, and use that for your visit dates. Use the LIST_OBS() function with a for loop and pull out the dates. You can just get the most recent one, or all of them and put it in a dropdown. When a date is selected, have another function fire to go through a list of observations that you want to pull forward. For each of those, use LIST_OBS() and a for loop and compare the date field of each until you have a match, then return a value.