Skip to content

Commit

Permalink
feat(app): properly set 'No Result' lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Sep 24, 2024
1 parent 01c4cbf commit b819eb9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/lib/common/models/userdata/genotype_result.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ class GenotypeResult implements Genotype {
allelesTested: labResult.allelesTested,
);

factory GenotypeResult.missingResult(String gene, {String? variant}) {
factory GenotypeResult.missingResult(
String gene, {
String? variant,
String? lookupkey,
}) {
return GenotypeResult(
gene: gene,
variant: variant,
phenotype: null,
lookupkey: null,
lookupkey: lookupkey,
allelesTested: null,
);
}
Expand Down
1 change: 1 addition & 0 deletions app/lib/common/utilities/genome_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Map<String, GenotypeResult> initializeGenotypeResultKeys() {
GenotypeResult.missingResult(
gene,
variant: variantIsRelevant ? currentGenotypeKey.allele : null,
lookupkey: SpecialLookup.noResult.value,
);
}
}
Expand Down

0 comments on commit b819eb9

Please sign in to comment.