diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/PatientRenderer.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/PatientRenderer.java index 3115055cd..a89517303 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/PatientRenderer.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/PatientRenderer.java @@ -162,7 +162,7 @@ public class PatientRenderer extends ResourceRenderer { String gender = null; pw = getProperty(pat, "gender"); if (valued(pw)) { - pw.value().getBase().primitiveValue(); + gender = pw.value().getBase().primitiveValue(); } DateType dt = null; pw = getProperty(pat, "birthDate"); @@ -182,11 +182,11 @@ public class PatientRenderer extends ResourceRenderer { } else { b.append(gender); } - b.append(" "); + b.append(", "); if (dob == null) { b.append("DoB Unknown"); } else { - b.append(display(dob)); + b.append("DoB: "+display(dob)); } if (id != null) { b.append(" ( "); @@ -208,10 +208,11 @@ public class PatientRenderer extends ResourceRenderer { } else { x.tx(gender); } - x.tx(" "); + x.tx(", "); if (dob == null) { x.tx("DoB Unknown"); } else { + x.tx("DoB: "); render(x, dob); } if (id != null) {