@medplum/core 0.9.4 → 0.9.7
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.
- package/README.md +3 -23
- package/dist/cjs/index.js +5265 -2632
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.min.js +1 -1
- package/dist/cjs/index.min.js.map +1 -1
- package/dist/cjs/package.json +1 -0
- package/dist/esm/index.js +5234 -2605
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/package.json +1 -0
- package/dist/types/cache.d.ts +12 -12
- package/dist/types/client.d.ts +854 -713
- package/dist/types/crypto.d.ts +9 -9
- package/dist/types/eventtarget.d.ts +13 -13
- package/dist/types/fhirpath/atoms.d.ts +150 -0
- package/dist/types/fhirpath/date.d.ts +1 -0
- package/dist/types/fhirpath/functions.d.ts +964 -0
- package/dist/types/fhirpath/index.d.ts +2 -0
- package/dist/types/fhirpath/parse.d.ts +17 -0
- package/dist/types/fhirpath/tokenize.d.ts +5 -0
- package/dist/types/fhirpath/utils.d.ts +65 -0
- package/dist/types/format.d.ts +15 -15
- package/dist/types/hl7.d.ts +43 -43
- package/dist/types/index.d.ts +11 -10
- package/dist/types/jwt.d.ts +5 -5
- package/dist/types/outcomes.d.ts +22 -22
- package/dist/types/readablepromise.d.ts +43 -43
- package/dist/types/search.d.ts +62 -62
- package/dist/types/searchparams.d.ts +35 -35
- package/dist/types/storage.d.ts +47 -47
- package/dist/types/types.d.ts +139 -139
- package/dist/types/utils.d.ts +143 -131
- package/package.json +2 -3
- package/dist/types/fix-ro-iddentifiers.d.ts +0 -0
package/README.md
CHANGED
|
@@ -76,34 +76,14 @@ medplum.signInWithRedirect().then((user) => console.log(user));
|
|
|
76
76
|
Search for any resource using a [FHIR search](https://www.hl7.org/fhir/search.html) string:
|
|
77
77
|
|
|
78
78
|
```ts
|
|
79
|
-
search<T extends Resource>(query: string | SearchRequest, options: RequestInit = {}):
|
|
79
|
+
search<T extends Resource>(query: string | SearchRequest, options: RequestInit = {}): ReadablePromise<Bundle<T>>
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
Example:
|
|
83
83
|
|
|
84
84
|
```ts
|
|
85
|
-
medplum.search('Patient?given=eve')
|
|
86
|
-
|
|
87
|
-
});
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
Example using a structured object:
|
|
91
|
-
|
|
92
|
-
```ts
|
|
93
|
-
medplum
|
|
94
|
-
.search({
|
|
95
|
-
resourceType: 'Patient',
|
|
96
|
-
filters: [
|
|
97
|
-
{
|
|
98
|
-
code: 'given',
|
|
99
|
-
operator: Operator.EQUALS,
|
|
100
|
-
value: 'eve',
|
|
101
|
-
},
|
|
102
|
-
],
|
|
103
|
-
})
|
|
104
|
-
.then((bundle) => {
|
|
105
|
-
bundle.entry.forEach((entry) => console.log(entry.resource));
|
|
106
|
-
});
|
|
85
|
+
const bundle = await medplum.search('Patient?given=eve');
|
|
86
|
+
bundle.entry.forEach((entry) => console.log(entry.resource));
|
|
107
87
|
```
|
|
108
88
|
|
|
109
89
|
## Create
|