Skip to content

Commit 08d9a0e

Browse files
author
Grahame Grieve
committed
fix status handling on server
1 parent 6d69d43 commit 08d9a0e

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

library/ftx/fhir_valuesets.pas

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2161,6 +2161,7 @@ function TValueSetChecker.checkConceptSet(path : String; cs: TCodeSystemProvider
21612161
cc : TFhirValueSetComposeIncludeConceptW;
21622162
cfl : TFslList<TFhirValueSetComposeIncludeFilterW>;
21632163
begin
2164+
inactive := false;
21642165
result := false;
21652166
if (not cset.hasConcepts) and (not cset.hasFilters) then
21662167
begin
@@ -2268,6 +2269,8 @@ function TValueSetChecker.checkConceptSet(path : String; cs: TCodeSystemProvider
22682269
op.addIssue(isWarning, itBusinessRule, addToPath(path, 'code'), 'CONCEPT_DEPRECATED_IN_VALUESET', FI18n.translate('CONCEPT_DEPRECATED_IN_VALUESET', FParams.HTTPLanguages, [cs.systemUri, code, sstatus, vs.vurl]), oicCodeComment)
22692270
else if cc.hasExtension('http://hl7.org/fhir/StructureDefinition/valueset-deprecated') then
22702271
op.addIssue(isWarning, itBusinessRule, addToPath(path, 'code'), 'CONCEPT_DEPRECATED_IN_VALUESET', FI18n.translate('CONCEPT_DEPRECATED_IN_VALUESET', FParams.HTTPLanguages, [cs.systemUri, code, 'deprecated', vs.vurl]), oicCodeComment);
2272+
inactive := cs.IsInactive(FOpContext, loc);
2273+
vstatus := cs.getCodeStatus(FOpContext, loc);
22712274
result := true;
22722275
exit;
22732276
end;

server/server_constants.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
interface
3434

3535
const
36-
TX_TESTS_VERSION = '1.7.8';
36+
TX_TESTS_VERSION = '1.8.0';
3737

3838
{$i version.inc}
3939
SERVER_FULL_VERSION = FHIR_CODE_FULL_VERSION;

0 commit comments

Comments
 (0)