@medplum/react 0.9.8 → 0.9.11
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 +2 -11
- 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 +3 -12
- 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/ResourceBlame.d.ts +2 -2
- package/package.json +5 -5
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { formatAddress, getDisplayString, getImageSrc, getPropertyDisplayName, formatHumanName, stringify, buildTypeName, PropertyType, capitalize, createReference,
|
|
1
|
+
import { formatAddress, getDisplayString, getImageSrc, getPropertyDisplayName, formatHumanName, stringify, buildTypeName, PropertyType, capitalize, createReference, getReferenceString, isUUID, getSearchParameterDetails, Operator, evalFhirPath, SearchParameterType, formatSearchQuery, parseSearchDefinition, DEFAULT_SEARCH_COUNT } from '@medplum/core';
|
|
2
2
|
import React, { useState, useRef, createContext, useEffect, useContext, useCallback } from 'react';
|
|
3
3
|
import { useNavigate, useLocation } from 'react-router-dom';
|
|
4
4
|
|
|
@@ -1411,16 +1411,7 @@ function ResourceInput(props) {
|
|
|
1411
1411
|
}
|
|
1412
1412
|
return (React.createElement(Autocomplete, { loadOptions: (input) => {
|
|
1413
1413
|
return medplum
|
|
1414
|
-
.search(
|
|
1415
|
-
resourceType: resourceTypeRef.current,
|
|
1416
|
-
filters: [
|
|
1417
|
-
{
|
|
1418
|
-
code: 'name',
|
|
1419
|
-
operator: Operator.EQUALS,
|
|
1420
|
-
value: input,
|
|
1421
|
-
},
|
|
1422
|
-
],
|
|
1423
|
-
})
|
|
1414
|
+
.search(resourceTypeRef.current, 'name=' + encodeURIComponent(input))
|
|
1424
1415
|
.then((bundle) => bundle.entry.map((entry) => entry.resource));
|
|
1425
1416
|
}, getId: (item) => {
|
|
1426
1417
|
return item.id;
|
|
@@ -4561,7 +4552,7 @@ function SearchControl(props) {
|
|
|
4561
4552
|
useEffect(() => {
|
|
4562
4553
|
setOutcome(undefined);
|
|
4563
4554
|
medplum
|
|
4564
|
-
.search(Object.assign(Object.assign({}, search), { total: 'accurate' }))
|
|
4555
|
+
.search(search.resourceType, formatSearchQuery(Object.assign(Object.assign({}, search), { total: 'accurate' })))
|
|
4565
4556
|
.then((response) => {
|
|
4566
4557
|
setState(Object.assign(Object.assign({}, stateRef.current), { searchResponse: response }));
|
|
4567
4558
|
if (onLoad) {
|