oadrReportDescription.xml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <oadrReportDescription xmlns:emix="http://docs.oasis-open.org/ns/emix/2011/06">
  2. <ei:rID>{{ r_id }}</ei:rID>
  3. {% if report_description.report_subjects %}
  4. <ei:reportSubject>
  5. {% for target in report_description.report_subjects %}
  6. {% if target.emix_interfaces %}
  7. {% for emix_interface in target.emix_interface %}
  8. {% include 'parts/emixInterface.xml' %}
  9. {% endfor %}
  10. {% endif %}
  11. {% endfor %}
  12. {% for target in report_description.report_subjects %}
  13. {% if target.group_id %}
  14. <ei:groupID>{{ target.group_id }}</ei:groupID>
  15. {% endif %}
  16. {% endfor %}
  17. {% for target in report_description.report_subjects %}
  18. {% if target.group_name %}
  19. <ei:groupName>{{ target.group_name }}</ei:groupName>
  20. {% endif %}
  21. {% endfor %}
  22. {% for target in report_description.report_subjects %}
  23. {% if target.resource_id %}
  24. <ei:resourceID>{{ target.resource_id }}</ei:resourceID>
  25. {% endif %}
  26. {% endfor %}
  27. {% for target in report_description.report_subjects %}
  28. {% if target.ven_id %}
  29. <ei:venID>{{ target.ven_id }}</ei:venID>
  30. {% endif %}
  31. {% endfor %}
  32. {% for target in report_description.report_subjects %}
  33. {% if target.party_id %}
  34. <ei:partyID>{{ target.party_id }}</ei:partyID>
  35. {% endif %}
  36. {% endfor %}
  37. </ei:reportSubject>
  38. {% endif %}
  39. {% if report_description.report_data_sources %}
  40. <ei:reportDataSource>
  41. {% for target in report_description.report_data_sources %}
  42. {% if target.emix_interfaces %}
  43. {% for emix_interface in target.emix_interface %}
  44. {% include 'parts/emixInterface.xml' %}
  45. {% endfor %}
  46. {% endif %}
  47. {% endfor %}
  48. {% for target in report_description.report_data_sources %}
  49. {% if target.group_id %}
  50. <ei:groupID>{{ target.group_id }}</ei:groupID>
  51. {% endif %}
  52. {% endfor %}
  53. {% for target in report_description.report_data_sources %}
  54. {% if target.group_name %}
  55. <ei:groupName>{{ target.group_name }}</ei:groupName>
  56. {% endif %}
  57. {% endfor %}
  58. {% for target in report_description.report_data_sources %}
  59. {% if target.resource_id %}
  60. <ei:resourceID>{{ target.resource_id }}</ei:resourceID>
  61. {% endif %}
  62. {% endfor %}
  63. {% for target in report_description.report_data_sources %}
  64. {% if target.ven_id %}
  65. <ei:venID>{{ target.ven_id }}</ei:venID>
  66. {% endif %}
  67. {% endfor %}
  68. {% for target in report_description.report_data_sources %}
  69. {% if target.party_id %}
  70. <ei:partyID>{{ target.party_id }}</ei:partyID>
  71. {% endif %}
  72. {% endfor %}
  73. </ei:reportDataSource>
  74. {% endif %}
  75. <ei:reportType>{{ report_description.report_type }}</ei:reportType>
  76. {% include 'parts/reportDescriptionEmix.xml' %}
  77. <ei:readingType>{{ report_description.reading_type }}</ei:readingType>
  78. {% if report_description.market_context %}
  79. <emix:marketContext>{{ report_description.market_context }}</emix:marketContext>
  80. {% endif %}
  81. {% if report_description.sampling_rate %}
  82. <oadrSamplingRate>
  83. <oadrMinPeriod>{{ report_description.sampling_rate.min_period|timedeltaformat }}</oadrMinPeriod>
  84. <oadrMaxPeriod>{{ report_description.sampling_rate.max_period|timedeltaformat }}</oadrMaxPeriod>
  85. <oadrOnChange>{{ report_description.sampling_rate.on_change|booleanformat }}</oadrOnChange>
  86. </oadrSamplingRate>
  87. {% endif %}
  88. </oadrReportDescription>