This page is part of the Structured Data Capture FHIR IG (v1.6: STU 2 Ballot 1) based on FHIR v1.6.0. . For a full list of available versions, see the Directory of published versions
This is a pre-release of a future version of SDC (expected to be STU 2). The current version is STU 2.
For a full list of available versions, see the Directory of published versions .
The official URL for this profile is:
http://hl7.org/fhir/us/sdc/StructureDefinition/sdc-codesystem
Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.
This structure is derived from CodeSystem
This structure is derived from CodeSystem
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
CodeSystem | I | 0..* | A set of codes drawn from one or more code systems dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource csd-1: Within a code system definition, all the codes SHALL be unique | |
id | ∑ | 0..1 | id | Logical id of this artifact |
meta | ∑ | 0..1 | Meta | Metadata about the resource |
implicitRules | ?!∑ | 0..1 | uri | A set of rules under which this content was created |
language | 0..1 | code | Language of the resource content Binding: Common Languages (extensible) | |
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation |
contained | 0..* | Resource | Contained, inline Resources | |
rendering-styleSensitive | SI | 0..1 | boolean | Extension URL: http://hl7.org/fhir/StructureDefinition/rendering-styleSensitive ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored |
url | S | 0..1 | uri | Globally unique logical identifier for code system (Coding.system) |
identifier | ∑ | 0..1 | Identifier | Additional identifier for the code system (e.g. HL7 v2 / CDA) |
version | ∑ | 0..1 | string | Logical identifier for this version (Coding.version) |
name | S | 1..1 | string | Informal name for this code system |
status | ?!S | 1..1 | code | draft | active | retired Binding: ConformanceResourceStatus (required) |
experimental | S | 0..1 | boolean | If for testing purposes, not real usage |
publisher | ∑ | 0..1 | string | Name of the publisher (organization or individual) |
contact | ∑ | 0..* | BackboneElement | Contact details of the publisher |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
name | ∑ | 0..1 | string | Name of an individual to contact |
telecom | ∑ | 0..* | ContactPoint | Contact details for individual or publisher |
date | S | 0..1 | dateTime | Date for given status |
description | S | 1..1 | markdown | Human language description of the code system |
useContext | S | 0..* | CodeableConcept | Content intends to support these contexts Binding: Context of Use ValueSet (extensible) |
requirements | 0..1 | markdown | Why needed | |
copyright | 0..1 | string | Use and/or publishing restrictions | |
caseSensitive | S | 1..1 | boolean | If code comparison is case sensitive |
valueSet | ∑ | 0..1 | uri | Canonical URL for value set with entire code system |
hierarchyMeaning | ∑ | 0..1 | code | grouped-by | subsumes | part-of | classified-with Binding: CodeSystemHierarchyMeaning (required) |
content | S | 1..1 | code | not-present | examplar | fragment | complete Binding: CodeSystemContentMode (required) |
count | ∑ | 0..1 | unsignedInt | Total concepts in the code system |
filter | ∑ | 0..* | BackboneElement | Filter that can be used in a value set |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
code | ∑ | 1..1 | code | Code that identifies the filter |
description | ∑ | 0..1 | string | How or why the filter is used |
operator | ∑ | 1..* | code | Operators that can be used with filter Binding: FilterOperator (required) |
value | ∑ | 1..1 | string | What to use for the value |
property | ∑ | 0..* | BackboneElement | Additional information supplied about each concept |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
code | ∑ | 1..1 | code | Identifies the property on the concepts, and when referred to in operations |
uri | ∑ | 0..1 | uri | Formal identifier for the property |
description | ∑ | 0..1 | string | Why the property is defined, and/or what it conveys |
type | ∑ | 1..1 | code | code | Coding | string | integer | boolean | dateTime Binding: PropertyType (required) |
concept | S | 0..* | BackboneElement | Concepts in the code system |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
valueset-label | SI | 0..1 | string | Extension URL: http://hl7.org/fhir/StructureDefinition/valueset-label ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
url | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/valueset-label" | |
valueString | S | 1..1 | string | Value of extension |
id | 0..1 | id | xml:id (or equivalent in JSON) | |
rendering-style | I | 0..1 | string | Extension URL: http://hl7.org/fhir/StructureDefinition/rendering-style ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both |
rendering-xhtml | I | 0..1 | string | Extension URL: http://hl7.org/fhir/StructureDefinition/rendering-xhtml ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both |
value | 0..1 | Primitive value for string | ||
valueset-conceptOrder | SI | 0..1 | integer | Extension URL: http://hl7.org/fhir/StructureDefinition/valueset-conceptOrder ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
code | S | 1..1 | code | Code that identifies concept |
display | S | 0..1 | string | Text to display to the user |
id | 0..1 | id | xml:id (or equivalent in JSON) | |
rendering-style | I | 0..1 | string | Extension URL: http://hl7.org/fhir/StructureDefinition/rendering-style ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both |
rendering-xhtml | I | 0..1 | string | Extension URL: http://hl7.org/fhir/StructureDefinition/rendering-xhtml ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both |
value | 0..1 | Primitive value for string | ||
definition | S | 0..1 | string | Formal definition |
designation | 0..* | BackboneElement | Additional representations for the concept | |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
language | 0..1 | code | Human language of the designation Binding: Common Languages (extensible) | |
use | 0..1 | Coding | Details how this designation would be used Binding: Designation Use (extensible) | |
value | 1..1 | string | The text value for this designation | |
property | 0..* | BackboneElement | Property value for the concept | |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
code | 1..1 | code | Reference to CodeSystem.property.code | |
value[x] | 1..1 | code, Coding, string, integer, boolean, dateTime | Value of the property for this concept | |
concept | S | 0..* | Unknown reference to #CodeSystem:sdcdecodesystem.concept Child Concepts (is-a/contains/categorizes) | |
Documentation for this format |
yet to be done: Xml template
yet to be done: Json template
yet to be done: Turtle template
This structure is derived from CodeSystem
Differential View
This structure is derived from CodeSystem
Snapshot View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
CodeSystem | I | 0..* | A set of codes drawn from one or more code systems dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource csd-1: Within a code system definition, all the codes SHALL be unique | |
id | ∑ | 0..1 | id | Logical id of this artifact |
meta | ∑ | 0..1 | Meta | Metadata about the resource |
implicitRules | ?!∑ | 0..1 | uri | A set of rules under which this content was created |
language | 0..1 | code | Language of the resource content Binding: Common Languages (extensible) | |
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation |
contained | 0..* | Resource | Contained, inline Resources | |
rendering-styleSensitive | SI | 0..1 | boolean | Extension URL: http://hl7.org/fhir/StructureDefinition/rendering-styleSensitive ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored |
url | S | 0..1 | uri | Globally unique logical identifier for code system (Coding.system) |
identifier | ∑ | 0..1 | Identifier | Additional identifier for the code system (e.g. HL7 v2 / CDA) |
version | ∑ | 0..1 | string | Logical identifier for this version (Coding.version) |
name | S | 1..1 | string | Informal name for this code system |
status | ?!S | 1..1 | code | draft | active | retired Binding: ConformanceResourceStatus (required) |
experimental | S | 0..1 | boolean | If for testing purposes, not real usage |
publisher | ∑ | 0..1 | string | Name of the publisher (organization or individual) |
contact | ∑ | 0..* | BackboneElement | Contact details of the publisher |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
name | ∑ | 0..1 | string | Name of an individual to contact |
telecom | ∑ | 0..* | ContactPoint | Contact details for individual or publisher |
date | S | 0..1 | dateTime | Date for given status |
description | S | 1..1 | markdown | Human language description of the code system |
useContext | S | 0..* | CodeableConcept | Content intends to support these contexts Binding: Context of Use ValueSet (extensible) |
requirements | 0..1 | markdown | Why needed | |
copyright | 0..1 | string | Use and/or publishing restrictions | |
caseSensitive | S | 1..1 | boolean | If code comparison is case sensitive |
valueSet | ∑ | 0..1 | uri | Canonical URL for value set with entire code system |
hierarchyMeaning | ∑ | 0..1 | code | grouped-by | subsumes | part-of | classified-with Binding: CodeSystemHierarchyMeaning (required) |
content | S | 1..1 | code | not-present | examplar | fragment | complete Binding: CodeSystemContentMode (required) |
count | ∑ | 0..1 | unsignedInt | Total concepts in the code system |
filter | ∑ | 0..* | BackboneElement | Filter that can be used in a value set |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
code | ∑ | 1..1 | code | Code that identifies the filter |
description | ∑ | 0..1 | string | How or why the filter is used |
operator | ∑ | 1..* | code | Operators that can be used with filter Binding: FilterOperator (required) |
value | ∑ | 1..1 | string | What to use for the value |
property | ∑ | 0..* | BackboneElement | Additional information supplied about each concept |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
code | ∑ | 1..1 | code | Identifies the property on the concepts, and when referred to in operations |
uri | ∑ | 0..1 | uri | Formal identifier for the property |
description | ∑ | 0..1 | string | Why the property is defined, and/or what it conveys |
type | ∑ | 1..1 | code | code | Coding | string | integer | boolean | dateTime Binding: PropertyType (required) |
concept | S | 0..* | BackboneElement | Concepts in the code system |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
valueset-label | SI | 0..1 | string | Extension URL: http://hl7.org/fhir/StructureDefinition/valueset-label ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
url | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/valueset-label" | |
valueString | S | 1..1 | string | Value of extension |
id | 0..1 | id | xml:id (or equivalent in JSON) | |
rendering-style | I | 0..1 | string | Extension URL: http://hl7.org/fhir/StructureDefinition/rendering-style ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both |
rendering-xhtml | I | 0..1 | string | Extension URL: http://hl7.org/fhir/StructureDefinition/rendering-xhtml ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both |
value | 0..1 | Primitive value for string | ||
valueset-conceptOrder | SI | 0..1 | integer | Extension URL: http://hl7.org/fhir/StructureDefinition/valueset-conceptOrder ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
code | S | 1..1 | code | Code that identifies concept |
display | S | 0..1 | string | Text to display to the user |
id | 0..1 | id | xml:id (or equivalent in JSON) | |
rendering-style | I | 0..1 | string | Extension URL: http://hl7.org/fhir/StructureDefinition/rendering-style ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both |
rendering-xhtml | I | 0..1 | string | Extension URL: http://hl7.org/fhir/StructureDefinition/rendering-xhtml ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both |
value | 0..1 | Primitive value for string | ||
definition | S | 0..1 | string | Formal definition |
designation | 0..* | BackboneElement | Additional representations for the concept | |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
language | 0..1 | code | Human language of the designation Binding: Common Languages (extensible) | |
use | 0..1 | Coding | Details how this designation would be used Binding: Designation Use (extensible) | |
value | 1..1 | string | The text value for this designation | |
property | 0..* | BackboneElement | Property value for the concept | |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
code | 1..1 | code | Reference to CodeSystem.property.code | |
value[x] | 1..1 | code, Coding, string, integer, boolean, dateTime | Value of the property for this concept | |
concept | S | 0..* | Unknown reference to #CodeSystem:sdcdecodesystem.concept Child Concepts (is-a/contains/categorizes) | |
Documentation for this format |
XML Template
yet to be done: Xml template
JSON Template
yet to be done: Json template
TTL Template
yet to be done: Turtle template
Other representations of profile: Schematron
Path | Name | Conformance | ValueSet |
CodeSystem.language | Common Languages | extensible | Common Languages |
CodeSystem.status | ConformanceResourceStatus | required | ConformanceResourceStatus |
CodeSystem.useContext | Context of Use ValueSet | extensible | Context of Use ValueSet |
CodeSystem.hierarchyMeaning | CodeSystemHierarchyMeaning | required | CodeSystemHierarchyMeaning |
CodeSystem.content | CodeSystemContentMode | required | CodeSystemContentMode |
CodeSystem.filter.operator | FilterOperator | required | FilterOperator |
CodeSystem.property.type | PropertyType | required | PropertyType |
CodeSystem.concept.designation.language | Common Languages | extensible | Common Languages |
CodeSystem.concept.designation.use | Designation Use | extensible | Designation Use |
Id | Path | Details | Requirements |
dom-2 | CodeSystem | If the resource is contained in another resource, it SHALL NOT contain nested Resources XPath: not(parent::f:contained and f:contained) | |
dom-1 | CodeSystem | If the resource is contained in another resource, it SHALL NOT contain any narrative XPath: not(parent::f:contained and f:text) | |
dom-4 | CodeSystem | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated XPath: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated)) | |
dom-3 | CodeSystem | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource XPath: not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))])) | |
csd-1 | CodeSystem | Within a code system definition, all the codes SHALL be unique XPath: count(distinct-values(descendant::f:concept/f:code/@value))=count(descendant::f:concept) | |
ele-1 | CodeSystem.extension | All FHIR elements must have a @value or children XPath: @value|f:*|h:div | |
ext-1 | CodeSystem.extension | Must have either extensions or value[x], not both XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')]) | |
ele-1 | CodeSystem.concept.extension | All FHIR elements must have a @value or children XPath: @value|f:*|h:div | |
ext-1 | CodeSystem.concept.extension | Must have either extensions or value[x], not both XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')]) | |
ele-1 | CodeSystem.concept.extension | All FHIR elements must have a @value or children XPath: @value|f:*|h:div | |
ext-1 | CodeSystem.concept.extension | Must have either extensions or value[x], not both XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')]) | |
ele-1 | CodeSystem.concept.extension.valueString.extension | All FHIR elements must have a @value or children XPath: @value|f:*|h:div | |
ext-1 | CodeSystem.concept.extension.valueString.extension | Must have either extensions or value[x], not both XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')]) | |
ele-1 | CodeSystem.concept.extension.valueString.extension | All FHIR elements must have a @value or children XPath: @value|f:*|h:div | |
ext-1 | CodeSystem.concept.extension.valueString.extension | Must have either extensions or value[x], not both XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')]) | |
ele-1 | CodeSystem.concept.extension.valueString.extension | All FHIR elements must have a @value or children XPath: @value|f:*|h:div | |
ext-1 | CodeSystem.concept.extension.valueString.extension | Must have either extensions or value[x], not both XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')]) | |
ele-1 | CodeSystem.concept.extension | All FHIR elements must have a @value or children XPath: @value|f:*|h:div | |
ext-1 | CodeSystem.concept.extension | Must have either extensions or value[x], not both XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')]) | |
ele-1 | CodeSystem.concept.display.extension | All FHIR elements must have a @value or children XPath: @value|f:*|h:div | |
ext-1 | CodeSystem.concept.display.extension | Must have either extensions or value[x], not both XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')]) | |
ele-1 | CodeSystem.concept.display.extension | All FHIR elements must have a @value or children XPath: @value|f:*|h:div | |
ext-1 | CodeSystem.concept.display.extension | Must have either extensions or value[x], not both XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')]) | |
ele-1 | CodeSystem.concept.display.extension | All FHIR elements must have a @value or children XPath: @value|f:*|h:div | |
ext-1 | CodeSystem.concept.display.extension | Must have either extensions or value[x], not both XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')]) |