   May log warnings if available content does not conform to
   clinvar specifcations."
   [t c]
+  (if (not (nil? c)) 
   (let [name (get c "name")]
-    (csv-colval (if (nil? name) "" name))))
+    (csv-colval (if (nil? name) "" name)))
+  (log/debug (str "Exception in function condition-name: condition name not found"))))
 
 (defn condition-idtype
   ;TODO modify to deal with phenotypes and multi-values for satisfying clinvar specs.
   [t c]
+  (if (not (nil? c)) 
   (let [disease-coding (ld-> t c "disease" "coding")]
     (let [disease-code (get disease-coding "code")]
-      (csv-colval (get (re-find #"(.*)\_(.*)" disease-code) 1)))))
+      (csv-colval (if (nil? disease-code) "" (get (re-find #"(.*)\_(.*)" disease-code) 1)))))
+  (log/debug (str "Exception in function condition-idtype: condition idt type not found"))))
 
 (defn condition-idvals
    ;TODO modify to deal with phenotypes and multi-values for satisfying clinvar specs.
   [t c]
+  (if (not (nil? c)) 
   (let [disease-coding (ld-> t c "disease" "coding")]
     (let [disease-code (get disease-coding "code")]
-      (csv-colval (get (re-find #"(.*)\_(.*)" disease-code) 2)))))
+      (csv-colval (if (nil? disease-code) "" (get (re-find #"(.*)\_(.*)" disease-code) 2)))))
+  (log/debug (str "Exception in function condition-idvals: condition id not found"))))
 
 (defn condition-moi
   [t c]
-  (csv-colval (ld-> t c "modeOfInheritance" "display")))
+  (if (not (nil? c)) (csv-colval (if (nil? (ld-> t c "modeOfInheritance" "display")) "" (ld-> t c "modeOfInheritance" "display")))
+  (log/debug (str "Exception in function condition-moi: condition moi not found"))))
 
 (defn get-condition
   "Processes the condition element to derive the ClinVar sanctioned fields: 

  (defn interp-eval-date
  "Return the interpretation evaluation date."
  [t i]
  (let [contribution (ld-> t i "contribution")]
    (if (nil? (get contribution "onDate")) "" 
      (.format 

   warning will be reported 'Condition is missing for a clinically significant
   interpretation.'"
  [t i]
  (let [c (ld-> t i "condition")]
     (if (nil? c) (log/debug (str "Exception in function get-condition: condition not found")))
     {:name (if (nil? c) "" (condition-name t c)),
      :idtype (if (nil? c) "" (condition-idtype t c)),
      :idvalue (if (nil? c) "" (condition-idvals t c)),
      :moi (if (nil? c) "" (condition-moi t c))}))

  (defn evidence-rules
    "Returns the list of criterion rule names for the evidence provided"
