From ed6b5f00c8603430635c7651329364f895b42afd Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Tue, 4 Oct 2022 14:04:33 +1100 Subject: [PATCH] Add .toString for OperationOutcome.issue --- .../configuration/OperationOutcomeIssueComponent.java | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 org.hl7.fhir.core.generator/configuration/OperationOutcomeIssueComponent.java diff --git a/org.hl7.fhir.core.generator/configuration/OperationOutcomeIssueComponent.java b/org.hl7.fhir.core.generator/configuration/OperationOutcomeIssueComponent.java new file mode 100644 index 000000000..85753da3b --- /dev/null +++ b/org.hl7.fhir.core.generator/configuration/OperationOutcomeIssueComponent.java @@ -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(); + } +} \ No newline at end of file