add get-resource-bundle
This commit is contained in:
parent
7d5194f9c3
commit
23a4bce89c
|
@ -71,6 +71,16 @@
|
||||||
base-url
|
base-url
|
||||||
(apply join-paths url-components))))
|
(apply join-paths url-components))))
|
||||||
|
|
||||||
|
(defn get-resource-bundle
|
||||||
|
"gets a single resource from a FHIR server that is contained in a bundle."
|
||||||
|
[base-url type id]
|
||||||
|
(let [resource-name (->fhir-resource-name type)
|
||||||
|
url-components ["/" resource-name]]
|
||||||
|
(fhir-get-request
|
||||||
|
base-url
|
||||||
|
(apply join-paths url-components)
|
||||||
|
{:_id id})))
|
||||||
|
|
||||||
(defn search
|
(defn search
|
||||||
"searches for resources on a FHIR server. multiple parameters are ANDed together. use of the search
|
"searches for resources on a FHIR server. multiple parameters are ANDed together. use of the search
|
||||||
operator helper functions is encouraged to ensure proper escaping/encoding of search parameters.
|
operator helper functions is encouraged to ensure proper escaping/encoding of search parameters.
|
||||||
|
|
Reference in a new issue