add Coding.toString()

This commit is contained in:
Grahame Grieve 2019-11-29 13:25:41 +11:00
parent 3a15ab82b6
commit a72263474e
1 changed files with 10 additions and 1 deletions

View File

@ -556,7 +556,16 @@ public class Coding extends Type implements IBaseCoding, ICompositeType, ICoding
return hasSystem() && hasCode() && this.getSystem().equals(system) && this.getCode().equals(code);
}
public String toString() {
String base = getSystem();
if (hasVersion())
base = base+"|"+getVersion();
base = base + "#"+getCode();
if (hasDisplay())
base = base+": "+getDisplay();
return base;
}
// end addition
}