Package ca.uhn.fhir.jpa.term
Class TermLoaderSvcImpl
java.lang.Object
ca.uhn.fhir.jpa.term.TermLoaderSvcImpl
- All Implemented Interfaces:
ITermLoaderSvc
-
Nested Class Summary
Nested classes/interfaces inherited from interface ca.uhn.fhir.jpa.term.api.ITermLoaderSvc
ITermLoaderSvc.ByteArrayFileDescriptor, ITermLoaderSvc.FileDescriptor
-
Field Summary
Fields inherited from interface ca.uhn.fhir.jpa.term.api.ITermLoaderSvc
ICD10_URI, ICD10CM_URI, IEEE_11073_10101_URI, IMGTHLA_URI, LOINC_URI, SCT_URI
-
Constructor Summary
ConstructorDescriptionTermLoaderSvcImpl
(ITermDeferredStorageSvc theDeferredStorageSvc, ITermCodeSystemStorageSvc theCodeSystemStorageSvc) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
firstNonBlank
(String... theStrings) protected LoincXmlFileZipContentsHandler
static TermConcept
getOrCreateConcept
(Map<String, TermConcept> id2concept, String id) static TermConceptProperty
getOrCreateConceptProperty
(Map<String, List<TermConceptProperty>> code2Properties, String code, String key) static void
iterateOverZipFileCsv
(LoadedFileDescriptors theDescriptors, String theFileNamePart, IZipContentsHandlerCsv theHandler, char theDelimiter, org.apache.commons.csv.QuoteMode theQuoteMode, boolean theIsPartialFilename) static void
iterateOverZipFileCsvOptional
(LoadedFileDescriptors theDescriptors, String theFileNamePart, IZipContentsHandlerCsv theHandler, char theDelimiter, org.apache.commons.csv.QuoteMode theQuoteMode, boolean theIsPartialFilename) loadCustom
(String theSystem, List<ITermLoaderSvc.FileDescriptor> theFiles, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) loadDeltaAdd
(String theSystem, List<ITermLoaderSvc.FileDescriptor> theFiles, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) loadDeltaRemove
(String theSystem, List<ITermLoaderSvc.FileDescriptor> theFiles, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) loadIcd10
(List<ITermLoaderSvc.FileDescriptor> theFiles, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) loadIcd10cm
(List<ITermLoaderSvc.FileDescriptor> theFiles, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) loadImgthla
(List<ITermLoaderSvc.FileDescriptor> theFiles, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) loadLoinc
(List<ITermLoaderSvc.FileDescriptor> theFiles, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) loadSnomedCt
(List<ITermLoaderSvc.FileDescriptor> theFiles, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) static TermLoaderSvcImpl
withoutProxyCheck
(ITermDeferredStorageSvc theTermDeferredStorageSvc, ITermCodeSystemStorageSvc theTermCodeSystemStorageSvc)
-
Field Details
-
CUSTOM_CONCEPTS_FILE
- See Also:
-
CUSTOM_HIERARCHY_FILE
- See Also:
-
CUSTOM_PROPERTIES_FILE
- See Also:
-
-
Constructor Details
-
TermLoaderSvcImpl
@Autowired public TermLoaderSvcImpl(ITermDeferredStorageSvc theDeferredStorageSvc, ITermCodeSystemStorageSvc theCodeSystemStorageSvc)
-
-
Method Details
-
withoutProxyCheck
public static TermLoaderSvcImpl withoutProxyCheck(ITermDeferredStorageSvc theTermDeferredStorageSvc, ITermCodeSystemStorageSvc theTermCodeSystemStorageSvc) -
loadImgthla
public UploadStatistics loadImgthla(List<ITermLoaderSvc.FileDescriptor> theFiles, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
loadImgthla
in interfaceITermLoaderSvc
-
loadLoinc
public UploadStatistics loadLoinc(List<ITermLoaderSvc.FileDescriptor> theFiles, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
loadLoinc
in interfaceITermLoaderSvc
-
loadSnomedCt
public UploadStatistics loadSnomedCt(List<ITermLoaderSvc.FileDescriptor> theFiles, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
loadSnomedCt
in interfaceITermLoaderSvc
-
loadIcd10
public UploadStatistics loadIcd10(List<ITermLoaderSvc.FileDescriptor> theFiles, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
loadIcd10
in interfaceITermLoaderSvc
-
loadIcd10cm
public UploadStatistics loadIcd10cm(List<ITermLoaderSvc.FileDescriptor> theFiles, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
loadIcd10cm
in interfaceITermLoaderSvc
-
loadCustom
public UploadStatistics loadCustom(String theSystem, List<ITermLoaderSvc.FileDescriptor> theFiles, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
loadCustom
in interfaceITermLoaderSvc
-
loadDeltaAdd
public UploadStatistics loadDeltaAdd(String theSystem, List<ITermLoaderSvc.FileDescriptor> theFiles, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
loadDeltaAdd
in interfaceITermLoaderSvc
-
loadDeltaRemove
public UploadStatistics loadDeltaRemove(String theSystem, List<ITermLoaderSvc.FileDescriptor> theFiles, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
loadDeltaRemove
in interfaceITermLoaderSvc
-
getLoincXmlFileZipContentsHandler
-
iterateOverZipFileCsv
public static void iterateOverZipFileCsv(LoadedFileDescriptors theDescriptors, String theFileNamePart, IZipContentsHandlerCsv theHandler, char theDelimiter, org.apache.commons.csv.QuoteMode theQuoteMode, boolean theIsPartialFilename) -
iterateOverZipFileCsvOptional
public static void iterateOverZipFileCsvOptional(LoadedFileDescriptors theDescriptors, String theFileNamePart, IZipContentsHandlerCsv theHandler, char theDelimiter, org.apache.commons.csv.QuoteMode theQuoteMode, boolean theIsPartialFilename) -
firstNonBlank
-
getOrCreateConcept
-
getOrCreateConceptProperty
public static TermConceptProperty getOrCreateConceptProperty(Map<String, List<TermConceptProperty>> code2Properties, String code, String key)
-