Skip to content

Commit 7e375d6

Browse files
author
Grahame Grieve
committed
fix access violation
1 parent c7c1167 commit 7e375d6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

library/ftx/fhir_codesystem_service.pas

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ procedure TFhirCodeSystemProvider.iterateCodes(opContext : TTxOperationContext;
15221522

15231523
procedure TFhirCodeSystemProvider.iterateConceptsByProperty(src : TFhirCodeSystemConceptListW; pp: TFhirCodeSystemPropertyW; values: TStringArray; list: TFhirCodeSystemProviderFilterContext; include : boolean);
15241524
var
1525-
c, cc : TFhirCodeSystemConceptW;
1525+
c : TFhirCodeSystemConceptW;
15261526
css : TFhirCodeSystemW;
15271527
cp : TFhirCodeSystemConceptPropertyW;
15281528
ok, val : boolean;
@@ -1532,7 +1532,7 @@ procedure TFhirCodeSystemProvider.iterateConceptsByProperty(src : TFhirCodeSyste
15321532
begin
15331533
ok := not include;
15341534
val := false;
1535-
for cp in cc.properties.forEnum do
1535+
for cp in c.properties.forEnum do
15361536
begin
15371537
if (ok <> include) and (cp.code = pp.code) then
15381538
begin
@@ -1555,10 +1555,10 @@ procedure TFhirCodeSystemProvider.iterateConceptsByProperty(src : TFhirCodeSyste
15551555
end;
15561556
end;
15571557
if ok then
1558-
list.Add(c.Link, 0);
1558+
list.Add(c.Link, 0);
1559+
if (c.hasConcepts) then
1560+
iterateConceptsByProperty(c.conceptList, pp, values, list, include);
15591561
end;
1560-
if (c.hasConcepts) then
1561-
iterateConceptsByProperty(c.conceptList, pp, values, list, include);
15621562
end;
15631563

15641564
procedure TFhirCodeSystemProvider.iterateConceptsByPropertyRegex(src: TFhirCodeSystemConceptListW; pp: TFhirCodeSystemPropertyW; regex: TRegularExpression; list: TFhirCodeSystemProviderFilterContext; include: boolean);

0 commit comments

Comments
 (0)