I'm working on a form that our providers can use to interpret lab results for the patient. Can anyone please help me with how to pull this information?
Intended workflow: Provider receives lab results document (via interface) into CPS, and signs off. Then appends the lab results document, clicks to do a full update. Using my custom lab interpretation form to view (probably in a data field) all the result values that were attached to obs terms in the signed lab results document.
Note - The provider will not necessarily be interpreting the last obs term. OBSPREV won't work because it is not necessarily the last signed obs term, and OBSNOW won't work because the obs terms on the original signed document were not changed during the append in any way. So I'm thinking it may work if there is a way to view all obs terms from the original signed document where the clinical date of the obs term matches the clinical date of the append. Is that possible?
You will want to use the LIST_OBS Mel function. if you look in the help file, it says you can return all the values for a specific obs term, and you can grab the dates as well in a delimited list. if you know how to sort through that, you can do exactly what you have suggested. 🙂
As an alternative, you could create a flowsheet with the OBS terms you are looking for and then display the flowsheet within your form.