Skip to content

Commit

Permalink
MAINT-2597 Added ICD-11 module to SI module to support MDRS
Browse files Browse the repository at this point in the history
  • Loading branch information
QuyenLy87 authored and dmcgihtsdo committed Oct 16, 2024
1 parent 653b957 commit 45214a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class Concepts {
public static final String CORE_MODULE = "900000000000207008";
public static final String MODEL_MODULE = "900000000000012004";
public static final String ICD10_MODULE = "449080006";
public static final String ICD11_MODULE = "1204363008";
public static final String COMMON_FRENCH_MODULE = "11000241103";
public static final String MODULE = "900000000000443000";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class ModuleDependencyService extends ComponentService {

public static final Set<String> CORE_MODULES = Set.of(Concepts.CORE_MODULE, Concepts.MODEL_MODULE);

public Set<String> SI_MODULES = new HashSet<>(Set.of(Concepts.CORE_MODULE, Concepts.MODEL_MODULE, Concepts.ICD10_MODULE));
public Set<String> SI_MODULES = new HashSet<>(Set.of(Concepts.CORE_MODULE, Concepts.MODEL_MODULE, Concepts.ICD10_MODULE, Concepts.ICD11_MODULE));

@Autowired
private BranchService branchService;
Expand Down Expand Up @@ -94,10 +94,13 @@ public synchronized void refreshCache() {
cacheValidAt = currentTime;
logger.info("MDR cache of International Modules refreshed for HEAD time: {}", currentTime);

//During unit tests, or in non-standard installations we might not see the ICD-10 Module
//During unit tests, or in non-standard installations we might not see the ICD-10 and ICD-11 Modules
if (!cachedInternationalModules.contains(Concepts.ICD10_MODULE)) {
SI_MODULES.remove(Concepts.ICD10_MODULE);
}
if (!cachedInternationalModules.contains(Concepts.ICD11_MODULE)) {
SI_MODULES.remove(Concepts.ICD11_MODULE);
}

derivativeModules = cachedInternationalModules.stream()
.filter(m -> !SI_MODULES.contains(m))
Expand Down

0 comments on commit 45214a9

Please sign in to comment.