Commit graph

71 commits

Author SHA1 Message Date
Gered ed4d571cf5 allow extra parameters to be passed to get-resource-bundle 2014-09-08 15:07:10 -04:00
Gered 5c2a9b838e shouldn't be using join-paths here, cemerick.url/url is best
proper handling of a full URL (join-paths is really just for joining
of sub-paths after the protocol & domain name)
2014-09-08 13:48:06 -04:00
Gered f966e6b26f fix incorrect call to validate-bundle! fn 2014-09-08 13:34:47 -04:00
Gered 152f72a2bb use a more descriptive arg name 2014-09-04 15:27:33 -04:00
Gered 7b240580ea formatting 2014-09-04 15:26:55 -04:00
Gered 8b0be35c6f add function 'parse-url' which auto determines whether the url is absolute or relative and parses appropriately 2014-09-04 15:26:39 -04:00
Gered 95e68d49df add helpers for getting extension values from a resource 2014-09-03 09:25:07 -04:00
Gered 29aef2e2f6 update doc comment to include a relevant reference link 2014-09-03 09:17:26 -04:00
Gered ae85b7b00d add function for following contained resource references 2014-09-03 09:17:09 -04:00
Gered d3599ee48a helper function for finding resources in a bundle by url 2014-09-03 09:12:55 -04:00
Gered cc7b3f38f4 helper function for checking if a url is absolute or not 2014-09-03 08:49:23 -04:00
Gered e4689d03eb add get-base-url-from-bundle. make get-bundle-next-page-url public. 2014-09-02 15:20:52 -04:00
Gered 442162d7e5 add helper functions for turning date/time strings to Date objects 2014-09-02 15:17:50 -04:00
Gered 28d5efd4b5 add helper functions for converting between relative and absolute URLs 2014-09-02 13:09:41 -04:00
Gered 0bb903a746 forgot this 2014-09-02 13:01:20 -04:00
Gered d48ec5183f split parse-resource-url into 2 functions for relative/absolute urls.
also updated absolute resource url parsing to not require the server
base url to be passed in, which is oh-so-much-nicer
2014-09-02 13:01:09 -04:00
Gered 591c3ff2db add transaction support 2014-08-29 15:34:42 -04:00
Gered 35cc2eda99 add basic authentication support 2014-08-29 09:50:36 -04:00
Gered 5ea1673530 update function args, no idea why they were written like that ... 2014-08-29 08:53:30 -04:00
Gered 21333538a5 remove mistakenly committed test code 2014-08-26 14:13:01 -04:00
Gered d530f429af use POST requests for all searches due to HTTP GET query size limits 2014-08-26 14:11:22 -04:00
Gered 16b52e6316 search requests now always use the optional "_search" url 2014-08-26 13:51:01 -04:00
Gered 08a07dadc2 add support for parsing relative resource urls 2014-08-20 14:00:25 -04:00
Gered e29e1241ec add history support 2014-08-06 10:20:26 -04:00
Gered 5830d01c23 fix ->local-timestamp so it actually returns local timestamp strings 2014-08-06 10:02:11 -04:00
Gered 15605f71e7 add helper functions for parsing FHIR resource urls 2014-08-06 09:44:36 -04:00
Gered 264233dc6e remove unused function 2014-08-06 09:17:52 -04:00
Gered 5f9ed2298a fix collect-resources adding nils for deleted resources 2014-08-06 09:14:39 -04:00
Gered b56735c01a add missing doc comment 2014-08-06 08:57:52 -04:00
Gered 28f2cef6dd add helper function for checking if a resource has been deleted or not 2014-08-05 15:28:29 -04:00
Gered a603756938 update fhir request response return handling to detect if the body has a json (fhir) response (probably an operation outcome resource) and parse+return it when it makes sense to (in conjunction with the Location header following option) 2014-08-01 15:29:53 -04:00
Gered 30aaf2a16c update doc comments for create/update with regards to return values 2014-08-01 15:12:04 -04:00
Gered 00350cfccc add optional argument to create/update to specify whether to return the complete new/updated resource or not 2014-08-01 15:08:11 -04:00
Gered ad44c28666 add basic support for operations to specify whether the 'Location' response header should be followed or not (if it is present in the response of course) 2014-08-01 15:07:28 -04:00
Gered 2ed10827d3 add delete operation 2014-08-01 15:06:43 -04:00
Gered 153dc8325d add some more validation/sanity checks 2014-07-18 15:50:52 -04:00
Gered f265a5c4ce add some simple validation sanity checks on the create/update functions 2014-07-18 14:12:41 -04:00
Gered 68480a3ca0 update doc comments 2014-07-18 13:34:47 -04:00
Gered 6ead967447 fix following response "Location" headers to not just follow them with HTTP 201 responses 2014-07-18 13:30:09 -04:00
Gered bbea913abe add update resource function 2014-07-14 15:22:17 -04:00
Gered cfa7c49135 clean up some old comment out test code 2014-07-14 13:37:06 -04:00
Gered 35e5e4ad1a add notes about exceptions being thrown to doc-comments 2014-07-14 13:34:14 -04:00
Gered c2bd54c15c add doc-comment 2014-07-14 13:30:01 -04:00
Gered 41e5b2e46a add create resource support. re-do request handling a bit to handle http 201 returns which include a "location" header 2014-07-14 11:26:25 -04:00
Gered d3f52d6643 clean up response error handling 2014-07-14 11:03:51 -04:00
Gered 04c8a56390 update http post/put calls to sent a proper content-type. rework core fhir-request function to accept a request type and handle fhir error response parsing/returns 2014-07-14 10:19:02 -04:00
Gered cb4355768a 410 will get returned for deleted resources, treat the same as 404 2014-07-11 15:16:48 -04:00
Gered aa32c20ba7 update http request functions, adding basic support for POST/PUT/DELETE 2014-07-08 14:24:55 -04:00
Gered 2dda8d9bbf add support for getting resources via relative urls 2014-07-08 13:52:54 -04:00
Gered cc3b85a2b1 add convenience function 'search-and-fetch' 2014-07-08 11:33:13 -04:00