Is it possible to use sample/patient related attributes in Calculations formula?
if [SampleType] = ‘Serum’: return [Ca]*10 elif [SampleType] = ‘Plasma’: return [Ca]*3
if [Sex] = ‘Female’: return [Ca]*10 elif [Sex] = ‘Male’: return [Ca]*3
Thanks in advance.
you can do so with an external calculation:
TLDR; You get the parent from the analysis (which is the sample) and find out the patient sex from there.
If you would like to have specifications based on a patient sex/age/ethnicity etc., you would probably want to have a dynamic analysis specification adapter implemented:
Hope this helps,
Thanks a lot for helping. I think I got your point. Since the calculation is called from there
should get parent (analysis) information easily.
I will do a try for that. Thanks again, it helps.