Changeset 460 for cprs/branches/foia-cprs/CPRS-Chart/uSignItems.pas
- Timestamp:
- Jul 6, 2008, 8:20:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/foia-cprs/CPRS-Chart/uSignItems.pas
r459 r460 1 unit uSignItems;1 unit uSignItems; 2 2 3 3 {.$define debug} … … 13 13 siEnvironmentalContaminants, siMST, siHeadNeckCancer, siCombatVeteran); 14 14 15 TSigItemTagInfo = record15 TSigItemTagInfo = record 16 16 SigType: TSigItemType; 17 17 Index: integer; … … 42 42 function FindCBValues(ATag: integer): TORCheckBox; 43 43 function GetTempCkBxState(Index: integer; CBValue:TSigItemType): string; 44 44 45 protected 45 46 procedure Notification(AComponent: TComponent; Operation: TOperation); override; … … 61 62 procedure CopyCB(FromIndex, ToIndex: integer); //BAPHII 1.3.1 62 63 procedure SetSigItems(Sender: TObject; sourceOrderID: string); //BAPHII 1.3.1 64 //procedure SetSigItems(Sender: TObject; itemsList: TStringList; sourceOrderID: string); //BAPHII 1.3.1 63 65 function ItemToTag(Info: TSigItemTagInfo): integer; //CQ5074 64 66 function TagToItem(ATag: integer): TSigItemTagInfo; //CQ5074 … … 70 72 const 71 73 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 74 76 75 77 TX_Order_Error = 'All Service Connection and/or Rated Disabilities questions must be answered, '+#13+ … … 128 130 BaseFlags: string; 129 131 tempCkBx: TORCheckBox; 130 thisOrderID: string; //BAPHII 1.3.2132 thisOrderID: string; 131 133 thisChangeItem: TChangeItem; 132 134 133 135 134 136 function TSigItems.GetSigItems : TORStringList; 135 {136 BAPHII 1.3.1137 }138 137 begin 139 138 Result := FItems; … … 141 140 142 141 function TSigItems.FindCB(ATag: integer): TORCheckBox; 143 {144 BAPHII 1.3.1145 }146 142 var 147 143 i: integer; … … 161 157 162 158 procedure TSigItems.CopyCB(FromIndex, ToIndex: integer); 163 {164 BAPHII 1.3.1165 }166 159 var 167 160 si: TSigItemType; … … 232 225 var 233 226 idx: integer; 234 i,j: integer;235 227 begin 236 228 if ItemType = CH_ORD then 237 229 begin 238 239 230 idx := FItems.IndexOfPiece(ID); 240 241 231 if idx < 0 then 242 232 idx := FItems.Add(ID); 243 244 // when an order has not been sent to the server and is deleted245 // or discontinued the treatment factors remain from the original order,246 // this will clear the treatment factors, which will be set based on HIMS247 if BILLING_AWARE then248 begin249 if UBAGlobals.BADeltedOrders.Count > 0 then250 begin251 for i := 0 to FItems.Count-1 do252 begin253 for j := 0 to UBAGlobals.BADeltedOrders.Count-1 do254 begin255 if (Piece(fItems.Strings[i],U,1) = UBAGlobals.BADeltedOrders.Strings[j] ) then256 begin257 fItems.Strings[i] := UBAGlobals.BADeltedOrders.Strings[j];258 UBAGlobals.BADeltedOrders.Clear;259 end;260 end;261 end;262 end;263 end;264 233 FItems.SetStrPiece(idx, 2, IntToStr(Index)); 265 234 FItems.SetStrPiece(idx,5,INIT_STR); // hds4807 value was being reatained when same order selected in FReview. … … 424 393 if idx > 0 then 425 394 begin 426 427 rpcGetSC4Orders 395 if BILLING_AWARE then 396 rpcGetSC4Orders // get SC/EIC information for all CIDC TYPE orders 428 397 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 432 400 begin 433 401 s := RPCBrokerV.Results[i]; … … 479 447 480 448 FItems.SetStrPiece(idx, 4, Flags); 481 // new code garyif deleted order and ba on then449 // new code if deleted order and ba on then 482 450 // reset appropriate tf flags to "?". 483 451 … … 524 492 for si := low(TSigItemType) to high(TSigItemType) do 525 493 StsUsed[si] := FALSE; 526 494 // loop thru orders selected to be signed fReview/fOrdersSign. 527 495 for i := 0 to FItems.Count-1 do 528 496 begin … … 531 499 if (piece(s,u,2) <> '-1') and (piece(s,u,3) = '1') then 532 500 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; 534 505 535 506 for si := low(TSigItemType) to high(TSigItemType) do … … 646 617 begin 647 618 Flags := piece(s,u,4); 648 619 //loop thru treatment factors 649 620 for sx := low(TSigItemType) to high(TSigItemType) do 650 621 begin
Note:
See TracChangeset
for help on using the changeset viewer.