public void X835_GetStatus_Finalized() { //Finalized => Some or all ERA claims are attached and have financial payment entered with claim payment. //Other claims must be manually detached. _x835.ListClaimsPaid[0].IsAttachedToClaim = true; _x835.ListClaimsPaid[0].ClaimNum = _claimPrimaryJustinSmith.ClaimNum; _x835.ListClaimsPaid[1].IsAttachedToClaim = true; _x835.ListClaimsPaid[1].ClaimNum = _claimPrimaryJacobJones.ClaimNum; _x835.ListClaimsPaid[2].IsAttachedToClaim = true; _x835.ListClaimsPaid[2].ClaimNum = _claimPrimaryStephanieMayer.ClaimNum; //TryEnterPayment returns if claim is recieved or payment already entered (no supplemental). TryEnterPayment(_x835, _eraJustinSmithClaim, _claimPrimaryJustinSmith, true); TryEnterPayment(_x835, _eraJacobJonesClaim, _claimPrimaryJacobJones, true); TryEnterPayment(_x835, _eraStephanieMayerClaim, _claimPrimaryStephanieMayer, true); X835Status status; if (!EtransL.TryFinalizeBatchPayment(_x835, true, true)) { status = X835Status.None; } else { List <Claim> listClaims = new List <Claim>() { _claimPrimaryJustinSmith, _claimPrimaryJacobJones, _claimPrimaryStephanieMayer }; List <long> listPatNums = new List <long>() { _claimPrimaryJustinSmith.PatNum, _claimPrimaryJacobJones.PatNum, _claimPrimaryStephanieMayer.PatNum }; status = _x835.GetStatus(listClaims, ClaimProcs.Refresh(listPatNums), _listEtrans835Attaches); } Assert.AreEqual(X835Status.Finalized, status); }
public void X835_GetStatus_FinalizedSomeDetached() { //FinalizedSomeDetached => Some ERA claims has financial information entered and claim payment. //Others are manually detached. _x835.ListClaimsPaid[0].IsAttachedToClaim = true; _x835.ListClaimsPaid[0].ClaimNum = _eraJustinSmithClaim.ClaimNum; _x835.ListClaimsPaid[1].IsAttachedToClaim = true; _x835.ListClaimsPaid[1].ClaimNum = 0; _x835.ListClaimsPaid[2].IsAttachedToClaim = true; _x835.ListClaimsPaid[2].ClaimNum = 0; //Returns if claim is recieved or payment already entered (no supplemental). TryEnterPayment(_x835, _eraJustinSmithClaim, _claimPrimaryJustinSmith, true); EtransL.TryFinalizeBatchPayment(_x835, true, true); //jsalmon - No, you should not situationally return out of a unit test without an explanation. //if(!EtransL.TryFinalizeBatchPayment(_x835,true,true)) { // return; //} List <Claim> listClaims = new List <Claim>() { _claimPrimaryJustinSmith, new Claim(), new Claim() }; //Spoof manually detached claims. List <ClaimProc> listClaimProcs = ClaimProcs.Refresh(_claimPrimaryJustinSmith.PatNum); X835Status status = _x835.GetStatus(listClaims, listClaimProcs, _listEtrans835Attaches); Assert.AreEqual(X835Status.FinalizedSomeDetached, status); }
///<summary>Since ERAs are only used in the United States, we do not need to translate any text shown to the user.</summary> private void butBatch_Click(object sender, EventArgs e) { if (gridClaimDetails.ListGridRows.Count == 0) { return; } Cursor = Cursors.WaitCursor; if (!EtransL.TryFinalizeBatchPayment(_x835)) { Cursor = Cursors.Default; return; } Cursor = Cursors.Default; DialogResult = DialogResult.OK; Close(); }