... | ... | @@ -37,15 +37,104 @@ let reqConfig = { |
|
|
data: payload
|
|
|
}
|
|
|
resp = await jsClient.doGet('/assertion', reqConfig)
|
|
|
> global.brl.dot.pick('data', resp.data)
|
|
|
{ comment:
|
|
|
'Two assertions: Pathogenic and Likely Pathogenic were made. In such case the final call is the highest strength call, hence the allele is Pathogenic',
|
|
|
> console.log(global.brl.insp(global.brl.dot.pick('data', resp.data)))
|
|
|
{
|
|
|
comment: 'Two assertions: Pathogenic and Likely Pathogenic were made. In such case ' +
|
|
|
'the final call is the highest strength call, hence the allele is ' +
|
|
|
'Pathogenic',
|
|
|
finalCall: 'Pathogenic',
|
|
|
rules:
|
|
|
[ { conditions: [Array], inference: 'Pathogenic', rule: 'Rule1' },
|
|
|
{ conditions: [Array], inference: 'Pathogenic', rule: 'Rule2' },
|
|
|
{ conditions: [Array],
|
|
|
rules: [
|
|
|
{
|
|
|
conditions: [
|
|
|
{
|
|
|
applicableCriteriaCodes: [
|
|
|
'PVS1',
|
|
|
'PS2_Very Strong'
|
|
|
],
|
|
|
condition: '==1',
|
|
|
label: 'Rule1, Condition1',
|
|
|
partitionPath: 'Pathogenic.Very Strong'
|
|
|
},
|
|
|
{
|
|
|
applicableCriteriaCodes: [
|
|
|
'PS1',
|
|
|
'PS2',
|
|
|
'PS3',
|
|
|
'PS4',
|
|
|
'PP1_Strong'
|
|
|
],
|
|
|
condition: '>=1',
|
|
|
label: 'Rule1, Condition2',
|
|
|
partitionPath: 'Pathogenic.Strong'
|
|
|
}
|
|
|
],
|
|
|
inference: 'Pathogenic',
|
|
|
rule: 'Rule1'
|
|
|
},
|
|
|
{
|
|
|
conditions: [
|
|
|
{
|
|
|
applicableCriteriaCodes: [
|
|
|
'PVS1',
|
|
|
'PS2_Very Strong'
|
|
|
],
|
|
|
condition: '==1',
|
|
|
label: 'Rule2, Condition1',
|
|
|
partitionPath: 'Pathogenic.Very Strong'
|
|
|
},
|
|
|
{
|
|
|
applicableCriteriaCodes: [
|
|
|
'PS2_Moderate',
|
|
|
'PS3_Moderate',
|
|
|
'PS4_Moderate',
|
|
|
'PM1',
|
|
|
'PM4',
|
|
|
'PM5',
|
|
|
'PP1_Moderate'
|
|
|
],
|
|
|
condition: '>=2',
|
|
|
label: 'Rule2, Condition2',
|
|
|
partitionPath: 'Pathogenic.Moderate'
|
|
|
}
|
|
|
],
|
|
|
inference: 'Pathogenic',
|
|
|
rule: 'Rule2'
|
|
|
},
|
|
|
{
|
|
|
conditions: [
|
|
|
{
|
|
|
applicableCriteriaCodes: [
|
|
|
'PS1',
|
|
|
'PS2',
|
|
|
'PS3',
|
|
|
'PS4',
|
|
|
'PP1_Strong'
|
|
|
],
|
|
|
condition: '==1',
|
|
|
label: 'Rule20, Condition1',
|
|
|
partitionPath: 'Pathogenic.Strong'
|
|
|
},
|
|
|
{
|
|
|
applicableCriteriaCodes: [
|
|
|
'PS2_Moderate',
|
|
|
'PS3_Moderate',
|
|
|
'PS4_Moderate',
|
|
|
'PM1',
|
|
|
'PM4',
|
|
|
'PM5',
|
|
|
'PP1_Moderate'
|
|
|
],
|
|
|
condition: '==2',
|
|
|
label: 'Rule20, Condition2',
|
|
|
partitionPath: 'Pathogenic.Moderate'
|
|
|
}
|
|
|
],
|
|
|
inference: 'Likely Pathogenic',
|
|
|
rule: 'Rule20' } ],
|
|
|
statusObj: { name: 'assertion computed', status: 'ok' } }
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
rule: 'Rule20'
|
|
|
}
|
|
|
],
|
|
|
statusObj: {
|
|
|
name: 'assertion computed',
|
|
|
status: 'ok'
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |