Ignore:
Timestamp:
Jul 7, 2010, 4:51:54 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

Upgrading to version 27

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/trunk/CPRS-Chart/fProbs.pas

    r456 r830  
    66  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
    77  fHSplit, StdCtrls, ExtCtrls, Menus, ORCtrls, Buttons, uProbs,
    8   Grids, Vawrgrid, ORfn, uCore, fProbEdt, uConst, ComCtrls ;
     8  Grids, Vawrgrid, ORfn, uCore, fProbEdt, uConst, ComCtrls,
     9  VA508AccessibilityManager, fBase508Form;
    910
    1011type
     
    216217
    217218uses fFrame, fProbFlt, fProbLex, rProbs, rcover, fCover, fRptBox,
    218      fProbCmt, fEncnt, fReportsPrint, fReports, rPCE, DateUtils;
     219     fProbCmt, fEncnt, fReportsPrint, fReports, rPCE, DateUtils, VA2006Utils,
     220     VA508AccessibilityRouter;
    219221
    220222{$R *.DFM}
     
    556558            AList := TStringList.Create;
    557559            ProblemIFN := Piece(MString(wgProbData.ItemIndex), U, 1);
    558             AList.Assign(EditLoad(ProblemIFN, pProviderID, PLPt.ptVAMC)) ;
     560            FastAssign(EditLoad(ProblemIFN, pProviderID, PLPt.ptVAMC), AList) ;
    559561            if Alist.count = 0 then
    560562              begin
     
    582584                  ut := '';
    583585                  If PLUser.usPrimeUser then ut := '1';
    584                   AList.Assign(EditSave(ProblemIFN,pProviderID,PLPt.ptVAMC,ut,ProbRec.FilerObject)) ;
     586                  FastAssign(EditSave(ProblemIFN,pProviderID,PLPt.ptVAMC,ut,ProbRec.FilerObject), AList) ;
    585587                  LoadPatientProblems(AList,PlUser.usViewAct[1],true);
    586588                end ;
     
    934936begin
    935937  inherited;
     938  FixHeaderControlDelphi2006Bug(HeaderControl);
    936939  FAllProblems := TStringList.Create;
    937940  FProblemsVisible := TStringList.Create;
    938941  FItemData := TStringList.Create;
    939942  PageID := CT_PROBLEMS;
    940   wgProbData.Color := ReadOnlyColor;
    941943  GetFontInfo(Canvas.Handle, gFontWidth, gFontHeight);
    942944end;
     
    946948  i: integer;
    947949begin
    948   AList.Assign(InitUser(User.DUZ)) ;
    949   //AList.Assign(InitUser(Encounter.Provider)) ;
     950  FastAssign(InitUser(User.DUZ), AList) ;
     951  //FastAssign(InitUser(Encounter.Provider), AList) ;
    950952  PLUser := TPLUserParams.create(Alist);
    951953  FContextString := PLUser.usDefaultContext;
     
    970972procedure TfrmProblems.LoadPatientParams(AList:TstringList);
    971973begin
    972   AList.Assign(InitPt(Patient.DFN)) ;
     974  FastAssign(InitPt(Patient.DFN), AList) ;
    973975  PLPt := TPLPt.create(Alist);
    974976end;
     
    10291031        st:=status;
    10301032        if st= '' then st := 'A'; {default to active list}
    1031         AList.Assign(ProblemList(Patient.DFN,St)) ;
     1033        FastAssign(ProblemList(Patient.DFN,St), AList) ;
    10321034      end;
    10331035    if Status = 'R' then
     
    10731075      if Piece(x, U, 15) = '1' then  //problem has comments
    10741076        begin
    1075           CmtList.Assign(GetProblemComments(Piece(x, U, 1)));
     1077          FastAssign(GetProblemComments(Piece(x, U, 1)), CmtList);
    10761078          if FAllProblems.Objects[i] = nil then FAllProblems.Objects[i]:= TStringList.Create;
    1077           TStringList(FAllProblems.Objects[i]).Assign(CmtList);
     1079          FastAssign(CmtList, TStringList(FAllProblems.Objects[i]));
    10781080        end;
    10791081
     
    11401142  if not PLUser.usUseLexicon then exit; {Bail out if not to use lexicon}
    11411143  Alist.clear;
    1142   AList.Assign(UserProblemCategories(Encounter.Provider,Encounter.Location)) ;
     1144  FastAssign(UserProblemCategories(Encounter.Provider,Encounter.Location), AList) ;
    11431145  if Alist.count = 0 then
    11441146    begin
     
    11481150      exit ;
    11491151    end ;
    1150   lstCatPick.Items.assign(AList);
     1152  FastAssign(AList, lstCatPick.Items);
    11511153  lstCatPick.itemindex := 0;
    11521154  lstCatPickClick(frmProblems);
     
    11611163  Alist.clear;
    11621164  catien := IntToStr(lstCatPick.itemIEN);
    1163   AList.Assign(UserProblemList(catien)) ;
     1165  FastAssign(UserProblemList(catien), AList) ;
    11641166  {File 125.12, Each line contains: PROBLEM^DISPLAY TEXT^CODE^CODE IFN }
    11651167  {code ifn is derived}
    1166   lstProbPick.Items.assign(Alist);
     1168  FastAssign(Alist, lstProbPick.Items);
    11671169end;
    11681170
     
    13881390    problemIFN := Piece(Line, U, 1);
    13891391    {get the basic info - could shortcut, but try this for now}
    1390     AList.Assign(EditLoad(ProblemIFN,pProviderID,PLPt.ptVAMC)) ;
     1392    FastAssign(EditLoad(ProblemIFN, pProviderID, PLPt.ptVAMC), AList) ;
    13911393    probRec := TProbrec.create(Alist);
    13921394    probRec.PIFN := problemIFN;
     
    13991401             ProbRec.DateResStr := 'T';
    14001402             Probrec.DateModStr := 'T';
    1401              AList.Assign(ProblemUpdate(ProbRec.AltFilerObject)) ;
     1403             FastAssign(ProblemUpdate(ProbRec.AltFilerObject), AList) ;
    14021404           end;
    14031405      'V': begin
     
    14091411             Probrec.condition := 'P';
    14101412             Probrec.DateModStr := 'T';
    1411              AList.Assign(ProblemVerify(ProbRec.PIFN)) ;
     1413             FastAssign(ProblemVerify(ProbRec.PIFN), AList) ;
    14121414           end;
    14131415    end;
     
    14671469  Alist := TStringList.create;
    14681470  ProblemIFN := Piece(MString(wgProbData.ItemIndex), U, 1);
    1469   AList.Assign(EditLoad(ProblemIFN, pProviderID, PLPt.ptVAMC)) ;
     1471  FastAssign(EditLoad(ProblemIFN, pProviderID, PLPt.ptVAMC), AList) ;
    14701472  AProbRec:=TProbRec.Create(Alist); {create a problem object}
    14711473  try
     
    14821484    else
    14831485      begin
    1484         Alist.Assign(ProblemReplace(ProblemIFN)) ;
     1486        FastAssign(ProblemReplace(ProblemIFN), Alist) ;
    14851487        if Alist[0] <> '1' then
    14861488          InfoBox('Unable to restore the problem record: ' + #13#10 + ' (' + AProbrec.PIFN + ')',
     
    20732075end;
    20742076
     2077initialization
     2078  SpecifyFormIsNotADialog(TfrmProblems);
     2079
    20752080end.
    20762081
Note: See TracChangeset for help on using the changeset viewer.