Exemplo n.º 1
0
		private void butClaimDetails_Click(object sender,EventArgs e) {
			if(gridClaimDetails.SelectedIndices.Length==0) {
				MsgBox.Show(this,"Choose a claim paid before viewing details.");
				return;
			}
			Hx835_Claim claimPaid=(Hx835_Claim)gridClaimDetails.Rows[gridClaimDetails.SelectedIndices[0]].Tag;
			FormEtrans835ClaimEdit formE=new FormEtrans835ClaimEdit(claimPaid);
			formE.ShowDialog();
		}
Exemplo n.º 2
0
		private void butViewEobDetails_Click(object sender,EventArgs e) {
			FormEtrans835ClaimEdit FormE=new FormEtrans835ClaimEdit(_claimPaid);
			FormE.ShowDialog();
		}
Exemplo n.º 3
0
		private void gridClaimDetails_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			Hx835_Claim claimPaid=(Hx835_Claim)gridClaimDetails.Rows[e.Row].Tag;
			Claim claim=claimPaid.GetClaimFromDb();
			if(claimPaid.IsSplitClaim && (claim==null || claim.ClaimStatus!="R")) {
				if(MessageBox.Show(Lan.g(this,"The insurance carrier has split the claim")+". "
						+Lan.g(this,"You must manually locate and split the claim before entering the payment information")+". "
						+Lan.g(this,"Continue entering payment")+"?","",MessageBoxButtons.OKCancel)!=DialogResult.OK) {
					return;
				}
			}
			bool isReadOnly=true;
			if(claim==null) {//Original claim not found.
				MessageBox.Show(Lan.g(this,"Original claim not found")+". "+Lan.g(this,"The claim details from the EOB will be displayed instead")+". "
					+Lan.g(this,"Locate the Claim Identifier on the EOB and manually edit the Claim Identifier of the original claim to match, then try again")+".");
			}
			else if(claim.ClaimStatus=="R") {//Claim found and is already received.
				//If the claim is already received, then we do not allow the user to enter payments.
				//The user can edit the claim to change the status from received if they wish to enter the payments again.
				Patient pat=Patients.GetPat(claim.PatNum);
				Family fam=Patients.GetFamily(claim.PatNum);
				FormClaimEdit formCE=new FormClaimEdit(claim,pat,fam);
				formCE.ShowDialog();
				isReadOnly=false;
			}
			else if(Security.IsAuthorized(Permissions.InsPayCreate)) {//Claim found and is not received.  Date not checked here, but it will be checked when actually creating the check.
				EnterPayment(claimPaid,claim,false);
				isReadOnly=false;
			}
			if(isReadOnly) {
				FormEtrans835ClaimEdit formC=new FormEtrans835ClaimEdit(claimPaid);
				formC.ShowDialog(this);
			}
			else {
				claim=claimPaid.GetClaimFromDb();//Refresh the claim, since the claim status might have changed above.
				if(claim.ClaimStatus=="R") {
					gridClaimDetails.Rows[e.Row].Cells[0].Text="X";//Indicate that payment is Received.
				}
				else {
					gridClaimDetails.Rows[e.Row].Cells[0].Text="";//Indicate that payment is not Received.
				}
			}
		}