Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
reintroduce clinical modifier hack
Browse files Browse the repository at this point in the history
  • Loading branch information
kshefchek committed Mar 23, 2018
1 parent 231d7ab commit 4300033
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion lib/monarch/web/webapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -3421,14 +3421,45 @@ function diseaseByIdHandler(request, id, fmt) {
}
}

const inheritanceClasses = [
'HP:0001444',
'HP:0001423',
'HP:0001417',
'HP:0010983',
'HP:0010982',
'HP:0003743',
'HP:0001475',
'HP:0001470',
'HP:0025352',
'HP:0001442',
'HP:0012275',
'HP:0001419',
'HP:0001466',
'HP:0000005',
'HP:0000006',
'HP:0000007',
'HP:0012274',
'HP:0010985',
'HP:0010984',
'HP:0003744',
'HP:0003745',
'HP:0001472',
'HP:0001450',
'HP:0001452',
'HP:0001425',
'HP:0001426',
'HP:0001427',
'HP:0001428',
];

if (inheritanceList.length > 0) {
info.inheritance = inheritanceList
.filter(node => node.metadata().types.indexOf('inheritance') > -1)
.map(node => node.label())
.join(', ');

info.modifier = inheritanceList
.filter(node => node.metadata().types.indexOf('clinical modifier') > -1)
.filter(node => inheritanceClasses.indexOf(node.id()) === -1)
.map(node => node.label())
.join(', ');
}
Expand Down

0 comments on commit 4300033

Please sign in to comment.