                   OperationalQualityFlagExplanation
                   ScienceQualityFlag
                   ScienceQualityFlagExplanation]}
-
           qa-flags]
       (g/map->QAFlags
        {:automatic-quality-flag AutomaticQualityFlag

        :operational-quality-flag-explanation OperationalQualityFlagExplanation
        :science-quality-flag ScienceQualityFlag
        :science-quality-flag-explanation ScienceQualityFlagExplanation}))))

(defn- QAFlags->umm-g-qa-flags
  "Returns umm-lib QAFlags from given UMM-G QAFlags."

                  science-quality-flag
                  science-quality-flag-explanation]}
          qa-flags]
      {:AutomaticQualityFlag (sanitize-quality-flag :automatic-quality-flag
                                                    automatic-quality-flag)
       :AutomaticQualityFlagExplanation automatic-quality-flag-explanation
       :OperationalQualityFlag (sanitize-quality-flag :operational-quality-flag
                                                      operational-quality-flag)
       :OperationalQualityFlagExplanation operational-quality-flag-explanation
       :ScienceQualityFlag (sanitize-quality-flag :science-quality-flag
                                                  science-quality-flag)
       :ScienceQualityFlagExplanation science-quality-flag-explanation})))

(defn- umm-g-measured-parameter->MeasuredParmeter
