-
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.
- Loading branch information
Showing
9 changed files
with
198 additions
and
53 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
41 changes: 41 additions & 0 deletions
41
app/integration_test/fixtures/drugs/oxcarbazepine_with_hlab1502_guideline.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,41 @@ | ||
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 oxcarbazepineWithHlab1502Guideline = Drug( | ||
id: '6407768c92a4868065b6ceb6', | ||
version: 1, | ||
name: 'oxcarbazepine', | ||
rxNorm: 'RxNorm:32624', | ||
annotations: DrugAnnotations( | ||
drugclass: 'Anti-seizure', | ||
indication: 'Oxcarbazepine is an anti-epileptic used to prevent seizures.', | ||
brandNames: ['Oxtellar', 'Trileptal'], | ||
), | ||
guidelines: [ | ||
Guideline( | ||
id: '64552859a1b68082babc8dc6', | ||
version: 1, | ||
lookupkey: { | ||
'HLA-B': ['*15:02 negative'], | ||
}, | ||
externalData: [ | ||
GuidelineExtData( | ||
source: 'CPIC', | ||
guidelineName: 'HLA-A, HLA-B and Carbamazepine and Oxcarbazepine', | ||
guidelineUrl: 'https://cpicpgx.org/guidelines/guideline-for-carbamazepine-and-hla-b/', | ||
implications: { | ||
'HLA-B': 'Normal risk of oxcarbazepine-induced SJS/TEN', | ||
}, | ||
recommendation: 'Use oxcarbazepine per standard dosing guidelines.', | ||
comments: 'n/a', | ||
), | ||
], | ||
annotations: GuidelineAnnotations( | ||
implication: 'You have a normal risk for side effects.', | ||
recommendation: 'You can use oxcarbazepine at standard dose. Consult your pharmacist or doctor for more information.', | ||
warningLevel: WarningLevel.green, | ||
), | ||
), | ||
], | ||
); |
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
24 changes: 24 additions & 0 deletions
24
app/integration_test/fixtures/guidelines/ibuprofen_cyp2c9_normal.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,24 @@ | ||
import 'package:app/common/models/drug/guideline.dart'; | ||
import 'package:app/common/models/drug/warning_level.dart'; | ||
|
||
final ibuprofenCyp2c9NormalGuideline = Guideline( | ||
id: '64552859a1b68082babc8c31', | ||
version: 1, | ||
lookupkey: { | ||
'CYP2C9': ['2.0'] | ||
}, | ||
externalData: [ | ||
GuidelineExtData( | ||
source: 'CPIC', | ||
guidelineName: 'CYP2C9 and NSAIDs', | ||
guidelineUrl: 'https://cpicpgx.org/guidelines/cpic-guideline-for-nsaids-based-on-cyp2c9-genotype/', | ||
implications: {'CYP2C9': 'Normal metabolism'}, | ||
recommendation: 'Initiate therapy with recommended starting dose. In accordance with the prescribing information, use the lowest effective dosage for shortest duration consistent with individual patient treatment goals.', | ||
comments: 'n/a') | ||
], | ||
annotations: GuidelineAnnotations( | ||
implication: 'You break down ibuprofen as expected.', | ||
recommendation: 'You can use ibuprofen at standard dose. Consult your pharmacist or doctor for more information.', | ||
warningLevel: WarningLevel.green, | ||
), | ||
); |
File renamed without changes.
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
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
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
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