예제 #1
0
 private static void TransformBillingProviderLoopTo837(XmlNode billingProviderLoop, Claim claim, TransformBillingProviderHLoopTo837State state)
 {
     var nameTypeNode = billingProviderLoop.SelectSingleNode("NM1/NM101");
     if (nameTypeNode != null)
     {
         switch (nameTypeNode.InnerText)
         {
             case "87":if (state.FirstType87 == null) state.FirstType87 = billingProviderLoop;break;
             case "85": if (state.FirstType85 == null) state.FirstType85 = billingProviderLoop; break;
         }
     }
 }
예제 #2
0
 private static void TransformBillingProviderHLoopTo837(XmlNodeList xmlNodeList, Claim claim)
 {
     TransformBillingProviderHLoopTo837State state = new TransformBillingProviderHLoopTo837State();
     foreach (XmlNode item in xmlNodeList)
     {
         TransformBillingProviderHLoopTo837(item, claim, state);
     }
     if (claim.PayToProvider != null )
     {
         if (state.FirstType87 != null)
         {
             TransformPayToProvider(state.FirstType87, claim);
         }
         else if (state.FirstType85 != null)
         {
             TransformPayToProvider(state.FirstType85, claim);
         }
     }
 }
예제 #3
0
 private static void TransformBillingProviderHLoopTo837(XmlNode xmlNode, Claim claim, TransformBillingProviderHLoopTo837State state)
 {
     var billingProviderLoop= xmlNode.SelectSingleNode("Loop");
     TransformBillingProviderLoopTo837(billingProviderLoop, claim,state);
 }