Merge in fix for ISSUE-2995
This commit is contained in:
parent
0dfc716a82
commit
c9162cba6d
|
@ -722,7 +722,7 @@ public class TermLoaderSvcImpl implements ITermLoaderSvc {
|
|||
retVal.setPublisher("Regenstrief Institute, Inc.");
|
||||
retVal.setDescription("A value set that includes all LOINC codes");
|
||||
retVal.setCopyright("This content from LOINC® is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at https://loinc.org/license/");
|
||||
retVal.getCompose().addInclude().setSystem(ITermLoaderSvc.LOINC_URI);
|
||||
retVal.getCompose().addInclude().setSystem(ITermLoaderSvc.LOINC_URI).setVersion(codeSystemVersionId);
|
||||
|
||||
return retVal;
|
||||
}
|
||||
|
|
|
@ -22,6 +22,7 @@ package ca.uhn.fhir.jpa.term.loinc;
|
|||
|
||||
import ca.uhn.fhir.jpa.entity.TermConcept;
|
||||
import ca.uhn.fhir.jpa.term.IZipContentsHandlerCsv;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.hl7.fhir.r4.model.ConceptMap;
|
||||
import org.hl7.fhir.r4.model.ContactPoint;
|
||||
import org.hl7.fhir.r4.model.Enumerations;
|
||||
|
@ -74,6 +75,9 @@ public abstract class BaseLoincHandler implements IZipContentsHandlerCsv {
|
|||
if (include == null) {
|
||||
include = theVs.getCompose().addInclude();
|
||||
include.setSystem(theCodeSystemUrl);
|
||||
if (StringUtils.isNotBlank(theVs.getVersion())) {
|
||||
include.setVersion(theVs.getVersion());
|
||||
}
|
||||
}
|
||||
|
||||
boolean found = false;
|
||||
|
|
|
@ -104,6 +104,7 @@ public class LoincAnswerListHandler extends BaseLoincHandler {
|
|||
.getCompose()
|
||||
.getIncludeFirstRep()
|
||||
.setSystem(ITermLoaderSvc.LOINC_URI)
|
||||
.setVersion(codeSystemVersionId)
|
||||
.addConcept()
|
||||
.setCode(answerString)
|
||||
.setDisplay(displayText);
|
||||
|
|
|
@ -120,6 +120,7 @@ public class LoincRsnaPlaybookHandler extends BaseLoincHandler implements IZipCo
|
|||
.getCompose()
|
||||
.getIncludeFirstRep()
|
||||
.setSystem(ITermLoaderSvc.LOINC_URI)
|
||||
.setVersion(codeSystemVersionId)
|
||||
.addConcept()
|
||||
.setCode(loincNumber)
|
||||
.setDisplay(longCommonName);
|
||||
|
|
Loading…
Reference in New Issue