LOINC – IVD Test Code (LIVD) Mapping
1.0.0-ballot - ballot International flag

LOINC – IVD Test Code (LIVD) Mapping, published by HL7 International / Orders and Observations. This guide is not an authorized publication; it is the continuous build for version 1.0.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/livd/ and changes regularly. See the Directory of published versions

Resource Profile: LIVD SNOMED CT Fragment CodeSystem

Official URL: http://hl7.org/fhir/uv/livd/StructureDefinition/codesystem-snomed-frag-uv-livd Version: 1.0.0-ballot
Draft as of 2018-08-14 Computable Name: LIVDCodeSystemFragmentSNOMED

Profile on the CodeSystem resource to include the relevant information from SNOMED CT to enable the full mapping context without having to connect to a remote terminology service or other source of SNOMED CT terminology content.

Description

The LIVD SNOMED CT Fragment CodeSystem is a profile on the CodeSystem resource to include the relevant information from SNOMED CT to enable the full mapping context without having to connect to a remote terminology service or other source of SNOMED CT terminology content.

Usage:

  • Examples for this Resource Profile: SNOMED_CT

Formal Views of Profile Content

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

This structure is derived from CodeSystem

NameFlagsCard.TypeDescription & Constraintsdoco
.. CodeSystem 0..* CodeSystem LIVDCodeSystemFragmentSNOMED
... url S 1..1 uri "http://snomed.info/sct"
... identifier S 1..1 Identifier Additional identifier for the code system (business identifier)
... version S 1..1 string & (Coding.version)
... title S 1..1 string Name for this code system (human friendly)
... status S 1..1 code draft | active | retired | unknown
... experimental 0..0
... date 0..1 dateTime Date last changed
... publisher S 1..1 string Name of the publisher (organization or individual)
... contact 0..0
... description 0..0
... useContext 0..0
... jurisdiction 0..* CodeableConcept Intended jurisdiction for code system (if applicable)
... purpose 0..0
... copyright S 1..1 markdown Use and/or publishing restrictions
... caseSensitive 0..1 boolean If code comparison is case sensitive
Fixed Value: false
... valueSet 0..0
... hierarchyMeaning 0..0
... compositional 0..0
... versionNeeded 0..0
... content S 1..1 code fragment
Fixed Value: fragment
... supplements 0..0
... count 0..0
... filter 0..0
... property 0..0
... concept S 1..* BackboneElement Concepts in the code system
.... code S 1..1 code Code that identifies concept
.... display S 1..1 string Text to display to the user
.... definition 0..0
.... designation 0..0
.... property 0..0
.... concept 0..0

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. CodeSystem C 0..* CodeSystem LIVDCodeSystemFragmentSNOMED
csd-0: Name should be usable as an identifier for the module by machine processing applications such as code generation
csd-1: Within a code system definition, all the codes SHALL be unique
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
dom-6: A resource should have narrative for robust management
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
ele-1: All FHIR elements must have a @value or children
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... url SΣ 1..1 uri "http://snomed.info/sct"
... version SΣ 1..1 string & (Coding.version)
ele-1: All FHIR elements must have a @value or children
... name SΣC 1..1 string Name for this code system (computer friendly)
ele-1: All FHIR elements must have a @value or children
... title SΣ 1..1 string Name for this code system (human friendly)
ele-1: All FHIR elements must have a @value or children
... status ?!SΣ 1..1 code draft | active | retired | unknown
Binding: PublicationStatus (required): The lifecycle status of an artifact.


ele-1: All FHIR elements must have a @value or children
... date Σ 0..1 dateTime Date last changed
ele-1: All FHIR elements must have a @value or children
... publisher SΣ 1..1 string Name of the publisher (organization or individual)
ele-1: All FHIR elements must have a @value or children
... jurisdiction Σ 0..* CodeableConcept Intended jurisdiction for code system (if applicable)
Binding: Jurisdiction ValueSet (extensible): Countries and regions within which this artifact is targeted for use.


ele-1: All FHIR elements must have a @value or children
... copyright S 1..1 markdown Use and/or publishing restrictions
ele-1: All FHIR elements must have a @value or children
... caseSensitive Σ 0..1 boolean If code comparison is case sensitive
ele-1: All FHIR elements must have a @value or children
Fixed Value: false
... content SΣ 1..1 code fragment
Binding: CodeSystemContentMode (required): The extent of the content of the code system (the concepts and codes it defines) are represented in a code system resource.


ele-1: All FHIR elements must have a @value or children
Fixed Value: fragment
... concept S 1..* BackboneElement Concepts in the code system
ele-1: All FHIR elements must have a @value or children
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... code S 1..1 code Code that identifies concept
ele-1: All FHIR elements must have a @value or children
.... display S 1..1 string Text to display to the user
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
CodeSystem.statusrequiredPublicationStatus
http://hl7.org/fhir/ValueSet/publication-status|4.0.1
from the FHIR Standard
CodeSystem.jurisdictionextensibleJurisdiction ValueSet
http://hl7.org/fhir/ValueSet/jurisdiction
from the FHIR Standard
CodeSystem.contentrequiredFixed Value: fragment
http://hl7.org/fhir/ValueSet/codesystem-content-mode|4.0.1
from the FHIR Standard
CodeSystem.filter.operatorrequiredFilterOperator
http://hl7.org/fhir/ValueSet/filter-operator|4.0.1
from the FHIR Standard
CodeSystem.property.typerequiredPropertyType
http://hl7.org/fhir/ValueSet/concept-property-type|4.0.1
from the FHIR Standard
CodeSystem.concept.designation.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
CodeSystem.concept.designation.useextensibleDesignationUse
http://hl7.org/fhir/ValueSet/designation-use
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
csd-0warningCodeSystemName should be usable as an identifier for the module by machine processing applications such as code generation
: name.matches('[A-Z]([A-Za-z0-9_]){0,254}')
csd-1errorCodeSystemWithin a code system definition, all the codes SHALL be unique
: concept.code.combine($this.descendants().concept.code).isDistinct()
dom-2errorCodeSystemIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorCodeSystemIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorCodeSystemIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorCodeSystemIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceCodeSystemA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
NameFlagsCard.TypeDescription & Constraintsdoco
.. CodeSystem C 0..* CodeSystem LIVDCodeSystemFragmentSNOMED
csd-0: Name should be usable as an identifier for the module by machine processing applications such as code generation
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
... text 0..1 Narrative Text summary of the resource, for human interpretation
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... url SΣ 1..1 uri "http://snomed.info/sct"
... identifier SΣ 1..1 Identifier Additional identifier for the code system (business identifier)
... version SΣ 1..1 string & (Coding.version)
... name SΣC 1..1 string Name for this code system (computer friendly)
... title SΣ 1..1 string Name for this code system (human friendly)
... status ?!SΣ 1..1 code draft | active | retired | unknown
Binding: PublicationStatus (required): The lifecycle status of an artifact.

... date Σ 0..1 dateTime Date last changed
... publisher SΣ 1..1 string Name of the publisher (organization or individual)
... jurisdiction Σ 0..* CodeableConcept Intended jurisdiction for code system (if applicable)
Binding: Jurisdiction ValueSet (extensible): Countries and regions within which this artifact is targeted for use.


... copyright S 1..1 markdown Use and/or publishing restrictions
... caseSensitive Σ 0..1 boolean If code comparison is case sensitive
Fixed Value: false
... content SΣ 1..1 code fragment
Binding: CodeSystemContentMode (required): The extent of the content of the code system (the concepts and codes it defines) are represented in a code system resource.


Fixed Value: fragment
... concept S 1..* BackboneElement Concepts in the code system
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... code S 1..1 code Code that identifies concept
.... display S 1..1 string Text to display to the user

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
CodeSystem.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
CodeSystem.statusrequiredPublicationStatus
http://hl7.org/fhir/ValueSet/publication-status|4.0.1
from the FHIR Standard
CodeSystem.jurisdictionextensibleJurisdiction ValueSet
http://hl7.org/fhir/ValueSet/jurisdiction
from the FHIR Standard
CodeSystem.contentrequiredFixed Value: fragment
http://hl7.org/fhir/ValueSet/codesystem-content-mode|4.0.1
from the FHIR Standard
CodeSystem.filter.operatorrequiredFilterOperator
http://hl7.org/fhir/ValueSet/filter-operator|4.0.1
from the FHIR Standard
CodeSystem.property.typerequiredPropertyType
http://hl7.org/fhir/ValueSet/concept-property-type|4.0.1
from the FHIR Standard
CodeSystem.concept.designation.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
CodeSystem.concept.designation.useextensibleDesignationUse
http://hl7.org/fhir/ValueSet/designation-use
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
csd-0warningCodeSystemName should be usable as an identifier for the module by machine processing applications such as code generation
: name.matches('[A-Z]([A-Za-z0-9_]){0,254}')
csd-1errorCodeSystemWithin a code system definition, all the codes SHALL be unique
: concept.code.combine($this.descendants().concept.code).isDistinct()
dom-2errorCodeSystemIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorCodeSystemIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorCodeSystemIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorCodeSystemIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceCodeSystemA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

This structure is derived from CodeSystem

Summary

Mandatory: 9 elements
Must-Support: 16 elements
Fixed: 3 elements
Prohibited: 17 elements

Differential View

This structure is derived from CodeSystem

NameFlagsCard.TypeDescription & Constraintsdoco
.. CodeSystem 0..* CodeSystem LIVDCodeSystemFragmentSNOMED
... url S 1..1 uri "http://snomed.info/sct"
... identifier S 1..1 Identifier Additional identifier for the code system (business identifier)
... version S 1..1 string & (Coding.version)
... title S 1..1 string Name for this code system (human friendly)
... status S 1..1 code draft | active | retired | unknown
... experimental 0..0
... date 0..1 dateTime Date last changed
... publisher S 1..1 string Name of the publisher (organization or individual)
... contact 0..0
... description 0..0
... useContext 0..0
... jurisdiction 0..* CodeableConcept Intended jurisdiction for code system (if applicable)
... purpose 0..0
... copyright S 1..1 markdown Use and/or publishing restrictions
... caseSensitive 0..1 boolean If code comparison is case sensitive
Fixed Value: false
... valueSet 0..0
... hierarchyMeaning 0..0
... compositional 0..0
... versionNeeded 0..0
... content S 1..1 code fragment
Fixed Value: fragment
... supplements 0..0
... count 0..0
... filter 0..0
... property 0..0
... concept S 1..* BackboneElement Concepts in the code system
.... code S 1..1 code Code that identifies concept
.... display S 1..1 string Text to display to the user
.... definition 0..0
.... designation 0..0
.... property 0..0
.... concept 0..0

doco Documentation for this format

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. CodeSystem C 0..* CodeSystem LIVDCodeSystemFragmentSNOMED
csd-0: Name should be usable as an identifier for the module by machine processing applications such as code generation
csd-1: Within a code system definition, all the codes SHALL be unique
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
dom-6: A resource should have narrative for robust management
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
ele-1: All FHIR elements must have a @value or children
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... url SΣ 1..1 uri "http://snomed.info/sct"
... version SΣ 1..1 string & (Coding.version)
ele-1: All FHIR elements must have a @value or children
... name SΣC 1..1 string Name for this code system (computer friendly)
ele-1: All FHIR elements must have a @value or children
... title SΣ 1..1 string Name for this code system (human friendly)
ele-1: All FHIR elements must have a @value or children
... status ?!SΣ 1..1 code draft | active | retired | unknown
Binding: PublicationStatus (required): The lifecycle status of an artifact.


ele-1: All FHIR elements must have a @value or children
... date Σ 0..1 dateTime Date last changed
ele-1: All FHIR elements must have a @value or children
... publisher SΣ 1..1 string Name of the publisher (organization or individual)
ele-1: All FHIR elements must have a @value or children
... jurisdiction Σ 0..* CodeableConcept Intended jurisdiction for code system (if applicable)
Binding: Jurisdiction ValueSet (extensible): Countries and regions within which this artifact is targeted for use.


ele-1: All FHIR elements must have a @value or children
... copyright S 1..1 markdown Use and/or publishing restrictions
ele-1: All FHIR elements must have a @value or children
... caseSensitive Σ 0..1 boolean If code comparison is case sensitive
ele-1: All FHIR elements must have a @value or children
Fixed Value: false
... content SΣ 1..1 code fragment
Binding: CodeSystemContentMode (required): The extent of the content of the code system (the concepts and codes it defines) are represented in a code system resource.


ele-1: All FHIR elements must have a @value or children
Fixed Value: fragment
... concept S 1..* BackboneElement Concepts in the code system
ele-1: All FHIR elements must have a @value or children
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... code S 1..1 code Code that identifies concept
ele-1: All FHIR elements must have a @value or children
.... display S 1..1 string Text to display to the user
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
CodeSystem.statusrequiredPublicationStatus
http://hl7.org/fhir/ValueSet/publication-status|4.0.1
from the FHIR Standard
CodeSystem.jurisdictionextensibleJurisdiction ValueSet
http://hl7.org/fhir/ValueSet/jurisdiction
from the FHIR Standard
CodeSystem.contentrequiredFixed Value: fragment
http://hl7.org/fhir/ValueSet/codesystem-content-mode|4.0.1
from the FHIR Standard
CodeSystem.filter.operatorrequiredFilterOperator
http://hl7.org/fhir/ValueSet/filter-operator|4.0.1
from the FHIR Standard
CodeSystem.property.typerequiredPropertyType
http://hl7.org/fhir/ValueSet/concept-property-type|4.0.1
from the FHIR Standard
CodeSystem.concept.designation.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
CodeSystem.concept.designation.useextensibleDesignationUse
http://hl7.org/fhir/ValueSet/designation-use
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
csd-0warningCodeSystemName should be usable as an identifier for the module by machine processing applications such as code generation
: name.matches('[A-Z]([A-Za-z0-9_]){0,254}')
csd-1errorCodeSystemWithin a code system definition, all the codes SHALL be unique
: concept.code.combine($this.descendants().concept.code).isDistinct()
dom-2errorCodeSystemIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorCodeSystemIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorCodeSystemIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorCodeSystemIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceCodeSystemA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. CodeSystem C 0..* CodeSystem LIVDCodeSystemFragmentSNOMED
csd-0: Name should be usable as an identifier for the module by machine processing applications such as code generation
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
... text 0..1 Narrative Text summary of the resource, for human interpretation
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... url SΣ 1..1 uri "http://snomed.info/sct"
... identifier SΣ 1..1 Identifier Additional identifier for the code system (business identifier)
... version SΣ 1..1 string & (Coding.version)
... name SΣC 1..1 string Name for this code system (computer friendly)
... title SΣ 1..1 string Name for this code system (human friendly)
... status ?!SΣ 1..1 code draft | active | retired | unknown
Binding: PublicationStatus (required): The lifecycle status of an artifact.

... date Σ 0..1 dateTime Date last changed
... publisher SΣ 1..1 string Name of the publisher (organization or individual)
... jurisdiction Σ 0..* CodeableConcept Intended jurisdiction for code system (if applicable)
Binding: Jurisdiction ValueSet (extensible): Countries and regions within which this artifact is targeted for use.


... copyright S 1..1 markdown Use and/or publishing restrictions
... caseSensitive Σ 0..1 boolean If code comparison is case sensitive
Fixed Value: false
... content SΣ 1..1 code fragment
Binding: CodeSystemContentMode (required): The extent of the content of the code system (the concepts and codes it defines) are represented in a code system resource.


Fixed Value: fragment
... concept S 1..* BackboneElement Concepts in the code system
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... code S 1..1 code Code that identifies concept
.... display S 1..1 string Text to display to the user

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
CodeSystem.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
CodeSystem.statusrequiredPublicationStatus
http://hl7.org/fhir/ValueSet/publication-status|4.0.1
from the FHIR Standard
CodeSystem.jurisdictionextensibleJurisdiction ValueSet
http://hl7.org/fhir/ValueSet/jurisdiction
from the FHIR Standard
CodeSystem.contentrequiredFixed Value: fragment
http://hl7.org/fhir/ValueSet/codesystem-content-mode|4.0.1
from the FHIR Standard
CodeSystem.filter.operatorrequiredFilterOperator
http://hl7.org/fhir/ValueSet/filter-operator|4.0.1
from the FHIR Standard
CodeSystem.property.typerequiredPropertyType
http://hl7.org/fhir/ValueSet/concept-property-type|4.0.1
from the FHIR Standard
CodeSystem.concept.designation.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
CodeSystem.concept.designation.useextensibleDesignationUse
http://hl7.org/fhir/ValueSet/designation-use
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
csd-0warningCodeSystemName should be usable as an identifier for the module by machine processing applications such as code generation
: name.matches('[A-Z]([A-Za-z0-9_]){0,254}')
csd-1errorCodeSystemWithin a code system definition, all the codes SHALL be unique
: concept.code.combine($this.descendants().concept.code).isDistinct()
dom-2errorCodeSystemIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorCodeSystemIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorCodeSystemIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorCodeSystemIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceCodeSystemA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

This structure is derived from CodeSystem

Summary

Mandatory: 9 elements
Must-Support: 16 elements
Fixed: 3 elements
Prohibited: 17 elements

 

Other representations of profile: CSV, Excel, Schematron