<Bundle xmlns="http://hl7.org/fhir">
  <id value="bundle-solicitud-example" />
  <meta>
    <lastUpdated value="2024-06-07T17:00:00Z" />
  </meta>
  <implicitRules value="https://interoperabilidad.minsal.cl/fhir/ig/agenda/StructureDefinition/BundleSolicitud" />
  <language value="es" />
  <identifier>
    <value value="67890" />
  </identifier>
  <type value="transaction" />
  <timestamp value="2024-06-07T17:00:00Z" />
  <entry>
    <fullUrl value="http://example.org/fhir/Patient/123" />
    <resource>
      <Patient>
        <id value="123" />
        <meta>
          <extension url="https://hl7chile.cl/fhir/ig/clcore/StructureDefinition/CodigoPais">
            <valueCodeableConcept>
              <coding>
                <system value="urn:iso:std:iso:3166" />
                <code value="CL" />
              </coding>
            </valueCodeableConcept>
          </extension>
        </meta>
        <extension url="https://hl7chile.cl/fhir/ig/clcore/StructureDefinition/IdentidadDeGenero">
          <valueCodeableConcept>
            <coding>
              <system value="https://interoperabilidad.minsal.cl/fhir/ig/clcore/CodeSystem/CSIdentidadDeGenero" />
              <code value="2" />
            </coding>
          </valueCodeableConcept>
        </extension>
        <extension url="https://hl7chile.cl/fhir/ig/clcore/StructureDefinition/SexoBiologico">
          <valueCodeableConcept>
            <coding>
              <system value="https://interoperabilidad.minsal.cl/fhir/ig/clcore/CodeSystem/CSSexoBiologico" />
              <code value="1" />
            </coding>
          </valueCodeableConcept>
        </extension>
        <extension url="https://hl7chile.cl/fhir/ig/clcore/StructureDefinition/Etnia">
          <valueCodeableConcept>
            <coding>
              <system value="https://interoperabilidad.minsal.cl/fhir/ig/clcore/CodeSystem/CSEtnia" />
              <code value="1" />
            </coding>
          </valueCodeableConcept>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="https://interoperabilidad.minsal.cl/fhir/ig/clcore/ValueSet/VSCodigosIdentificadores" />
              <code value="RUN" />
            </coding>
          </type>
          <value value="12.345.678-9" />
        </identifier>
        <name>
          <use value="official" />
          <family value="Pérez" />
          <given value="Juan" />
        </name>
        <telecom>
          <system value="phone" />
          <value value="+56912345678" />
        </telecom>
        <telecom>
          <system value="email" />
          <value value="juan.perez@example.com" />
        </telecom>
        <gender value="male" />
        <birthDate value="1980-05-15" />
        <address>
          <line value="Av. Providencia 123" />
          <city value="Santiago" />
          <district value="Providencia" />
          <country value="CL" />
        </address>
        <contact>
          <relationship>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v3-RoleCode" />
              <code value="NXT" />
            </coding>
          </relationship>
          <name>
            <family value="González" />
            <given value="Maria" />
          </name>
          <telecom>
            <system value="phone" />
            <value value="+56998765432" />
          </telecom>
        </contact>
        <communication>
          <language>
            <coding>
              <system value="urn:ietf:bcp:47" />
              <code value="es" />
            </coding>
          </language>
        </communication>
      </Patient>
    </resource>
    <request>
      <method value="PUT" />
      <url value="Patient/123" />
    </request>
  </entry>
  <entry>
    <fullUrl value="http://example.org/fhir/SolicitudServicio/456" />
    <resource>
      <ServiceRequest>
        <id value="456" />
        <status value="active" />
        <intent value="order" />
        <code>
          <coding>
            <system value="https://interoperabilidad.minsal.cl/fhir/ig/codigos-minsal/ValueSet/VSCodigosServicios" />
            <code value="CONSULTA" />
          </coding>
        </code>
        <subject>
          <reference value="http://example.org/fhir/Patient/123" />
        </subject>
        <occurrenceDateTime value="2024-07-15T10:00:00Z" />
      </ServiceRequest>
    </resource>
    <request>
      <method value="POST" />
      <url value="ServiceRequest" />
    </request>
  </entry>
  <entry>
    <fullUrl value="http://example.org/fhir/Coverage/789" />
    <resource>
      <Coverage>
        <status value="active" />
        <type>
          <coding>
            <system value="https://interoperabilidad.minsal.cl/fhir/ig/agenda/CodeSystem/CSPrevision" />
            <code value="01" />
            <display value="FONASA" />
          </coding>
        </type>
        <subscriber>
          <reference value="http://example.org/fhir/Patient/123" />
        </subscriber>
      </Coverage>
    </resource>
    <request>
      <method value="POST" />
      <url value="Coverage" />
    </request>
  </entry>
  <entry>
    <fullUrl value="http://example.org/fhir/Condition/101" />
    <resource>
      <Condition>
        <id value="101" />
        <code>
          <coding>
            <system value="http://snomed.info/sct" />
            <code value="38666000" />
          </coding>
        </code>
        <subject>
          <reference value="http://example.org/fhir/Patient/123" />
        </subject>
      </Condition>
    </resource>
    <request>
      <method value="POST" />
      <url value="Condition" />
    </request>
  </entry>
  <entry>
    <fullUrl value="http://example.org/fhir/Observation/112" />
    <resource>
      <Observation>
        <id value="112" />
        <status value="final" />
        <code>
          <coding>
            <system value="http://loinc.org" />
            <code value="8302-2" />
          </coding>
        </code>
        <subject>
          <reference value="http://example.org/fhir/Patient/123" />
        </subject>
        <valueQuantity>
          <value value="175" />
          <unit value="cm" />
          <system value="http://unitsofmeasure.org" />
          <code value="cm" />
        </valueQuantity>
      </Observation>
    </resource>
    <request>
      <method value="POST" />
      <url value="Observation" />
    </request>
  </entry>
</Bundle>