← Back to team overview

oship-dev team mailing list archive

[Bug 603688] Re: Method root in UidBasedId should return an Uid.

 

*** This bug is a duplicate of bug 603698 ***
    https://bugs.launchpad.net/bugs/603698

** This bug has been marked a duplicate of bug 603698
   Class HierObjectId does not generate the correct root part of an ID.

-- 
Method root in UidBasedId should return an Uid.
https://bugs.launchpad.net/bugs/603688
You received this bug notification because you are a member of OSHIP
Development Team, which is subscribed to Open Source Health Information
Platform.

Status in Open Source Health Information Platform (OSHIP): New

Bug description:
Method root in org.openehr.rm.support.identification UidBasedId should return an Uid, but is returning a string. My suggestion is to move attributes rootPart and extensionPart from ObjectVersionId to its superclass UidBasedId. Then define the methods
1) root as returning rootPart, 
2) extension as returning extensionPart
3) hasExtension as returning true if extensionPart is not empty and false otherwise.

Both rootPart and extensionPart should be defined when initializing either ObjectVersionId or HierObjectId subclasses.





References