add Coding.toString()

This commit is contained in:
Grahame Grieve 2019-11-29 13:25:41 +11:00
parent 3a15ab82b6
commit a72263474e

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); 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 // end addition
} }