...
Encounter type to be used for finding an encounter or creating a new encounter is based on either of the following logic in the given order,
- by programUuid - mapping present in entity_mapping table with entity_mapping_type as 'program_encountertype' (OR)
- by location uuid - mapping present in entity_mapping table with entity_mapping_type as 'location_encountertype' (OR)
- by default encounter type provided in global property ( bahmni.encounterType.default).
...