Skip to content

Commit 8037cff

Browse files
authored
Merge pull request #104 from NHSDigital/ryma2fhir-patch-8
hide system errors related http://human-phenotype-ontology.org
2 parents e8d1a0d + 8989a04 commit 8037cff

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)