def Parse(self, l): if not l or len(l) < 3: return self prefix = l[0:3] if prefix == "ORC": return Node.Parse(self, l, 0, 1) else: print "Error During Parsing, Unknown Line - oscar.PathNet.HL7.V2_3.PIDContainer - Message: " + l return None
def Parse(self, l): if not l or len(l) < 3: return self prefix = l[0:3] if prefix == "OBX": return Node.Parse(self, l,0 , 1) elif prefix == "NTE": note = NTE() self.__notes.append(note) return note.Parse(l) else: print "Error During Parsing, Unknown Line - oscar.PathNet.HL7.V2_3.PIDContainer - Message: " + l return None
def Parse(self,line): prefix = line[0:3] if prefix == "OBR": return Node.Parse(self, line, 0, 1) elif prefix == "OBX": obx = OBX(); self.__obxs.append(obx) obx.Parse(line) return self elif prefix == "NTE": nte = NTE() self.__notes.append(nte) nte.Parse(line) return self print "Error During Parsing, Unknown Line - oscar.PathNet.HL7.V2_3.OBR - Message: " + line return None
def Parse(self, l): if not l or len(l) < 3: return self prefix = l[0:3] if prefix == 'PID': return Node.Parse(self, l, 0,1) elif prefix == "ORC": return self._DoAddContainer(l) elif prefix =="OBR": if self.getContainers() == [] or self.getContainers()[-1].hasOBR(): return self._DoAddContainer(l) else: return self.getContainers()[-1].Parse(l) elif prefix =="NTE": note = Note() self.notes.append(note.Parse(l)) else: return self.getContainers()[-1].Parse(l)
def __init__(self): Node.__init__(self)
def Parse(self, l): return Node.Parse(self, l, 1,1)
def __init__(self): Node.__init__(self) self.__obxs = [] self.__notes = []
def __init__(self): Node.__init__(self) self.__containers = [] self.__notes = []
def __init__(self): Node.__init__(self) self.__obr = None self.__orc = None