Пример #1
0
 def __init__(self, anX12Message):
     st_loops = anX12Message.descendant("LOOP", name="ST_LOOP")
     if len(st_loops) > 0:
         self.facades = []
         for loop in st_loops:
             self.facades.append(F271_4010(loop))
     else:
         self.header = first(self.loops(Header, anX12Message))
         self.source = first(self.loops(Source, anX12Message))
Пример #2
0
 def __init__(self, anX12Message):
     st_loops = anX12Message.descendant('LOOP', name='ST_LOOP')
     if len(st_loops) > 0:
         self.facades = []
         for loop in st_loops:
             self.facades.append(F271_4010(loop))
     else:
         self.header = first(self.loops(Header, anX12Message))
         self.source = first(self.loops(Source, anX12Message))
Пример #3
0
 def __init__(self, anX12Message):
     st_loops = anX12Message.descendant('LOOP', name='ST_LOOP')
     if len(st_loops) > 0:
         self.facades = []
         for loop in st_loops:
             self.facades.append(F271_5010(loop))
     else:
         self.header = first(self.loops(Header, anX12Message))
         self.source = first(self.loops(Source, anX12Message))
         self.receivers = self.loops(Receiver, anX12Message)
         self.subscribers = self.loops(Subscriber, anX12Message)
         self.dependents = self.loops(Dependent, anX12Message)
Пример #4
0
 def __init__(self, anX12Message):
     st_loops = anX12Message.descendant('LOOP', name='ST_LOOP')
     if len(st_loops) > 0:
         self.facades = []
         for loop in st_loops:
             self.facades.append(F271_5010(loop))
     else:
         self.header = first(self.loops(Header, anX12Message))
         self.source = first(self.loops(Source, anX12Message))
         self.receivers = self.loops(Receiver, anX12Message)
         self.subscribers = self.loops(Subscriber, anX12Message)
         self.dependents = self.loops(Dependent, anX12Message)
Пример #5
0
 def __init__(self, anX12Message):
     """Examine the message and extract the relevant Loops."""
     st_loops = anX12Message.descendant('LOOP', name='ST_LOOP')
     if st_loops:
         self.facades = [F835_5010(loop) for loop in st_loops]
     else:
         self.header = first(self.loops(Header, anX12Message))
         self.payer = first(self.loops(Payer, anX12Message))
         self.payee = first(self.loops(Payee, anX12Message))
         self.claims_overview = first(
             self.loops(ClaimsOverview, anX12Message))
         self.claims = self.loops(Claim, anX12Message)
         self.footer = first(self.loops(Footer, anX12Message))
Пример #6
0
 def __init__(self, anX12Message):
     """Examine the message and extract the relevant Loops."""
     st_loops = anX12Message.descendant('LOOP', name='ST_LOOP')
     if st_loops:
         self.facades = [F835_5010(loop) for loop in st_loops]
     else:
         self.header = first(self.loops(Header, anX12Message))
         self.payer = first(self.loops(Payer, anX12Message))
         self.payee = first(self.loops(Payee, anX12Message))
         self.claims_overview = first(
             self.loops(ClaimsOverview, anX12Message))
         self.claims = self.loops(Claim, anX12Message)
         self.footer = first(self.loops(Footer, anX12Message))
Пример #7
0
 def __init__(self, anX12Message, *args, **kwargs):
     super(Subscriber, self).__init__(anX12Message, *args, **kwargs)
     self.personal_information = first(self.loops(
         self._Information, anX12Message))
     self.eligibility_or_benefit_information = \
             self.loops(self._EligibilityOrBenefitInformation, anX12Message)
     self.dependents = self.loops(Dependent, anX12Message)
Пример #8
0
 def __init__(self, anX12Message, *args, **kwargs):
     super(Subscriber, self).__init__(anX12Message, *args, **kwargs)
     self.personal_information = first(self.loops(
         self._Information, anX12Message))
     self.eligibility_or_benefit_information = \
             self.loops(self._EligibilityOrBenefitInformation, anX12Message)
     self.dependents = self.loops(Dependent, anX12Message)
Пример #9
0
        def __init__(self, anX12Message, *args, **kwargs):
            super(Dependent._EligibilityOrBenefitInformation, self).__init__(
                    anX12Message, *args, **kwargs)

            self.additional_information = self.loops(
                    self._AdditionalInformation, anX12Message)
            self.benefit_related_entity = first(self.loops(
                    self._RelatedEntityInformation, anX12Message))
Пример #10
0
        def __init__(self, anX12Message, *args, **kwargs):
            super(Dependent._EligibilityOrBenefitInformation, self).__init__(
                    anX12Message, *args, **kwargs)

            self.additional_information = self.loops(
                    self._AdditionalInformation, anX12Message)
            self.benefit_related_entity = first(self.loops(
                    self._RelatedEntityInformation, anX12Message))
Пример #11
0
 def __init__(self, anX12Message, *args, **kwargs):
     super(Receiver, self).__init__(anX12Message, *args, **kwargs)
     self.receiver_information = first(self.loops(
         self._Information, anX12Message))
     self.subscribers = self.loops(Subscriber, anX12Message)
Пример #12
0
 def __init__(self, anX12Message, *args, **kwargs):
     super(Source, self).__init__(anX12Message, *args, **kwargs)
     self.source_information = first(self.loops(
         self._Information, anX12Message))
     self.receivers = self.loops(Receiver, anX12Message)
Пример #13
0
 def __init__(self, anX12Message, *args, **kwargs):
     super(Receiver, self).__init__(anX12Message, *args, **kwargs)
     self.receiver_information = first(self.loops(self._Information, anX12Message))
     self.subscribers = self.loops(Subscriber, anX12Message)
Пример #14
0
 def __init__(self, anX12Message, *args, **kwargs):
     super(Source, self).__init__(anX12Message, *args, **kwargs)
     self.source_information = first(self.loops(self._Information, anX12Message))
     self.receivers = self.loops(Receiver, anX12Message)