Implementation Guide
ePA MHD Service
Version 1.1.2 - release

## : Example Fulltext Search Match - XML Representation

Raw xml | Download

    <Bundle xmlns="http://hl7.org/fhir">
      <id value="example-fulltext-search-match"/>
      <meta>
        <profile
                 value="https://gematik.de/fhir/epa-mhd/StructureDefinition/epa-document-search-result-bundle"/>
      </meta>
      <type value="searchset"/>
      <total value="1"/>
      <link>
        <relation value="self"/>
        <url
             value="/epa/mhd/api/v1/fhir/DocumentReference?_offset=0&amp;_count=25&amp;_content=Test"/>
      </link>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/mhd/api/v1/fhir/DocumentReference/b2d5f8db-48ca-43c4-a540-6c8f2e853913"/>
        <resource>
          <DocumentReference>
            <id value="b2d5f8db-48ca-43c4-a540-6c8f2e853913"/>
            <meta>
              <profile
                       value="https://gematik.de/fhir/epa-mhd/StructureDefinition/epa-mhd-document-reference"/>
            </meta>
            <masterIdentifier>
              <use value="usual"/>
              <system value="urn:ietf:rfc:3986"/>
              <value
                     value="urn:oid:2.25.104666037230925920288492414767863731214"/>
            </masterIdentifier>
            <identifier>
              <use value="official"/>
              <system value="urn:ietf:rfc:3986"/>
              <value value="urn:uuid:b2d5f8db-48ca-43c4-a540-6c8f2e853913"/>
            </identifier>
            <identifier>
              <use value="usual"/>
              <system value="urn:ietf:rfc:3986"/>
              <value
                     value="urn:oid:2.25.104666037230925920288492414767863731214"/>
            </identifier>
            <status value="current"/>
            <type>
              <coding>
                <system value="urn:oid:1.3.6.1.4.1.19376.3.276.1.5.9"/>
                <code value="ADCH"/>
                <display value="Administrative Checklisten"/>
              </coding>
            </type>
            <category>
              <coding>
                <system value="urn:oid:1.3.6.1.4.1.19376.3.276.1.5.8"/>
                <code value="BEF"/>
                <display value="Befundbericht"/>
              </coding>
            </category>
            <subject>
              <type value="Patient"/>
              <identifier>
                <type>
                  <coding>
                    <system
                            value="http://fhir.de/CodeSystem/identifier-type-de-basis"/>
                    <code value="KVZ10"/>
                    <display value="Krankenversichertennummer"/>
                  </coding>
                </type>
                <system value="http://fhir.de/sid/gkv/kvid-10"/>
                <value value="G995030566"/>
              </identifier>
              <display value="Gundlach, Monika"/>
            </subject>
            <author>
              <type value="Organization"/>
              <identifier>
                <system value="https://gematik.de/fhir/sid/telematik-id"/>
                <value value="1-2c47sd-e518"/>
              </identifier>
              <display value="Arztpraxis Dr. Thilo Weber"/>
            </author>
            <description value="Beispieldokument"/>
            <securityLabel>
              <coding>
                <system value="urn:oid:2.16.840.1.113883.5.25"/>
                <code value="N"/>
                <display value="normal"/>
              </coding>
            </securityLabel>
            <securityLabel>
              <coding>
                <system value="urn:oid:1.2.276.0.76.5.511"/>
                <code value="reports"/>
                <display value="Befunde/Diagnosen/Berichte"/>
              </coding>
            </securityLabel>
            <content>
              <attachment>
                <contentType value="application/pdf"/>
                <language value="de-DE"/>
                <url
                     value="http://epa4all/epa/mhd/retrieve/v1/content/b2d5f8db-48ca-43c4-a540-6c8f2e853913.pdf"/>
                <size value="3654"/>
                <hash value="yPnibUHWIkRejf1euZCDWQ=="/>
                <title value="Neurologischer_Untersuchungsbefund.pdf"/>
                <creation value="2025-12-01T09:03:24Z"/>
              </attachment>
              <format>
                <system value="urn:oid:1.3.6.1.4.1.19376.3.276.1.5.6"/>
                <code value="urn:ihe-d:spec:PDF_A1:2005"/>
                <display value="PDF/A-1"/>
              </format>
            </content>
            <context>
              <event>
                <coding>
                  <system value="urn:oid:1.3.6.1.4.1.19376.3.276.1.5.16"/>
                  <code value="E200"/>
                  <display value="stationärer Aufenthalt"/>
                </coding>
              </event>
              <period>
                <start value="2025-11-28"/>
              </period>
              <facilityType>
                <coding>
                  <system value="urn:oid:1.3.6.1.4.1.19376.3.276.1.5.2"/>
                  <code value="KHS"/>
                  <display value="Krankenhaus"/>
                </coding>
              </facilityType>
              <practiceSetting>
                <coding>
                  <system value="urn:oid:1.3.6.1.4.1.19376.3.276.1.5.4"/>
                  <code value="NEUR"/>
                  <display value="Neurologie"/>
                </coding>
              </practiceSetting>
              <related>
                <identifier>
                  <system value="urn:gematik:iti:xds:2023:rootDocumentUniqueId"/>
                </identifier>
              </related>
              <related>
                <identifier>
                  <value
                         value="http://epa4all/epa/mhd/retrieve/v1/content/2.25.31457958586625016607071363908764203414.pdf"/>
                </identifier>
              </related>
            </context>
          </DocumentReference>
        </resource>
        <search>
          <extension
                     url="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-full-text-search-match-snippet">
            <extension url="snippet">
              <valueString value="Das ist ein &lt;mark&gt;Test&lt;/mark&gt;."/>
            </extension>
            <extension url="pageNumber">
              <valueString value="1"/>
            </extension>
          </extension>
          <extension
                     url="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-full-text-search-match-snippet">
            <extension url="snippet">
              <valueString
                           value="Das ist ein anderer &lt;mark&gt;Test&lt;/mark&gt;."/>
            </extension>
            <extension url="pageNumber">
              <valueString value="23"/>
            </extension>
          </extension>
          <extension
                     url="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-full-text-search-match-total-hits">
            <valueInteger value="2"/>
          </extension>
          <mode value="match"/>
          <score value="0.9"/>
        </search>
      </entry>
    </Bundle>