Fix for NamingSystem display
This commit is contained in:
parent
b2367e94b6
commit
0c718c7a9b
|
@ -231,6 +231,9 @@ public class DataRenderer {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String display(DataType type) {
|
public String display(DataType type) {
|
||||||
|
if (type.isEmpty())
|
||||||
|
return "";
|
||||||
|
|
||||||
if (type instanceof Coding) {
|
if (type instanceof Coding) {
|
||||||
return displayCoding((Coding) type);
|
return displayCoding((Coding) type);
|
||||||
} else if (type instanceof CodeableConcept) {
|
} else if (type instanceof CodeableConcept) {
|
||||||
|
@ -693,7 +696,7 @@ public class DataRenderer {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String displayPeriod(Period p) {
|
public static String displayPeriod(Period p) {
|
||||||
String s = !p.hasStart() ? "?ngen-5?" : p.getStartElement().toHumanDisplay();
|
String s = !p.hasStart() ? "(?)" : p.getStartElement().toHumanDisplay();
|
||||||
s = s + " --> ";
|
s = s + " --> ";
|
||||||
return s + (!p.hasEnd() ? "(ongoing)" : p.getEndElement().toHumanDisplay());
|
return s + (!p.hasEnd() ? "(ongoing)" : p.getEndElement().toHumanDisplay());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue