Skip to content

Commit

Permalink
fix error getting LOINC answer description
Browse files Browse the repository at this point in the history
  • Loading branch information
Grahame Grieve committed Jan 28, 2024
1 parent 62f2986 commit db211ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions library/ftx/ftx_loinc_services.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2217,13 +2217,13 @@ procedure TLOINCServices.Designations(context: TCodeSystemProviderContext; list:
end;
end;
End;
lpckPart:
lpckAnswer:
begin
AnswerLists.GetEntry(ctxt.index, iCode, iDescription, iAnswers);
s := Desc.GetEntry(iDescription, ilang);
list.addDesignation(true, true, FLangs[iLang], s.Trim);
end;
lpckAnswer:
lpckPart:
begin
FEntries.GetEntry(ctxt.index, iCode, text, parents, children, concepts, descendentConcepts, stems);
s := Desc.GetEntry(text, ilang).Trim;
Expand Down
7 changes: 6 additions & 1 deletion library/ftx/ftx_sct_services.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2488,7 +2488,12 @@ function TSnomedServices.LastUseStatus: String;

procedure TSnomedServices.RecordUse(count: integer);
begin
FUseCount := FUseCount + count;
FLock.lock('use');
try
FUseCount := FUseCount + count;
finally
FLock.unlock;
end;
end;

function TSnomedServices.buildValueSet(factory : TFHIRFactory; url : String): TFhirValueSetW;
Expand Down

0 comments on commit db211ce

Please sign in to comment.