-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): start implementing any other fallback [work in progress]
- Loading branch information
Showing
3 changed files
with
76 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
app/integration_test/fixtures/drugs/with_multiple_any_other_fallback_guidelines.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import 'package:app/common/models/drug/drug.dart'; | ||
import 'package:app/common/models/drug/guideline.dart'; | ||
import 'package:app/common/models/drug/warning_level.dart'; | ||
|
||
final drugWithMultipleAnyOtherFallbackGuidelines = Drug( | ||
id: '6686a865826414ec5b05c44e', | ||
version: 1, | ||
name: 'pazopanib', | ||
rxNorm: 'RxNorm:714438', | ||
annotations: DrugAnnotations( | ||
drugclass: 'Anti-cancer', | ||
indication: 'Pazopanib is used to treat cancer.', | ||
brandNames: ['Votrient'], | ||
), | ||
guidelines: [ | ||
Guideline( | ||
id: '66b50b2433cbe5c07ee31651', | ||
version: 1, | ||
lookupkey: { | ||
'HLA-B': ['~'], | ||
'UGT1A1': ['Poor Metabolizer'], | ||
}, | ||
externalData: [ | ||
GuidelineExtData( | ||
source: 'CPIC', | ||
guidelineName: 'Table of Pharmacogenetic Associations (Section 2)', | ||
guidelineUrl: 'https://www.fda.gov/medical-devices/precision-medicine/table-pharmacogenetic-associations#section2', | ||
implications: { | ||
'HLA-B': 'Standard procedure', | ||
'UGT1A1': 'Results in higher adverse reaction risk (hyperbilirubinemia).', | ||
}, | ||
recommendation: 'Might be included in implication text (imported from FDA, source only states one text per guideline)', | ||
comments: null, | ||
), | ||
], | ||
annotations: GuidelineAnnotations( | ||
implication: 'You have an increased risk for side effects.', | ||
recommendation: 'You can still use pazopanib at standard dose. Consult your pharmacist or doctor for more information.', | ||
warningLevel: WarningLevel.yellow, | ||
), | ||
), | ||
], | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,7 +98,8 @@ | |
"unstaged", | ||
"userdata", | ||
"Vicoprofen", | ||
"voriconazole" | ||
"voriconazole", | ||
"Votrient" | ||
] | ||
} | ||
} |