diff --git a/packages/search/src/features/search/utils.ts b/packages/search/src/features/search/utils.ts index d7550b9f785..aff40550b4f 100644 --- a/packages/search/src/features/search/utils.ts +++ b/packages/search/src/features/search/utils.ts @@ -13,7 +13,8 @@ import { Patient, SUPPORTED_PATIENT_IDENTIFIER_CODES, CERTIFIED_STATUS, - REGISTERED_STATUS + REGISTERED_STATUS, + ISSUED_STATUS } from '@opencrvs/commons/types' import { IAdvancedSearchParam } from '@search/features/search/types' import { transformDeprecatedParamsToSupported } from './deprecation-support' @@ -75,7 +76,7 @@ export async function advancedQueryBuilder( query_string: { default_field: 'type', query: isExternalSearch - ? `(${REGISTERED_STATUS}) OR (${CERTIFIED_STATUS})` + ? `(${REGISTERED_STATUS}) OR (${CERTIFIED_STATUS}) OR (${ISSUED_STATUS})` : `(${params.registrationStatuses!.join(') OR (')})` } })