This project uses puppeteer to automate process to upload users to openmrs
Built using:
- Clone the repository
- Run
npm install
oryarn install
depending on what package manager you are using - Add the data.json file with the list of your users with the details that you need to upload
- Add .env file with the correct credentials
- Run
npm start
oryarn start
{
"user_data": [
{
"first_name": "First Name",
"middle_name": "Middle Name",
"family_name": "Family Name",
"dob": "2022-03-17",
"gender": "Male",
"user_name": "username",
"password": "password",
"user_role": "Provider",
"member_identifier": "username",
"team_name": "teamname",
"assigned_location": "location",
},
]
}
OPENMRS_BASE_URL='https://your_domain.com/openmrs'
OPENMRS_USER_NAME='admin'
OPENMRS_USER_PASSWORD='your_super_secret_password'