public EDIOutput271 Get271(EDIInput271 ediInputItem)
        {
            EDIUtils     ediUtils        = new EDIUtils();
            bool         Send270UsingDEA = ediInputItem.Send270UsingDEA;
            EDIOutput271 ediOutputItem   = ediUtils.Read271(ediInputItem.ediItem, ref Send270UsingDEA);

            return(ediOutputItem);
        }
        public EDIOutput271 Send270AndGet271(EDIInput ediInputItem)
        {
            EDIUtils ediUtils = new EDIUtils();

            string strControler = "";

            string edi270 = ediUtils.Write270(ediInputItem.SurescriptsPassword,

                                              ediInputItem.SurescriptsParticipantId,
                                              ediInputItem.Staging,

                                              ediInputItem.PatientProviderLastName,
                                              ediInputItem.PatientProviderFirstName,
                                              ediInputItem.PatientProviderMiddleName,
                                              ediInputItem.PatientProviderSuffix,
                                              ediInputItem.PatientProviderNPI,
                                              ediInputItem.PatientProviderDEA,
                                              ediInputItem.PatientProviderAddressLine1,
                                              ediInputItem.PatientProviderAddressLine2,
                                              ediInputItem.PatientProviderAddressCity,
                                              ediInputItem.PatientProviderAddressState,
                                              ediInputItem.PatientProviderAddressZip,

                                              ediInputItem.PatientID,
                                              ediInputItem.PatientLastName,
                                              ediInputItem.PatientFirstName,
                                              ediInputItem.PatientMiddleName,
                                              ediInputItem.PatientAddressLine1,
                                              ediInputItem.PatientAddressLine2,
                                              ediInputItem.PatientAddressCity,
                                              ediInputItem.PatientAddressState,
                                              ediInputItem.PatientAddressZip,
                                              ediInputItem.PatientDOB,
                                              ediInputItem.PatientGender, out strControler);

            var edi271 = ediUtils.Post270AndGet271(edi270, ediInputItem.RxhubURL, ediInputItem.RxHubAuthorization);

            if (edi271.StartsWith("$Exception$"))
            {
                EDIOutput271 ediOutputItem = new EDIOutput271();
                ediOutputItem.ShowMessage     = edi271;
                ediOutputItem.Send270UsingDEA = ediInputItem.Send270UsingDEA;
                return(ediOutputItem);
            }
            else
            {
                bool         Send270UsingDEA = ediInputItem.Send270UsingDEA;
                EDIOutput271 ediOutputItem   = ediUtils.Read271(edi271, ref Send270UsingDEA);
                return(ediOutputItem);
            }
        }
        public EDIOutput270 Get270(EDIInput270 ediInputItem)
        {
            EDIUtils     ediUtils      = new EDIUtils();
            EDIOutput270 ediOutputItem = new EDIOutput270();
            string       strControler  = "";

            ediOutputItem.ediItem = ediUtils.Write270(ediInputItem.SurescriptsPassword,
                                                      ediInputItem.SurescriptsParticipantId,
                                                      ediInputItem.Staging,

                                                      ediInputItem.PatientProviderLastName,
                                                      ediInputItem.PatientProviderFirstName,
                                                      ediInputItem.PatientProviderMiddleName,
                                                      ediInputItem.PatientProviderSuffix,
                                                      ediInputItem.PatientProviderNPI,
                                                      ediInputItem.PatientProviderDEA,
                                                      ediInputItem.PatientProviderAddressLine1,
                                                      ediInputItem.PatientProviderAddressLine2,
                                                      ediInputItem.PatientProviderAddressCity,
                                                      ediInputItem.PatientProviderAddressState,
                                                      ediInputItem.PatientProviderAddressZip,

                                                      ediInputItem.PatientID,
                                                      ediInputItem.PatientLastName,
                                                      ediInputItem.PatientFirstName,
                                                      ediInputItem.PatientMiddleName,
                                                      ediInputItem.PatientAddressLine1,
                                                      ediInputItem.PatientAddressLine2,
                                                      ediInputItem.PatientAddressCity,
                                                      ediInputItem.PatientAddressState,
                                                      ediInputItem.PatientAddressZip,
                                                      ediInputItem.PatientDOB,
                                                      ediInputItem.PatientGender, out strControler);

            ediOutputItem.strControlNo = strControler;

            return(ediOutputItem);
        }