Skip to content

Commit 74bf1b6

Browse files
author
Grahame Grieve
committed
more optimization
1 parent b0bb578 commit 74bf1b6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

library/ftx/ftx_loinc_publisher.pas

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,10 @@ procedure TloincPublisher.PublishCode(const sPrefix, sCode: String; html: THTMLP
275275

276276
c.select('Select StatusKey from Codes where CodeKey = '+inttostr(ci.key));
277277
while c.fetchNext do
278-
while c.fetchNext do
279278
begin
280279
html.StartRow();
281280
html.AddTableCell('STATUS');
282-
html.AddTableCell(FLoinc.StatusKeys[c.colStringByName['Description']]);
281+
html.AddTableCell(FLoinc.StatusCodes[c.colStringByName['StatusKey']]);
283282
html.AddTableCell('');
284283
html.EndTableRow;
285284
end;

library/ftx/ftx_loinc_services.pas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ TLOINCServices = class (TCodeSystemProvider)
242242
property Relationships : TDictionary<String, String> read FRelationships;
243243
property Properties : TDictionary<String, String> read FProperties;
244244
property StatusKeys : TDictionary<String, String> read FStatusKeys;
245+
property StatusCodes : TDictionary<String, String> read FStatusCodes;
245246
End;
246247

247248
TLOINCServiceList = class (TFslObjectList)

0 commit comments

Comments
 (0)