Fix to compile
This commit is contained in:
parent
ea5b5d65c3
commit
b6f81081d3
|
@ -1805,6 +1805,30 @@ public class NarrativeGenerator implements INarrativeGenerator {
|
||||||
x.addText(s.toString());
|
x.addText(s.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String describeCoding(List<Coding> list, boolean showCodeDetails) {
|
||||||
|
CommaSeparatedStringBuilder b = new CommaSeparatedStringBuilder();
|
||||||
|
for (Coding c : list) {
|
||||||
|
b.append(describeCoding(c, showCodeDetails));
|
||||||
|
}
|
||||||
|
return b.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String describeCoding(Coding c, boolean showCodeDetails) {
|
||||||
|
String s = "";
|
||||||
|
if (c.hasDisplayElement())
|
||||||
|
s = c.getDisplay();
|
||||||
|
if (Utilities.noString(s))
|
||||||
|
s = lookupCode(c.getSystem(), c.getCode());
|
||||||
|
|
||||||
|
if (Utilities.noString(s))
|
||||||
|
s = c.getCode();
|
||||||
|
|
||||||
|
if (showCodeDetails) {
|
||||||
|
return s+" (Details: "+describeSystem(c.getSystem())+" code "+c.getCode()+" = '"+lookupCode(c.getSystem(), c.getCode())+"', stated as '"+c.getDisplay()+"')";
|
||||||
|
} else
|
||||||
|
return "<span title=\"{"+c.getSystem()+" "+c.getCode()+"}\">"+Utilities.escapeXml(s)+"</span>";
|
||||||
|
}
|
||||||
|
|
||||||
private void renderCoding(Coding c, XhtmlNode x, boolean showCodeDetails) {
|
private void renderCoding(Coding c, XhtmlNode x, boolean showCodeDetails) {
|
||||||
String s = "";
|
String s = "";
|
||||||
if (c.hasDisplayElement())
|
if (c.hasDisplayElement())
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
{
|
|
||||||
"resourceType" : "Patient",
|
|
||||||
"gender" : "female"
|
|
||||||
}
|
|
|
@ -1,4 +0,0 @@
|
||||||
{
|
|
||||||
"resourceType" : "Patient",
|
|
||||||
"gender" : "female"
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
{
|
|
||||||
"resourceType" : "Patient",
|
|
||||||
"name" : [{
|
|
||||||
"family" : "Brönnimann-Bertholet",
|
|
||||||
"given" : ["Elisabeth"]
|
|
||||||
}],
|
|
||||||
"gender" : "female"
|
|
||||||
}
|
|
|
@ -1,10 +0,0 @@
|
||||||
{
|
|
||||||
"resourceType" : "Patient",
|
|
||||||
"name" : [{
|
|
||||||
"family" : "Brönnimann-Bertholet"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"given" : ["Elisabeth"]
|
|
||||||
}],
|
|
||||||
"gender" : "female"
|
|
||||||
}
|
|
Loading…
Reference in New Issue