Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
if (active) {
query.active = (active === 'true');
}
if (address_city) {
query['address.city'] = stringQueryBuilder(address_city);
}
if (address_country) {
query['address.country'] = stringQueryBuilder(address_country);
}
if (address_postalcode) {
query['address.postalCode'] = stringQueryBuilder(address_postalcode);
}
if (address_state) {
query['address.state'] = stringQueryBuilder(address_state);
}
if (address_use) {
query['address.use'] = address_use;
}
if (animal_breed) {
let queryBuilder = tokenQueryBuilder(animal_breed, 'code', 'animal.breed.coding', '');
for (let i in queryBuilder) {
query[i] = queryBuilder[i];
}
}
}
}
if (ors.length !== 0) {
if (ors.length === 1) {
ors.push(ors[0]);
}
query.$and = ors;
}
if (addressCity) {
query['address.city'] = stringQueryBuilder(addressCity);
}
if (addressCountry) {
query['address.country'] = stringQueryBuilder(addressCountry);
}
if (addressPostalCode) {
query['address.postalCode'] = stringQueryBuilder(addressPostalCode);
}
if (addressState) {
query['address.state'] = stringQueryBuilder(addressState);
}
if (addressUse) {
query['address.use'] = stringQueryBuilder(addressUse);
}
if (communication) {
let queryBuilder = tokenQueryBuilder(communication, 'code', 'communication.coding', '');
for (let i in queryBuilder) {
query[i] = queryBuilder[i];
}
}
if (email) {
let queryBuilder = tokenQueryBuilder(email, 'value', 'telecom', 'email');
for (let i in queryBuilder) {
}
if (_id) {
query.id = _id;
}
if (addressCity) {
query['address.city'] = stringQueryBuilder(addressCity);
}
if (addressCountry) {
query['address.country'] = stringQueryBuilder(addressCountry);
}
if (addressPostalCode) {
query['address.postalCode'] = stringQueryBuilder(addressPostalCode);
}
if (addressState) {
query['address.state'] = stringQueryBuilder(addressState);
}
if (addressUse) {
query['address.use'] = addressUse;
}
if (endpoint) {
let queryBuilder = referenceQueryBuilder(endpoint, 'endpoint.reference');
for (let i in queryBuilder) {
query[i] = queryBuilder[i];
}
}
}
if (active) {
query.active = (active === 'true');
}
if (addressCity) {
query['address.city'] = stringQueryBuilder(addressCity);
}
if (addressCountry) {
query['address.country'] = stringQueryBuilder(addressCountry);
}
if (addressPostalCode) {
query['address.postalCode'] = stringQueryBuilder(addressPostalCode);
}
if (addressState) {
query['address.state'] = stringQueryBuilder(addressState);
}
if (addressUse) {
query['address.use'] = addressUse;
}
if (endpoint) {
let queryBuilder = referenceQueryBuilder(endpoint, 'endpoint.reference');
for (let i in queryBuilder) {
query[i] = queryBuilder[i];
}
}
}
if (active) {
query.active = (active === 'true');
}
if (address_city) {
query['address.city'] = stringQueryBuilder(address_city);
}
if (address_country) {
query['address.country'] = stringQueryBuilder(address_country);
}
if (address_postalcode) {
query['address.postalCode'] = stringQueryBuilder(address_postalcode);
}
if (address_state) {
query['address.state'] = stringQueryBuilder(address_state);
}
if (address_use) {
query['address.use'] = address_use;
}
if (endpoint) {
let queryBuilder = referenceQueryBuilder(endpoint, 'endpoint.reference');
for (let i in queryBuilder) {
query[i] = queryBuilder[i];
}
}