Changeset 460 for cprs/branches/foia-cprs/CPRS-Chart/Orders/fOrdersSign.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/Orders/fOrdersSign.pas
r459 r460 114 114 uses 115 115 Hash, rCore, rOrders, uConst, fOrdersPrint, uCore, uOrders, uSignItems, fOrders, 116 fPCELex, rPCE, fODConsult, fBALocalDiagnoses ;116 fPCELex, rPCE, fODConsult, fBALocalDiagnoses, fClinicWardMeds, fFrame; 117 117 118 118 const … … 208 208 cProvDUZ: Int64; 209 209 OrderText: string; 210 PrintLoc: Integer; 210 211 // tempOrderID: string; 211 212 … … 251 252 Result := False; 252 253 DigSigErr := True; 253 DigStoreErr := False; 254 Obj := Nil; 254 PrintLoc := 0; 255 255 if SelectedList.Count = 0 then Exit; 256 256 if BILLING_AWARE then … … 418 418 if SignList.Count > 0 then 419 419 begin 420 421 //hds7591 Clinic/Ward movement. Patient Admission IMO 422 if not frmFrame.TimedOut then 423 begin 424 if IsValidIMOLoc(uCore.TempEncounterLoc,Patient.DFN) then 425 frmClinicWardMeds.ClinicOrWardLocation(SignList, Encounter.Location,uCore.Encounter.LocationName, PrintLoc) 426 else 427 if (IsValidIMOLoc(Encounter.Location,Patient.DFN)) and ((frmClinicWardMeds.rpcIsPatientOnWard(patient.DFN)) and (Patient.Inpatient = false)) then 428 frmClinicWardMeds.ClinicOrWardLocation(SignList, Encounter.Location,Encounter.LocationName, PrintLoc); 429 end; 430 uCore.TempEncounterLoc := 0; 431 uCore.TempEncounterLocName := ''; 432 //hds7591 Clinic/Ward movement Patient Admission IMO 433 420 434 SigItems.SaveSettings; // Save CoPay FIRST! 421 435 SendOrders(SignList, frmSignOrders.ESCode); 422 end; 423 with SignList do if Count > 0 then for i := 0 to Count - 1 do 436 437 end; 438 439 with SignList do if Count > 0 then for i := 0 to Count - 1 do 424 440 begin 425 441 if Pos('E', Piece(SignList[i], U, 2)) > 0 then … … 443 459 if theSts = 10 then SignList.Delete(cnt); //signed delayed order should not be printed. 444 460 end; 445 PrintOrdersOnSignRelease(SignList, NO_PROVIDER );461 PrintOrdersOnSignRelease(SignList, NO_PROVIDER, PrintLoc); 446 462 finally 447 463 SignList.Free; … … 505 521 506 522 procedure TfrmSignOrders.cmdOKClick(Sender: TObject); 507 {Begin BillingAware}508 var509 BABillingRecs: TStringList;510 {End BillingAware}511 523 const 512 524 TX_NO_CODE = 'An electronic signature code must be entered to sign orders.'; … … 519 531 begin 520 532 inherited; 521 {Begin BillingAware} 522 if BILLING_AWARE then 523 begin 524 BABillingRecs := TStringList.Create; 525 BABillingRecs.Clear; 526 end; 527 {End BillingAware} 528 533 529 534 if txtESCode.Visible and (Length(txtESCode.Text) = 0) then 530 535 begin … … 545 550 begin 546 551 if SigItems.OK2SaveSettings then 547 if Not BADxEntered then // if Dx have been entered and OK is pressed 552 553 if Not UBACore.BADxEntered then // if Dx have been entered and OK is pressed 548 554 begin // billing data will be saved. otherwise error message! 549 555 InfoBox(TX_NO_DX, 'Sign Orders', MB_OK); … … 781 787 begin 782 788 //Billing Awareness 'flyover' hint includes Dx code(s) when Dx code(s) have been assigned to an order 783 thisRec := TBADxRecord.Create;784 789 thisOrderID := TChangeItem(fOrdersSign.frmSignOrders.clstOrders.Items.Objects[Itm]).ID; 785 790 … … 909 914 {Begin BillingAware} 910 915 911 numSelected := 0;912 916 match := false; 913 917 allBlank := false; … … 1264 1268 j: integer; //CQ5054 1265 1269 begin 1266 //if BILLING_AWARE then 1267 //begin 1270 1268 1271 if FOSTFHintWndActive then 1269 1272 begin … … 1290 1293 //end CQ5054 1291 1294 end; 1292 1293 //end //if BILLING_AWARE1294 1295 end; 1295 1296 … … 1315 1316 end; 1316 1317 end; 1317 1318 x := 0;1319 y := 0;1320 1318 1321 1319 try … … 1398 1396 begin 1399 1397 try 1400 if BILLING_AWARE then 1401 begin 1402 if FOSTFhintWndActive then 1403 begin 1404 FOSTFhintWindow.ReleaseHandle; 1405 FOSTFHintWndActive := False; 1406 Application.ProcessMessages; 1407 end; 1408 end; 1398 if FOSTFhintWndActive then 1399 begin 1400 FOSTFhintWindow.ReleaseHandle; 1401 FOSTFHintWndActive := False; 1402 Application.ProcessMessages; 1403 end; 1409 1404 except 1410 1405 on E: Exception do … … 1518 1513 procedure TfrmSignOrders.FormatListForScreenReader; 1519 1514 var 1520 ListStateOn : boolean; 1515 ListStateOn : longbool; 1516 Success: longbool; 1521 1517 begin 1522 1518 //Determine if a screen reader is currently being used. 1523 S ystemParametersInfo(SPI_GETSCREENREADER, 0, @ListStateOn,0);1524 if ListStateOn then1525 SetItemTextToState 1519 Success := SystemParametersInfo(SPI_GETSCREENREADER, 0, @ListStateOn,0); 1520 if Success and ListStateOn then 1521 SetItemTextToState; 1526 1522 end; 1527 1523
Note:
See TracChangeset
for help on using the changeset viewer.