Skip to content

Commit

Permalink
Merge pull request #595 from griffithlab/add-evidence-level-brief
Browse files Browse the repository at this point in the history
provides evidenceLevelBrief option for evidenceEnumTooltip pipe
  • Loading branch information
jmcmichael authored Aug 3, 2022
2 parents cbfe534 + c3f15d0 commit ab7f941
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ export const tooltips: tooltipMap = {
[EvidenceLevel.E]: 'Indirect evidence',
},

evidenceLevelBrief: {
[EvidenceLevel.A]: 'Validated association',
[EvidenceLevel.B]: 'Clinical evidence',
[EvidenceLevel.C]: 'Case Study',
[EvidenceLevel.D]: 'Preclinical evidence',
[EvidenceLevel.E]: 'Inferential association',
},

drugInteractionType: {
[DrugInteraction.Combination]: 'The drugs listed were used as part of a combination therapy approach',
[DrugInteraction.Sequential]: 'The drugs listed were used at separate timepoints in the same treatment plan',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<nz-descriptions-item nzTitle="Level">
<nz-tag nz-tooltip
[nzTooltipTitle]="evidence.evidenceLevel | enumTooltip:'evidenceLevel'">
<strong>{{ evidence.evidenceLevel }}</strong>
<strong>{{ evidence.evidenceLevel }}</strong> - {{ evidence.evidenceLevel | enumTooltip:'evidenceLevelBrief' }}
</nz-tag>
</nz-descriptions-item>

Expand Down

0 comments on commit ab7f941

Please sign in to comment.