missed rendering fix

This commit is contained in:
Grahame Grieve 2022-02-12 08:29:00 +11:00
parent e4d886dfec
commit 7700a0cb11
1 changed files with 7 additions and 5 deletions

View File

@ -198,13 +198,13 @@ public class PatientRenderer extends ResourceRenderer {
public void describe(XhtmlNode x, HumanName name, String gender, DateType dob, Identifier id) throws UnsupportedEncodingException, IOException { public void describe(XhtmlNode x, HumanName name, String gender, DateType dob, Identifier id) throws UnsupportedEncodingException, IOException {
if (name == null) { if (name == null) {
x.b().tx("Unnamed Patient"); // todo: is this appropriate? x.b().tx("Anonymous Patient"); // todo: is this appropriate?
} else { } else {
render(x.b(), name); render(x.b(), name);
} }
x.tx(" "); x.tx(" ");
if (gender == null) { if (gender == null) {
x.tx("??"); x.tx("(no stated gender)");
} else { } else {
x.tx(gender); x.tx(gender);
} }
@ -221,7 +221,9 @@ public class PatientRenderer extends ResourceRenderer {
} }
} }
// @Override @Override
//// public boolean render(XhtmlNode x, ResourceWrapper r) throws FHIRFormatError, DefinitionException, IOException { public boolean render(XhtmlNode x, ResourceWrapper r) throws FHIRFormatError, DefinitionException, IOException {
// } describe(x, r);
return false;
}
} }