def count_hospital_living_birth(year): query = { "זמן לידה": { "$regex": year, }, "Unnamed: 9": "מת" } return hospital_statistic_col.count(query)
def count_living(id): query = { "צוות רפואי": { "$regex": id, }, "Unnamed: 9": "מת" } return hospital_statistic_col.count(query)
def count_hospital_prognoza(prognoza, year): query = { "זמן לידה": { "$regex": year, }, "אבחנות בהריון": { "$regex": prognoza, } } return hospital_statistic_col.count(query)
def count_prognoza(id, prognoza): query = { "צוות רפואי": { "$regex": id, }, "אבחנות בהריון": { "$regex": prognoza, } } return hospital_statistic_col.count(query)
def count_hospital_prognoza_first_birth(prognoza, year, number_of_birth): query = { "זמן לידה": { "$regex": year, }, "אבחנות בהריון": { "$regex": prognoza, }, "מס' לידה": number_of_birth } return hospital_statistic_col.count(query)