@medplum/core 0.5.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/cjs/index.js +819 -60
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/index.min.js +1 -1
  4. package/dist/cjs/index.min.js.map +1 -1
  5. package/dist/esm/index.js +817 -61
  6. package/dist/esm/index.js.map +1 -1
  7. package/dist/esm/index.min.js +1 -1
  8. package/dist/esm/index.min.js.map +1 -1
  9. package/dist/types/client.d.ts +427 -13
  10. package/dist/types/fix-ro-iddentifiers.d.ts +0 -0
  11. package/dist/types/index.d.ts +1 -0
  12. package/dist/types/repo.d.ts +116 -0
  13. package/dist/types/search.d.ts +9 -12
  14. package/dist/types/utils.d.ts +21 -0
  15. package/docs/.nojekyll +1 -0
  16. package/docs/assets/highlight.css +92 -0
  17. package/docs/assets/icons.css +1043 -0
  18. package/docs/assets/icons.png +0 -0
  19. package/docs/assets/icons@2x.png +0 -0
  20. package/docs/assets/main.js +52 -0
  21. package/docs/assets/search.js +1 -0
  22. package/docs/assets/style.css +1414 -0
  23. package/docs/assets/widgets.png +0 -0
  24. package/docs/assets/widgets@2x.png +0 -0
  25. package/docs/classes/LegacyRepositoryClient.html +71 -0
  26. package/docs/classes/MedplumClient.html +324 -0
  27. package/docs/classes/OperationOutcomeError.html +6 -0
  28. package/docs/enums/Operator.html +5 -0
  29. package/docs/enums/PropertyType.html +5 -0
  30. package/docs/enums/SearchParameterType.html +1 -0
  31. package/docs/index.html +89 -0
  32. package/docs/interfaces/AddressFormatOptions.html +1 -0
  33. package/docs/interfaces/FetchLike.html +1 -0
  34. package/docs/interfaces/Filter.html +1 -0
  35. package/docs/interfaces/GoogleCredentialResponse.html +1 -0
  36. package/docs/interfaces/HumanNameFormatOptions.html +1 -0
  37. package/docs/interfaces/IndexedStructureDefinition.html +19 -0
  38. package/docs/interfaces/LoginAuthenticationResponse.html +1 -0
  39. package/docs/interfaces/LoginProfileResponse.html +1 -0
  40. package/docs/interfaces/LoginScopeResponse.html +1 -0
  41. package/docs/interfaces/LoginState.html +1 -0
  42. package/docs/interfaces/MedplumClientOptions.html +33 -0
  43. package/docs/interfaces/RegisterRequest.html +1 -0
  44. package/docs/interfaces/SearchParameterDetails.html +1 -0
  45. package/docs/interfaces/SearchRequest.html +1 -0
  46. package/docs/interfaces/SortRule.html +1 -0
  47. package/docs/interfaces/TokenResponse.html +1 -0
  48. package/docs/interfaces/TypeSchema.html +10 -0
  49. package/docs/modules.html +138 -0
  50. package/package.json +3 -2
@@ -0,0 +1,324 @@
1
+ <!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>MedplumClient | @medplum/core</title><meta name="description" content="Documentation for @medplum/core"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@medplum/core</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@medplum/core</a></li><li><a href="MedplumClient.html">MedplumClient</a></li></ul><h1>Class MedplumClient </h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
2
+ <p>The MedplumClient class provides a client for the Medplum FHIR server.</p>
3
+ </div><div><p>The client can be used in the browser, in a NodeJS application, or in a Medplum Bot.</p>
4
+ <p>The client provides helpful methods for common operations such as:</p>
5
+ <ol>
6
+ <li>Authenticating</li>
7
+ <li>Creating resources</li>
8
+ <li>Reading resources</li>
9
+ <li>Updating resources</li>
10
+ <li>Deleting resources</li>
11
+ <li>Searching</li>
12
+ <li>Making GraphQL queries</li>
13
+ </ol>
14
+ <p>Here is a quick example of how to use the client:</p>
15
+ <pre><code class="language-typescript"><span class="hl-2">import</span><span class="hl-1"> { </span><span class="hl-0">MedplumClient</span><span class="hl-1"> } </span><span class="hl-2">from</span><span class="hl-1"> </span><span class="hl-3">&#39;@medplum/core&#39;</span><span class="hl-1">;</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">medplum</span><span class="hl-1"> = </span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-6">MedplumClient</span><span class="hl-1">();</span>
16
+ </code></pre>
17
+ <p>Create a <code>Patient</code>:</p>
18
+ <pre><code class="language-typescript"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">patient</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">medplum</span><span class="hl-1">.</span><span class="hl-6">createResource</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">resourceType:</span><span class="hl-1"> </span><span class="hl-3">&#39;Patient&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">name:</span><span class="hl-1"> [{</span><br/><span class="hl-1"> </span><span class="hl-0">given:</span><span class="hl-1"> [</span><span class="hl-3">&#39;Alice&#39;</span><span class="hl-1">],</span><br/><span class="hl-1"> </span><span class="hl-0">family:</span><span class="hl-1"> </span><span class="hl-3">&#39;Smith&#39;</span><br/><span class="hl-1"> }]</span><br/><span class="hl-1">});</span>
19
+ </code></pre>
20
+ <p>Read a <code>Patient</code> by ID:</p>
21
+ <pre><code class="language-typescript"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">patient</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">medplum</span><span class="hl-1">.</span><span class="hl-6">readResource</span><span class="hl-1">(</span><span class="hl-3">&#39;Patient&#39;</span><span class="hl-1">, </span><span class="hl-3">&#39;123&#39;</span><span class="hl-1">);</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">patient</span><span class="hl-1">.</span><span class="hl-0">name</span><span class="hl-1">[</span><span class="hl-8">0</span><span class="hl-1">].</span><span class="hl-0">given</span><span class="hl-1">[</span><span class="hl-8">0</span><span class="hl-1">]);</span>
22
+ </code></pre>
23
+ <p>Search for a <code>Patient</code> by name:</p>
24
+ <pre><code class="language-typescript"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">bundle</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">medplum</span><span class="hl-1">.</span><span class="hl-6">search</span><span class="hl-1">(</span><span class="hl-3">&#39;Patient?name=Alice&#39;</span><span class="hl-1">);</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">bundle</span><span class="hl-1">.</span><span class="hl-0">total</span><span class="hl-1">);</span>
25
+ </code></pre>
26
+ </div></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="tsd-signature-type">EventTarget</span><ul class="tsd-hierarchy"><li><span class="target">MedplumClient</span></li></ul></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="MedplumClient.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="MedplumClient.html#addEventListener" class="tsd-kind-icon">add<wbr/>Event<wbr/>Listener</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#clear" class="tsd-kind-icon">clear</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#clientCredentials" class="tsd-kind-icon">client<wbr/>Credentials</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#createBinary" class="tsd-kind-icon">create<wbr/>Binary</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#createResource" class="tsd-kind-icon">create<wbr/>Resource</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#delete" class="tsd-kind-icon">delete</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#deleteResource" class="tsd-kind-icon">delete<wbr/>Resource</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="MedplumClient.html#dispatchEvent" class="tsd-kind-icon">dispatch<wbr/>Event</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#download" class="tsd-kind-icon">download</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#fhirUrl" class="tsd-kind-icon">fhir<wbr/>Url</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#get" class="tsd-kind-icon">get</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#getActiveLogin" class="tsd-kind-icon">get<wbr/>Active<wbr/>Login</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#getCached" class="tsd-kind-icon">get<wbr/>Cached</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#getCachedReference" class="tsd-kind-icon">get<wbr/>Cached<wbr/>Reference</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#getLogins" class="tsd-kind-icon">get<wbr/>Logins</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#getProfile" class="tsd-kind-icon">get<wbr/>Profile</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#getProfileAsync" class="tsd-kind-icon">get<wbr/>Profile<wbr/>Async</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#getSchema" class="tsd-kind-icon">get<wbr/>Schema</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#getUserConfiguration" class="tsd-kind-icon">get<wbr/>User<wbr/>Configuration</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#graphql" class="tsd-kind-icon">graphql</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#isLoading" class="tsd-kind-icon">is<wbr/>Loading</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#patch" class="tsd-kind-icon">patch</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#patchResource" class="tsd-kind-icon">patch<wbr/>Resource</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#post" class="tsd-kind-icon">post</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#processCode" class="tsd-kind-icon">process<wbr/>Code</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#put" class="tsd-kind-icon">put</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#readCached" class="tsd-kind-icon">read<wbr/>Cached</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#readCachedReference" class="tsd-kind-icon">read<wbr/>Cached<wbr/>Reference</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#readHistory" class="tsd-kind-icon">read<wbr/>History</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#readPatientEverything" class="tsd-kind-icon">read<wbr/>Patient<wbr/>Everything</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#readReference" class="tsd-kind-icon">read<wbr/>Reference</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#readResource" class="tsd-kind-icon">read<wbr/>Resource</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#readVersion" class="tsd-kind-icon">read<wbr/>Version</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#register" class="tsd-kind-icon">register</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="MedplumClient.html#removeEventListeneer" class="tsd-kind-icon">remove<wbr/>Event<wbr/>Listeneer</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#requestSchema" class="tsd-kind-icon">request<wbr/>Schema</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#search" class="tsd-kind-icon">search</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#searchOne" class="tsd-kind-icon">search<wbr/>One</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#searchResources" class="tsd-kind-icon">search<wbr/>Resources</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#searchValueSet" class="tsd-kind-icon">search<wbr/>Value<wbr/>Set</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#setAccessToken" class="tsd-kind-icon">set<wbr/>Access<wbr/>Token</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#setActiveLogin" class="tsd-kind-icon">set<wbr/>Active<wbr/>Login</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#signInWithRedirect" class="tsd-kind-icon">sign<wbr/>In<wbr/>With<wbr/>Redirect</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#signOut" class="tsd-kind-icon">sign<wbr/>Out</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#signOutWithRedirect" class="tsd-kind-icon">sign<wbr/>Out<wbr/>With<wbr/>Redirect</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#startGoogleLogin" class="tsd-kind-icon">start<wbr/>Google<wbr/>Login</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#startLogin" class="tsd-kind-icon">start<wbr/>Login</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#updateResource" class="tsd-kind-icon">update<wbr/>Resource</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link">constructor<a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">new <wbr/>Medplum<wbr/>Client<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/MedplumClientOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">MedplumClientOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="MedplumClient.html" class="tsd-signature-type" data-tsd-kind="Class">MedplumClient</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides EventTarget.constructor</p><ul><li>Defined in dev/medplum/packages/core/src/client.ts:217</li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <a href="../interfaces/MedplumClientOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">MedplumClientOptions</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="MedplumClient.html" class="tsd-signature-type" data-tsd-kind="Class">MedplumClient</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="addEventListener" class="tsd-anchor"></a><h3 class="tsd-anchor-link">add<wbr/>Event<wbr/>Listener<a href="#addEventListener" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">add<wbr/>Event<wbr/>Listener<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EventListener</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from EventTarget.addEventListener</p><ul><li>Defined in dev/medplum/packages/core/src/eventtarget.ts:19</li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>type: <span class="tsd-signature-type">string</span></h5></li><li><h5>callback: <span class="tsd-signature-type">EventListener</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="clear" class="tsd-anchor"></a><h3 class="tsd-anchor-link">clear<a href="#clear" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">clear<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:253</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
27
+ <p>Clears all auth state including local storage and session storage.</p>
28
+ </div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="clientCredentials" class="tsd-anchor"></a><h3 class="tsd-anchor-link">client<wbr/>Credentials<a href="#clientCredentials" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">client<wbr/>Credentials<span class="tsd-signature-symbol">(</span>clientId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, clientSecret<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../modules.html#ProfileResource" class="tsd-signature-type" data-tsd-kind="Type alias">ProfileResource</a><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:1250</li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>clientId: <span class="tsd-signature-type">string</span></h5></li><li><h5>clientSecret: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../modules.html#ProfileResource" class="tsd-signature-type" data-tsd-kind="Type alias">ProfileResource</a><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="createBinary" class="tsd-anchor"></a><h3 class="tsd-anchor-link">create<wbr/>Binary<a href="#createBinary" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">create<wbr/>Binary<span class="tsd-signature-symbol">(</span>data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, filename<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, contentType<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Binary</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:869</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
29
+ <p>Creates a FHIR <code>Binary</code> resource with the provided data content.</p>
30
+ </div><div><p>The return value is the newly created resource, including the ID and meta.</p>
31
+ <p>The <code>data</code> parameter can be a string or a <code>File</code> object.</p>
32
+ <p>A <code>File</code> object often comes from a <code>&lt;input type=&quot;file&quot;&gt;</code> element.</p>
33
+ <p>Example:</p>
34
+ <pre><code class="language-typescript"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">result</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">medplum</span><span class="hl-1">.</span><span class="hl-6">createBinary</span><span class="hl-1">(</span><span class="hl-0">myFile</span><span class="hl-1">, </span><span class="hl-3">&#39;test.jpg&#39;</span><span class="hl-1">, </span><span class="hl-3">&#39;image/jpeg&#39;</span><span class="hl-1">);</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">result</span><span class="hl-1">.</span><span class="hl-0">id</span><span class="hl-1">);</span>
35
+ </code></pre>
36
+ <p>See the FHIR &quot;create&quot; operation for full details: <a href="https://www.hl7.org/fhir/http.html#create">https://www.hl7.org/fhir/http.html#create</a></p>
37
+ </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>data: <span class="tsd-signature-type">any</span></h5></li><li><h5>filename: <span class="tsd-signature-type">string</span></h5></li><li><h5>contentType: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Binary</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>The result of the create operation.</p>
38
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a id="createResource" class="tsd-anchor"></a><h3 class="tsd-anchor-link">create<wbr/>Resource<a href="#createResource" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><li class="tsd-signature tsd-kind-icon">create<wbr/>Resource<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>resource<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:841</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
39
+ <p>Creates a new FHIR resource.</p>
40
+ </div><div><p>The return value is the newly created resource, including the ID and meta.</p>
41
+ <p>Example:</p>
42
+ <pre><code class="language-typescript"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">result</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">medplum</span><span class="hl-1">.</span><span class="hl-6">createResource</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">resourceType:</span><span class="hl-1"> </span><span class="hl-3">&#39;Patient&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">name:</span><span class="hl-1"> [{</span><br/><span class="hl-1"> </span><span class="hl-0">family:</span><span class="hl-1"> </span><span class="hl-3">&#39;Smith&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">given:</span><span class="hl-1"> [</span><span class="hl-3">&#39;John&#39;</span><span class="hl-1">]</span><br/><span class="hl-1"> }]</span><br/><span class="hl-1">});</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">result</span><span class="hl-1">.</span><span class="hl-0">id</span><span class="hl-1">);</span>
43
+ </code></pre>
44
+ <p>See the FHIR &quot;create&quot; operation for full details: <a href="https://www.hl7.org/fhir/http.html#create">https://www.hl7.org/fhir/http.html#create</a></p>
45
+ </div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Resource</span></h4></li></ul><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>resource: <span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
46
+ <p>The FHIR resource to create.</p>
47
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>The result of the create operation.</p>
48
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="delete" class="tsd-anchor"></a><h3 class="tsd-anchor-link">delete<a href="#delete" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">delete<span class="tsd-signature-symbol">(</span>url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:353</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
49
+ <p>Makes an HTTP DELETE request to the specified URL.</p>
50
+ </div><div><p>This is a lower level method for custom requests.
51
+ For common operations, we recommend using higher level methods
52
+ such as <code>deleteResource()</code>.</p>
53
+ </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>url: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
54
+ <p>The target URL.</p>
55
+ </div></div></li><li><h5>options: <span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol"> = {}</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
56
+ <p>Optional fetch options.</p>
57
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>Promise to the response content.</p>
58
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="deleteResource" class="tsd-anchor"></a><h3 class="tsd-anchor-link">delete<wbr/>Resource<a href="#deleteResource" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">delete<wbr/>Resource<span class="tsd-signature-symbol">(</span>resourceType<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:949</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
59
+ <p>Deletes a FHIR resource by resource type and ID.</p>
60
+ </div><div><p>Example:</p>
61
+ <pre><code class="language-typescript"><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">medplum</span><span class="hl-1">.</span><span class="hl-6">deleteResource</span><span class="hl-1">(</span><span class="hl-3">&#39;Patient&#39;</span><span class="hl-1">, </span><span class="hl-3">&#39;123&#39;</span><span class="hl-1">);</span>
62
+ </code></pre>
63
+ <p>See the FHIR &quot;delete&quot; operation for full details: <a href="https://www.hl7.org/fhir/http.html#delete">https://www.hl7.org/fhir/http.html#delete</a></p>
64
+ </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>resourceType: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
65
+ <p>The FHIR resource type.</p>
66
+ </div></div></li><li><h5>id: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
67
+ <p>The resource ID.</p>
68
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>The result of the delete operation.</p>
69
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="dispatchEvent" class="tsd-anchor"></a><h3 class="tsd-anchor-link">dispatch<wbr/>Event<a href="#dispatchEvent" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">dispatch<wbr/>Event<span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Event</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from EventTarget.dispatchEvent</p><ul><li>Defined in dev/medplum/packages/core/src/eventtarget.ts:39</li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>event: <span class="tsd-signature-type">Event</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="download" class="tsd-anchor"></a><h3 class="tsd-anchor-link">download<a href="#download" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">download<span class="tsd-signature-symbol">(</span>url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Blob</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:1030</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
70
+ <p>Downloads the URL as a blob.</p>
71
+ </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>url: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
72
+ <p>The URL to request.</p>
73
+ </div></div></li><li><h5>options: <span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol"> = {}</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Blob</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>Promise to the response body as a blob.</p>
74
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="fhirUrl" class="tsd-anchor"></a><h3 class="tsd-anchor-link">fhir<wbr/>Url<a href="#fhirUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">fhir<wbr/>Url<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:438</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
75
+ <p>Builds a FHIR URL from a collection of URL path components.
76
+ For example, <code>buildUrl(&#39;/Patient&#39;, &#39;123&#39;)</code> returns <code>fhir/R4/Patient/123</code>.</p>
77
+ </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>path: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
78
+ <p>The path component of the URL.</p>
79
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><div><p>The well-formed FHIR URL.</p>
80
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="get" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<a href="#get" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<span class="tsd-signature-symbol">(</span>url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:274</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
81
+ <p>Makes an HTTP GET request to the specified URL.</p>
82
+ </div><div><p>This is a lower level method for custom requests.
83
+ For common operations, we recommend using higher level methods
84
+ such as <code>readResource()</code>, <code>search()</code>, etc.</p>
85
+ </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>url: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
86
+ <p>The target URL.</p>
87
+ </div></div></li><li><h5>options: <span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol"> = {}</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
88
+ <p>Optional fetch options.</p>
89
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>Promise to the response content.</p>
90
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getActiveLogin" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Active<wbr/>Login<a href="#getActiveLogin" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Active<wbr/>Login<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/LoginState.html" class="tsd-signature-type" data-tsd-kind="Interface">LoginState</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:957</li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/LoginState.html" class="tsd-signature-type" data-tsd-kind="Interface">LoginState</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a id="getCached" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Cached<a href="#getCached" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><li class="tsd-signature tsd-kind-icon">get<wbr/>Cached<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>resourceType<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:580</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
91
+ <p>Returns a cached resource if it is available.</p>
92
+ </div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Resource</span></h4></li></ul><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>resourceType: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
93
+ <p>The FHIR resource type.</p>
94
+ </div></div></li><li><h5>id: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
95
+ <p>The FHIR resource ID.</p>
96
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span></h4><div><p>The resource if it is available in the cache; undefined otherwise.</p>
97
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a id="getCachedReference" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Cached<wbr/>Reference<a href="#getCachedReference" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><li class="tsd-signature tsd-kind-icon">get<wbr/>Cached<wbr/>Reference<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>reference<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Reference</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:594</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
98
+ <p>Returns a cached resource if it is available.</p>
99
+ </div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Resource</span></h4></li></ul><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>reference: <span class="tsd-signature-type">Reference</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span></h4><div><p>The resource if it is available in the cache; undefined otherwise.</p>
100
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getLogins" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Logins<a href="#getLogins" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Logins<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/LoginState.html" class="tsd-signature-type" data-tsd-kind="Interface">LoginState</a><span class="tsd-signature-symbol">[]</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:980</li></ul></aside><h4 class="tsd-returns-title">Returns <a href="../interfaces/LoginState.html" class="tsd-signature-type" data-tsd-kind="Interface">LoginState</a><span class="tsd-signature-symbol">[]</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getProfile" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Profile<a href="#getProfile" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Profile<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../modules.html#ProfileResource" class="tsd-signature-type" data-tsd-kind="Type alias">ProfileResource</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:1010</li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../modules.html#ProfileResource" class="tsd-signature-type" data-tsd-kind="Type alias">ProfileResource</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getProfileAsync" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Profile<wbr/>Async<a href="#getProfileAsync" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Profile<wbr/>Async<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../modules.html#ProfileResource" class="tsd-signature-type" data-tsd-kind="Type alias">ProfileResource</a><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:1014</li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../modules.html#ProfileResource" class="tsd-signature-type" data-tsd-kind="Type alias">ProfileResource</a><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getSchema" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Schema<a href="#getSchema" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Schema<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/IndexedStructureDefinition.html" class="tsd-signature-type" data-tsd-kind="Interface">IndexedStructureDefinition</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:714</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
101
+ <p>Returns a cached schema for a resource type.
102
+ If the schema is not cached, returns undefined.
103
+ It is assumed that a client will call requestSchema before using this method.</p>
104
+ </div></div><h4 class="tsd-returns-title">Returns <a href="../interfaces/IndexedStructureDefinition.html" class="tsd-signature-type" data-tsd-kind="Interface">IndexedStructureDefinition</a></h4><div><p>The schema if immediately available, undefined otherwise.</p>
105
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getUserConfiguration" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>User<wbr/>Configuration<a href="#getUserConfiguration" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>User<wbr/>Configuration<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">UserConfiguration</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:1021</li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">UserConfiguration</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="graphql" class="tsd-anchor"></a><h3 class="tsd-anchor-link">graphql<a href="#graphql" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">graphql<span class="tsd-signature-symbol">(</span>query<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:953</li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>query: <span class="tsd-signature-type">string</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <span class="tsd-signature-type">RequestInit</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="isLoading" class="tsd-anchor"></a><h3 class="tsd-anchor-link">is<wbr/>Loading<a href="#isLoading" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">is<wbr/>Loading<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:1006</li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="patch" class="tsd-anchor"></a><h3 class="tsd-anchor-link">patch<a href="#patch" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">patch<span class="tsd-signature-symbol">(</span>url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, operations<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Operation</span><span class="tsd-signature-symbol">[]</span>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:336</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
106
+ <p>Makes an HTTP PATCH request to the specified URL.</p>
107
+ </div><div><p>This is a lower level method for custom requests.
108
+ For common operations, we recommend using higher level methods
109
+ such as <code>patchResource()</code>.</p>
110
+ </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>url: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
111
+ <p>The target URL.</p>
112
+ </div></div></li><li><h5>operations: <span class="tsd-signature-type">Operation</span><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
113
+ <p>Array of JSONPatch operations.</p>
114
+ </div></div></li><li><h5>options: <span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol"> = {}</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
115
+ <p>Optional fetch options.</p>
116
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>Promise to the response content.</p>
117
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a id="patchResource" class="tsd-anchor"></a><h3 class="tsd-anchor-link">patch<wbr/>Resource<a href="#patchResource" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><li class="tsd-signature tsd-kind-icon">patch<wbr/>Resource<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>resourceType<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, operations<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Operation</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:930</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
118
+ <p>Updates a FHIR resource using JSONPatch operations.</p>
119
+ </div><div><p>The return value is the updated resource, including the ID and meta.</p>
120
+ <p>Example:</p>
121
+ <pre><code class="language-typescript"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">result</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">medplum</span><span class="hl-1">.</span><span class="hl-6">patchResource</span><span class="hl-1">(</span><span class="hl-3">&#39;Patient&#39;</span><span class="hl-1">, </span><span class="hl-3">&#39;123&#39;</span><span class="hl-1">, [</span><br/><span class="hl-1"> {</span><span class="hl-0">op:</span><span class="hl-1"> </span><span class="hl-3">&#39;replace&#39;</span><span class="hl-1">, </span><span class="hl-0">path:</span><span class="hl-1"> </span><span class="hl-3">&#39;/name/0/family&#39;</span><span class="hl-1">, </span><span class="hl-0">value:</span><span class="hl-1"> </span><span class="hl-3">&#39;Smith&#39;</span><span class="hl-1">},</span><br/><span class="hl-1">]);</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">result</span><span class="hl-1">.</span><span class="hl-0">meta</span><span class="hl-1">.</span><span class="hl-0">versionId</span><span class="hl-1">);</span>
122
+ </code></pre>
123
+ <p>See the FHIR &quot;update&quot; operation for full details: <a href="https://www.hl7.org/fhir/http.html#patch">https://www.hl7.org/fhir/http.html#patch</a></p>
124
+ <p>See the JSONPatch specification for full details: <a href="https://tools.ietf.org/html/rfc6902">https://tools.ietf.org/html/rfc6902</a></p>
125
+ </div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Resource</span></h4></li></ul><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>resourceType: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
126
+ <p>The FHIR resource type.</p>
127
+ </div></div></li><li><h5>id: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
128
+ <p>The resource ID.</p>
129
+ </div></div></li><li><h5>operations: <span class="tsd-signature-type">Operation</span><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
130
+ <p>The JSONPatch operations.</p>
131
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>The result of the patch operations.</p>
132
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="post" class="tsd-anchor"></a><h3 class="tsd-anchor-link">post<a href="#post" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">post<span class="tsd-signature-symbol">(</span>url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, body<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, contentType<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:291</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
133
+ <p>Makes an HTTP POST request to the specified URL.</p>
134
+ </div><div><p>This is a lower level method for custom requests.
135
+ For common operations, we recommend using higher level methods
136
+ such as <code>createResource()</code>.</p>
137
+ </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>url: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
138
+ <p>The target URL.</p>
139
+ </div></div></li><li><h5>body: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
140
+ <p>The content body. Strings and <code>File</code> objects are passed directly. Other objects are converted to JSON.</p>
141
+ </div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> contentType: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
142
+ <p>The content type to be included in the &quot;Content-Type&quot; header.</p>
143
+ </div></div></li><li><h5>options: <span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol"> = {}</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
144
+ <p>Optional fetch options.</p>
145
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>Promise to the response content.</p>
146
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="processCode" class="tsd-anchor"></a><h3 class="tsd-anchor-link">process<wbr/>Code<a href="#processCode" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">process<wbr/>Code<span class="tsd-signature-symbol">(</span>code<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../modules.html#ProfileResource" class="tsd-signature-type" data-tsd-kind="Type alias">ProfileResource</a><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:1200</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
147
+ <p>Processes an OAuth authorization code.
148
+ See: <a href="https://openid.net/specs/openid-connect-core-1_0.html#TokenRequest">https://openid.net/specs/openid-connect-core-1_0.html#TokenRequest</a></p>
149
+ </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>code: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
150
+ <p>The authorization code received by URL parameter.</p>
151
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../modules.html#ProfileResource" class="tsd-signature-type" data-tsd-kind="Type alias">ProfileResource</a><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="put" class="tsd-anchor"></a><h3 class="tsd-anchor-link">put<a href="#put" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">put<span class="tsd-signature-symbol">(</span>url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, body<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, contentType<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:314</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
152
+ <p>Makes an HTTP PUT request to the specified URL.</p>
153
+ </div><div><p>This is a lower level method for custom requests.
154
+ For common operations, we recommend using higher level methods
155
+ such as <code>updateResource()</code>.</p>
156
+ </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>url: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
157
+ <p>The target URL.</p>
158
+ </div></div></li><li><h5>body: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
159
+ <p>The content body. Strings and <code>File</code> objects are passed directly. Other objects are converted to JSON.</p>
160
+ </div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> contentType: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
161
+ <p>The content type to be included in the &quot;Content-Type&quot; header.</p>
162
+ </div></div></li><li><h5>options: <span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol"> = {}</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
163
+ <p>Optional fetch options.</p>
164
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>Promise to the response content.</p>
165
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a id="readCached" class="tsd-anchor"></a><h3 class="tsd-anchor-link">read<wbr/>Cached<a href="#readCached" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><li class="tsd-signature tsd-kind-icon">read<wbr/>Cached<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>resourceType<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:646</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
166
+ <p>Reads a resource by resource type and ID using the in-memory resource cache.</p>
167
+ </div><div><p>If the resource is not available in the cache, it will be read from the server.</p>
168
+ <p>Example:</p>
169
+ <pre><code class="language-typescript"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">patient</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">medplum</span><span class="hl-1">.</span><span class="hl-6">readCached</span><span class="hl-1">(</span><span class="hl-3">&#39;Patient&#39;</span><span class="hl-1">, </span><span class="hl-3">&#39;123&#39;</span><span class="hl-1">);</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">patient</span><span class="hl-1">);</span>
170
+ </code></pre>
171
+ <p>See the FHIR &quot;read&quot; operation for full details: <a href="https://www.hl7.org/fhir/http.html#read">https://www.hl7.org/fhir/http.html#read</a></p>
172
+ </div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Resource</span></h4></li></ul><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>resourceType: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
173
+ <p>The FHIR resource type.</p>
174
+ </div></div></li><li><h5>id: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
175
+ <p>The resource ID.</p>
176
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>The resource if available; undefined otherwise.</p>
177
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a id="readCachedReference" class="tsd-anchor"></a><h3 class="tsd-anchor-link">read<wbr/>Cached<wbr/>Reference<a href="#readCachedReference" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><li class="tsd-signature tsd-kind-icon">read<wbr/>Cached<wbr/>Reference<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>reference<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Reference</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:698</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
178
+ <p>Reads a resource by <code>Reference</code> using the in-memory resource cache.</p>
179
+ </div><div><p>This is a convenience method for <code>readResource()</code> that accepts a <code>Reference</code> object.</p>
180
+ <p>If the resource is not available in the cache, it will be read from the server.</p>
181
+ <p>Example:</p>
182
+ <pre><code class="language-typescript"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">serviceRequest</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">medplum</span><span class="hl-1">.</span><span class="hl-6">readResource</span><span class="hl-1">(</span><span class="hl-3">&#39;ServiceRequest&#39;</span><span class="hl-1">, </span><span class="hl-3">&#39;123&#39;</span><span class="hl-1">);</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">patient</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">medplum</span><span class="hl-1">.</span><span class="hl-6">readCachedReference</span><span class="hl-1">(</span><span class="hl-0">serviceRequest</span><span class="hl-1">.</span><span class="hl-0">subject</span><span class="hl-1">);</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">patient</span><span class="hl-1">);</span>
183
+ </code></pre>
184
+ <p>See the FHIR &quot;read&quot; operation for full details: <a href="https://www.hl7.org/fhir/http.html#read">https://www.hl7.org/fhir/http.html#read</a></p>
185
+ </div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Resource</span></h4></li></ul><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>reference: <span class="tsd-signature-type">Reference</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
186
+ <p>The FHIR reference object.</p>
187
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>The resource if available; undefined otherwise.</p>
188
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a id="readHistory" class="tsd-anchor"></a><h3 class="tsd-anchor-link">read<wbr/>History<a href="#readHistory" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><li class="tsd-signature tsd-kind-icon">read<wbr/>History<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>resourceType<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Bundle</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:790</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
189
+ <p>Reads resource history by resource type and ID.</p>
190
+ </div><div><p>The return value is a bundle of all versions of the resource.</p>
191
+ <p>Example:</p>
192
+ <pre><code class="language-typescript"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">history</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">medplum</span><span class="hl-1">.</span><span class="hl-6">readHistory</span><span class="hl-1">(</span><span class="hl-3">&#39;Patient&#39;</span><span class="hl-1">, </span><span class="hl-3">&#39;123&#39;</span><span class="hl-1">);</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">history</span><span class="hl-1">);</span>
193
+ </code></pre>
194
+ <p>See the FHIR &quot;history&quot; operation for full details: <a href="https://www.hl7.org/fhir/http.html#history">https://www.hl7.org/fhir/http.html#history</a></p>
195
+ </div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Resource</span></h4></li></ul><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>resourceType: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
196
+ <p>The FHIR resource type.</p>
197
+ </div></div></li><li><h5>id: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
198
+ <p>The resource ID.</p>
199
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Bundle</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>The resource if available; undefined otherwise.</p>
200
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="readPatientEverything" class="tsd-anchor"></a><h3 class="tsd-anchor-link">read<wbr/>Patient<wbr/>Everything<a href="#readPatientEverything" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">read<wbr/>Patient<wbr/>Everything<span class="tsd-signature-symbol">(</span>id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Bundle</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Resource</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:814</li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>id: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Bundle</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Resource</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a id="readReference" class="tsd-anchor"></a><h3 class="tsd-anchor-link">read<wbr/>Reference<a href="#readReference" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><li class="tsd-signature tsd-kind-icon">read<wbr/>Reference<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>reference<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Reference</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:669</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
201
+ <p>Reads a resource by <code>Reference</code>.</p>
202
+ </div><div><p>This is a convenience method for <code>readResource()</code> that accepts a <code>Reference</code> object.</p>
203
+ <p>Example:</p>
204
+ <pre><code class="language-typescript"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">serviceRequest</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">medplum</span><span class="hl-1">.</span><span class="hl-6">readResource</span><span class="hl-1">(</span><span class="hl-3">&#39;ServiceRequest&#39;</span><span class="hl-1">, </span><span class="hl-3">&#39;123&#39;</span><span class="hl-1">);</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">patient</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">medplum</span><span class="hl-1">.</span><span class="hl-6">readReference</span><span class="hl-1">(</span><span class="hl-0">serviceRequest</span><span class="hl-1">.</span><span class="hl-0">subject</span><span class="hl-1">);</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">patient</span><span class="hl-1">);</span>
205
+ </code></pre>
206
+ <p>See the FHIR &quot;read&quot; operation for full details: <a href="https://www.hl7.org/fhir/http.html#read">https://www.hl7.org/fhir/http.html#read</a></p>
207
+ </div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Resource</span></h4></li></ul><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>reference: <span class="tsd-signature-type">Reference</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
208
+ <p>The FHIR reference object.</p>
209
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>The resource if available; undefined otherwise.</p>
210
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a id="readResource" class="tsd-anchor"></a><h3 class="tsd-anchor-link">read<wbr/>Resource<a href="#readResource" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><li class="tsd-signature tsd-kind-icon">read<wbr/>Resource<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>resourceType<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:618</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
211
+ <p>Reads a resource by resource type and ID.</p>
212
+ </div><div><p>Example:</p>
213
+ <pre><code class="language-typescript"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">patient</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">medplum</span><span class="hl-1">.</span><span class="hl-6">readResource</span><span class="hl-1">(</span><span class="hl-3">&#39;Patient&#39;</span><span class="hl-1">, </span><span class="hl-3">&#39;123&#39;</span><span class="hl-1">);</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">patient</span><span class="hl-1">);</span>
214
+ </code></pre>
215
+ <p>See the FHIR &quot;read&quot; operation for full details: <a href="https://www.hl7.org/fhir/http.html#read">https://www.hl7.org/fhir/http.html#read</a></p>
216
+ </div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Resource</span></h4></li></ul><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>resourceType: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
217
+ <p>The FHIR resource type.</p>
218
+ </div></div></li><li><h5>id: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
219
+ <p>The resource ID.</p>
220
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>The resource if available; undefined otherwise.</p>
221
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a id="readVersion" class="tsd-anchor"></a><h3 class="tsd-anchor-link">read<wbr/>Version<a href="#readVersion" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><li class="tsd-signature tsd-kind-icon">read<wbr/>Version<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>resourceType<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, vid<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:810</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
222
+ <p>Reads a specific version of a resource by resource type, ID, and version ID.</p>
223
+ </div><div><p>Example:</p>
224
+ <pre><code class="language-typescript"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">version</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">medplum</span><span class="hl-1">.</span><span class="hl-6">readVersion</span><span class="hl-1">(</span><span class="hl-3">&#39;Patient&#39;</span><span class="hl-1">, </span><span class="hl-3">&#39;123&#39;</span><span class="hl-1">, </span><span class="hl-3">&#39;456&#39;</span><span class="hl-1">);</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">version</span><span class="hl-1">);</span>
225
+ </code></pre>
226
+ <p>See the FHIR &quot;vread&quot; operation for full details: <a href="https://www.hl7.org/fhir/http.html#vread">https://www.hl7.org/fhir/http.html#vread</a></p>
227
+ </div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Resource</span></h4></li></ul><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>resourceType: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
228
+ <p>The FHIR resource type.</p>
229
+ </div></div></li><li><h5>id: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
230
+ <p>The resource ID.</p>
231
+ </div></div></li><li><h5>vid: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>The resource if available; undefined otherwise.</p>
232
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="register" class="tsd-anchor"></a><h3 class="tsd-anchor-link">register<a href="#register" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">register<span class="tsd-signature-symbol">(</span>request<span class="tsd-signature-symbol">: </span><a href="../interfaces/RegisterRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">RegisterRequest</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:362</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
233
+ <p>Tries to register a new user.</p>
234
+ </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>request: <a href="../interfaces/RegisterRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">RegisterRequest</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
235
+ <p>The registration request.</p>
236
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>Promise to the authentication response.</p>
237
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="removeEventListeneer" class="tsd-anchor"></a><h3 class="tsd-anchor-link">remove<wbr/>Event<wbr/>Listeneer<a href="#removeEventListeneer" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">remove<wbr/>Event<wbr/>Listeneer<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EventListener</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from EventTarget.removeEventListeneer</p><ul><li>Defined in dev/medplum/packages/core/src/eventtarget.ts:26</li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>type: <span class="tsd-signature-type">string</span></h5></li><li><h5>callback: <span class="tsd-signature-type">EventListener</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="requestSchema" class="tsd-anchor"></a><h3 class="tsd-anchor-link">request<wbr/>Schema<a href="#requestSchema" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">request<wbr/>Schema<span class="tsd-signature-symbol">(</span>resourceType<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/IndexedStructureDefinition.html" class="tsd-signature-type" data-tsd-kind="Interface">IndexedStructureDefinition</a><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:724</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
238
+ <p>Requests the schema for a resource type.
239
+ If the schema is already cached, the promise is resolved immediately.</p>
240
+ </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>resourceType: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
241
+ <p>The FHIR resource type.</p>
242
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/IndexedStructureDefinition.html" class="tsd-signature-type" data-tsd-kind="Interface">IndexedStructureDefinition</a><span class="tsd-signature-symbol">&gt;</span></h4><div><p>Promise to a schema with the requested resource type.</p>
243
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a id="search" class="tsd-anchor"></a><h3 class="tsd-anchor-link">search<a href="#search" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><li class="tsd-signature tsd-kind-icon">search<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>query<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/SearchRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">SearchRequest</a>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Bundle</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:498</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
244
+ <p>Sends a FHIR search request.</p>
245
+ </div><div><p>Example using a FHIR search string:</p>
246
+ <pre><code class="language-typescript"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">bundle</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">client</span><span class="hl-1">.</span><span class="hl-6">search</span><span class="hl-1">(</span><span class="hl-3">&#39;Patient?name=Alice&#39;</span><span class="hl-1">);</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">bundle</span><span class="hl-1">);</span>
247
+ </code></pre>
248
+ <p>Example using a structured search:</p>
249
+ <pre><code class="language-typescript"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">bundle</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">client</span><span class="hl-1">.</span><span class="hl-6">search</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">resourceType:</span><span class="hl-1"> </span><span class="hl-3">&#39;Patient&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">filters:</span><span class="hl-1"> [{</span><br/><span class="hl-1"> </span><span class="hl-0">code:</span><span class="hl-1"> </span><span class="hl-3">&#39;name&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">operator:</span><span class="hl-1"> </span><span class="hl-3">&#39;eq&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">value:</span><span class="hl-1"> </span><span class="hl-3">&#39;Alice&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> }]</span><br/><span class="hl-1">});</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">bundle</span><span class="hl-1">);</span>
250
+ </code></pre>
251
+ <p>The return value is a FHIR bundle:</p>
252
+ <pre><code class="language-json"><span class="hl-1">{</span><br/><span class="hl-1"> </span><span class="hl-9">&quot;resourceType&quot;</span><span class="hl-1">: </span><span class="hl-3">&quot;Bundle&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-9">&quot;type&quot;</span><span class="hl-1">: </span><span class="hl-3">&quot;searchest&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-9">&quot;total&quot;</span><span class="hl-1">: </span><span class="hl-8">1</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-9">&quot;entry&quot;</span><span class="hl-1">: [</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-9">&quot;resource&quot;</span><span class="hl-1">: {</span><br/><span class="hl-1"> </span><span class="hl-9">&quot;resourceType&quot;</span><span class="hl-1">: </span><span class="hl-3">&quot;Patient&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-9">&quot;name&quot;</span><span class="hl-1">: [</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-9">&quot;given&quot;</span><span class="hl-1">: [</span><br/><span class="hl-1"> </span><span class="hl-3">&quot;George&quot;</span><br/><span class="hl-1"> ],</span><br/><span class="hl-1"> </span><span class="hl-9">&quot;family&quot;</span><span class="hl-1">: </span><span class="hl-3">&quot;Washington&quot;</span><br/><span class="hl-1"> }</span><br/><span class="hl-1"> ],</span><br/><span class="hl-1"> }</span><br/><span class="hl-1"> }</span><br/><span class="hl-1"> ]</span><br/><span class="hl-1">}</span>
253
+ </code></pre>
254
+ <p>See FHIR search for full details: <a href="https://www.hl7.org/fhir/search.html">https://www.hl7.org/fhir/search.html</a></p>
255
+ </div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Resource</span></h4></li></ul><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>query: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/SearchRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">SearchRequest</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
256
+ <p>The search query as either a string or a structured search object.</p>
257
+ </div></div></li><li><h5>options: <span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol"> = {}</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Bundle</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>Promise to the search result bundle.</p>
258
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a id="searchOne" class="tsd-anchor"></a><h3 class="tsd-anchor-link">search<wbr/>One<a href="#searchOne" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><li class="tsd-signature tsd-kind-icon">search<wbr/>One<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>query<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/SearchRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">SearchRequest</a>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:524</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
259
+ <p>Sends a FHIR search request for a single resource.</p>
260
+ </div><div><p>This is a convenience method for <code>search()</code> that returns the first resource rather than a <code>Bundle</code>.</p>
261
+ <p>Example using a FHIR search string:</p>
262
+ <pre><code class="language-typescript"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">patient</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">client</span><span class="hl-1">.</span><span class="hl-6">searchOne</span><span class="hl-1">(</span><span class="hl-3">&#39;Patient?identifier=123&#39;</span><span class="hl-1">);</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">patient</span><span class="hl-1">);</span>
263
+ </code></pre>
264
+ <p>The return value is the resource, if available; otherwise, undefined.</p>
265
+ <p>See FHIR search for full details: <a href="https://www.hl7.org/fhir/search.html">https://www.hl7.org/fhir/search.html</a></p>
266
+ </div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Resource</span></h4></li></ul><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>query: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/SearchRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">SearchRequest</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
267
+ <p>The search query as either a string or a structured search object.</p>
268
+ </div></div></li><li><h5>options: <span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol"> = {}</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>Promise to the search result bundle.</p>
269
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a id="searchResources" class="tsd-anchor"></a><h3 class="tsd-anchor-link">search<wbr/>Resources<a href="#searchResources" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><li class="tsd-signature tsd-kind-icon">search<wbr/>Resources<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>query<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/SearchRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">SearchRequest</a>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:553</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
270
+ <p>Sends a FHIR search request for an array of resources.</p>
271
+ </div><div><p>This is a convenience method for <code>search()</code> that returns the resources as an array rather than a <code>Bundle</code>.</p>
272
+ <p>Example using a FHIR search string:</p>
273
+ <pre><code class="language-typescript"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">patients</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">client</span><span class="hl-1">.</span><span class="hl-6">searchResources</span><span class="hl-1">(</span><span class="hl-3">&#39;Patient?name=Alice&#39;</span><span class="hl-1">);</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">patients</span><span class="hl-1">);</span>
274
+ </code></pre>
275
+ <p>The return value is an array of resources.</p>
276
+ <p>See FHIR search for full details: <a href="https://www.hl7.org/fhir/search.html">https://www.hl7.org/fhir/search.html</a></p>
277
+ </div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Resource</span></h4></li></ul><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>query: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/SearchRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">SearchRequest</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
278
+ <p>The search query as either a string or a structured search object.</p>
279
+ </div></div></li><li><h5>options: <span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol"> = {}</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>Promise to the search result bundle.</p>
280
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="searchValueSet" class="tsd-anchor"></a><h3 class="tsd-anchor-link">search<wbr/>Value<wbr/>Set<a href="#searchValueSet" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">search<wbr/>Value<wbr/>Set<span class="tsd-signature-symbol">(</span>system<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, filter<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ValueSet</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:565</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
281
+ <p>Searches a ValueSet resource using the &quot;expand&quot; operation.
282
+ See: <a href="https://www.hl7.org/fhir/operation-valueset-expand.html">https://www.hl7.org/fhir/operation-valueset-expand.html</a></p>
283
+ </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>system: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
284
+ <p>The ValueSet system url.</p>
285
+ </div></div></li><li><h5>filter: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
286
+ <p>The search string.</p>
287
+ </div></div></li><li><h5>options: <span class="tsd-signature-type">RequestInit</span><span class="tsd-signature-symbol"> = {}</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ValueSet</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>Promise to expanded ValueSet.</p>
288
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="setAccessToken" class="tsd-anchor"></a><h3 class="tsd-anchor-link">set<wbr/>Access<wbr/>Token<a href="#setAccessToken" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">set<wbr/>Access<wbr/>Token<span class="tsd-signature-symbol">(</span>accessToken<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:973</li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>accessToken: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="setActiveLogin" class="tsd-anchor"></a><h3 class="tsd-anchor-link">set<wbr/>Active<wbr/>Login<a href="#setActiveLogin" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">set<wbr/>Active<wbr/>Login<span class="tsd-signature-symbol">(</span>login<span class="tsd-signature-symbol">: </span><a href="../interfaces/LoginState.html" class="tsd-signature-type" data-tsd-kind="Interface">LoginState</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:961</li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>login: <a href="../interfaces/LoginState.html" class="tsd-signature-type" data-tsd-kind="Interface">LoginState</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="signInWithRedirect" class="tsd-anchor"></a><h3 class="tsd-anchor-link">sign<wbr/>In<wbr/>With<wbr/>Redirect<a href="#signInWithRedirect" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">sign<wbr/>In<wbr/>With<wbr/>Redirect<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol"> | </span><a href="../modules.html#ProfileResource" class="tsd-signature-type" data-tsd-kind="Type alias">ProfileResource</a><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:413</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
289
+ <p>Tries to sign in the user.
290
+ Returns true if the user is signed in.
291
+ This may result in navigating away to the sign in page.</p>
292
+ </div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol"> | </span><a href="../modules.html#ProfileResource" class="tsd-signature-type" data-tsd-kind="Type alias">ProfileResource</a><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="signOut" class="tsd-anchor"></a><h3 class="tsd-anchor-link">sign<wbr/>Out<a href="#signOut" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">sign<wbr/>Out<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:403</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
293
+ <p>Signs out locally.
294
+ Does not invalidate tokens with the server.</p>
295
+ </div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="signOutWithRedirect" class="tsd-anchor"></a><h3 class="tsd-anchor-link">sign<wbr/>Out<wbr/>With<wbr/>Redirect<a href="#signOutWithRedirect" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">sign<wbr/>Out<wbr/>With<wbr/>Redirect<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:428</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
296
+ <p>Tries to sign out the user.
297
+ See: <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/logout-endpoint.html">https://docs.aws.amazon.com/cognito/latest/developerguide/logout-endpoint.html</a></p>
298
+ </div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="startGoogleLogin" class="tsd-anchor"></a><h3 class="tsd-anchor-link">start<wbr/>Google<wbr/>Login<a href="#startGoogleLogin" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">start<wbr/>Google<wbr/>Login<span class="tsd-signature-symbol">(</span>googleResponse<span class="tsd-signature-symbol">: </span><a href="../interfaces/GoogleCredentialResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">GoogleCredentialResponse</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/LoginAuthenticationResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">LoginAuthenticationResponse</a><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:394</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
299
+ <p>Tries to sign in with Google authentication.
300
+ The response parameter is the result of a Google authentication.
301
+ See: <a href="https://developers.google.com/identity/gsi/web/guides/handle-credential-responses-js-functions">https://developers.google.com/identity/gsi/web/guides/handle-credential-responses-js-functions</a></p>
302
+ </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>googleResponse: <a href="../interfaces/GoogleCredentialResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">GoogleCredentialResponse</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
303
+ <p>The Google credential response.</p>
304
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/LoginAuthenticationResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">LoginAuthenticationResponse</a><span class="tsd-signature-symbol">&gt;</span></h4><div><p>Promise to the authentication response.</p>
305
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="startLogin" class="tsd-anchor"></a><h3 class="tsd-anchor-link">start<wbr/>Login<a href="#startLogin" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">start<wbr/>Login<span class="tsd-signature-symbol">(</span>email<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, password<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, remember<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/LoginAuthenticationResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">LoginAuthenticationResponse</a><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:374</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
306
+ <p>Initiates a user login flow.</p>
307
+ </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>email: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
308
+ <p>The email address of the user.</p>
309
+ </div></div></li><li><h5>password: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
310
+ <p>The password of the user.</p>
311
+ </div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> remember: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
312
+ <p>Optional flag to remember the user.</p>
313
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/LoginAuthenticationResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">LoginAuthenticationResponse</a><span class="tsd-signature-symbol">&gt;</span></h4><div><p>Promise to the authentication response.</p>
314
+ </div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a id="updateResource" class="tsd-anchor"></a><h3 class="tsd-anchor-link">update<wbr/>Resource<a href="#updateResource" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><li class="tsd-signature tsd-kind-icon">update<wbr/>Resource<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>resource<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in dev/medplum/packages/core/src/client.ts:897</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
315
+ <p>Updates a FHIR resource.</p>
316
+ </div><div><p>The return value is the updated resource, including the ID and meta.</p>
317
+ <p>Example:</p>
318
+ <pre><code class="language-typescript"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">result</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">medplum</span><span class="hl-1">.</span><span class="hl-6">updateResource</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">resourceType:</span><span class="hl-1"> </span><span class="hl-3">&#39;Patient&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">id:</span><span class="hl-1"> </span><span class="hl-3">&#39;123&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">name:</span><span class="hl-1"> [{</span><br/><span class="hl-1"> </span><span class="hl-0">family:</span><span class="hl-1"> </span><span class="hl-3">&#39;Smith&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">given:</span><span class="hl-1"> [</span><span class="hl-3">&#39;John&#39;</span><span class="hl-1">]</span><br/><span class="hl-1"> }]</span><br/><span class="hl-1">});</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">result</span><span class="hl-1">.</span><span class="hl-0">meta</span><span class="hl-1">.</span><span class="hl-0">versionId</span><span class="hl-1">);</span>
319
+ </code></pre>
320
+ <p>See the FHIR &quot;update&quot; operation for full details: <a href="https://www.hl7.org/fhir/http.html#update">https://www.hl7.org/fhir/http.html#update</a></p>
321
+ </div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Resource</span></h4></li></ul><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>resource: <span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
322
+ <p>The FHIR resource to update.</p>
323
+ </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>The result of the update operation.</p>
324
+ </div></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Exports</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class"><a href="MedplumClient.html" class="tsd-kind-icon">Medplum<wbr/>Client</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="MedplumClient.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="MedplumClient.html#addEventListener" class="tsd-kind-icon">add<wbr/>Event<wbr/>Listener</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#clear" class="tsd-kind-icon">clear</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#clientCredentials" class="tsd-kind-icon">client<wbr/>Credentials</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#createBinary" class="tsd-kind-icon">create<wbr/>Binary</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#createResource" class="tsd-kind-icon">create<wbr/>Resource</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#delete" class="tsd-kind-icon">delete</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#deleteResource" class="tsd-kind-icon">delete<wbr/>Resource</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="MedplumClient.html#dispatchEvent" class="tsd-kind-icon">dispatch<wbr/>Event</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#download" class="tsd-kind-icon">download</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#fhirUrl" class="tsd-kind-icon">fhir<wbr/>Url</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#get" class="tsd-kind-icon">get</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#getActiveLogin" class="tsd-kind-icon">get<wbr/>Active<wbr/>Login</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#getCached" class="tsd-kind-icon">get<wbr/>Cached</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#getCachedReference" class="tsd-kind-icon">get<wbr/>Cached<wbr/>Reference</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#getLogins" class="tsd-kind-icon">get<wbr/>Logins</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#getProfile" class="tsd-kind-icon">get<wbr/>Profile</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#getProfileAsync" class="tsd-kind-icon">get<wbr/>Profile<wbr/>Async</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#getSchema" class="tsd-kind-icon">get<wbr/>Schema</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#getUserConfiguration" class="tsd-kind-icon">get<wbr/>User<wbr/>Configuration</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#graphql" class="tsd-kind-icon">graphql</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#isLoading" class="tsd-kind-icon">is<wbr/>Loading</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#patch" class="tsd-kind-icon">patch</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#patchResource" class="tsd-kind-icon">patch<wbr/>Resource</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#post" class="tsd-kind-icon">post</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#processCode" class="tsd-kind-icon">process<wbr/>Code</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#put" class="tsd-kind-icon">put</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#readCached" class="tsd-kind-icon">read<wbr/>Cached</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#readCachedReference" class="tsd-kind-icon">read<wbr/>Cached<wbr/>Reference</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#readHistory" class="tsd-kind-icon">read<wbr/>History</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#readPatientEverything" class="tsd-kind-icon">read<wbr/>Patient<wbr/>Everything</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#readReference" class="tsd-kind-icon">read<wbr/>Reference</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#readResource" class="tsd-kind-icon">read<wbr/>Resource</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#readVersion" class="tsd-kind-icon">read<wbr/>Version</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#register" class="tsd-kind-icon">register</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="MedplumClient.html#removeEventListeneer" class="tsd-kind-icon">remove<wbr/>Event<wbr/>Listeneer</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#requestSchema" class="tsd-kind-icon">request<wbr/>Schema</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#search" class="tsd-kind-icon">search</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#searchOne" class="tsd-kind-icon">search<wbr/>One</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#searchResources" class="tsd-kind-icon">search<wbr/>Resources</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#searchValueSet" class="tsd-kind-icon">search<wbr/>Value<wbr/>Set</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#setAccessToken" class="tsd-kind-icon">set<wbr/>Access<wbr/>Token</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#setActiveLogin" class="tsd-kind-icon">set<wbr/>Active<wbr/>Login</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#signInWithRedirect" class="tsd-kind-icon">sign<wbr/>In<wbr/>With<wbr/>Redirect</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#signOut" class="tsd-kind-icon">sign<wbr/>Out</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#signOutWithRedirect" class="tsd-kind-icon">sign<wbr/>Out<wbr/>With<wbr/>Redirect</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#startGoogleLogin" class="tsd-kind-icon">start<wbr/>Google<wbr/>Login</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="MedplumClient.html#startLogin" class="tsd-kind-icon">start<wbr/>Login</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="MedplumClient.html#updateResource" class="tsd-kind-icon">update<wbr/>Resource</a></li></ul></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="../assets/main.js"></script></body></html>