Clinical Document Architecture - Local Development build (v2.0.1-sd-202510-matchbox-patch) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Official URL: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple | Version: 2.0.1-sd-202510-matchbox-patch | |||
| Active as of 2025-10-29 | Computable Name: cs | |||
Coded data in its simplest form, consists of a code. The code system and code system version is fixed by the context in which the value occurs. 'cs' is used for coded attributes that have a single HL7-defined value set.
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Template, Differentials, Snapshots and how the different presentations work.
This structure is derived from code
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
C | 0..* | code | Primitive Type code Constraints: cs-pattern  | 
![]() ![]()  | 
0..0 | xml:id (or equivalent in JSON) | ||
![]() ![]()  | 
0..0 | Extension | ||
  Documentation for this format | ||||
| Id | Grade | Path(s) | Description | Expression | 
| cs-pattern | error | code | cs attributes must not contain any whitespace | 
      matches('^[^\\s]+$')
     | 
  
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
C | 0..* | code | Primitive Type code Constraints: cs-pattern  | 
  Documentation for this format | ||||
| Id | Grade | Path(s) | Description | Expression | 
| cs-pattern | error | code | cs attributes must not contain any whitespace | 
      matches('^[^\\s]+$')
     | 
  
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | 
      hasValue() or (children().count() > id.count())
     | 
  
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
C | 0..* | code | Primitive Type code Constraints: cs-pattern  | 
![]() ![]()  | 
0..1 | code | Primitive value for code | |
  Documentation for this format | ||||
| Id | Grade | Path(s) | Description | Expression | 
| cs-pattern | error | code | cs attributes must not contain any whitespace | 
      matches('^[^\\s]+$')
     | 
  
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | 
      hasValue() or (children().count() > id.count())
     | 
  
This structure is derived from code
Differential View
This structure is derived from code
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
C | 0..* | code | Primitive Type code Constraints: cs-pattern  | 
![]() ![]()  | 
0..0 | xml:id (or equivalent in JSON) | ||
![]() ![]()  | 
0..0 | Extension | ||
  Documentation for this format | ||||
| Id | Grade | Path(s) | Description | Expression | 
| cs-pattern | error | code | cs attributes must not contain any whitespace | 
      matches('^[^\\s]+$')
     | 
  
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
C | 0..* | code | Primitive Type code Constraints: cs-pattern  | 
  Documentation for this format | ||||
| Id | Grade | Path(s) | Description | Expression | 
| cs-pattern | error | code | cs attributes must not contain any whitespace | 
      matches('^[^\\s]+$')
     | 
  
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | 
      hasValue() or (children().count() > id.count())
     | 
  
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
C | 0..* | code | Primitive Type code Constraints: cs-pattern  | 
![]() ![]()  | 
0..1 | code | Primitive value for code | |
  Documentation for this format | ||||
| Id | Grade | Path(s) | Description | Expression | 
| cs-pattern | error | code | cs attributes must not contain any whitespace | 
      matches('^[^\\s]+$')
     | 
  
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | 
      hasValue() or (children().count() > id.count())
     | 
  
This structure is derived from code
Other representations of profile: CSV, Excel, Schematron