oship-dev team mailing list archive
-
oship-dev team
-
Mailing list archive
-
Message #01821
[Bug 488888] Re: Archetype class needs all methods implemented.
** Project changed: oship => oshippy
** Changed in: oshippy
Milestone: 1.0b1 => None
--
You received this bug notification because you are a member of OSHIP
Development Team, which is subscribed to Open Source Health Information
Platform.
https://bugs.launchpad.net/bugs/488888
Title:
Archetype class needs all methods implemented.
Status in Open Source Health Information Platform - Python:
Fix Released
Bug description:
The current state is:
def version(self):
"""
Version string extracted from id.
"""
return u"version id"
def previousVersion(self):
"""
Version of predecessor if any.
"""
return u"previous version id"
def shortConceptName(self):
"""
String extracted from id.
"""
return "Short Concept name"
def conceptName(self, language=None):
"""
Concept string extracted from the ontology.
"""
return u"concept name"
def physicalPaths():
"""
Set of Xpath like statements extracted from
CObject.nodeId and CAttribute.rmAttributeName
"""
return u"Some XPath"
def logicalPaths():
"""
Set of Xpath like statements extracted from
CObject.nodeId and CAttribute.rmAttributeName
except the nodeIds are replaced by their meanings from the ontology.
"""
return u"Some XPath"
def isSpecialised(self):
"""
True if this archetype is a specialisation of another.
Otherwise it returns False.
"""
return False
def specialisationDepth():
"""
Return ontology.specialisationDepth
"""
return self.ontology.specialisationDepth
def nodeIdsValid():
"""
Return True if every CObject.nodeId is found
in the ontolgy.termCodes
"""
return True
def internalReferencesValid():
"""
True if every ArchetypeInternalRef.targetPath
refers to a legitimate node in the archetype definition.
"""
return True
def constraintReferencesValid():
"""
True if every ConstraintRef.reference found in CObject nodes
definition is found in ontology.constraintCodes
"""
return True
def isValid():
"""
Return True if the archetype is overall valid.
"""
return True
References