123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <oadr:oadrReportDescription xmlns:emix="http://docs.oasis-open.org/ns/emix/2011/06">
- <ei:rID>{{ report_description.r_id }}</ei:rID>
- {% if report_description.report_subject %}
- <ei:reportSubject>
- <ei:resourceID>{{ report_description.report_subject.resource_id }}</ei:resourceID>
- </ei:reportSubject>
- {% endif %}
- {% if report_description.report_data_source %}
- <ei:reportDataSource>
- {% if report_description.report_data_source.emix_interfaces %}
- {% for emix_interface in target.emix_interface %}
- {% include 'parts/emixInterface.xml' %}
- {% endfor %}
- {% endif %}
- {% if report_description.report_data_source.group_id %}
- <ei:groupID>{{ report_description.report_data_source.group_id }}</ei:groupID>
- {% endif %}
- {% if report_description.report_data_source.group_name %}
- <ei:groupName>{{ report_description.report_data_source.group_name }}</ei:groupName>
- {% endif %}
- {% if report_description.report_data_source.resource_id %}
- <ei:resourceID>{{ report_description.report_data_source.resource_id }}</ei:resourceID>
- {% endif %}
- {% if report_description.report_data_source.ven_id %}
- <ei:venID>{{ report_description.report_data_source.ven_id }}</ei:venID>
- {% endif %}
- {% if report_description.report_data_source.party_id %}
- <ei:partyID>{{ report_description.report_data_source.party_id }}</ei:partyID>
- {% endif %}
- </ei:reportDataSource>
- {% endif %}
- <ei:reportType>{{ report_description.report_type }}</ei:reportType>
- {% include 'parts/reportDescriptionEmix.xml' %}
- <ei:readingType>{{ report_description.reading_type }}</ei:readingType>
- {% if report_description.market_context %}
- <emix:marketContext>{{ report_description.market_context }}</emix:marketContext>
- {% endif %}
- {% if report_description.sampling_rate %}
- <oadr:oadrSamplingRate>
- <oadr:oadrMinPeriod>{{ report_description.sampling_rate.min_period|timedeltaformat }}</oadr:oadrMinPeriod>
- <oadr:oadrMaxPeriod>{{ report_description.sampling_rate.max_period|timedeltaformat }}</oadr:oadrMaxPeriod>
- <oadr:oadrOnChange>{{ report_description.sampling_rate.on_change|booleanformat }}</oadr:oadrOnChange>
- </oadr:oadrSamplingRate>
- {% endif %}
- </oadr:oadrReportDescription>
|