How to use the address.postalCode function in address

To help you get started, we’ve selected a few address examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Asymmetrik / node-fhir-server-mongo / src / services / patient / patient.service.js View on Github external
}

	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];
		}
	}
github Asymmetrik / node-fhir-server-mongo / fhir / src / services / practitioner / practitioner.service.js View on Github external
}
    }
    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) {
github Asymmetrik / node-fhir-server-mongo / fhir / src / services / location / location.service.js View on Github external
}

    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];
        }
    }
github Asymmetrik / node-fhir-server-mongo / fhir / src / services / organization / organization.service.js View on Github external
}

    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];
        }
    }
github Asymmetrik / node-fhir-server-mongo / src / services / organization / organization.service.js View on Github external
}

	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];
		}
	}