Get and Save encounterdata based on visittype, encountertype and patient.