Ignore:
Timestamp:
Jul 6, 2008, 8:20:14 PM (16 years ago)
Author:
Kevin Toppenberg
Message:

Uploading from OR_30_258

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/foia-cprs/CPRS-Chart/uSignItems.pas

    r459 r460  
    1 unit uSignItems;
     1      unit uSignItems;
    22
    33{.$define debug}
     
    1313                  siEnvironmentalContaminants, siMST, siHeadNeckCancer, siCombatVeteran);
    1414
    15   TSigItemTagInfo = record
     15  TSigItemTagInfo =  record
    1616    SigType: TSigItemType;
    1717    Index: integer;
     
    4242    function  FindCBValues(ATag: integer): TORCheckBox;
    4343    function  GetTempCkBxState(Index: integer; CBValue:TSigItemType): string;
     44   
    4445  protected
    4546    procedure Notification(AComponent: TComponent; Operation: TOperation); override;
     
    6162    procedure CopyCB(FromIndex, ToIndex: integer); //BAPHII 1.3.1
    6263    procedure SetSigItems(Sender: TObject; sourceOrderID: string); //BAPHII 1.3.1
     64    //procedure SetSigItems(Sender: TObject; itemsList: TStringList; sourceOrderID: string); //BAPHII 1.3.1
    6365    function ItemToTag(Info: TSigItemTagInfo): integer; //CQ5074
    6466    function TagToItem(ATag: integer): TSigItemTagInfo; //CQ5074
     
    7072const
    7173
    72   TC_Order_Error = 'All Service Connection and/or Rated Disabilities questions must be answered, '+#13+
    73                    'and at least one diagnosis selected for each order that requires a diagnosis.';
     74  TC_Order_Error = 'All Service Connection and/or Rated Disabilities questions must be answered.';
     75
    7476
    7577  TX_Order_Error = 'All Service Connection and/or Rated Disabilities questions must be answered, '+#13+
     
    128130  BaseFlags: string;
    129131  tempCkBx: TORCheckBox;
    130   thisOrderID: string; //BAPHII 1.3.2
     132  thisOrderID: string;
    131133  thisChangeItem: TChangeItem;
    132134
    133135
    134136function TSigItems.GetSigItems : TORStringList;
    135 {
    136  BAPHII 1.3.1
    137 }
    138137begin
    139138  Result := FItems;
     
    141140
    142141function TSigItems.FindCB(ATag: integer): TORCheckBox;
    143 {
    144  BAPHII 1.3.1
    145 }
    146142var
    147143  i: integer;
     
    161157
    162158procedure TSigItems.CopyCB(FromIndex, ToIndex: integer);
    163 {
    164  BAPHII 1.3.1
    165 }
    166159var
    167160  si: TSigItemType;
     
    232225var
    233226  idx: integer;
    234   i,j: integer;
    235227begin
    236228  if ItemType = CH_ORD then
    237229  begin
    238 
    239230    idx := FItems.IndexOfPiece(ID);
    240 
    241231    if idx < 0 then
    242232      idx := FItems.Add(ID);
    243 
    244       // when an order has not been sent to the server and is deleted
    245       // or discontinued the treatment factors remain from the original order,
    246       // this will clear the treatment factors, which will be set based on HIMS
    247       if BILLING_AWARE then
    248       begin
    249          if UBAGlobals.BADeltedOrders.Count > 0 then
    250          begin
    251             for i := 0 to FItems.Count-1 do
    252             begin
    253                for j := 0 to UBAGlobals.BADeltedOrders.Count-1 do
    254                begin
    255                   if (Piece(fItems.Strings[i],U,1) = UBAGlobals.BADeltedOrders.Strings[j] ) then
    256                   begin
    257                      fItems.Strings[i] := UBAGlobals.BADeltedOrders.Strings[j];
    258                      UBAGlobals.BADeltedOrders.Clear;
    259                   end;
    260                end;
    261             end;
    262          end;
    263      end;
    264233    FItems.SetStrPiece(idx, 2, IntToStr(Index));
    265234    FItems.SetStrPiece(idx,5,INIT_STR);    // hds4807 value was being reatained when same order selected in FReview.
     
    424393       if idx > 0 then
    425394          begin
    426           if  BILLING_AWARE then
    427               rpcGetSC4Orders
     395         if  BILLING_AWARE then
     396              rpcGetSC4Orders // get SC/EIC information for all CIDC TYPE orders
    428397          else
    429              GetCoPay4Orders;
    430 
    431             for i := 0 to RPCBrokerV.Results.Count-1 do
     398             GetCoPay4Orders;   // enforces existing NON CIDC CO-PAY rules
     399             for i := 0 to RPCBrokerV.Results.Count-1 do
    432400               begin
    433401                  s := RPCBrokerV.Results[i];
     
    479447
    480448                     FItems.SetStrPiece(idx, 4, Flags);
    481                       // new code  gary  if deleted order and ba on then
     449                      // new code  if deleted order and ba on then
    482450                      // reset appropriate tf flags to "?".
    483451
     
    524492    for si := low(TSigItemType) to high(TSigItemType) do
    525493      StsUsed[si] := FALSE;
    526 
     494    //  loop thru orders selected to be signed fReview/fOrdersSign.
    527495    for i := 0 to FItems.Count-1 do
    528496       begin
     
    531499         if (piece(s,u,2) <> '-1') and (piece(s,u,3) = '1') then
    532500            begin
    533             s := piece(s, u, 4);
     501             s := piece(s, u, 4); // SC/EI
     502             // code added 01/17/2006 - check dc'd nurse orders, originals where requiring CIDC if assigned to patient.
     503             if (BILLING_AWARE) and (not UBACore.IsOrderBillable(Piece(s,U,1))) then
     504               s :=  NA_FLAGS;
    534505
    535506            for si := low(TSigItemType) to high(TSigItemType) do
     
    646617                        begin
    647618                        Flags := piece(s,u,4);
    648 
     619                                                 //loop thru treatment factors
    649620                        for sx := low(TSigItemType) to high(TSigItemType) do
    650621                           begin
Note: See TracChangeset for help on using the changeset viewer.