Several changes have been made to this module in this version.
- The module works only with OpenMRS 1.9.0, no other version because this module inserts directly into the database
- The module now provides an option to create an encounter for each import
- You can now import coded concepts
- There is validation of all values of excel before any importing is done
- You can create an import template from a form in OpenMRS
- You can update an encounter previously entered by using the output excel file and entering new data into it
The version of the spreadsheet import module which works with previous version of OpenMRS is a child page to this one
- For dates, the excel spreadsheet must be formatted to datetime (The module uses apache poi acl library to detect the format to the date)
- You must have a patient identifier, as well as date of birth or gender in each import to be able to create a new patient if they don't exist
- If you're importing creating an encounter, then one of the columns of the import and excel must be Encounter ID
Things to know
- When selecting the concept name for which to import, all concepts in the different languages will be displayed and you will need to choose from those names
- All column names in the import module must match exactly those in the excel
- The encounter_datetime entered is the earliest of all obs_datetimes. If no obs_datetime is entered, then it uses the current datetime
- Create a new import by either checking the Create an encounter for every imported line, selecting the form, then click Create Template from Form
- For every observation, it will automatically insert an obs datetime column, which you can delete if you won't be inserting an obs datetime
- Place the name of the column, the type of data and the dataset index for each column.
- If you import encounter, then each obs needs to have a unique Dataset Index (See Image for Step 1)
- If you don't import an encounter then the Dataset Index will only be used if you have multiple observations for a single concept e.g. weight 1, weight 2, and weight 3.
- Click on Next Step to go to Step 2
- Select the location and other parameters from the form. If you see that a single line has more than one concept, then you need to go back to Step 1 and set the Dataset Index to a different number between the two concepts
To create a new patient or place data in a current patient the module, it uses the patient identifier to search for existing patient.
- If it finds that patient ID it uses that person.
- If it doesn't t find that patient id, it searches given name, family name, middle name, birthdate, gender, if matches then create a new patient identifier for that patient and import data
- If it doesn't match in all those things, then it creates a new patient with ID