@medplum/core 0.9.25 → 0.9.28

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 (80) hide show
  1. package/dist/cjs/index.js +191 -25
  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/base-schema.json.js +4872 -0
  6. package/dist/esm/base-schema.json.js.map +1 -0
  7. package/dist/{types → esm}/cache.d.ts +0 -0
  8. package/dist/esm/cache.js +70 -0
  9. package/dist/esm/cache.js.map +1 -0
  10. package/dist/{types → esm}/client.d.ts +21 -13
  11. package/dist/esm/client.js +1455 -0
  12. package/dist/esm/client.js.map +1 -0
  13. package/dist/{types → esm}/crypto.d.ts +0 -0
  14. package/dist/esm/crypto.js +23 -0
  15. package/dist/esm/crypto.js.map +1 -0
  16. package/dist/{types → esm}/eventtarget.d.ts +0 -0
  17. package/dist/esm/eventtarget.js +41 -0
  18. package/dist/esm/eventtarget.js.map +1 -0
  19. package/dist/{types → esm}/fhirpath/atoms.d.ts +0 -0
  20. package/dist/esm/fhirpath/atoms.js +329 -0
  21. package/dist/esm/fhirpath/atoms.js.map +1 -0
  22. package/dist/{types → esm}/fhirpath/date.d.ts +0 -0
  23. package/dist/esm/fhirpath/date.js +24 -0
  24. package/dist/esm/fhirpath/date.js.map +1 -0
  25. package/dist/{types → esm}/fhirpath/functions.d.ts +0 -0
  26. package/dist/esm/fhirpath/functions.js +1503 -0
  27. package/dist/esm/fhirpath/functions.js.map +1 -0
  28. package/dist/{types → esm}/fhirpath/index.d.ts +0 -0
  29. package/dist/{types → esm}/fhirpath/parse.d.ts +0 -0
  30. package/dist/esm/fhirpath/parse.js +258 -0
  31. package/dist/esm/fhirpath/parse.js.map +1 -0
  32. package/dist/{types → esm}/fhirpath/tokenize.d.ts +0 -0
  33. package/dist/esm/fhirpath/tokenize.js +185 -0
  34. package/dist/esm/fhirpath/tokenize.js.map +1 -0
  35. package/dist/{types → esm}/fhirpath/utils.d.ts +0 -0
  36. package/dist/esm/fhirpath/utils.js +381 -0
  37. package/dist/esm/fhirpath/utils.js.map +1 -0
  38. package/dist/esm/format.d.ts +21 -0
  39. package/dist/esm/format.js +158 -0
  40. package/dist/esm/format.js.map +1 -0
  41. package/dist/{types → esm}/hl7.d.ts +0 -0
  42. package/dist/esm/hl7.js +111 -0
  43. package/dist/esm/hl7.js.map +1 -0
  44. package/dist/{types → esm}/index.d.ts +0 -0
  45. package/dist/esm/index.js +15 -10763
  46. package/dist/esm/index.js.map +1 -1
  47. package/dist/esm/index.min.js +1 -1
  48. package/dist/esm/index.min.js.map +1 -1
  49. package/dist/{types → esm}/jwt.d.ts +0 -0
  50. package/dist/esm/jwt.js +35 -0
  51. package/dist/esm/jwt.js.map +1 -0
  52. package/dist/esm/node_modules/tslib/package.json +1 -0
  53. package/dist/esm/node_modules/tslib/tslib.es6.js +40 -0
  54. package/dist/esm/node_modules/tslib/tslib.es6.js.map +1 -0
  55. package/dist/{types → esm}/outcomes.d.ts +7 -0
  56. package/dist/esm/outcomes.js +190 -0
  57. package/dist/esm/outcomes.js.map +1 -0
  58. package/dist/{types → esm}/readablepromise.d.ts +0 -0
  59. package/dist/esm/readablepromise.js +87 -0
  60. package/dist/esm/readablepromise.js.map +1 -0
  61. package/dist/{types → esm}/search.d.ts +0 -0
  62. package/dist/esm/search.js +207 -0
  63. package/dist/esm/search.js.map +1 -0
  64. package/dist/{types → esm}/searchparams.d.ts +0 -0
  65. package/dist/esm/searchparams.js +145 -0
  66. package/dist/esm/searchparams.js.map +1 -0
  67. package/dist/{types → esm}/storage.d.ts +0 -0
  68. package/dist/esm/storage.js +94 -0
  69. package/dist/esm/storage.js.map +1 -0
  70. package/dist/{types → esm}/types.d.ts +0 -0
  71. package/dist/esm/types.js +223 -0
  72. package/dist/esm/types.js.map +1 -0
  73. package/dist/{types → esm}/utils.d.ts +0 -0
  74. package/dist/esm/utils.js +590 -0
  75. package/dist/esm/utils.js.map +1 -0
  76. package/package.json +5 -5
  77. package/stats.html +4034 -0
  78. package/cody-pdf-test.js +0 -32
  79. package/dist/types/format.d.ts +0 -15
  80. package/wget-log +0 -6
package/cody-pdf-test.js DELETED
@@ -1,32 +0,0 @@
1
- // import fetch from 'node-fetch';
2
- // import { MedplumClient } from './client';
3
- const fetch = require('node-fetch');
4
- const { MedplumClient } = require('./dist/cjs/index.js');
5
-
6
- async function main() {
7
- try {
8
- console.log('create client...');
9
- const medplum = new MedplumClient({ fetch });
10
-
11
- console.log('set access token...');
12
- medplum.setAccessToken(
13
- 'eyJhbGciOiJSUzI1NiIsImtpZCI6Ijk5MjI2MjNmLTVmMjctNDFiYi04NTQ1LTZkY2IwZmVkODk4MSIsInR5cCI6IkpXVCJ9.eyJsb2dpbl9pZCI6ImVkNmNiY2Q2LTVjZjQtNDljMS05ODQzLWU1OWIyZmRlN2Q5NCIsInN1YiI6ImJiNjJmNmQzLTNiYjAtNDRjYS1iN2UzLTBmZDAwYmRmYTYyNCIsInVzZXJuYW1lIjoiYmI2MmY2ZDMtM2JiMC00NGNhLWI3ZTMtMGZkMDBiZGZhNjI0Iiwic2NvcGUiOiJvcGVuaWQiLCJwcm9maWxlIjoiUHJhY3RpdGlvbmVyL2ZkNWFiZjYyLWE5NmEtNDdkYi04MDczLTQ4ZDgxOWI0NWU4NCIsImlhdCI6MTY1NDgwOTgzOSwiaXNzIjoiaHR0cHM6Ly9hcGkubWVkcGx1bS5jb20vIiwiZXhwIjoxNjU0ODEzNDM5fQ.acK1yXI8v4_a2UWikBwOaa6JItXhh4fma92pQeIuRTsfvnduWC8eOCGOOemxwpCvtrnECCilG1FNVDHTtGKFSVzStAi9TAnO-pHf69OVRJVH1xMqJvlEi-LRiu3uCflOhiqKcnGRDfpecZ0sTcLhIpSg-Kn2-nj8pGz_DG27JfjKpPIqU2X53S3SumZU-2bRPxoSu7lPXINn_1qMTxUOpV1qY54gqX4GVhim2OTdbARx-QtO9Q7A3JR64CvS9_WLbBzsDUqfKfJJ-X6KOHnM8Dz-dieV5rjQ54Sv3yvl-B5gozMvO2ZYm4P3fQ_IBEosim8CHQEa_23UTFGEo36Axg'
14
- );
15
-
16
- console.log('createpdf...');
17
- const binary = await medplum.createPdf({
18
- content: [
19
- 'First paragraph',
20
- 'Another paragraph, this time a little bit longer to make sure, this line will be divided into at least two lines',
21
- ],
22
- });
23
-
24
- console.log(JSON.stringify(binary, null, 2));
25
- } catch (error) {
26
- console.log('error', error);
27
- }
28
- }
29
-
30
- console.log('before main');
31
- main().catch(console.log);
32
- console.log('after main');
@@ -1,15 +0,0 @@
1
- import { Address, HumanName } from '@medplum/fhirtypes';
2
- export interface AddressFormatOptions {
3
- all?: boolean;
4
- use?: boolean;
5
- }
6
- export interface HumanNameFormatOptions {
7
- all?: boolean;
8
- prefix?: boolean;
9
- suffix?: boolean;
10
- use?: boolean;
11
- }
12
- export declare function formatAddress(address: Address, options?: AddressFormatOptions): string;
13
- export declare function formatHumanName(name: HumanName, options?: HumanNameFormatOptions): string;
14
- export declare function formatGivenName(name: HumanName): string;
15
- export declare function formatFamilyName(name: HumanName): string;
package/wget-log DELETED
@@ -1,6 +0,0 @@
1
- --2022-06-07 14:46:15-- https://storage.medplum.com/binary/1edc2089-033f-4178-a829-ba8d28cc510b/09f34af8-9e37-4960-9c1c-6213706131f4?Expires=1654641902
2
- Resolving storage.medplum.com (storage.medplum.com)... 52.84.162.127, 52.84.162.94, 52.84.162.128, ...
3
- Connecting to storage.medplum.com (storage.medplum.com)|52.84.162.127|:443... connected.
4
- HTTP request sent, awaiting response... 403 Forbidden
5
- 2022-06-07 14:46:15 ERROR 403: Forbidden.
6
-