Add .toString for OperationOutcome.issue

This commit is contained in:
Grahame Grieve 2022-10-04 14:04:33 +11:00
parent 28a8165034
commit ed6b5f00c8
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
@Override
public String toString() {
if (getExpression().size() == 1) {
return getExpression().get(0)+" "+getDiagnostics()+" "+getSeverity().toCode()+"/"+getCode().toCode()+": "+getDetails().getText();
} else {
return getExpression()+" "+getDiagnostics()+" "+getSeverity().toCode()+"/"+getCode().toCode()+": "+getDetails().getText();
}
}