Skip to content

Commit

Permalink
Added client.getState() #80
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-ignatov committed Sep 7, 2020
1 parent 9cb8190 commit 693e5b9
Show file tree
Hide file tree
Showing 74 changed files with 565 additions and 399 deletions.
4 changes: 2 additions & 2 deletions dist/build/bundle.dev.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/build/bundle.pure.dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fhirclient [7 Sep 2020 at 13:12]</title>
<title>fhirclient [7 Sep 2020 at 14:03]</title>
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TY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LNFsGQhkkz/gQNEBbPCbWsxGUpYVu3z8IyNAknwJkfPMEhLyrdi5RTyUVACkw4GSFRNWJNEW+fgPGwHD8/JxnRuLabN4CGNRkAE23na2+VmEAUmrYymSGjMAYqH84YUIyzgzs3XC7gNgH36Vcc4zKY9o9fgPBXUAiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />

<script>
Expand Down Expand Up @@ -46,7 +46,7 @@
<body>
<div id="app"></div>
<script>
window.chartData = [{"label":"fhir-client.pure.js","isAsset":true,"statSize":97555,"parsedSize":104784,"gzipSize":28636,"groups":[{"label":"node_modules","path":"./node_modules","statSize":20213,"groups":[{"label":"debug","path":"./node_modules/debug","statSize":14795,"groups":[{"label":"node_modules/ms","path":"./node_modules/debug/node_modules/ms","statSize":3034,"groups":[{"id":"./node_modules/debug/node_modules/ms/index.js","label":"index.js","path":"./node_modules/debug/node_modules/ms/index.js","statSize":3034}],"parsedSize":0,"gzipSize":0},{"label":"src","path":"./node_modules/debug/src","statSize":11761,"groups":[{"id":"./node_modules/debug/src/browser.js","label":"browser.js","path":"./node_modules/debug/src/browser.js","statSize":5831},{"id":"./node_modules/debug/src/common.js","label":"common.js","path":"./node_modules/debug/src/common.js","statSize":5930}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"process","path":"./node_modules/process","statSize":5418,"groups":[{"id":"./node_modules/process/browser.js","label":"browser.js","path":"./node_modules/process/browser.js","statSize":5418}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"src","path":"./src","statSize":77342,"groups":[{"id":"./src/Client.ts","label":"Client.ts","path":"./src/Client.ts","statSize":29446},{"id":"./src/HttpError.ts","label":"HttpError.ts","path":"./src/HttpError.ts","statSize":1249},{"label":"adapters","path":"./src/adapters","statSize":3493,"groups":[{"id":"./src/adapters/BrowserAdapter.ts","label":"BrowserAdapter.ts","path":"./src/adapters/BrowserAdapter.ts","statSize":3493}],"parsedSize":0,"gzipSize":0},{"label":"entry","path":"./src/entry","statSize":1196,"groups":[{"id":"./src/entry/browser.ts","label":"browser.ts","path":"./src/entry/browser.ts","statSize":1196}],"parsedSize":0,"gzipSize":0},{"id":"./src/lib.ts","label":"lib.ts","path":"./src/lib.ts","statSize":14664},{"id":"./src/settings.ts","label":"settings.ts","path":"./src/settings.ts","statSize":2247},{"id":"./src/smart.ts","label":"smart.ts","path":"./src/smart.ts","statSize":23548},{"label":"storage","path":"./src/storage","statSize":937,"groups":[{"id":"./src/storage/BrowserStorage.ts","label":"BrowserStorage.ts","path":"./src/storage/BrowserStorage.ts","statSize":937}],"parsedSize":0,"gzipSize":0},{"id":"./src/strings.ts","label":"strings.ts","path":"./src/strings.ts","statSize":562}],"parsedSize":0,"gzipSize":0}]}];
window.chartData = [{"label":"fhir-client.pure.js","isAsset":true,"statSize":98151,"parsedSize":105380,"gzipSize":28784,"groups":[{"label":"node_modules","path":"./node_modules","statSize":20213,"groups":[{"label":"debug","path":"./node_modules/debug","statSize":14795,"groups":[{"label":"node_modules/ms","path":"./node_modules/debug/node_modules/ms","statSize":3034,"groups":[{"id":"./node_modules/debug/node_modules/ms/index.js","label":"index.js","path":"./node_modules/debug/node_modules/ms/index.js","statSize":3034}],"parsedSize":0,"gzipSize":0},{"label":"src","path":"./node_modules/debug/src","statSize":11761,"groups":[{"id":"./node_modules/debug/src/browser.js","label":"browser.js","path":"./node_modules/debug/src/browser.js","statSize":5831},{"id":"./node_modules/debug/src/common.js","label":"common.js","path":"./node_modules/debug/src/common.js","statSize":5930}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"process","path":"./node_modules/process","statSize":5418,"groups":[{"id":"./node_modules/process/browser.js","label":"browser.js","path":"./node_modules/process/browser.js","statSize":5418}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"src","path":"./src","statSize":77938,"groups":[{"id":"./src/Client.ts","label":"Client.ts","path":"./src/Client.ts","statSize":30042},{"id":"./src/HttpError.ts","label":"HttpError.ts","path":"./src/HttpError.ts","statSize":1249},{"label":"adapters","path":"./src/adapters","statSize":3493,"groups":[{"id":"./src/adapters/BrowserAdapter.ts","label":"BrowserAdapter.ts","path":"./src/adapters/BrowserAdapter.ts","statSize":3493}],"parsedSize":0,"gzipSize":0},{"label":"entry","path":"./src/entry","statSize":1196,"groups":[{"id":"./src/entry/browser.ts","label":"browser.ts","path":"./src/entry/browser.ts","statSize":1196}],"parsedSize":0,"gzipSize":0},{"id":"./src/lib.ts","label":"lib.ts","path":"./src/lib.ts","statSize":14664},{"id":"./src/settings.ts","label":"settings.ts","path":"./src/settings.ts","statSize":2247},{"id":"./src/smart.ts","label":"smart.ts","path":"./src/smart.ts","statSize":23548},{"label":"storage","path":"./src/storage","statSize":937,"groups":[{"id":"./src/storage/BrowserStorage.ts","label":"BrowserStorage.ts","path":"./src/storage/BrowserStorage.ts","statSize":937}],"parsedSize":0,"gzipSize":0},{"id":"./src/strings.ts","label":"strings.ts","path":"./src/strings.ts","statSize":562}],"parsedSize":0,"gzipSize":0}]}];
window.defaultSizes = "parsed";
</script>
</body>
Expand Down
4 changes: 2 additions & 2 deletions dist/build/bundle.pure.prod.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fhirclient [7 Sep 2020 at 13:12]</title>
<title>fhirclient [7 Sep 2020 at 14:03]</title>
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9IbuF68hnfFaiHA/sxqm0wciIG43P60qKv9WXWc1RXGh/mFESFABTSBi0sNAKzqet17eCtOb3kZIDwxEEU0oAIJGYxNBDhBND29e0rtXXbcpuPmED9IhEAAQ/AXEaF8EPmnrr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ce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />

<script>
Expand Down Expand Up @@ -46,7 +46,7 @@
<body>
<div id="app"></div>
<script>
window.chartData = [{"label":"fhir-client.pure.min.js","isAsset":true,"statSize":97555,"parsedSize":34691,"gzipSize":11868,"groups":[{"label":"src","path":"./src","statSize":77342,"groups":[{"id":0,"label":"settings.ts","path":"./src/settings.ts","statSize":2247},{"id":1,"label":"lib.ts","path":"./src/lib.ts","statSize":14664},{"id":2,"label":"Client.ts","path":"./src/Client.ts","statSize":29446},{"label":"entry","path":"./src/entry","statSize":1196,"groups":[{"id":3,"label":"browser.ts","path":"./src/entry/browser.ts","statSize":1196}],"parsedSize":0,"gzipSize":0},{"label":"adapters","path":"./src/adapters","statSize":3493,"groups":[{"id":4,"label":"BrowserAdapter.ts","path":"./src/adapters/BrowserAdapter.ts","statSize":3493}],"parsedSize":0,"gzipSize":0},{"id":5,"label":"smart.ts","path":"./src/smart.ts","statSize":23548},{"id":6,"label":"HttpError.ts","path":"./src/HttpError.ts","statSize":1249},{"id":11,"label":"strings.ts","path":"./src/strings.ts","statSize":562},{"label":"storage","path":"./src/storage","statSize":937,"groups":[{"id":12,"label":"BrowserStorage.ts","path":"./src/storage/BrowserStorage.ts","statSize":937}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"node_modules","path":"./node_modules","statSize":20213,"groups":[{"label":"debug","path":"./node_modules/debug","statSize":14795,"groups":[{"label":"src","path":"./node_modules/debug/src","statSize":11761,"groups":[{"id":7,"label":"browser.js","path":"./node_modules/debug/src/browser.js","statSize":5831},{"id":9,"label":"common.js","path":"./node_modules/debug/src/common.js","statSize":5930}],"parsedSize":0,"gzipSize":0},{"label":"node_modules/ms","path":"./node_modules/debug/node_modules/ms","statSize":3034,"groups":[{"id":10,"label":"index.js","path":"./node_modules/debug/node_modules/ms/index.js","statSize":3034}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"process","path":"./node_modules/process","statSize":5418,"groups":[{"id":8,"label":"browser.js","path":"./node_modules/process/browser.js","statSize":5418}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0}]}];
window.chartData = [{"label":"fhir-client.pure.min.js","isAsset":true,"statSize":98151,"parsedSize":34742,"gzipSize":11882,"groups":[{"label":"src","path":"./src","statSize":77938,"groups":[{"id":0,"label":"settings.ts","path":"./src/settings.ts","statSize":2247},{"id":1,"label":"lib.ts","path":"./src/lib.ts","statSize":14664},{"id":2,"label":"Client.ts","path":"./src/Client.ts","statSize":30042},{"label":"entry","path":"./src/entry","statSize":1196,"groups":[{"id":3,"label":"browser.ts","path":"./src/entry/browser.ts","statSize":1196}],"parsedSize":0,"gzipSize":0},{"label":"adapters","path":"./src/adapters","statSize":3493,"groups":[{"id":4,"label":"BrowserAdapter.ts","path":"./src/adapters/BrowserAdapter.ts","statSize":3493}],"parsedSize":0,"gzipSize":0},{"id":5,"label":"smart.ts","path":"./src/smart.ts","statSize":23548},{"id":6,"label":"HttpError.ts","path":"./src/HttpError.ts","statSize":1249},{"id":11,"label":"strings.ts","path":"./src/strings.ts","statSize":562},{"label":"storage","path":"./src/storage","statSize":937,"groups":[{"id":12,"label":"BrowserStorage.ts","path":"./src/storage/BrowserStorage.ts","statSize":937}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"node_modules","path":"./node_modules","statSize":20213,"groups":[{"label":"debug","path":"./node_modules/debug","statSize":14795,"groups":[{"label":"src","path":"./node_modules/debug/src","statSize":11761,"groups":[{"id":7,"label":"browser.js","path":"./node_modules/debug/src/browser.js","statSize":5831},{"id":9,"label":"common.js","path":"./node_modules/debug/src/common.js","statSize":5930}],"parsedSize":0,"gzipSize":0},{"label":"node_modules/ms","path":"./node_modules/debug/node_modules/ms","statSize":3034,"groups":[{"id":10,"label":"index.js","path":"./node_modules/debug/node_modules/ms/index.js","statSize":3034}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"process","path":"./node_modules/process","statSize":5418,"groups":[{"id":8,"label":"browser.js","path":"./node_modules/process/browser.js","statSize":5418}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0}]}];
window.defaultSizes = "parsed";
</script>
</body>
Expand Down
21 changes: 21 additions & 0 deletions dist/build/fhir-client.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/build/fhir-client.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/build/fhir-client.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/build/fhir-client.min.js.map

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions dist/build/fhir-client.pure.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/build/fhir-client.pure.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/build/fhir-client.pure.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/build/fhir-client.pure.min.js.map

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions dist/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## v2.3.5
- The `completeInTarget` authorize option defaults to `true` if the app was loaded in an iframe
- The `redirectUri` option accepts absolute URLs and does not append "/" to them
- The `refresh` client method will now use basic authorization for confidential clients
- The `refresh` client method will now try to make its request both with and without credentials
- The `request` client method will now return the response object if the response status is 201 (can get the `location` header after create)
- Added the `getState` method of the `Client` for state introspections

## v2.3.1
- `client.create` and `client.update` are using `"Content-Type": "application/json"` header by default
- `client.create` and `client.update` alow custom `Content-Type` to be specified
Expand Down
13 changes: 13 additions & 0 deletions dist/lib/Client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,19 @@ export default class Client {
* @category Utility
*/
getPath(obj: fhirclient.JsonObject, path?: string): any;
/**
* Returns a copy of the client state. Accepts a dot-separated path argument
* (same as for `getPath`) to allow for selecting specific properties.
* Examples:
* ```js
* client.getState(); // -> the entire state object
* client.getState("serverUrl"); // -> the URL we are connected to
* client.getState("tokenResponse.patient"); // -> The selected patient ID (if any)
* ```
* @param path The path (eg. "a.b.4.c")
* @returns {*} Whatever is found in the path or undefined
*/
getState(path?: string): any;
/**
* Returns a promise that will be resolved with the fhir version as defined
* in the CapabilityStatement.
Expand Down
17 changes: 17 additions & 0 deletions dist/lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,23 @@ class Client {
getPath(obj, path = "") {
return lib_1.getPath(obj, path);
}
/**
* Returns a copy of the client state. Accepts a dot-separated path argument
* (same as for `getPath`) to allow for selecting specific properties.
* Examples:
* ```js
* client.getState(); // -> the entire state object
* client.getState("serverUrl"); // -> the URL we are connected to
* client.getState("tokenResponse.patient"); // -> The selected patient ID (if any)
* ```
* @param path The path (eg. "a.b.4.c")
* @returns {*} Whatever is found in the path or undefined
*/


getState(path = "") {
return lib_1.getPath(Object.assign({}, this.state), path);
}
/**
* Returns a promise that will be resolved with the fhir version as defined
* in the CapabilityStatement.
Expand Down
2 changes: 1 addition & 1 deletion dist/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fhirclient",
"version": "2.3.4",
"version": "2.3.5",
"description": "JavaScript client for Fast Healthcare Interoperability Resources",
"author": "SMART Health IT <[email protected]> (https://smarthealthit.org/)",
"contributors": [
Expand Down
2 changes: 1 addition & 1 deletion docs/typedoc/assets/js/search.js

Large diffs are not rendered by default.

Loading

0 comments on commit 693e5b9

Please sign in to comment.