<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://fhir.siss.regione.lombardia.it/StructureDefinition/ReteLabBundleRispostaNotifica" />
  <name value="ReteLabBundleRispostaNotifica" />
  <status value="active" />
  <date value="2023-12-21T14:31:53.6384566+00:00" />
  <description value="Profilo volto a descrivere la risorsa Bundle nell'ambito della notifica di:&#xD;&#xA;- Risposta alla notifica di Check-in da Laboratorio Richiedente a Laboratorio Servente&#xD;&#xA;- Risposta alla notifica di Check-out da Laboratorio Richiedente a Laboratorio Servente &#xD;&#xA;- Risposta alla notifica di Check-in da Laboratorio Servente a Laboratorio Richiedente&#xD;&#xA;- Risposta al messaggio di eseguito/completato&#xD;&#xA;- Risposta al messaggio di cancellazione/modifica di un ordine" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Bundle" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Bundle" />
  <derivation value="constraint" />
  <differential>
    <element id="Bundle.type">
      <path value="Bundle.type" />
      <fixedCode value="message" />
    </element>
    <element id="Bundle.timestamp">
      <path value="Bundle.timestamp" />
      <definition value="Corrispondente campo HL7 secondo specifiche regionali: MSH-7.1" />
    </element>
    <element id="Bundle.entry">
      <path value="Bundle.entry" />
      <slicing>
        <discriminator>
          <type value="profile" />
          <path value="resolve()" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Bundle.entry:MessageHeader">
      <path value="Bundle.entry" />
      <sliceName value="MessageHeader" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:MessageHeader.resource">
      <path value="Bundle.entry.resource" />
      <type>
        <code value="Resource" />
        <profile value="https://fhir.siss.regione.lombardia.it/StructureDefinition/ReteLabMessageHeader" />
      </type>
    </element>
    <element id="Bundle.entry:Task">
      <path value="Bundle.entry" />
      <sliceName value="Task" />
      <min value="1" />
    </element>
    <element id="Bundle.entry:Task.resource">
      <path value="Bundle.entry.resource" />
      <type>
        <code value="Resource" />
        <profile value="https://fhir.siss.regione.lombardia.it/StructureDefinition/ReteLabTaskStatoRichiesta" />
      </type>
    </element>
    <element id="Bundle.entry:ServiceRequest">
      <path value="Bundle.entry" />
      <sliceName value="ServiceRequest" />
      <min value="1" />
    </element>
    <element id="Bundle.entry:ServiceRequest.resource">
      <path value="Bundle.entry.resource" />
      <type>
        <code value="Resource" />
        <profile value="https://fhir.siss.regione.lombardia.it/StructureDefinition/ReteLabServiceRequestRichiestaEsamiLab" />
      </type>
    </element>
    <element id="Bundle.entry:Patient">
      <path value="Bundle.entry" />
      <sliceName value="Patient" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:Patient.resource">
      <path value="Bundle.entry.resource" />
      <type>
        <code value="Resource" />
        <profile value="https://fhir.siss.regione.lombardia.it/StructureDefinition/ReteLabPatientCittadino" />
      </type>
    </element>
    <element id="Bundle.entry:Encounter">
      <path value="Bundle.entry" />
      <sliceName value="Encounter" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:Encounter.resource">
      <path value="Bundle.entry.resource" />
      <type>
        <code value="Resource" />
        <profile value="https://fhir.siss.regione.lombardia.it/StructureDefinition/ReteLabEncounterInformazioniRichiestaLab" />
      </type>
    </element>
    <element id="Bundle.entry:Organization">
      <path value="Bundle.entry" />
      <sliceName value="Organization" />
      <short value="Organization Laboratorio, L1 e L2 sono obbligatorie. Devono essere presenti almeno due Organization che riportano il codice dell’ente e del presidio del laboratorio; le informazioni sul reparto e sull’ambulatorio sono facoltative a meno di presidi che possiedono più laboratori. In tal caso, è necessario specificare un livello di dettaglio opportuno della struttura (tramite il Organization L3 e L4) al fine del riconoscimento del laboratorio incaricato." />
      <min value="2" />
    </element>
    <element id="Bundle.entry:Organization.resource">
      <path value="Bundle.entry.resource" />
      <type>
        <code value="Resource" />
        <profile value="https://fhir.siss.regione.lombardia.it/StructureDefinition/ReteLabOrganizationLaboratorio" />
        <profile value="https://fhir.siss.regione.lombardia.it/StructureDefinition/ReteLabOrganizationL1" />
        <profile value="https://fhir.siss.regione.lombardia.it/StructureDefinition/ReteLabOrganizationL2" />
        <profile value="https://fhir.siss.regione.lombardia.it/StructureDefinition/ReteLabOrganizationL3" />
        <profile value="https://fhir.siss.regione.lombardia.it/StructureDefinition/ReteLabOrganizationL4" />
      </type>
    </element>
    <element id="Bundle.entry:Specimen">
      <path value="Bundle.entry" />
      <sliceName value="Specimen" />
      <comment value="Nel caso di risposta a richiesta di eseguito/completato o modifica/cancellazione è necessario utilizzare il profilo ReteLabSpecimenCampioneLaboratorio" />
    </element>
    <element id="Bundle.entry:Specimen.resource">
      <path value="Bundle.entry.resource" />
      <type>
        <code value="Resource" />
        <profile value="https://fhir.siss.regione.lombardia.it/StructureDefinition/ReteLabSpecimenCampioneDaAnalizzareCheckInCheckOut" />
        <profile value="https://fhir.siss.regione.lombardia.it/StructureDefinition/ReteLabSpecimenCampioneLaboratorio" />
      </type>
    </element>
    <element id="Bundle.entry:Practitioner">
      <path value="Bundle.entry" />
      <sliceName value="Practitioner" />
    </element>
    <element id="Bundle.entry:Practitioner.resource">
      <path value="Bundle.entry.resource" />
      <type>
        <code value="Resource" />
        <profile value="https://fhir.siss.regione.lombardia.it/StructureDefinition/ReteLabPractitionerMedico" />
      </type>
    </element>
    <element id="Bundle.entry:PractitionerRole">
      <path value="Bundle.entry" />
      <sliceName value="PractitionerRole" />
    </element>
    <element id="Bundle.entry:PractitionerRole.resource">
      <path value="Bundle.entry.resource" />
      <type>
        <code value="Resource" />
        <profile value="https://fhir.siss.regione.lombardia.it/StructureDefinition/ReteLabPractitionerRoleMedico" />
      </type>
    </element>
  </differential>
</StructureDefinition>