add Coding.toString()
This commit is contained in:
parent
3a15ab82b6
commit
a72263474e
|
@ -555,8 +555,17 @@ public class Coding extends Type implements IBaseCoding, ICompositeType, ICoding
|
|||
public boolean is(String system, String 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
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue