mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-28 00:19:06 +00:00
add Coding.toString()
This commit is contained in:
parent
3a15ab82b6
commit
a72263474e
@ -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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user