Implementation Guide
ePA MHD Service
Version 1.1.0 - release

## Extension: EPA Match Total Hits Extension

Official URL: https://gematik.de/fhir/epa-mhd/StructureDefinition/epa-match-total-hits | Version: 1.1.0
Active as of 2025-12-15 | Computable Name: EPAMatchTotalHitsExtension
Copyright/Legal: gematik GmbH / Dieses Artefakt ist lizenziert unter Apache License, Version 2.0.

Diese Erweiterung enthält die Gesamtanzahl der Treffer einer Volltextsuche in einem Dokument (z.B. PDF).

Context of Use

This extension may be used on the following element(s):

- Element ID Bundle.entry.search

Usage info

Usages:

- Use this Extension: EPA Document Search Result Bundle
- Examples for this Extension: Bundle/example-fulltext-search-match

You can also check for usages in the FHIR IG Statistics

### Formal Views of Extension Content

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.

- Text Summary
- Differential Table
- Snapshot Table
- All

This structure is derived from Extension

Summary

Simple Extension with the type integer: Diese Erweiterung enthält die Gesamtanzahl der Treffer einer Volltextsuche in einem Dokument (z.B. PDF).

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | EPA Match Total Hits Extension
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-mhd/StructureDefinition/epa-match-total-hits"
value[x] |  | 1..1 | integer | Gesamtanzahl der in diesem Dokument gefundenen Treffer
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | EPA Match Total Hits Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-mhd/StructureDefinition/epa-match-total-hits"
value[x] |  | 1..1 | integer | Gesamtanzahl der in diesem Dokument gefundenen Treffer
Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type integer: Diese Erweiterung enthält die Gesamtanzahl der Treffer einer Volltextsuche in einem Dokument (z.B. PDF).

Differential View

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | EPA Match Total Hits Extension
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-mhd/StructureDefinition/epa-match-total-hits"
value[x] |  | 1..1 | integer | Gesamtanzahl der in diesem Dokument gefundenen Treffer
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | EPA Match Total Hits Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-mhd/StructureDefinition/epa-match-total-hits"
value[x] |  | 1..1 | integer | Gesamtanzahl der in diesem Dokument gefundenen Treffer
Documentation for this format

Other representations of profile: CSV, Excel, Schematron

#### Constraints

Id | Grade | Path(s) | Description | Expression
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`