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; } } }
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); } } }
private static void TransformBillingProviderHLoopTo837(XmlNode xmlNode, Claim claim, TransformBillingProviderHLoopTo837State state) { var billingProviderLoop= xmlNode.SelectSingleNode("Loop"); TransformBillingProviderLoopTo837(billingProviderLoop, claim,state); }