Exemple #1
0
 /// <summary>
 /// Validates the subscriber and provider.
 /// </summary>
 /// <returns>Chewsi Provider ID</returns>
 public ValidateSubscriberAndProviderResponse ValidateSubscriberAndProvider(ProviderInformation provider, ProviderAddressInformation providerAddress,
                                                                            SubscriberInformation subscriber)
 {
     return(Post <ValidateSubscriberAndProviderResponse>(new ValidateSubscriberAndProviderRequest
     {
         TIN = provider.TIN,
         RenderingState = providerAddress.RenderingState,
         RenderingZip = providerAddress.RenderingZip,
         RenderingCity = providerAddress.RenderingCity,
         RenderingAddress1 = providerAddress.RenderingAddress1,
         RenderingAddress2 = providerAddress.RenderingAddress2,
         NPI = provider.NPI,
         SubscriberDOB = subscriber.SubscriberDateOfBirth?.ToString("d"),
         SubscriberFirstName = subscriber.SubscriberFirstName,
         SubscriberLastName = subscriber.SubscriberLastName,
         ChewsiID = subscriber.Id ?? ""
     },
                                                         ValidateSubscriberAndProviderUri));
 }
Exemple #2
0
        public void ProcessClaim(string id, ProviderInformation provider, SubscriberInformation subscriber, List <ClaimLine> procedures, DateTime pmsModifiedDate, double downPayment, int numberOfPayments, bool elegibleForPayments)
        {
            Post <string>(new ProcessClaimRequest
            {
                PMS_ID     = id,
                TIN        = provider.TIN,
                OfficeNbr  = provider.OfficeNbr,
                ClaimLines = procedures,
                NPI        = provider.NPI,
                // PIN = ,
                ProviderID          = provider.Id,
                SubscriberDOB       = subscriber.SubscriberDateOfBirth?.ToString("d"),
                SubscriberFirstName = subscriber.SubscriberFirstName,
                PatientFirstName    = subscriber.PatientFirstName,
                SubscriberID        = subscriber.Id,
                SubscriberLastName  = subscriber.SubscriberLastName,
                PatientLastName     = subscriber.PatientLastName,
                PMSModifiedDate     = pmsModifiedDate.FormatForApiRequest(),

                OrthoDownPayment      = elegibleForPayments ? downPayment.ToString("F") : null,
                OrthoNumberOfPayments = elegibleForPayments ? numberOfPayments : (int?)null
            },
                          ProcessClaimUri);
        }