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/rReports.pas

    r456 r830  
    6161implementation
    6262
    63 uses uCore, rCore, Printers, clipbrd, uReports, fReports;
     63uses uCore, rCore, Printers, clipbrd, uReports, fReports
     64{ TODO -oRV -cWVEHR Long Age : Changed to use long age }
     65, rWVEHR;
    6466
    6567var
     
    8991      Results[i] := x;
    9092    end;
    91     Dest.Assign(Results);
     93    FastAssign(Results, Dest);
    9294  end;
    9395end;
     
    144146end;
    145147
    146 procedure LoadTree;
    147 begin
    148   CallV('ORWRP3 EXPAND COLUMNS', [nil]);
     148procedure LoadTree(Tab: String);
     149begin
     150  CallV('ORWRP3 EXPAND COLUMNS', [Tab]);
    149151  uTree    := TStringList.Create;
    150152  ExtractSection(uTree, '[REPORT LIST]', false);
     
    156158begin
    157159  if uTree = nil
    158     then LoadTree
     160    then LoadTree('REPORTS')
    159161  else
    160162    begin
    161163      uTree.Clear;
    162       LoadTree;
    163     end;
    164   for i := 0 to uTree.Count - 1 do Dest.Add(Pieces(uTree[i], '^', 1, 15));
     164      LoadTree('REPORTS');
     165    end;
     166  for i := 0 to uTree.Count - 1 do Dest.Add(Pieces(uTree[i], '^', 1, 20));
    165167end;
    166168
     
    169171  i: integer;
    170172begin
    171   if uLabreports = nil then LoadLabReportLists;
    172   for i := 0 to uLabReports.Count - 1 do Dest.Add(Pieces(uLabReports[i], U, 1, 10));
     173  {if uLabreports = nil then LoadLabReportLists;
     174  for i := 0 to uLabReports.Count - 1 do Dest.Add(Pieces(uLabReports[i], U, 1, 10)); }
     175  if uTree = nil
     176    then LoadTree('LABS')
     177  else
     178    begin
     179      uTree.Clear;
     180      LoadTree('LABS');
     181    end;
     182  for i := 0 to uTree.Count - 1 do Dest.Add(Pieces(uTree[i], '^', 1, 20));
    173183end;
    174184
     
    176186begin
    177187  if uDateRanges = nil then LoadReportLists;
    178   Dest.Assign(uDateRanges);
     188  FastAssign(uDateRanges, Dest);
    179189end;
    180190
     
    183193  if uHSTypes = nil then LoadReportLists;
    184194  MixedCaseList(uHSTypes);
    185   Dest.Assign(uHSTypes);
     195  FastAssign(uHSTypes, Dest);
    186196end;
    187197
     
    198208begin
    199209  CallV('ORWRP COLUMN HEADERS',[AReportType]);
    200   Dest.Assign(RPCBrokerV.Results);
     210  FastAssign(RPCBrokerV.Results, Dest);
    201211end;
    202212
     
    227237      Results[i] := x;
    228238    end;
    229     Dest.Assign(Results);
     239    FastAssign(Results, Dest);
    230240  end;
    231241end;
     
    249259      Results[i] := x;
    250260    end;
    251     Dest.Assign(Results);
     261    FastAssign(Results, Dest);
    252262  end;
    253263end;
     
    267277        Results[i] := x;
    268278      end;
    269     Dest.Assign(Results);
     279    FastAssign(Results, Dest);
    270280  end;
    271281end;
     
    290300        Results[i] := x;
    291301      end;
    292     Dest.Assign(Results);
     302    FastAssign(Results, Dest);
    293303  end;
    294304end;
     
    629639      tmpStr := Patient.Name + '   ' + Patient.SSN;
    630640      tmpItem := tmpStr + StringOfChar(' ', 39 - Length(tmpStr)) + Encounter.LocationName;
    631       tmpStr := FormatFMDateTime('mmm dd, yyyy', Patient.DOB) + ' (' + IntToStr(Patient.Age) + ')';
     641{ TODO -oRV -cWVEHR Long Age : Changed to use long age }
     642      //tmpStr := FormatFMDateTime('mmm dd, yyyy', Patient.DOB) + ' (' + IntToStr(Patient.Age) + ')';
     643      tmpStr := FormatFMDateTime('mmm dd, yyyy', Patient.DOB) + ' (' + GetPatientBriefAge(Patient.DFN) + ')';
     644{}
    632645      tmpItem := tmpItem + StringOfChar(' ', 74 - (Length(tmpItem) + Length(tmpStr))) + tmpStr;
    633646      Add(tmpItem);
Note: See TracChangeset for help on using the changeset viewer.