oship-dev team mailing list archive
-
oship-dev team
-
Mailing list archive
-
Message #00674
[Bug 488888] [NEW] Archetype class needs all methods implemented.
Public bug reported:
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
** Affects: oship
Importance: Critical
Assignee: Tim Cook (timothywayne-cook)
Status: Confirmed
--
Archetype class needs all methods implemented.
https://bugs.launchpad.net/bugs/488888
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): Confirmed
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
Follow ups
References