Exemplo n.º 1
0
        private void gridProcedureAdjustments_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            Hx835_Adj       adj    = (Hx835_Adj)gridProcedureAdjustments.Rows[e.Row].Tag;
            MsgBoxCopyPaste msgbox = new MsgBoxCopyPaste(adj.AdjCode + " " + adj.AdjustRemarks + "\r\r" + adj.ReasonDescript + "\r\n" + adj.AdjAmt.ToString("f2"));

            msgbox.Show(this);            //This window is just used to display information.
        }
Exemplo n.º 2
0
        private void FillProcedureAdjustments()
        {
            if (_proc.ListProcAdjustments.Count == 0)
            {
                gridProcedureAdjustments.Title = "Procedure Adjustments (None Reported)";
            }
            else
            {
                gridProcedureAdjustments.Title = "Procedure Adjustments";
            }
            gridProcedureAdjustments.BeginUpdate();
            gridProcedureAdjustments.Columns.Clear();
            const int colWidthDescription = 200;
            const int colWidthAdjAmt      = 80;
            int       colWidthVariable    = gridProcedureAdjustments.Width - 10 - colWidthDescription - colWidthAdjAmt;

            gridProcedureAdjustments.Columns.Add(new UI.ODGridColumn("Description", colWidthDescription, HorizontalAlignment.Left));
            gridProcedureAdjustments.Columns.Add(new UI.ODGridColumn("Reason", colWidthVariable, HorizontalAlignment.Left));
            gridProcedureAdjustments.Columns.Add(new UI.ODGridColumn("AdjAmt", colWidthAdjAmt, HorizontalAlignment.Right));
            gridProcedureAdjustments.Rows.Clear();
            _patRespSum = 0;
            _contractualObligationSum   = 0;
            _payorInitiatedReductionSum = 0;
            _otherAdjustmentSum         = 0;
            for (int i = 0; i < _proc.ListProcAdjustments.Count; i++)
            {
                Hx835_Adj adj = _proc.ListProcAdjustments[i];
                ODGridRow row = new ODGridRow();
                row.Tag = adj;
                row.Cells.Add(new ODGridCell(adj.AdjustRemarks));         //Remarks
                row.Cells.Add(new ODGridCell(adj.ReasonDescript));        //Reason
                row.Cells.Add(new ODGridCell(adj.AdjAmt.ToString("f2"))); //AdjAmt
                if (adj.AdjCode == "PR")                                  //Patient Responsibility
                {
                    _patRespSum += adj.AdjAmt;
                }
                else if (adj.AdjCode == "CO")               //Contractual Obligations
                {
                    _contractualObligationSum += adj.AdjAmt;
                }
                else if (adj.AdjCode == "PI")               //Payor Initiated Reductions
                {
                    _payorInitiatedReductionSum += adj.AdjAmt;
                }
                else                  //Other Adjustments
                {
                    _otherAdjustmentSum += adj.AdjAmt;
                }
                gridProcedureAdjustments.Rows.Add(row);
            }
            gridProcedureAdjustments.EndUpdate();
            textPatRespSum.Text          = _patRespSum.ToString("f2");
            textContractualObligSum.Text = _contractualObligationSum.ToString("f2");
            textPayorReductionSum.Text   = _payorInitiatedReductionSum.ToString("f2");
            textOtherAdjustmentSum.Text  = _otherAdjustmentSum.ToString("f2");
        }
Exemplo n.º 3
0
        private void FillClaimAdjustments()
        {
            if (_claimPaid.ListClaimAdjustments.Count == 0)
            {
                gridClaimAdjustments.Title = "EOB Claim Adjustments (None Reported)";
            }
            else
            {
                gridClaimAdjustments.Title = "EOB Claim Adjustments";
            }
            gridClaimAdjustments.BeginUpdate();
            gridClaimAdjustments.ListGridColumns.Clear();
            const int colWidthReason   = 507;
            const int colWidthAdjAmt   = 62;
            int       colWidthVariable = gridClaimAdjustments.Width - 10 - colWidthReason - colWidthAdjAmt;

            //The size and order of the columns here mimics the EOB Claim Adjustments grid in FormEtrans835ClaimPay as close as possible.
            gridClaimAdjustments.ListGridColumns.Add(new UI.GridColumn("Reason", colWidthReason, HorizontalAlignment.Left));
            gridClaimAdjustments.ListGridColumns.Add(new UI.GridColumn("AdjAmt", colWidthAdjAmt, HorizontalAlignment.Right));
            gridClaimAdjustments.ListGridColumns.Add(new UI.GridColumn("Remarks", colWidthVariable, HorizontalAlignment.Left));
            gridClaimAdjustments.ListGridRows.Clear();
            _claimAdjAmtSum = 0;
            for (int i = 0; i < _claimPaid.ListClaimAdjustments.Count; i++)
            {
                Hx835_Adj adj = _claimPaid.ListClaimAdjustments[i];
                GridRow   row = new GridRow();
                row.Tag = adj;
                row.Cells.Add(new GridCell(adj.ReasonDescript));               //Reason
                row.Cells.Add(new GridCell(adj.AdjAmt.ToString("f2")));        //AdjAmt
                row.Cells.Add(new GridCell(adj.AdjustRemarks));                //Remarks
                _claimAdjAmtSum += _claimPaid.ListClaimAdjustments[i].AdjAmt;
                gridClaimAdjustments.ListGridRows.Add(row);
            }
            gridClaimAdjustments.EndUpdate();
            textClaimAdjAmtSum.Text = _claimAdjAmtSum.ToString("f2");
        }