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

<Bundle xmlns="http://hl7.org/fhir">
  <id value="example-rira-pendente-com-ciap"/>
  <language value="pt-BR"/>
  <identifier>
    <system value="http://www.saude.gov.br/fhir/r4/NamingSystem/BRRNDS-12345"/>
    <value value="AMB_271831370_0701172"/>
  </identifier>
  <type value="document"/>
  <timestamp value="2024-11-18T12:14:01-03:00"/>
  <entry>
    <fullUrl value="urn:uuid:transient-0"/>
    <resource>
      <Composition>
        <id value="c1256970-5464-403d-99f9-f1ef1d1f81ea"/>
        <meta>
          <profile value="http://www.saude.gov.br/fhir/r4/StructureDefinition/BRRegulacaoAssistencial"/>
        </meta>
        <language value="pt-BR"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Composition_c1256970-5464-403d-99f9-f1ef1d1f81ea"> </a><p class="res-header-id"><b>Narrativa gerada: Composition c1256970-5464-403d-99f9-f1ef1d1f81ea</b></p><a name="c1256970-5464-403d-99f9-f1ef1d1f81ea"> </a><a name="hcc1256970-5464-403d-99f9-f1ef1d1f81ea"> </a><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Perfil: <a href="StructureDefinition-BRRegulacaoAssistencial.html">Regulação Assistencial</a></p></div><p><b>status</b>: Final</p><p><b>type</b>: <span title="Códigos:{http://www.saude.gov.br/fhir/r4/CodeSystem/BRTipoDocumento RA}">Regulação Assistencial</span></p><p><b>category</b>: <span title="Códigos:{http://www.saude.gov.br/fhir/r4/CodeSystem/BRModalidadeAssistencial 04}">Atenção Hospitalar</span></p><p><b>date</b>: 2024-11-18</p><p><b>author</b>: Identifier: <code>http://www.saude.gov.br/fhir/r4/StructureDefinition/BREstabelecimentoSaude-1.0</code>/6450091</p><p><b>title</b>: Regulação Assistencial</p><blockquote><p><b>event</b></p><p><b>code</b>: <span title="Códigos:{http://www.saude.gov.br/fhir/r4/CodeSystem/BRStatusRegulacaoAssistencial pending}">Pendente</span></p><p><b>period</b>: ?? --&gt; 2024-03-02 14:18:43-0300</p><p><b>detail</b>: </p><ul><li>Identifier: <code>http://www.saude.gov.br/fhir/r4/StructureDefinition/BREstabelecimentoSaude-1.0</code>/6689477</li><li><a href="Bundle-example-rira-anterior-2025-com-ciap.html#urn-uuid-transient-2">ServiceRequest COLONOSCOPIA (COLOSCOPIA)</a></li></ul></blockquote></div>
        </text>
        <status value="final"/>
        <type>
          <coding>
            <system value="http://www.saude.gov.br/fhir/r4/CodeSystem/BRTipoDocumento"/>
            <code value="RA"/>
          </coding>
        </type>
        <category>
          <coding>
            <system value="http://www.saude.gov.br/fhir/r4/CodeSystem/BRModalidadeAssistencial"/>
            <code value="04"/>
          </coding>
        </category>
        <subject>
          <identifier>
            <system value="http://www.saude.gov.br/fhir/r4/StructureDefinition/BRIndividuo-1.0"/>
            <value value="71510413146"/>
          </identifier>
        </subject>
        <date value="2024-11-18"/>
        <author>
          <identifier>
            <system value="http://www.saude.gov.br/fhir/r4/StructureDefinition/BREstabelecimentoSaude-1.0"/>
            <value value="6450091"/>
          </identifier>
        </author>
        <title value="Regulação Assistencial"/>
        <event>
          <code>
            <coding>
              <system value="http://www.saude.gov.br/fhir/r4/CodeSystem/BRStatusRegulacaoAssistencial"/>
              <code value="pending"/>
            </coding>
          </code>
          <period>
            <end value="2024-03-02T14:18:43-03:00"/>
          </period>
          <detail>
            <identifier>
              <system value="http://www.saude.gov.br/fhir/r4/StructureDefinition/BREstabelecimentoSaude-1.0"/>
              <value value="6689477"/>
            </identifier>
          </detail>
          <detail>
            <reference value="urn:uuid:transient-2"/>
          </detail>
        </event>
        <section>
          <entry>
            <reference value="urn:uuid:transient-1"/>
          </entry>
        </section>
      </Composition>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:transient-1"/>
    <resource>
      <Appointment>
        <meta>
          <profile value="http://www.saude.gov.br/fhir/r4/StructureDefinition/BRAgendamentoRegulacaoAssistencial"/>
        </meta>
        <language value="pt-BR"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Appointment_null"> </a><p class="res-header-id"><b>Narrativa gerada: Appointment </b></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Perfil: <a href="StructureDefinition-BRAgendamentoRegulacaoAssistencial.html">Agendamento de Regulação Assistencial</a></p></div><p><b>status</b>: Proposed</p><p><b>serviceCategory</b>: <span title="Códigos:{http://www.saude.gov.br/fhir/r4/CodeSystem/BRModalidadeAssistencial 04}">Atenção Hospitalar</span></p><p><b>serviceType</b>: <span title="Códigos:{http://www.saude.gov.br/fhir/r4/CodeSystem/BRTabelaSUS 0209010029}">COLONOSCOPIA (COLOSCOPIA)</span></p><p><b>specialty</b>: <span title="Códigos:{http://www.saude.gov.br/fhir/r4/CodeSystem/BRCBO 225225}">MEDICO CIRURGIAO GERAL</span></p><p><b>appointmentType</b>: <span title="Códigos:{http://hl7.org/fhir/request-priority routine}">Routine</span></p><p><b>reasonReference</b>: <a href="Bundle-example-rira-anterior-2025-com-ciap.html#urn-uuid-transient-3">Condition Fratura: osso da mão/pé</a></p><p><b>created</b>: 2024-03-02 14:18:43-0300</p><p><b>basedOn</b>: <a href="Bundle-example-rira-anterior-2025-com-ciap.html#urn-uuid-transient-2">ServiceRequest COLONOSCOPIA (COLOSCOPIA)</a></p><h3>Participants</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Type</b></td><td><b>Actor</b></td><td><b>Status</b></td></tr><tr><td style="display: none">*</td><td><span title="Códigos:{http://www.saude.gov.br/fhir/r4/CodeSystem/BRTipoParticipante PCT}">Paciente</span></td><td>Identifier: <code>http://www.saude.gov.br/fhir/r4/StructureDefinition/BRIndividuo-1.0</code>/71510413146</td><td>Accepted</td></tr></table></div>
        </text>
        <status value="proposed"/>
        <serviceCategory>
          <coding>
            <system value="http://www.saude.gov.br/fhir/r4/CodeSystem/BRModalidadeAssistencial"/>
            <code value="04"/>
          </coding>
        </serviceCategory>
        <serviceType>
          <coding>
            <system value="http://www.saude.gov.br/fhir/r4/CodeSystem/BRTabelaSUS"/>
            <code value="0209010029"/>
          </coding>
        </serviceType>
        <specialty>
          <coding>
            <system value="http://www.saude.gov.br/fhir/r4/CodeSystem/BRCBO"/>
            <code value="225225"/>
          </coding>
        </specialty>
        <appointmentType>
          <coding>
            <system value="http://hl7.org/fhir/request-priority"/>
            <code value="routine"/>
          </coding>
        </appointmentType>
        <reasonReference>
          <reference value="urn:uuid:transient-3"/>
        </reasonReference>
        <created value="2024-03-02T14:18:43-03:00"/>
        <basedOn>
          <reference value="urn:uuid:transient-2"/>
        </basedOn>
        <participant>
          <type>
            <coding>
              <system value="http://www.saude.gov.br/fhir/r4/CodeSystem/BRTipoParticipante"/>
              <code value="PCT"/>
            </coding>
          </type>
          <actor>
            <identifier>
              <system value="http://www.saude.gov.br/fhir/r4/StructureDefinition/BRIndividuo-1.0"/>
              <value value="71510413146"/>
            </identifier>
          </actor>
          <status value="accepted"/>
        </participant>
      </Appointment>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:transient-2"/>
    <resource>
      <ServiceRequest>
        <meta>
          <profile value="http://www.saude.gov.br/fhir/r4/StructureDefinition/BRRequisicaoRegulacaoAssistencial"/>
        </meta>
        <language value="pt-BR"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="ServiceRequest_null"> </a><p class="res-header-id"><b>Narrativa gerada: ServiceRequest </b></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Perfil: <a href="StructureDefinition-BRRequisicaoRegulacaoAssistencial.html">Requisição de Regulação Assistencial</a></p></div><p><b>status</b>: Active</p><p><b>intent</b>: Proposal</p><p><b>category</b>: <span title="Códigos:{http://www.saude.gov.br/fhir/r4/CodeSystem/BRModalidadeAssistencial 04}">Atenção Hospitalar</span></p><p><b>priority</b>: Routine</p><p><b>code</b>: <span title="Códigos:{http://www.saude.gov.br/fhir/r4/CodeSystem/BRTabelaSUS 0209010029}">COLONOSCOPIA (COLOSCOPIA)</span></p><p><b>subject</b>: Identifier: <code>http://www.saude.gov.br/fhir/r4/StructureDefinition/BRIndividuo-1.0</code>/71510413146</p><p><b>authoredOn</b>: 2024-03-02 14:18:43-0300</p><p><b>requester</b>: Identifier: <code>http://www.saude.gov.br/fhir/r4/StructureDefinition/BREstabelecimentoSaude-1.0</code>/6994547</p><p><b>performerType</b>: <span title="Códigos:{http://www.saude.gov.br/fhir/r4/CodeSystem/BRCBO 225225}">MEDICO CIRURGIAO GERAL</span></p><p><b>reasonReference</b>: <a href="Bundle-example-rira-anterior-2025-com-ciap.html#urn-uuid-transient-3">Condition Fratura: osso da mão/pé</a></p></div>
        </text>
        <status value="active"/>
        <intent value="proposal"/>
        <category>
          <coding>
            <system value="http://www.saude.gov.br/fhir/r4/CodeSystem/BRModalidadeAssistencial"/>
            <code value="04"/>
          </coding>
        </category>
        <priority value="routine"/>
        <code>
          <coding>
            <system value="http://www.saude.gov.br/fhir/r4/CodeSystem/BRTabelaSUS"/>
            <code value="0209010029"/>
          </coding>
        </code>
        <subject>
          <identifier>
            <system value="http://www.saude.gov.br/fhir/r4/StructureDefinition/BRIndividuo-1.0"/>
            <value value="71510413146"/>
          </identifier>
        </subject>
        <authoredOn value="2024-03-02T14:18:43-03:00"/>
        <requester>
          <identifier>
            <system value="http://www.saude.gov.br/fhir/r4/StructureDefinition/BREstabelecimentoSaude-1.0"/>
            <value value="6994547"/>
          </identifier>
        </requester>
        <performerType>
          <coding>
            <system value="http://www.saude.gov.br/fhir/r4/CodeSystem/BRCBO"/>
            <code value="225225"/>
          </coding>
        </performerType>
        <reasonReference>
          <reference value="urn:uuid:transient-3"/>
        </reasonReference>
      </ServiceRequest>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:transient-3"/>
    <resource>
      <Condition>
        <meta>
          <profile value="http://www.saude.gov.br/fhir/r4/StructureDefinition/BRProblemaDiagnostico"/>
        </meta>
        <language value="pt-BR"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Condition_null"> </a><p class="res-header-id"><b>Narrativa gerada: Condition </b></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Perfil: <a href="StructureDefinition-BRProblemaDiagnostico.html">Problema/Diagnóstico</a></p></div><p><b>code</b>: <span title="Códigos:{http://www.saude.gov.br/fhir/r4/CodeSystem/BRCIAP2 A25}">Medo de morrer/medo da morte</span></p><p><b>subject</b>: Identifier: <code>http://www.saude.gov.br/fhir/r4/StructureDefinition/BRIndividuo-1.0</code>/71510413146</p></div>
        </text>
        <code>
          <coding>
            <system value="http://www.saude.gov.br/fhir/r4/CodeSystem/BRCIAP2"/>
            <code value="A25"/>
          </coding>
        </code>
        <subject>
          <identifier>
            <system value="http://www.saude.gov.br/fhir/r4/StructureDefinition/BRIndividuo-1.0"/>
            <value value="71510413146"/>
          </identifier>
        </subject>
      </Condition>
    </resource>
  </entry>
</Bundle>