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

<OperationDefinition xmlns="http://hl7.org/fhir">
  <id value="operation-medical-report"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: OperationDefinition operation-medical-report</b></p><a name="operation-medical-report"> </a><a name="hcoperation-medical-report"> </a><a name="operation-medical-report-en-US"> </a><p>URL: [base]/Bundle/$medical-report</p><h3>Parameters</h3><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>IN</td><td>questionnaireId</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#string">string</a><br/>(<a href="http://hl7.org/fhir/R4/search.html#string">string</a>)</td><td/><td><div><p>Questionnaire ID to add to the bundle. Same as a call to /Questionnaire/{questionnaireId}</p>
</div></td></tr><tr><td>IN</td><td>compoundId</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#string">string</a><br/>(<a href="http://hl7.org/fhir/R4/search.html#string">string</a>)</td><td/><td><div><p>Compound ID which represents a set of Questionnaires. The Questionnaires are added to the Bundle</p>
</div></td></tr><tr><td>IN</td><td>encounterId</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#string">string</a><br/>(<a href="http://hl7.org/fhir/R4/search.html#string">string</a>)</td><td/><td><div><p>Encounter ID which is mandatory and produces an Encounter resource added to the bundle</p>
</div></td></tr><tr><td>IN</td><td>reportId</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#string">string</a><br/>(<a href="http://hl7.org/fhir/R4/search.html#string">string</a>)</td><td/><td><div><p>Report ID, which if set, adds a specific identifier to the bundle. This identifier needs to be returned with the document bundle</p>
</div></td></tr></table></div>
  </text>
  <url value="http://fhir.kisimdocs.ch/ig/KisimMedicalReport/OperationDefinition/operation-medical-report"/>
  <version value="0.1.0"/>
  <name value="OperationMedicalReport"/>
  <title value="Search Document Resources"/>
  <status value="draft"/>
  <kind value="operation"/>
  <date value="2025-04-24T18:27:33+02:00"/>
  <publisher value="CISTEC AG"/>
  <contact>
    <name value="CISTEC AG"/>
    <telecom>
      <system value="url"/>
      <value value="https://www.cistec.com"/>
    </telecom>
  </contact>
  <description value="Returns a bundle of type collection containing all the resources needed to create a medical report document"/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="CH"/>
      <display value="Switzerland"/>
    </coding>
  </jurisdiction>
  <code value="medical-report"/>
  <resource value="Bundle"/>
  <system value="false"/>
  <type value="true"/>
  <instance value="false"/>
  <parameter>
    <name value="questionnaireId"/>
    <use value="in"/>
    <min value="0"/>
    <max value="1"/>
    <documentation value="Questionnaire ID to add to the bundle. Same as a call to /Questionnaire/{questionnaireId}"/>
    <type value="string"/>
    <searchType value="string"/>
  </parameter>
  <parameter>
    <name value="compoundId"/>
    <use value="in"/>
    <min value="0"/>
    <max value="1"/>
    <documentation value="Compound ID which represents a set of Questionnaires. The Questionnaires are added to the Bundle"/>
    <type value="string"/>
    <searchType value="string"/>
  </parameter>
  <parameter>
    <name value="encounterId"/>
    <use value="in"/>
    <min value="1"/>
    <max value="1"/>
    <documentation value="Encounter ID which is mandatory and produces an Encounter resource added to the bundle"/>
    <type value="string"/>
    <searchType value="string"/>
  </parameter>
  <parameter>
    <name value="reportId"/>
    <use value="in"/>
    <min value="0"/>
    <max value="1"/>
    <documentation value="Report ID, which if set, adds a specific identifier to the bundle. This identifier needs to be returned with the document bundle"/>
    <type value="string"/>
    <searchType value="string"/>
  </parameter>
</OperationDefinition>