Calculation with interim fields of other calculations


#1

Calculations with interim fields are a powerful tool.
But, is it also possible to reference interim fields, that are defined in other services or calculations?
(As we can reference other analysis services by keyword)


#2

I think it is not possible to do. As you said, the workaround is to create more Analysis Services as interims…


#3

What a pity, but I thought as much…


#4

I have checked the code, and it a good feature that could be done: https://github.com/senaite/senaite.core/blob/master/bika/lims/content/abstractanalysis.py#L537-L548

So far it can be obtained the LDL, UDL, RESULT, BELOWLDL, ABOVEUDL from dependencies.

Some lines could be added here https://github.com/senaite/senaite.core/blob/master/bika/lims/content/abstractanalysis.py#L548 to obtain the interim fields from Analyses.