Skip to content

Uses puppeteer to automate process to upload users to openmrs

Notifications You must be signed in to change notification settings

SoftmedTanzania/openmrs-user-upload

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openmrs-user-upload

This project uses puppeteer to automate process to upload users to openmrs

Built using:

Getting started

  1. Clone the repository
  2. Run npm install or yarn install depending on what package manager you are using
  3. Add the data.json file with the list of your users with the details that you need to upload
  4. Add .env file with the correct credentials
  5. Run npm start or yarn start

data.json file format

{
    "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",
        },
    ]
}

.env variables

OPENMRS_BASE_URL='https://your_domain.com/openmrs'
OPENMRS_USER_NAME='admin'
OPENMRS_USER_PASSWORD='your_super_secret_password'

About

Uses puppeteer to automate process to upload users to openmrs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%