diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/utils/ResourceUtilities.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/utils/ResourceUtilities.java index 0694f0a56..7343423c1 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/utils/ResourceUtilities.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/utils/ResourceUtilities.java @@ -85,13 +85,13 @@ public class ResourceUtilities { StringBuilder b = new StringBuilder(); for (OperationOutcomeIssueComponent t : error.getIssue()) if (t.getSeverity() == IssueSeverity.ERROR) - b.append("Error:" +gen(t.getDetails())+"\r\n"); + b.append("Error: " +gen(t.getDetails())+"\r\n"); else if (t.getSeverity() == IssueSeverity.FATAL) - b.append("Fatal:" +gen(t.getDetails())+"\r\n"); + b.append("Fatal: " +gen(t.getDetails())+"\r\n"); else if (t.getSeverity() == IssueSeverity.WARNING) - b.append("Warning:" +gen(t.getDetails())+"\r\n"); + b.append("Warning: " +gen(t.getDetails())+"\r\n"); else if (t.getSeverity() == IssueSeverity.INFORMATION) - b.append("Information:" +gen(t.getDetails())+"\r\n"); + b.append("Information: " +gen(t.getDetails())+"\r\n"); return b.toString(); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/ResourceUtilities.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/ResourceUtilities.java index 6a49ad860..38ab37fc8 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/ResourceUtilities.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/ResourceUtilities.java @@ -81,13 +81,13 @@ public class ResourceUtilities { if (first) first = false; else b.append("\r\n"); String txt = t.hasDiagnostics() ? t.getDiagnostics() : gen(t.getDetails()); if (t.getSeverity() == IssueSeverity.ERROR) - b.append("Error:" + txt); + b.append("Error: " + txt); else if (t.getSeverity() == IssueSeverity.FATAL) - b.append("Fatal:" + txt); + b.append("Fatal: " + txt); else if (t.getSeverity() == IssueSeverity.WARNING) - b.append("Warning:" + txt); + b.append("Warning: " + txt); else if (t.getSeverity() == IssueSeverity.INFORMATION) - b.append("Information:" + txt); + b.append("Information: " + txt); } return b.toString(); } diff --git a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/utils/ResourceUtilities.java b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/utils/ResourceUtilities.java index eb2569b98..373f7af1e 100644 --- a/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/utils/ResourceUtilities.java +++ b/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/utils/ResourceUtilities.java @@ -79,13 +79,13 @@ public class ResourceUtilities { StringBuilder b = new StringBuilder(); for (OperationOutcomeIssueComponent t : error.getIssue()) { if (t.getSeverity() == IssueSeverity.ERROR) { - b.append("Error:" + gen(t.getDetails()) + "\r\n"); + b.append("Error: " + gen(t.getDetails()) + "\r\n"); } else if (t.getSeverity() == IssueSeverity.FATAL) { - b.append("Fatal:" + gen(t.getDetails()) + "\r\n"); + b.append("Fatal: " + gen(t.getDetails()) + "\r\n"); } else if (t.getSeverity() == IssueSeverity.WARNING) { - b.append("Warning:" + gen(t.getDetails()) + "\r\n"); + b.append("Warning: " + gen(t.getDetails()) + "\r\n"); } else if (t.getSeverity() == IssueSeverity.INFORMATION) { - b.append("Information:" + gen(t.getDetails()) + "\r\n"); + b.append("Information: " + gen(t.getDetails()) + "\r\n"); } } return b.toString(); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/ResourceUtilities.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/ResourceUtilities.java index 030ee34a9..ddfe1d674 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/ResourceUtilities.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/ResourceUtilities.java @@ -79,13 +79,13 @@ public class ResourceUtilities { StringBuilder b = new StringBuilder(); for (OperationOutcomeIssueComponent t : error.getIssue()) { if (t.getSeverity() == IssueSeverity.ERROR) { - b.append("Error:" +gen(t.getDetails())+"\r\n"); + b.append("Error: " +gen(t.getDetails())+"\r\n"); } else if (t.getSeverity() == IssueSeverity.FATAL) { - b.append("Fatal:" +gen(t.getDetails())+"\r\n"); + b.append("Fatal: " +gen(t.getDetails())+"\r\n"); } else if (t.getSeverity() == IssueSeverity.WARNING) { - b.append("Warning:" +gen(t.getDetails())+"\r\n"); + b.append("Warning: " +gen(t.getDetails())+"\r\n"); } else if (t.getSeverity() == IssueSeverity.INFORMATION) { - b.append("Information:" +gen(t.getDetails())+"\r\n"); + b.append("Information: " +gen(t.getDetails())+"\r\n"); } } return b.toString();