@medplum/core 0.9.11 → 0.9.12
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/dist/cjs/index.js +7 -19
- 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/esm/index.js +7 -19
- 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/types/client.d.ts +8 -22
- package/package.json +2 -2
- package/document.pdf +0 -0
- package/test.pdf +0 -1
- package/test2.pdf +0 -1
- package/test3.pdf.txt +0 -1
- package/test4.pdf +0 -1
- package/test5.pdf +0 -0
- package/test7-2.pdf +0 -1
- package/test7.pdf +0 -1
- package/test8-2.pdf +0 -0
- package/test8.pdf +0 -0
- package/test9-2.pdf +0 -0
- package/test9-3.pdf +0 -0
- package/test9-4.pdf +0 -0
- package/test9.pdf +0 -0
package/dist/cjs/index.js
CHANGED
|
@@ -1224,7 +1224,7 @@
|
|
|
1224
1224
|
* Search for a `Patient` by name:
|
|
1225
1225
|
*
|
|
1226
1226
|
* ```typescript
|
|
1227
|
-
* const bundle = await medplum.search('Patient
|
|
1227
|
+
* const bundle = await medplum.search('Patient', 'name=Alice');
|
|
1228
1228
|
* console.log(bundle.total);
|
|
1229
1229
|
* ```
|
|
1230
1230
|
*/
|
|
@@ -1506,7 +1506,9 @@
|
|
|
1506
1506
|
*/
|
|
1507
1507
|
fhirSearchUrl(resourceType, query) {
|
|
1508
1508
|
const url = this.fhirUrl(resourceType);
|
|
1509
|
-
|
|
1509
|
+
if (query) {
|
|
1510
|
+
url.search = query.toString();
|
|
1511
|
+
}
|
|
1510
1512
|
return url;
|
|
1511
1513
|
}
|
|
1512
1514
|
/**
|
|
@@ -1515,21 +1517,7 @@
|
|
|
1515
1517
|
* Example using a FHIR search string:
|
|
1516
1518
|
*
|
|
1517
1519
|
* ```typescript
|
|
1518
|
-
* const bundle = await client.search('Patient
|
|
1519
|
-
* console.log(bundle);
|
|
1520
|
-
* ```
|
|
1521
|
-
*
|
|
1522
|
-
* Example using a structured search:
|
|
1523
|
-
*
|
|
1524
|
-
* ```typescript
|
|
1525
|
-
* const bundle = await client.search({
|
|
1526
|
-
* resourceType: 'Patient',
|
|
1527
|
-
* filters: [{
|
|
1528
|
-
* code: 'name',
|
|
1529
|
-
* operator: 'eq',
|
|
1530
|
-
* value: 'Alice',
|
|
1531
|
-
* }]
|
|
1532
|
-
* });
|
|
1520
|
+
* const bundle = await client.search('Patient', 'name=Alice');
|
|
1533
1521
|
* console.log(bundle);
|
|
1534
1522
|
* ```
|
|
1535
1523
|
*
|
|
@@ -1574,7 +1562,7 @@
|
|
|
1574
1562
|
* Example using a FHIR search string:
|
|
1575
1563
|
*
|
|
1576
1564
|
* ```typescript
|
|
1577
|
-
* const patient = await client.searchOne('Patient
|
|
1565
|
+
* const patient = await client.searchOne('Patient', 'identifier=123');
|
|
1578
1566
|
* console.log(patient);
|
|
1579
1567
|
* ```
|
|
1580
1568
|
*
|
|
@@ -1608,7 +1596,7 @@
|
|
|
1608
1596
|
* Example using a FHIR search string:
|
|
1609
1597
|
*
|
|
1610
1598
|
* ```typescript
|
|
1611
|
-
* const patients = await client.searchResources('Patient
|
|
1599
|
+
* const patients = await client.searchResources('Patient', 'name=Alice');
|
|
1612
1600
|
* console.log(patients);
|
|
1613
1601
|
* ```
|
|
1614
1602
|
*
|