This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-19
Channels
- # announcements (1)
- # architecture (24)
- # beginners (7)
- # boot (7)
- # cider (1)
- # cljdoc (4)
- # clojure (20)
- # clojure-austin (1)
- # clojure-brasil (2)
- # clojure-dev (1)
- # clojure-italy (1)
- # clojure-spec (36)
- # clojure-uk (11)
- # clojurescript (44)
- # data-science (3)
- # datascript (1)
- # datomic (8)
- # figwheel-main (2)
- # fulcro (29)
- # graphql (9)
- # kaocha (2)
- # keyboards (1)
- # leiningen (3)
- # lumo (5)
- # nrepl (4)
- # off-topic (39)
- # onyx (5)
- # re-frame (2)
- # shadow-cljs (42)
- # tools-deps (18)
- # yada (65)
in a query, i want to find things by year and month and i plan to pass this to frequencies
. here ?start is an instant. Can someone help me unify ?date-string
with the string concatenation of the year and month? I'm stumbling for some reason
(d/q '[:find ?date-string
:in $ ?encounter
:where
[?encounter :fhir.Encounter/period ?period]
[?period :fhir.Period/start ?start]
[?date-string (str (.getYear ?start) "-" (.getMonth ?start))]]
db encounter-id)
if anyone has the same problem, its because i was doing way too much work in one unification clause. split the get years and string concatenation and bob's your uncle