select person_id from obs where value_text in(select identifier from provider) and DATEDIFF(now(),obs_datetime)<14 and concept_id=1912 and person_id not in(select patient_id from encounter where encounter_type=18 and DATEDIFF(now(),encounter_datetime)<14);