-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MockClient#search
on _tag
not working for only some resources
#4582
Comments
MockClient#search
on _tag
not working for only some resources
Hi @dillonstreator, sorry for the late response. Currently not all We are looking at merging this PR (#4391) to make this more clear when you run into a missing We are just trying to figure out the implications of Regardless here is the solution for your immediate problem if you are still stuck: If you're using import {
indexSearchParameterBundle,
indexStructureDefinitionBundle,
} from '@medplum/core';
import { SEARCH_PARAMETER_BUNDLE_FILES, readJson } from '@medplum/definitions';
import { Bundle, SearchParameter } from '@medplum/fhirtypes';
describe('Example tests', () => {
beforeAll(() => {
indexStructureDefinitionBundle(readJson('fhir/r4/profiles-types.json') as Bundle);
indexStructureDefinitionBundle(readJson('fhir/r4/profiles-resources.json') as Bundle);
for (const filename of SEARCH_PARAMETER_BUNDLE_FILES) {
indexSearchParameterBundle(readJson(filename) as Bundle<SearchParameter>);
}
});
}); Sorry for any confusion; we know this is a rough edge for sure but it's on our radar. Let us know if you need any more help in this regard or if this unblocks you 😄 |
I'm attempting to use the
_tag
search on token with system filter and this works properly with theMedplumClient
but theMockClient
is unable to find the resource(s).Version:
@medplum/[email protected]
Creation & read order do not matter - CareTeam & ClinicalImpression always return
undefined
.Here is the debug output:
The text was updated successfully, but these errors were encountered: