Implementation Guide
ePA MHD Service
Version 1.1.1 - release

## Extension: Full-Text Search Match Snippet

Official URL: https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-full-text-search-match-snippet | Version: 4.2.4-current
Active as of 2026-02-18 | Responsible: IHE IT Infrastructure Technical Committee | Computable Name: FullTextSearchMatchSnippet

This extension contains a text snippet describing the context of a full-text search match. It highlights relevant content that corresponds to the provided search terms and provides a concise preview of the search result.

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

Complex Extension: This extension contains a text snippet describing the context of a full-text search match. It highlights relevant content that corresponds to the provided search terms and provides a concise preview of the search result.

- snippet: string: An Extension
- pageNumber: string: An Extension

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  |  | Extension | Full-Text Search Match Snippet
Slices for extension |  |  |  | Slice: Unordered, Closed by value:url
extension:snippet |  | 0..1 |  |
extension |  | ..0 |  |
url |  |  |  | "snippet"
value[x] |  | 1.. | string | Human-readable text snippet describing the context of the search match.
extension:pageNumber |  | 0..1 |  |
extension |  | ..0 |  |
url |  |  |  | "pageNumber"
value[x] |  | 1.. | string | For paginated documents (e.g. PDF), indicates the page on which the full-text search match was found.
url |  |  |  | "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-full-text-search-match-snippet"
value[x] |  | ..0 |  |
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Full-Text Search Match Snippet
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:snippet |  | 0..1 | Extension | 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 | "snippet"
value[x] |  | 1..1 | string | Human-readable text snippet describing the context of the search match.
extension:pageNumber |  | 0..1 | Extension | 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 | "pageNumber"
value[x] |  | 1..1 | string | For paginated documents (e.g. PDF), indicates the page on which the full-text search match was found.
url |  | 1..1 | uri | "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-full-text-search-match-snippet"
Documentation for this format

This structure is derived from Extension

Summary

Complex Extension: This extension contains a text snippet describing the context of a full-text search match. It highlights relevant content that corresponds to the provided search terms and provides a concise preview of the search result.

- snippet: string: An Extension
- pageNumber: string: An Extension

Differential View

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  |  | Extension | Full-Text Search Match Snippet
Slices for extension |  |  |  | Slice: Unordered, Closed by value:url
extension:snippet |  | 0..1 |  |
extension |  | ..0 |  |
url |  |  |  | "snippet"
value[x] |  | 1.. | string | Human-readable text snippet describing the context of the search match.
extension:pageNumber |  | 0..1 |  |
extension |  | ..0 |  |
url |  |  |  | "pageNumber"
value[x] |  | 1.. | string | For paginated documents (e.g. PDF), indicates the page on which the full-text search match was found.
url |  |  |  | "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-full-text-search-match-snippet"
value[x] |  | ..0 |  |
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Full-Text Search Match Snippet
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:snippet |  | 0..1 | Extension | 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 | "snippet"
value[x] |  | 1..1 | string | Human-readable text snippet describing the context of the search match.
extension:pageNumber |  | 0..1 | Extension | 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 | "pageNumber"
value[x] |  | 1..1 | string | For paginated documents (e.g. PDF), indicates the page on which the full-text search match was found.
url |  | 1..1 | uri | "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-full-text-search-match-snippet"
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()`