| [% loop.count %] |
[% entry %] |
[% IF
patient.last_name != data.item(entry).sample_name;
status = 'error';
ELSIF data.item(entry).error;
status = 'warning';
END;
%]
[% data.item(entry).sample_name | upper %]
[% IF status == 'error' %]
[[% patient.last_name | upper %]]
[% END %]
|
[% class = BCR_ABL AND BCR_ABL <= 10 ? 'red' : 'normal' %]
[% BCR_ABL %] [% IF BCR_ABL %]([% BCR_ABL_VALS %])[% END %]
|
[% class = BCR_ABL_CT
? ( BCR_ABL_CT_DIFF > 1.5 OR BCR_ABL_CT_DIFF < -1.5 )
? 'red' : 'normal'
: 'input_error';
%]
[% IF BCR_ABL_CT; BCR_ABL_CT;
ELSE; PROCESS missing_ct_result; status = 'error'; # disable checkbox
END %]
|
[% class = ABL < 10000 ? 'blue' :
ABL >= 10000 AND ABL < 20000 ? 'warning' : 'normal' %]
[% ABL %] [% IF ABL %]([% ABL_VALS %])[% END %]
|
[% class = ABL_CT
? ( ABL_CT_DIFF > 1.5 OR ABL_CT_DIFF < -1.5 )
? 'red' : 'normal'
: 'input_error';
%]
[% IF ABL_CT; ABL_CT;
ELSE; PROCESS missing_ct_result; status = 'error'; # disable checkbox
END %]
|
[%
messages = c.messages('file_upload').bcr_abl;
IF ABL < 10000;
messages.poor_quality.summary;
ELSIF BCR_ABL; # ie not zero (0.58 conversion factor introduced 26/7/17)
ratio = ( BCR_ABL / ABL ) * 0.58 * 100 | format('%.3f');
ratio _ '%';
ELSE; # no bcr abl
expression = 100 / ABL | format('%.4f');
'<' _ expression | html;
END;
%]
|
[% result = [];
result.push(entry); # labno for template summary
result.push(data.item(entry).request_data.id);
result.push(ABL);
result.push(BCR_ABL);
result.push(ratio);
%]
|
[% previous_result = data.item(entry).existing_result.results_summary;
IF previous_result;
%]
WARNING:
has previous result
[% END %]
|
[% END %]