Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| integration:dhis2_integration [2024/10/17 11:29] – [mSupply preferences] Gary Willetts | integration:dhis2_integration [2026/02/16 14:43] (current) – [DHIS2 data] Gary Willetts | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| - The amount of stock issued | - The amount of stock issued | ||
| - The amount of stock expiring within 90 days | - The amount of stock expiring within 90 days | ||
| + | - The amount of stock expiring within 180 days | ||
| - The amount of stock expired | - The amount of stock expired | ||
| - Average monthly consumption | - Average monthly consumption | ||
| Line 56: | Line 57: | ||
| * **Username: | * **Username: | ||
| * **Password: | * **Password: | ||
| - | * **Client:** Only visible and used if **Basic authentication** is checked. The client name mSupply must use to access the database. | + | * **Client:** Only visible and used if **Basic authentication** is not checked. The client name mSupply must use to access the database. |
| - | * **Secret:** Only visible and used if **Basic authentication** is checked. The secret that is used for mSupply to access the DHIS2 database. No need to enter this if none was provided. | + | * **Secret:** Only visible and used if **Basic authentication** is not checked. The secret that is used for mSupply to access the DHIS2 database. No need to enter this if none was provided. |
| * **Setup:** Here you choose how to identify the elements of data that you send to DHIS2 must be identified. Your choice depends on how DHIS2 is configured. | * **Setup:** Here you choose how to identify the elements of data that you send to DHIS2 must be identified. Your choice depends on how DHIS2 is configured. | ||
| * **Using category option combo:** Choose this if DHIS2 is using attribute option combos where there is one category option combo assigned per data element (AMC, stock on hand etc.) for an entire data set. For this option, you need to tell mSupply what the DHIS2 category option combo ID is for each data element you want to push (i.e. //Active// column is checked) in the //Data elements to push// table. | * **Using category option combo:** Choose this if DHIS2 is using attribute option combos where there is one category option combo assigned per data element (AMC, stock on hand etc.) for an entire data set. For this option, you need to tell mSupply what the DHIS2 category option combo ID is for each data element you want to push (i.e. //Active// column is checked) in the //Data elements to push// table. | ||
| Line 67: | Line 68: | ||
| * **Custom field name column:** Required if **Different data elements per item** is selected in the //Setup// section. Enter the corresponding item custom field name used to identify the item corresponding DHIS2 data element code. | * **Custom field name column:** Required if **Different data elements per item** is selected in the //Setup// section. Enter the corresponding item custom field name used to identify the item corresponding DHIS2 data element code. | ||
| * **Interval column:** Select the interval between successive sends of the data element. Select one of // | * **Interval column:** Select the interval between successive sends of the data element. Select one of // | ||
| - | * **Push data basis column:** Select | + | * **Push data basis column:** Select |
| + | * **Prefix column:** If the data element ID needs to have a prefix added to it before it is sent to DHIS2 then enter that in this column. | ||
| + | * **Last pushed date column:** The date the element was last sent to DHIS2. | ||
| + | * **Parameters: | ||
| * **Data set ID:** Enter the ID of the dataset in DHIS2 that you want to push the data to. | * **Data set ID:** Enter the ID of the dataset in DHIS2 that you want to push the data to. | ||
| * **Period format:** Enter the format to send the period information to DHIS2. Something like " | * **Period format:** Enter the format to send the period information to DHIS2. Something like " | ||
| * **Item field reference: | * **Item field reference: | ||
| - | * **Data element ID scheme:** This tells mSupply what kind of DHIS2 item identifiers are stored in mSupply (in the place defined by the **Item field reference** section above), item codes or UIDs. | + | * **Data element ID scheme:** This tells mSupply what kind of DHIS2 item identifiers are stored in mSupply (in the place defined by the **Item field reference** section above), item codes or UIDs. mSupply tells DHIS2 whether it is sending it item UIDs or codes in the information it sends, according to this setting. |
| + | * **Org unit scheme:** This tells mSupply whether it is sending org codes or UIDs to DHIS2 when sending facility identifiers. mSupply will tell DHIS2 what types of identifiers it is sending according to this setting. | ||
| + | * **Store field reference: | ||
| * **Round off checkbox:** If checked then mSupply will round numerical data values to the nearest whole number as some DHIS2 setup only accept integers. | * **Round off checkbox:** If checked then mSupply will round numerical data values to the nearest whole number as some DHIS2 setup only accept integers. | ||
| * **No. of items per payload:** Enter the number of pieces of information to send in a particular call to the DHIS2 server. If there are more than this number of pieces to send then they will be split up into separate calls with this number of pieces of information in them. Helpful if there is a lot of information to send but the DHIS2 server can't handle the volume of information (which usually results in internal errors being returned). | * **No. of items per payload:** Enter the number of pieces of information to send in a particular call to the DHIS2 server. If there are more than this number of pieces to send then they will be split up into separate calls with this number of pieces of information in them. Helpful if there is a lot of information to send but the DHIS2 server can't handle the volume of information (which usually results in internal errors being returned). | ||