Step 1: Install the module -cohort builder , upload the .omod file using Admin--->"Manage Module"
Step 2: Click on Manage Export Profile. This page lets you configure the export profile. Here you give a profile name, a white list of patient attributes which you wish to include in the export and a black list of Observations which you do not wish to include in the export.
Step 3: To export the patient data ‘Manage export’ in the Admin page. Here you have three options to provide patients whose data is to be exported. Either you give single patient name, or multiple patient ids. You may also select a cohort which is already in the OpenMRS system.
Step 4: Then select the export profile from the list of profile which you created. Also select an export format from XML, JSON and SQL and click on ‘Export Patient Data’.
I hope it will help you