Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release pipeline Originally Issue 4106 process map to properties when uploading loinc terminology #4246

Merged
Prev Previous commit
Next Next commit
Restore project unrelated changes
  • Loading branch information
juan.marchionatto committed Nov 2, 2022
commit b65def5a4097010f3c73719ad7f6c36b7af41930
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public UploadStatistics loadImgthla(List<FileDescriptor> theFiles, RequestDetail

ourLog.info("Beginning IMGTHLA processing");

return processImgthlaFiles(descriptors);
return processImgthlaFiles(descriptors, theRequestDetails);
}
}

Expand Down Expand Up @@ -492,9 +492,18 @@ private Optional<String> loadFile(LoadedFileDescriptors theDescriptors, String..
return Optional.empty();
}

private UploadStatistics processImgthlaFiles(LoadedFileDescriptors theDescriptors) {
private UploadStatistics processImgthlaFiles(LoadedFileDescriptors theDescriptors, RequestDetails theRequestDetails) {
final TermCodeSystemVersion codeSystemVersion = new TermCodeSystemVersion();
final List<ValueSet> valueSets = new ArrayList<>();
final List<ConceptMap> conceptMaps = new ArrayList<>();

CodeSystem imgthlaCs;
try {
String imgthlaCsString = IOUtils.toString(TermReadSvcImpl.class.getResourceAsStream("/ca/uhn/fhir/jpa/term/imgthla/imgthla.xml"), Charsets.UTF_8);
imgthlaCs = FhirContext.forR4().newXmlParser().parseResource(CodeSystem.class, imgthlaCsString);
} catch (IOException e) {
throw new InternalErrorException(Msg.code(869) + "Failed to load imgthla.xml", e);
}

boolean foundHlaNom = false;
boolean foundHlaXml = false;
Expand Down