Fix for NamingSystem display

This commit is contained in:
Grahame Grieve 2020-06-06 07:28:58 +10:00
parent b2367e94b6
commit 0c718c7a9b
1 changed files with 4 additions and 1 deletions

View File

@ -231,6 +231,9 @@ public class DataRenderer {
}
public String display(DataType type) {
if (type.isEmpty())
return "";
if (type instanceof Coding) {
return displayCoding((Coding) type);
} else if (type instanceof CodeableConcept) {
@ -693,7 +696,7 @@ public class DataRenderer {
}
public static String displayPeriod(Period p) {
String s = !p.hasStart() ? "?ngen-5?" : p.getStartElement().toHumanDisplay();
String s = !p.hasStart() ? "(?)" : p.getStartElement().toHumanDisplay();
s = s + " --> ";
return s + (!p.hasEnd() ? "(ongoing)" : p.getEndElement().toHumanDisplay());
}