diff --git a/src/com/eldrix/hermes/importer.clj b/src/com/eldrix/hermes/importer.clj index 366dbf0..c21cec6 100644 --- a/src/com/eldrix/hermes/importer.clj +++ b/src/com/eldrix/hermes/importer.clj @@ -136,6 +136,17 @@ (log/debug "Processing cancelled (output channel closed)") (throw (InterruptedException. "process cancelled"))))))))) +(defn import-file + "Import a SNOMED file, returning a map containing :type :headings :parser + and :data as per [[process-file]]. This is designed only for testing and + development purposes." + [f] + (let [ch (a/chan)] + (a/thread + (process-file f ch) + (a/close! ch)) + (a/