Changeset 830 for cprs/trunk/CPRS-Chart/rReports.pas
- Timestamp:
- Jul 7, 2010, 4:51:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/rReports.pas
r456 r830 61 61 implementation 62 62 63 uses uCore, rCore, Printers, clipbrd, uReports, fReports; 63 uses uCore, rCore, Printers, clipbrd, uReports, fReports 64 { TODO -oRV -cWVEHR Long Age : Changed to use long age } 65 , rWVEHR; 64 66 65 67 var … … 89 91 Results[i] := x; 90 92 end; 91 Dest.Assign(Results);93 FastAssign(Results, Dest); 92 94 end; 93 95 end; … … 144 146 end; 145 147 146 procedure LoadTree ;147 begin 148 CallV('ORWRP3 EXPAND COLUMNS', [ nil]);148 procedure LoadTree(Tab: String); 149 begin 150 CallV('ORWRP3 EXPAND COLUMNS', [Tab]); 149 151 uTree := TStringList.Create; 150 152 ExtractSection(uTree, '[REPORT LIST]', false); … … 156 158 begin 157 159 if uTree = nil 158 then LoadTree 160 then LoadTree('REPORTS') 159 161 else 160 162 begin 161 163 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)); 165 167 end; 166 168 … … 169 171 i: integer; 170 172 begin 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)); 173 183 end; 174 184 … … 176 186 begin 177 187 if uDateRanges = nil then LoadReportLists; 178 Dest.Assign(uDateRanges);188 FastAssign(uDateRanges, Dest); 179 189 end; 180 190 … … 183 193 if uHSTypes = nil then LoadReportLists; 184 194 MixedCaseList(uHSTypes); 185 Dest.Assign(uHSTypes);195 FastAssign(uHSTypes, Dest); 186 196 end; 187 197 … … 198 208 begin 199 209 CallV('ORWRP COLUMN HEADERS',[AReportType]); 200 Dest.Assign(RPCBrokerV.Results);210 FastAssign(RPCBrokerV.Results, Dest); 201 211 end; 202 212 … … 227 237 Results[i] := x; 228 238 end; 229 Dest.Assign(Results);239 FastAssign(Results, Dest); 230 240 end; 231 241 end; … … 249 259 Results[i] := x; 250 260 end; 251 Dest.Assign(Results);261 FastAssign(Results, Dest); 252 262 end; 253 263 end; … … 267 277 Results[i] := x; 268 278 end; 269 Dest.Assign(Results);279 FastAssign(Results, Dest); 270 280 end; 271 281 end; … … 290 300 Results[i] := x; 291 301 end; 292 Dest.Assign(Results);302 FastAssign(Results, Dest); 293 303 end; 294 304 end; … … 629 639 tmpStr := Patient.Name + ' ' + Patient.SSN; 630 640 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 {} 632 645 tmpItem := tmpItem + StringOfChar(' ', 74 - (Length(tmpItem) + Length(tmpStr))) + tmpStr; 633 646 Add(tmpItem);
Note:
See TracChangeset
for help on using the changeset viewer.