Skip to content

Commit

Permalink
chore: fix repl start with aidbox org-bac package
Browse files Browse the repository at this point in the history
  • Loading branch information
spicyfalafel committed Sep 17, 2024
1 parent 8398cd4 commit 541394d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dev/user.clj
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
[clojure.data]
[clojure.java.io :as io]))

(def r4-schemas (import/retrieve (import/resource "resources/r4") {}))
(def r4b-schemas (import/retrieve (import/resource "resources/r4b") {}))
(def r5-schemas (import/retrieve (import/resource "resources/r5") {}))
(defonce r4-schemas (import/retrieve (import/resource "resources/r4") {}))
(defonce r4b-schemas (import/retrieve (import/resource "resources/r4b") {}))
(defonce r5-schemas (import/retrieve (import/resource "resources/r5") {}))

(def aidbox-schemas (import/retrieve
(defonce aidbox-schemas (import/retrieve
(import/resource "http://localhost:8765/api/sdk/fhir-packages")
{:auth "YmFzaWM6c2VjcmV0"}))

Expand Down
1 change: 1 addition & 0 deletions src/aidbox_sdk/fhir.clj
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
(defmethod base-type? "hl7.fhir.r4.core" [schema] (contains? r4-base-types (:id schema)))
(defmethod base-type? "hl7.fhir.r4b.core" [schema] (contains? r4b-base-types (:id schema)))
(defmethod base-type? "hl7.fhir.r5.core" [schema] (contains? r5-base-types (:id schema)))
(defmethod base-type? :default [_] false)

(defn base-schema? [schema]
(or (= (:url schema) "http://hl7.org/fhir/StructureDefinition/BackboneElement")
Expand Down

0 comments on commit 541394d

Please sign in to comment.