<?xml version="1.0" encoding="UTF-8"?>

<OperationDefinition xmlns="http://hl7.org/fhir">
  <id value="-s-get-report-job-status"/>
  <text>
    <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><p>URL: [base]/$get-report-job-status</p><p>Parameters</p><table class="grid"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Scope</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>OUT</td><td>return</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/bundle.html">Bundle</a></td><td/><td/></tr></table></div>
  </text>
  <url value="https://reporting.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-get-report-job-status"/>
  <version value="2.10.0"/>
  <name value="get-report-job-status"/>
  <title value="Get Report Job Status"/>
  <status value="active"/>
  <kind value="operation"/>
  <date value="2023-10-24T11:12:05+00:00"/>
  <publisher value="Systematic | Trifork"/>
  <contact>
    <name value="Systematic | Trifork"/>
    <telecom>
      <system value="url"/>
      <value value="http://ehealth.sundhed.dk"/>
    </telecom>
  </contact>
  <description value="### Status Contents &#xA;This operation returns status for reports scheduled by the user (by schedule or execute)&#xA;### Output&#xA;The output is a Bundle containing Parameters resources for each scheduled report.&#xA;The parts of the Parameters describe the class of report, the parameters that the report&#xA;was scheduled with, the user ID, the status of the report, a reference to the report Binary&#xA;and time of creation, start, and end of execution.&#xA;### Example output&#xA;{&#xA;  'resourceType': 'Bundle',&#xA;  'type': 'collection',&#xA;  'entry': [&#xA;    {&#xA;      'fullUrl': 'ce35bcd5-4bb2-4c6e-b230-5347df1fe9bc',&#xA;      'resource': {&#xA;        'resourceType': 'Parameters',&#xA;        'id': 'ce35bcd5-4bb2-4c6e-b230-5347df1fe9bc',&#xA;        'parameter': [&#xA;          {&#xA;            'name': 'reportJob',&#xA;            'part': [&#xA;              {&#xA;                'name': 'reportClass',&#xA;                'valueString': 'com.systematic.ehealth.reporting.reports.PatientsUsageReport'&#xA;              },&#xA;              {&#xA;                'name': 'userId',&#xA;                'valueString': '0aaca7cd-67c3-48dd-a8c4-0cceecb5d276'&#xA;              },&#xA;              {&#xA;                'name': 'status',&#xA;                'valueString': 'DONE'&#xA;              },&#xA;              {&#xA;                'name': 'binary',&#xA;                'valueReference': {&#xA;                  'reference': 'https://reporting.local.ehealth.sundhed.dk/fhir/Binary/7'&#xA;                }&#xA;              },&#xA;              {&#xA;                'name': 'parameters',&#xA;                'resource': {&#xA;                  'resourceType': 'Parameters',&#xA;                  'parameter': [&#xA;                    {&#xA;                      'name': 'anonymization',&#xA;                      'valueString': 'None'&#xA;                    }&#xA;                  ]&#xA;                }&#xA;              },&#xA;              {&#xA;                'name': 'created',&#xA;                'valueDateTime': '2023-10-12T09:51:50+00:00'&#xA;              },&#xA;              {&#xA;                'name': 'started',&#xA;                'valueDateTime': '2023-10-12T09:51:50+00:00'&#xA;              },&#xA;              {&#xA;                'name': 'ended',&#xA;                'valueDateTime': '2023-10-12T09:51:51+00:00'&#xA;              }&#xA;            ]&#xA;          }&#xA;        ]&#xA;      }&#xA;    }&#xA;  ]&#xA;}&#xA;"/>
  <affectsState value="false"/>
  <code value="get-report-job-status"/>
  <system value="true"/>
  <type value="false"/>
  <instance value="false"/>
  <parameter>
    <name value="return"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <type value="Bundle"/>
  </parameter>
</OperationDefinition>