The two main functions are parse-elem and unparse-file.
Example: (-> (io/input-stream "odm-file.xml") (xml/parse) (parse-elem))
The two main functions are parse-elem and unparse-file. Example: `(-> (io/input-stream "odm-file.xml") (xml/parse) (parse-elem))`
(assoc-measurement-unit-oid attrs {:keys [odm.item-data/measurement-unit-oid]})
(conformer f unf & {:keys [gen]})
Like s/conformer but takes an optional gen.
Can be removed when CLJ-1985 is resolved.
Like s/conformer but takes an optional gen. Can be removed when CLJ-1985 is resolved.
(parse-attr* tag name value)
Parses XML Attribute. Dispatches on a vector of element tag and attribute name with a fallback on attribute name only. Should return a map with a single key-value pair which will be merged together with the maps from other parses.
Parses XML Attribute. Dispatches on a vector of element tag and attribute name with a fallback on attribute name only. Should return a map with a single key-value pair which will be merged together with the maps from other parses.
(parse-children content)
Parses every child using parse-elem
and merges the results. Keys occuring
more than once will be merged using into
.
Parses every child using `parse-elem` and merges the results. Keys occuring more than once will be merged using `into`.
(parse-elem* element)
Parses a single XML Element. Dispatches by :tag. Should return a map with a
single key-value pair which will be merged together with the maps from other
parses. Multiple values with the same key are merged with into
.
Parses a single XML Element. Dispatches by :tag. Should return a map with a single key-value pair which will be merged together with the maps from other parses. Multiple values with the same key are merged with `into`.
(unparse-clinical-data {:keys [odm.clinical-data/study-oid
odm.clinical-data/metadata-version-oid
odm.clinical-data/subject-data]})
(unparse-file {:keys [odm.file/clinical-data] :as file})
Takes a parsed ODM file and unparses it into an sexp.
Takes a parsed ODM file and unparses it into an sexp.
(unparse-item-group-data {:keys [odm.item-group-data/item-data]
:as item-group-data})
(unparse-study-event-data {:keys [odm.study-event-data/form-data]
:as study-event-data})
(unparse-subject-data {:keys [odm.subject-data/study-event-data]
:as subject-data})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close