예제 #1
0
 def setUp( self ):
     isaText= "ISA*03*gjohnson2 *01*0000000000*ZZ*0000000Eliginet*ZZ*BLUECROSS BLUES*071015*0903*U*00401*000242835*0*P*:"
     isaToken= SegmentToken( isaText.split("*") )
     ieaText= "IEA*1*000242835"
     ieaToken= SegmentToken( ieaText.split("*") )
     self.isa= Factory.makeSegment( isaToken )
     self.iea= Factory.makeSegment( ieaToken )
     self.gs_loop= Factory.makeLoop( "GS_LOOP" )
     self.isa_loop= Factory.makeLoop( "ISA_LOOP", self.isa, self.gs_loop, self.iea)
     self.id= self.isa_loop.id
예제 #2
0
파일: tests.py 프로젝트: zxexz/TigerShark
 def setUp(self):
     isaText = "ISA*03*gjohnson2 *01*0000000000*ZZ*0000000Eliginet*ZZ*BLUECROSS BLUES*071015*0903*U*00401*000242835*0*P*:"
     isaToken = SegmentToken(isaText.split("*"))
     ieaText = "IEA*1*000242835"
     ieaToken = SegmentToken(ieaText.split("*"))
     self.isa = Factory.makeSegment(isaToken)
     self.iea = Factory.makeSegment(ieaToken)
     self.gs_loop = Factory.makeLoop("GS_LOOP")
     self.isa_loop = Factory.makeLoop("ISA_LOOP", self.isa, self.gs_loop,
                                      self.iea)
     self.id = self.isa_loop.id
예제 #3
0
파일: tests.py 프로젝트: zxexz/TigerShark
    def setUp(self):
        self.sample_278 = "ISA*03*gjohnson2 *01*0000000000*ZZ*0000000Eliginet*ZZ*BLUECROSS BLUES*071015*0903*U*00401*000242835*0*P*:~GS*HI*0000000Eliginet*BLUECROSS BLUES*20071015*0903*241935*X*004010X094A1~ST*278*242835~BHT*0078*13*GXEDWLXQYKII*20071015*0903~HL*1**20*1~NM1*X3*2*BLUECROSS BLUESHIELD OF WESTERN NEW*****PI*55204~HL*2*1*21*1~NM1*1P*1*SHEIKH*ZIA****24*161590688~REF*ZH*000524454008~N3*4039 ROUTE 219*SUITE 102~N4*SALAMANCA*NY*14779~HL*3*2*22*1~HI*BF:706.1~NM1*IL*1*burton*amanda****MI*yjw88034076701~DMG*D8*19900815*U~HL*4*3*19*1~NM1*SJ*1*JAREMKO*WILLIAM****24*161482964~REF*ZH*000511127003~N3*2646 WEST STATE STREET*SUITE 405~N4*OLEAN*NY*147600000~HL*5*4*SS*0~TRN*1*1*9999955204~UM*SC*I*******Y~DTP*472*RD8*20071015-20080415~HSD*VS*30~SE*24*242835~GE*1*241935~IEA*1*000242835~"
        segments = [
            SegmentToken(s.split('*')) for s in self.sample_278.split("~")
        ]

        self.msg = Factory.makeMessage("278")
        self.loop_isa = Factory.makeLoop("LOOP_ISA")
        self.loop_isa.addChild(Factory.makeSegment(segments[0]))
        self.loop_gs = Factory.makeLoop("LOOP_GS")
        self.loop_gs.addChild(Factory.makeSegment(segments[1]))
        self.loop_st = Factory.makeLoop("LOOP_ST")
        self.loop_st.addChild(Factory.makeSegment(segments[2]))
        self.loop_st.addChild(Factory.makeSegment(segments[3]))
        self.loop_st.addChild(Factory.makeSegment(segments[-4]))
        self.loop_gs.addChild(self.loop_st)
        self.loop_gs.addChild(Factory.makeSegment(segments[-3]))
        self.loop_isa.addChild(self.loop_gs)
        self.loop_isa.addChild(Factory.makeSegment(segments[-2]))
        self.msg.addChild(self.loop_isa)
예제 #4
0
파일: tests.py 프로젝트: zxexz/TigerShark
 def setUp(self):
     segText = "ISA*03*gjohnson2 *01*0000000000*ZZ*0000000Eliginet*ZZ*BLUECROSS BLUES*071015*0903*U*00401*000242835*0*P*:"
     segToken = SegmentToken(segText.split("*"))
     self.isa = Factory.makeSegment(segToken)
     self.isa.save()
     self.id = self.isa.id
예제 #5
0
    def setUp( self ):
        self.sample_278="ISA*03*gjohnson2 *01*0000000000*ZZ*0000000Eliginet*ZZ*BLUECROSS BLUES*071015*0903*U*00401*000242835*0*P*:~GS*HI*0000000Eliginet*BLUECROSS BLUES*20071015*0903*241935*X*004010X094A1~ST*278*242835~BHT*0078*13*GXEDWLXQYKII*20071015*0903~HL*1**20*1~NM1*X3*2*BLUECROSS BLUESHIELD OF WESTERN NEW*****PI*55204~HL*2*1*21*1~NM1*1P*1*SHEIKH*ZIA****24*161590688~REF*ZH*000524454008~N3*4039 ROUTE 219*SUITE 102~N4*SALAMANCA*NY*14779~HL*3*2*22*1~HI*BF:706.1~NM1*IL*1*burton*amanda****MI*yjw88034076701~DMG*D8*19900815*U~HL*4*3*19*1~NM1*SJ*1*JAREMKO*WILLIAM****24*161482964~REF*ZH*000511127003~N3*2646 WEST STATE STREET*SUITE 405~N4*OLEAN*NY*147600000~HL*5*4*SS*0~TRN*1*1*9999955204~UM*SC*I*******Y~DTP*472*RD8*20071015-20080415~HSD*VS*30~SE*24*242835~GE*1*241935~IEA*1*000242835~"
        segments= [ SegmentToken(s.split('*')) for s in self.sample_278.split("~") ]

        self.msg= Factory.makeMessage( "278" )
        self.loop_isa= Factory.makeLoop( "LOOP_ISA" )
        self.loop_isa.addChild( Factory.makeSegment( segments[0] ) )
        self.loop_gs= Factory.makeLoop( "LOOP_GS" )
        self.loop_gs.addChild( Factory.makeSegment( segments[1] ) )
        self.loop_st= Factory.makeLoop( "LOOP_ST" )
        self.loop_st.addChild( Factory.makeSegment( segments[2] ) )
        self.loop_st.addChild( Factory.makeSegment( segments[3] ) )
        self.loop_st.addChild( Factory.makeSegment( segments[-4] ) )
        self.loop_gs.addChild( self.loop_st )
        self.loop_gs.addChild( Factory.makeSegment( segments[-3] ) )
        self.loop_isa.addChild( self.loop_gs )
        self.loop_isa.addChild( Factory.makeSegment( segments[-2] ) )
        self.msg.addChild( self.loop_isa )
예제 #6
0
 def setUp( self ):
     segText= "ISA*03*gjohnson2 *01*0000000000*ZZ*0000000Eliginet*ZZ*BLUECROSS BLUES*071015*0903*U*00401*000242835*0*P*:"
     segToken= SegmentToken( segText.split("*") )
     self.isa= Factory.makeSegment( segToken )
     self.isa.save()
     self.id= self.isa.id