Linking iHRIS Facilities and DHIS Organizational Units

From IHRIS Wiki
Revision as of 08:40, 5 August 2013 by Litlfred (talk | contribs) (Created page with "The 4.1 series development code now has the ability to rapidly link iHRIS facilities with the DHIS2 organizational units. This functionality will be a part of the next release, ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The 4.1 series development code now has the ability to rapidly link iHRIS facilities with the DHIS2 organizational units. This functionality will be a part of the next release, 4.1.7. This is accomplished with the "DHIS Facility Map" modules.


Enabling the Module

You have two ways to enable the module. Either through the web interface or by adding the following line to your site customization XML file. <source lang='xml'>

<enable name="DHIS_FacilityMap" />

</source>

To enable this module in the web interface, do the following:

  • Click on "Configure System"
  • Click on "Configure Modules"
  • Click on "Sub-Modules" to the right of "iHRIS Common"
  • Click on "Sub-Modules" to the right of "DHIS Metadata"
  • Check the box to the left of "DHIS Facility Map"
  • Click on the "Enable" button


Exporting DHIS Metadata

To obtain the DHIS2 metadata export, see the DHIS2 documentation. You will want to select the "XML" format and "unzipped" and you should obtain a file "Export.xml" t

Uploading DHIS2 Metadata

The DHIS Facility Map module makes use of the DHIS Metadata module which loads in the "Organizational Unit" and "Data Element" metadata from your DHIS2 installation. Once the DHIS2 module is enabled, you will see a new option under "Configure System" called "Manage DHIS2 MetaData"

config_dhis_meta.png
config_dhis_meta.png

Clicking on this link will take you to a page where you can upload the DHIS2 metadata export.

config_dhis_meta_upload.png
config_dhis_meta_upload.png

Once you have uploaded the DHIS2 Metadata, clicking on the "Organizational Units" and "Data Elements" links will show you the available metadata from DHIS2.


HTML Templates

If your site customizations include either of the files "view_list_faciltiy.html" or "lists_form_facility.html" you should add the following lines: <source lang='html'>


</source> which will display the field which links the DHIS2 Organizational Unit to the iHRIS Facility forms.

You can see an example of this here on lines 9-11.

If your site does not include either of these html templates, you should not need to make any changes.