@medplum/fhir-router 2.0.5 → 2.0.6
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.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.min.cjs +1 -1
- package/dist/cjs/index.min.cjs.map +1 -1
- package/dist/esm/index.min.mjs +1 -1
- package/dist/esm/index.min.mjs.map +1 -1
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OperationOutcomeError, badRequest, normalizeOperationOutcome, parseSearchUrl, getStatus, isOk, getReferenceString, allOk, LRUCache, forbidden, getResourceTypes, getResourceTypeSchema,
|
|
1
|
+
import { OperationOutcomeError, badRequest, normalizeOperationOutcome, parseSearchUrl, getStatus, isOk, getReferenceString, allOk, LRUCache, forbidden, getResourceTypes, getResourceTypeSchema, isResourceTypeSchema, getElementDefinition, buildTypeName, capitalize, getSearchParameters, Operator, parseSearchRequest, notFound, created, deepClone, matchesSearchRequest, globalSchema, evalFhirPath } from '@medplum/core';
|
|
2
2
|
import DataLoader from 'dataloader';
|
|
3
3
|
import { applyPatch } from 'rfc6902';
|
|
4
4
|
|
|
@@ -93,7 +93,7 @@ class BatchProcessor {
|
|
|
93
93
|
}
|
|
94
94
|
return {
|
|
95
95
|
resourceType: 'Bundle',
|
|
96
|
-
type: '
|
|
96
|
+
type: (bundleType + '-response'),
|
|
97
97
|
entry: resultEntries,
|
|
98
98
|
};
|
|
99
99
|
}
|
|
@@ -13531,7 +13531,7 @@ function buildGraphQLFields(resourceType) {
|
|
|
13531
13531
|
function buildPropertyFields(resourceType, fields) {
|
|
13532
13532
|
const schema = getResourceTypeSchema(resourceType);
|
|
13533
13533
|
const properties = schema.properties;
|
|
13534
|
-
if (
|
|
13534
|
+
if (isResourceTypeSchema(schema)) {
|
|
13535
13535
|
fields.resourceType = {
|
|
13536
13536
|
type: new GraphQLNonNull(GraphQLString),
|
|
13537
13537
|
description: 'Resource Type',
|