HSAI FHIR Implementation Guide
0.1.0 - CI Build Netherlands

HSAI FHIR Implementation Guide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## Extension: Text Source Extension

Official URL: https://cdt-beta.healthsage.ai/fhir/StructureDefinition/text-source | Version: 0.1.0
Active as of 2026-02-09 | Computable Name: TextSource

Extension to indicate the source text of a FHIR resource in the input clinical document

Context of Use

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

- Element ID Element

Usage info

Usage:

- Use this Extension: CDT AllergyIntolerance, CDT Condition, CDT Observation and CDT Procedure

### 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 of type string: Extension to indicate the source text of a FHIR resource in the input clinical document

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Text Source Extension
extension |  | 0..0 |  |
url |  | 1..1 | uri | "https://cdt-beta.healthsage.ai/fhir/StructureDefinition/text-source"
value[x] |  | 1..1 | string | Value of extension
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Text Source Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  |
url |  | 1..1 | uri | "https://cdt-beta.healthsage.ai/fhir/StructureDefinition/text-source"
value[x] |  | 1..1 | string | Value of extension
Documentation for this format

This structure is derived from Extension

Summary

Simple Extension of type string: Extension to indicate the source text of a FHIR resource in the input clinical document

Differential View

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Text Source Extension
extension |  | 0..0 |  |
url |  | 1..1 | uri | "https://cdt-beta.healthsage.ai/fhir/StructureDefinition/text-source"
value[x] |  | 1..1 | string | Value of extension
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Text Source Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  |
url |  | 1..1 | uri | "https://cdt-beta.healthsage.ai/fhir/StructureDefinition/text-source"
value[x] |  | 1..1 | string | Value of extension
Documentation for this format

Other representations of profile: CSV, Excel, Schematron

#### Constraints

Id | Grade | Path(s) | Details | Requirements
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() |