~intrahealth+informatics/ihris-manage/SL-sample

« back to all changes in this revision

Viewing changes to modules/SL_PHU6_Report/phu6_report.xml

  • Committer: Carl Leitner
  • Date: 2010-09-23 23:43:38 UTC
  • Revision ID: litlfred@cumin-20100923234338-6h9754iqp9tukeia
update for new sierra leone DSD for connectathon

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
  <metadata>
5
5
    <displayName>PHU6 Report View</displayName>
6
6
    <description>PHU6 Report</description>
7
 
    <version>4.0.6.2010.07.02</version>
 
7
    <version>4.0.6.2010.09.23.13</version>
8
8
  </metadata>
9
9
  <configurationGroup name="phu6_report" path="//modules/CustomReports/reportViews/phu6">
10
10
    <displayName>Export</displayName>
11
 
    <version>4.0.6.2010.07.02</version>
 
11
    <version>4.0.6.2010.09.23.0</version>
12
12
    <configurationGroup name="display_options">
13
13
      <displayName>Display Options</displayName>
14
14
      <configurationGroup name="Export">
35
35
            <displayName>Sdmx Hd Phu6</displayName>
36
36
            <configuration name="definition">
37
37
              <displayName>Definition</displayName>
38
 
              <value>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; &lt;xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/&gt; &lt;xsl:attribute-set name="REPORTING_TIME"&gt; &lt;xsl:attribute name="FREQ"&gt;M&lt;/xsl:attribute&gt; &lt;xsl:attribute name="TIME_PERIOD"&gt; &lt;xsl:value-of select="substring(ihrisReport/reportDetails/whenGenerated,1,7)"/&gt; &lt;/xsl:attribute&gt; &lt;/xsl:attribute-set&gt; &lt;xsl:template match="/"&gt; &lt;CrossSectionalData xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message" xmlns:ns="urn:sdmx:org.sdmx.infomodel.keyfamily.KeyFamily=SL-MOHS:KF_360523:1.0:cross" xmlns:cross="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure SDMXMessage.xsd urn:sdmx:org.sdmx.infomodel.keyfamily.KeyFamily=SL-MOHS:KF_360523:1.0:cross KF_360523.xsd http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross SDMXCrossSectionalData.xsd"&gt; &lt;Header&gt; &lt;ID&gt;SDMX-HD-CSDS&lt;/ID&gt; &lt;Test&gt;true&lt;/Test&gt; &lt;Truncated&gt;false&lt;/Truncated&gt; &lt;Name xml:lang="en"&gt;OpenMRS SDMX-HD Export&lt;/Name&gt; &lt;Prepared&gt;&lt;xsl:value-of select="ihrisReport/reportDetails/whenGenerated"/&gt;&lt;/Prepared&gt; &lt;Sender id="iHRIS"&gt; &lt;Name&gt;iHRIS&lt;/Name&gt; &lt;/Sender&gt; &lt;/Header&gt; &lt;ns:DataSet datasetID="1" dataProviderSchemeAgencyId="1" dataProviderSchemeId="1" dataProviderID="1"&gt; &lt;ns:Group VALUE_TYPE="0" xsl:use-attribute-sets="REPORTING_TIME"&gt; &lt;ns:Section&gt; &lt;xsl:for-each select="ihrisReport/reportData/dataRow"&gt; &lt;xsl:if test="dataElement[@name='cl_facility+id'] != ''"&gt; &lt;ns:OBS_VALUE&gt; &lt;xsl:attribute name="FACILITY"&gt; &lt;xsl:value-of select="substring(dataElement[@name='cl_facility+id'],13)"/&gt; &lt;/xsl:attribute&gt; &lt;xsl:attribute name="DATAELEMENT"&gt; &lt;xsl:choose&gt; &lt;xsl:when test="dataElement[@name='cl_dataelement_360523+id'] != ''"&gt; &lt;xsl:value-of select="substring(dataElement[@name='cl_dataelement_360523+id'],23)"/&gt; &lt;/xsl:when&gt; &lt;xsl:otherwise&gt;360543&lt;/xsl:otherwise&gt; &lt;/xsl:choose&gt; &lt;/xsl:attribute&gt; &lt;xsl:attribute name="SALARIED"&gt; &lt;xsl:value-of select="substring(dataElement[@name='+on_salary'],20)"/&gt; &lt;/xsl:attribute&gt; &lt;xsl:attribute name="value"&gt; &lt;xsl:value-of select="dataElement[@name='total']"/&gt; &lt;/xsl:attribute&gt; &lt;/ns:OBS_VALUE&gt; &lt;/xsl:if&gt; &lt;/xsl:for-each&gt; &lt;/ns:Section&gt; &lt;/ns:Group&gt; &lt;/ns:DataSet&gt; &lt;/CrossSectionalData&gt; &lt;/xsl:template&gt; &lt;/xsl:stylesheet&gt;</value>
 
38
              <version>4.0.6.2010.09.23.13</version>
 
39
              <value>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 
40
&lt;xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;
 
41
  &lt;xsl:output method=&quot;xml&quot; version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; indent=&quot;yes&quot;/&gt;
 
42
  &lt;xsl:attribute-set name=&quot;REPORTING_TIME&quot;&gt;
 
43
    &lt;xsl:attribute name=&quot;FREQ&quot;&gt;M&lt;/xsl:attribute&gt;
 
44
    &lt;xsl:attribute name=&quot;TIME_PERIOD&quot;&gt;
 
45
       &lt;xsl:value-of select=&quot;substring(ihrisReport/reportDetails/whenGenerated,1,7)&quot;/&gt;
 
46
    &lt;/xsl:attribute&gt;
 
47
  &lt;/xsl:attribute-set&gt;
 
48
  &lt;xsl:template match=&quot;/&quot;&gt;
 
49
  &lt;CrossSectionalData xmlns=&quot;http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message&quot; xmlns:ns=&quot;urn:sdmx:org.sdmx.infomodel.keyfamily.KeyFamily=SL-MOHS:KF_20:1.0:cross&quot; xmlns:cross=&quot;http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure SDMXMessage.xsd     urn:sdmx:org.sdmx.infomodel.keyfamily.KeyFamily=SL-MOHS:KF_20:1.0:cross KF_20.xsd      http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross SDMXCrossSectionalData.xsd&quot;&gt;
 
50
    &lt;Header&gt;
 
51
        &lt;ID&gt;SDMX-HD-CSDS&lt;/ID&gt;
 
52
        &lt;Test&gt;true&lt;/Test&gt;
 
53
        &lt;Truncated&gt;false&lt;/Truncated&gt;
 
54
        &lt;Name xml:lang=&quot;en&quot;&gt;OpenMRS SDMX-HD Export&lt;/Name&gt;
 
55
        &lt;Prepared&gt;&lt;xsl:value-of select=&quot;ihrisReport/reportDetails/whenGenerated&quot;/&gt;&lt;/Prepared&gt;
 
56
        &lt;Sender id=&quot;iHRIS&quot;&gt;
 
57
            &lt;Name&gt;iHRIS&lt;/Name&gt;
 
58
        &lt;/Sender&gt;
 
59
    &lt;/Header&gt;
 
60
    &lt;ns:DataSet datasetID=&quot;1&quot; dataProviderSchemeAgencyId=&quot;1&quot; dataProviderSchemeId=&quot;1&quot; dataProviderID=&quot;1&quot;&gt;
 
61
        &lt;ns:Group VALUE_TYPE=&quot;0&quot; xsl:use-attribute-sets=&quot;REPORTING_TIME&quot;&gt;
 
62
           &lt;ns:Section&gt;
 
63
             &lt;xsl:for-each select=&quot;ihrisReport/reportData/dataRow&quot;&gt;
 
64
 
 
65
 
 
66
 
 
67
               &lt;xsl:if test=&quot;dataElement[@name='cl_facility+id'] != '' and dataElement[@name='cl_dataelement_20+id'] != ''&quot;&gt;
 
68
 
 
69
 
 
70
 
 
71
                  &lt;ns:OBS_VALUE&gt;
 
72
                     &lt;xsl:attribute name=&quot;FACILITY&quot;&gt;
 
73
                        &lt;xsl:value-of select=&quot;substring(dataElement[@name='cl_facility+id'],13)&quot;/&gt;
 
74
                     &lt;/xsl:attribute&gt;
 
75
                     &lt;xsl:attribute name=&quot;DATAELEMENT&quot;&gt;
 
76
                       &lt;xsl:choose&gt;
 
77
                          &lt;xsl:when test=&quot;dataElement[@name='cl_dataelement_20+id'] != ''&quot;&gt;
 
78
                            &lt;xsl:value-of select=&quot;substring(dataElement[@name='cl_dataelement_20+id'],19)&quot;/&gt;
 
79
                          &lt;/xsl:when&gt;
 
80
                        &lt;/xsl:choose&gt;                        
 
81
                     &lt;/xsl:attribute&gt;
 
82
                     &lt;xsl:attribute name=&quot;SALARIED&quot;&gt;
 
83
                        &lt;xsl:value-of select=&quot;substring(dataElement[@name='+on_salary'],16)&quot;/&gt;
 
84
                     &lt;/xsl:attribute&gt;
 
85
                     &lt;xsl:attribute name=&quot;value&quot;&gt;
 
86
                        &lt;xsl:value-of select=&quot;dataElement[@name='total']&quot;/&gt;
 
87
                     &lt;/xsl:attribute&gt;
 
88
                  &lt;/ns:OBS_VALUE&gt;
 
89
               &lt;/xsl:if&gt;
 
90
             &lt;/xsl:for-each&gt; 
 
91
            &lt;/ns:Section&gt;
 
92
        &lt;/ns:Group&gt;
 
93
    &lt;/ns:DataSet&gt;
 
94
  &lt;/CrossSectionalData&gt;
 
95
  &lt;/xsl:template&gt;
 
96
&lt;/xsl:stylesheet&gt;</value>
39
97
            </configuration>
40
98
          </configurationGroup>
41
99
        </configurationGroup>
42
100
        <configuration name="export_compression">
43
101
          <displayName>Export Compression</displayName>
44
 
          <value>zip</value>
 
102
          <version>4.0.6.2010.09.23.10</version>
 
103
          <value>none</value>
45
104
        </configuration>
46
105
      </configurationGroup>
47
106
    </configurationGroup>
58
117
          <value>1</value>
59
118
        </configuration>
60
119
      </configurationGroup>
61
 
      <configurationGroup name="cl_dataelement_360523+id">
62
 
        <displayName>Cl Dataelement 360523 Id</displayName>
 
120
      <configurationGroup name="cl_dataelement_20+id">
 
121
        <displayName>Cl Dataelement 20 Id</displayName>
63
122
        <configuration name="aggregate">
64
123
          <displayName>Aggregate</displayName>
65
124
          <value>none</value>
91
150
    </configuration>
92
151
    <configuration name="display_order">
93
152
      <displayName>Display Order</displayName>
94
 
      <value>cl_facility+id,cl_category_8216+id,cl_dataelement_360523+id,current_salary+salary,demographic+birth_date,demographic+gender,department+name,emergency+address,emergency+email,emergency+telephone,facility+name,home+address,home+email,home+telephone,person+firstname,person+nationality,person+othername,person+surname,position+department,position+facility,position+title,primary_form+start_date,start_salary+salary,work+email,work+telephone,+on_salary</value>
 
153
      <value>cl_facility+id,cl_category_5+id,cl_dataelement_20+id,current_salary+salary,demographic+birth_date,demographic+gender,department+name,emergency+address,emergency+email,emergency+telephone,facility+name,home+address,home+email,home+telephone,person+firstname,person+nationality,person+othername,person+surname,position+department,position+facility,position+title,primary_form+start_date,start_salary+salary,work+email,work+telephone,+on_salary</value>
95
154
    </configuration>
96
155
    <configuration name="report">
97
156
      <displayName>Report</displayName>
106
165
      <value>Export</value>
107
166
    </configuration>
108
167
  </configurationGroup>
109
 
</I2CEConfiguration>
 
 
b'\\ No newline at end of file'
 
168
</I2CEConfiguration>