Skip to content

Commit

Permalink
improve supplement error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Grahame Grieve committed Feb 11, 2025
1 parent 584704f commit e9be765
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion library/ftx/ftx_service.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1046,8 +1046,14 @@ function TCodeSystemProvider.Link: TCodeSystemProvider;
end;

function TCodeSystemProvider.cloneWithSupplements(supplements: TFslList<TFhirCodeSystemW>): TCodeSystemProvider;
var
s : String;
cs : TFhirCodeSystemW;
begin
raise ETerminologyError.create('The codesystem '+systemUri()+' does not support supplements');
s := '';
for cs in supplements do
CommaAdd(s, cs.vurl);
raise ETerminologyError.create('The codesystem '+systemUri()+' does not support supplements: '+s);
end;

function TCodeSystemProvider.locate(opContext : TTxOperationContext; code: String; altOpt : TAlternateCodeOptions= nil): TCodeSystemProviderContext;
Expand Down

0 comments on commit e9be765

Please sign in to comment.