@medplum/fhir-router 2.0.5 → 2.0.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.
@@ -1,4 +1,4 @@
1
- import { OperationOutcomeError, badRequest, normalizeOperationOutcome, parseSearchUrl, getStatus, isOk, getReferenceString, allOk, LRUCache, forbidden, getResourceTypes, getResourceTypeSchema, isResourceType, getElementDefinition, buildTypeName, capitalize, getSearchParameters, Operator, parseSearchRequest, notFound, created, deepClone, matchesSearchRequest, globalSchema, evalFhirPath } from '@medplum/core';
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: 'batch-response',
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 (isResourceType(schema)) {
13534
+ if (isResourceTypeSchema(schema)) {
13535
13535
  fields.resourceType = {
13536
13536
  type: new GraphQLNonNull(GraphQLString),
13537
13537
  description: 'Resource Type',