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/Orders/fOrdersSign.pas

    r459 r460  
    114114uses
    115115  Hash, rCore, rOrders, uConst, fOrdersPrint, uCore, uOrders, uSignItems, fOrders,
    116   fPCELex, rPCE, fODConsult, fBALocalDiagnoses;
     116  fPCELex, rPCE, fODConsult, fBALocalDiagnoses, fClinicWardMeds, fFrame;
    117117
    118118const
     
    208208  cProvDUZ: Int64;
    209209  OrderText: string;
     210  PrintLoc: Integer;
    210211 // tempOrderID: string;
    211212
     
    251252  Result := False;
    252253  DigSigErr := True;
    253   DigStoreErr := False;
    254   Obj := Nil;
     254  PrintLoc := 0;
    255255  if SelectedList.Count = 0 then Exit;
    256256  if BILLING_AWARE then
     
    418418          if SignList.Count > 0 then
    419419          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
    420434            SigItems.SaveSettings; // Save CoPay FIRST!
    421435            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
    424440            begin
    425441              if Pos('E', Piece(SignList[i], U, 2)) > 0 then
     
    443459              if theSts = 10 then  SignList.Delete(cnt);  //signed delayed order should not be printed.
    444460          end;
    445           PrintOrdersOnSignRelease(SignList, NO_PROVIDER);
     461          PrintOrdersOnSignRelease(SignList, NO_PROVIDER, PrintLoc);
    446462        finally
    447463          SignList.Free;
     
    505521
    506522procedure TfrmSignOrders.cmdOKClick(Sender: TObject);
    507 {Begin BillingAware}
    508 var
    509    BABillingRecs: TStringList;
    510 {End BillingAware}
    511523const
    512524  TX_NO_CODE  = 'An electronic signature code must be entered to sign orders.';
     
    519531begin
    520532  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
    529534  if txtESCode.Visible and (Length(txtESCode.Text) = 0) then
    530535  begin
     
    545550  begin
    546551    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
    548554         begin                     // billing data will be saved. otherwise error message!
    549555            InfoBox(TX_NO_DX, 'Sign Orders', MB_OK);
     
    781787    begin
    782788       //Billing Awareness 'flyover' hint includes Dx code(s) when Dx code(s) have been assigned to an order
    783            thisRec := TBADxRecord.Create;
    784789           thisOrderID := TChangeItem(fOrdersSign.frmSignOrders.clstOrders.Items.Objects[Itm]).ID;
    785790
     
    909914{Begin BillingAware}
    910915
    911   numSelected := 0;
    912916  match := false;
    913917  allBlank := false;
     
    12641268  j: integer; //CQ5054
    12651269begin
    1266    //if BILLING_AWARE then
    1267     //begin
     1270
    12681271       if FOSTFHintWndActive then
    12691272       begin
     
    12901293           //end CQ5054
    12911294       end;
    1292 
    1293     //end  //if BILLING_AWARE
    12941295end;
    12951296
     
    13151316        end;
    13161317  end;
    1317 
    1318    x := 0;
    1319    y := 0;
    13201318
    13211319  try
     
    13981396begin
    13991397   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;
    14091404  except
    14101405     on E: Exception do
     
    15181513procedure TfrmSignOrders.FormatListForScreenReader;
    15191514var
    1520   ListStateOn : boolean;
     1515  ListStateOn : longbool;
     1516  Success: longbool;
    15211517begin
    15221518  //Determine if a screen reader is currently being used.
    1523   SystemParametersInfo(SPI_GETSCREENREADER, 0, @ListStateOn,0);
    1524   if ListStateOn then
    1525     SetItemTextToState
     1519  Success := SystemParametersInfo(SPI_GETSCREENREADER, 0, @ListStateOn,0);
     1520  if Success and ListStateOn then
     1521    SetItemTextToState;
    15261522end;
    15271523
Note: See TracChangeset for help on using the changeset viewer.