Skip to content

Commit 8989a04

Browse files
authored
hide system errors related http://human-phenotype-ontology.org
the system is not in the terminology server thus will give error when trying to validate codes from there. This is to hide these errors
1 parent e8d1a0d commit 8989a04

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/common.js.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ function raiseWarning(issue: OperationOutcomeIssue, failOnWarning:boolean): bool
279279

280280
//Fragment codesystems can't be checked
281281
if (issue.diagnostics.includes('Unknown code in fragment CodeSystem')) return false;
282+
283+
//Hide errors relating to finding codes from system:http://human-phenotype-ontology.org as these are not within the Terminology server
284+
if (issue.diagnostics.includes('Validation failed for \'http://human-phenotype-ontology.org')) return false;
282285
}
283286

284287
// if error not handled above, return error if FailOnWarning is true

0 commit comments

Comments
 (0)