ext-R4-SubstanceSpecification.code
type: StructureDefinition
node role: treeRoot
id:
  v: ext-R4-SubstanceSpecification.code
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition ext-R4-SubstanceSpecification.code Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> Extension 0..* Extension R4: Codes associated with the substance (new) #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:code 0..1 Extension R4: The specific code (new) #xD; url 1..1 uri "code" #xD; value[x] 0..1 CodeableConcept The specific code #xD; extension:status 0..1 Extension R4: Status of the code assignment (new) #xD; url 1..1 uri "status" #xD; value[x] 0..1 CodeableConcept Status of the code assignment #xD; extension:statusDate 0..1 Extension R4: The date at which the code status is changed as part of the terminology maintenance (new) #xD; url 1..1 uri "statusDate" #xD; value[x] 0..1 dateTime The date at which the code status is changed as part of the terminology maintenance #xD; extension:comment 0..1 Extension R4: Any comment can be provided in this field, if necessary (new) #xD; url 1..1 uri "comment" #xD; value[x] 0..1 string Any comment can be provided in this field, if necessary #xD; extension:source 0..* Extension R4: Supporting literature (new) #xD; url 1..1 uri "source" #xD; value[x] 0..1 Reference(Cross-version Profile for R4.DocumentReference for use in FHIR STU3(0.1.0) | DocumentReference) Supporting literature #xD; url 1..1 uri "http://hl7.org/fhir/4.0/StructureDefinition/extension-SubstanceSpecification.code" #xD; value[x] 0..0 Value of extension #xD; <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentation for this format
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
    l: structuredefinition-wg
  value: Code
    v: fhir
extension:
  extension:
    url:
      v: packageId
      l: packageId
    value: Id
      v: hl7.fhir.uv.xver-r4.r3
  extension:
    url:
      v: version
      l: version
    value: String
      v: 0.1.0
  extension:
    url:
      v: uri
      l: uri
    value: Uri
      v: http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r4.r3
      l: hl7.fhir.uv.xver-r4.r3
  url:
    v: http://hl7.org/fhir/StructureDefinition/package-source
    l: package-source
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
    l: structuredefinition-fmm
  value: Integer
    v: 0
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
        l: structuredefinition-conformance-derivedFrom
      value: Uri
        v: http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r4.r3
        l: hl7.fhir.uv.xver-r4.r3
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
    l: structuredefinition-standards-status
  value: Code
    v: trial-use
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
        l: structuredefinition-conformance-derivedFrom
      value: Uri
        v: http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r4.r3
        l: hl7.fhir.uv.xver-r4.r3
url:
  v: http://hl7.org/fhir/4.0/StructureDefinition/extension-SubstanceSpecification.code
  l: extension-SubstanceSpecification.code
version:
  v: 0.1.0
name:
  v: ExtensionSubstanceSpecification_Code
title:
  v: R4: Codes associated with the substance (new)
status:
  v: active
experimental:
  v: false
date:
  v: 2026-03-17T21:02:03.8104715+00:00
publisher:
  v: FHIR Infrastructure
contact:
  name:
    v: FHIR Infrastructure
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/fiwg
description:
  v: R4: `SubstanceSpecification.code` (new:BackboneElement)
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
      l: m49.htm
    code:
      v: 001
    display:
      v: World
purpose:
  v: This extension is part of the cross-version definitions generated to enable use of the element `SubstanceSpecification.code` as defined in FHIR R4 in FHIR STU3. The source element is defined as: `SubstanceSpecification.code` 0..* `BackboneElement` Following are the generation technical comments: Element `SubstanceSpecification.code` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
fhir version:
  v: 3.0.2
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
kind:
  v: complex-type
abstract:
  v: false
context type:
  v: resource
context:
  v: Basic
type:
  v: Extension
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Extension
  l: Extension
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: Extension
    path:
      v: Extension
    short:
      v: R4: Codes associated with the substance (new)
    definition:
      v: R4: `SubstanceSpecification.code` (new:BackboneElement)
    comment:
      v: Element `SubstanceSpecification.code` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Extension
      min:
        v: 0
      max:
        v: *
    condition:
      v: ele-1
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() | (children().count() > id.count())
      xpath:
        v: @value|f:*|h:div
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        l: Element
    constraint:
      key:
        v: ext-1
      severity:
        v: error
      human:
        v: Must have either extensions or value[x], not both
      expression:
        v: extension.exists() != value.exists()
      xpath:
        v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
      source:
        v: http://hl7.org/fhir/StructureDefinition/Extension
        l: Extension
    is modifier:
      v: false
  element:
    id:
      v: Extension.id
    path:
      v: Extension.id
    representation:
      v: xmlAttr
    short:
      v: xml:id (or equivalent in JSON)
    definition:
      v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Element.id
      min:
        v: 0
      max:
        v: 1

code:
  v: string
  l: string

identity:
  v: rim
map:
  v: n/a

id:
  v: Extension.extension
path:
  v: Extension.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Extension.extension:code
path:
  v: Extension.extension
slice name:
  v: code
short:
  v: R4: The specific code (new)
definition:
  v: R4: `SubstanceSpecification.code.code` (new:CodeableConcept)
comment:
  v: Element `SubstanceSpecification.code.code` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.code` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.code` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
requirements:
  v: Element `SubstanceSpecification.code.code` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.code` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.code` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Extension.extension:code.id
path:
  v: Extension.extension.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Extension.extension:code.extension
path:
  v: Extension.extension.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Extension.extension:code.url
path:
  v: Extension.extension.url
representation:
  v: xmlAttr
short:
  v: identifies the meaning of the extension
definition:
  v: Source of the definition for the extension code - a logical name or a URL.
comment:
  v: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
fixed: Uri
  v: code
  l: code
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Extension.extension:code.value[x]
path:
  v: Extension.extension.value[x]
short:
  v: The specific code
definition:
  v: The specific code.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Extension.extension:status
path:
  v: Extension.extension
slice name:
  v: status
short:
  v: R4: Status of the code assignment (new)
definition:
  v: R4: `SubstanceSpecification.code.status` (new:CodeableConcept)
comment:
  v: Element `SubstanceSpecification.code.status` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.status` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.status` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
requirements:
  v: Element `SubstanceSpecification.code.status` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.status` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.status` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Extension.extension:status.id
path:
  v: Extension.extension.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Extension.extension:status.extension
path:
  v: Extension.extension.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Extension.extension:status.url
path:
  v: Extension.extension.url
representation:
  v: xmlAttr
short:
  v: identifies the meaning of the extension
definition:
  v: Source of the definition for the extension code - a logical name or a URL.
comment:
  v: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
fixed: Uri
  v: status
  l: status
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Extension.extension:status.value[x]
path:
  v: Extension.extension.value[x]
short:
  v: Status of the code assignment
definition:
  v: Status of the code assignment.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Extension.extension:statusDate
path:
  v: Extension.extension
slice name:
  v: statusDate
short:
  v: R4: The date at which the code status is changed as part of the terminology maintenance (new)
definition:
  v: R4: `SubstanceSpecification.code.statusDate` (new:dateTime)
comment:
  v: Element `SubstanceSpecification.code.statusDate` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.statusDate` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.statusDate` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
requirements:
  v: Element `SubstanceSpecification.code.statusDate` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.statusDate` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.statusDate` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Extension.extension:statusDate.id
path:
  v: Extension.extension.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Extension.extension:statusDate.extension
path:
  v: Extension.extension.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Extension.extension:statusDate.url
path:
  v: Extension.extension.url
representation:
  v: xmlAttr
short:
  v: identifies the meaning of the extension
definition:
  v: Source of the definition for the extension code - a logical name or a URL.
comment:
  v: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
fixed: Uri
  v: statusDate
  l: statusDate
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Extension.extension:statusDate.value[x]
path:
  v: Extension.extension.value[x]
short:
  v: The date at which the code status is changed as part of the terminology maintenance
definition:
  v: The date at which the code status is changed as part of the terminology maintenance.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Extension.extension:comment
path:
  v: Extension.extension
slice name:
  v: comment
short:
  v: R4: Any comment can be provided in this field, if necessary (new)
definition:
  v: R4: `SubstanceSpecification.code.comment` (new:string)
comment:
  v: Element `SubstanceSpecification.code.comment` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.comment` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.comment` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
requirements:
  v: Element `SubstanceSpecification.code.comment` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.comment` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.comment` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Extension.extension:comment.id
path:
  v: Extension.extension.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Extension.extension:comment.extension
path:
  v: Extension.extension.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Extension.extension:comment.url
path:
  v: Extension.extension.url
representation:
  v: xmlAttr
short:
  v: identifies the meaning of the extension
definition:
  v: Source of the definition for the extension code - a logical name or a URL.
comment:
  v: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
fixed: Uri
  v: comment
  l: comment
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Extension.extension:comment.value[x]
path:
  v: Extension.extension.value[x]
short:
  v: Any comment can be provided in this field, if necessary
definition:
  v: Any comment can be provided in this field, if necessary.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Extension.extension:source
path:
  v: Extension.extension
slice name:
  v: source
short:
  v: R4: Supporting literature (new)
definition:
  v: R4: `SubstanceSpecification.code.source` (new:Reference(DocumentReference))
comment:
  v: Element `SubstanceSpecification.code.source` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.source` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.source` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
requirements:
  v: Element `SubstanceSpecification.code.source` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.source` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.source` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Extension.extension:source.id
path:
  v: Extension.extension.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Extension.extension:source.extension
path:
  v: Extension.extension.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Extension.extension:source.url
path:
  v: Extension.extension.url
representation:
  v: xmlAttr
short:
  v: identifies the meaning of the extension
definition:
  v: Source of the definition for the extension code - a logical name or a URL.
comment:
  v: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
fixed: Uri
  v: source
  l: source
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Extension.extension:source.value[x]
path:
  v: Extension.extension.value[x]
short:
  v: Supporting literature
definition:
  v: Supporting literature.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/profile-DocumentReference|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/profile-DocumentReference
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DocumentReference
    l: DocumentReference
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Extension.url
path:
  v: Extension.url
representation:
  v: xmlAttr
short:
  v: identifies the meaning of the extension
definition:
  v: Source of the definition for the extension code - a logical name or a URL.
comment:
  v: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
fixed: Uri
  v: http://hl7.org/fhir/4.0/StructureDefinition/extension-SubstanceSpecification.code
  l: extension-SubstanceSpecification.code
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Extension.value[x]
path:
  v: Extension.value[x]
short:
  v: Value of extension
definition:
  v: Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: base64Binary
    l: base64Binary
type:
  code:
    v: boolean
    l: boolean
type:
  code:
    v: code
    l: code
type:
  code:
    v: date
    l: date
type:
  code:
    v: dateTime
    l: dateTime
type:
  code:
    v: decimal
    l: decimal
type:
  code:
    v: id
    l: id
type:
  code:
    v: instant
    l: instant
type:
  code:
    v: integer
    l: integer
type:
  code:
    v: markdown
    l: markdown
type:
  code:
    v: oid
    l: oid
type:
  code:
    v: positiveInt
    l: positiveInt
type:
  code:
    v: string
    l: string
type:
  code:
    v: time
    l: time
type:
  code:
    v: unsignedInt
    l: unsignedInt
type:
  code:
    v: uri
    l: uri
type:
  code:
    v: Address
    l: Address
type:
  code:
    v: Age
    l: Age
type:
  code:
    v: Annotation
    l: Annotation
type:
  code:
    v: Attachment
    l: Attachment
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
type:
  code:
    v: Coding
    l: Coding
type:
  code:
    v: ContactPoint
    l: ContactPoint
type:
  code:
    v: Count
    l: Count
type:
  code:
    v: Distance
    l: Distance
type:
  code:
    v: Duration
    l: Duration
type:
  code:
    v: HumanName
    l: HumanName
type:
  code:
    v: Identifier
    l: Identifier
type:
  code:
    v: Money
    l: Money
type:
  code:
    v: Period
    l: Period
type:
  code:
    v: Quantity
    l: Quantity
type:
  code:
    v: Range
    l: Range
type:
  code:
    v: Ratio
    l: Ratio
type:
  code:
    v: Reference
    l: Reference
type:
  code:
    v: SampledData
    l: SampledData
type:
  code:
    v: Signature
    l: Signature
type:
  code:
    v: Timing
    l: Timing
type:
  code:
    v: Meta
    l: Meta
mapping:
  identity:
    v: rim
  map:
    v: N/A

element:
  id:
    v: Extension
  path:
    v: Extension
  short:
    v: R4: Codes associated with the substance (new)
  definition:
    v: R4: `SubstanceSpecification.code` (new:BackboneElement)
  comment:
    v: Element `SubstanceSpecification.code` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
  min:
    v: 0
  max:
    v: *
  base:
    path:
      v: Extension
    min:
      v: 0
    max:
      v: *
  is modifier:
    v: false
element:
  id:
    v: Extension.extension
  path:
    v: Extension.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
  base:
    path:
      v: Extension.extension
    min:
      v: 0
    max:
      v: *
element:
  id:
    v: Extension.extension:code
  path:
    v: Extension.extension
  slice name:
    v: code
  short:
    v: R4: The specific code (new)
  definition:
    v: R4: `SubstanceSpecification.code.code` (new:CodeableConcept)
  comment:
    v: Element `SubstanceSpecification.code.code` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.code` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.code` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
  requirements:
    v: Element `SubstanceSpecification.code.code` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.code` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.code` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: Extension.extension
    min:
      v: 0
    max:
      v: *
element:
  id:
    v: Extension.extension:code.url
  path:
    v: Extension.extension.url
  min:
    v: 1
  max:
    v: 1
  base:
    path:
      v: Extension.url
    min:
      v: 1
    max:
      v: 1
  fixed: Uri
    v: code
    l: code
element:
  id:
    v: Extension.extension:code.value[x]
  path:
    v: Extension.extension.value[x]
  short:
    v: The specific code
  definition:
    v: The specific code.
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: Extension.value[x]
    min:
      v: 0
    max:
      v: 1
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
element:
  id:
    v: Extension.extension:status
  path:
    v: Extension.extension
  slice name:
    v: status
  short:
    v: R4: Status of the code assignment (new)
  definition:
    v: R4: `SubstanceSpecification.code.status` (new:CodeableConcept)
  comment:
    v: Element `SubstanceSpecification.code.status` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.status` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.status` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
  requirements:
    v: Element `SubstanceSpecification.code.status` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.status` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.status` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: Extension.extension
    min:
      v: 0
    max:
      v: *
element:
  id:
    v: Extension.extension:status.url
  path:
    v: Extension.extension.url
  min:
    v: 1
  max:
    v: 1
  base:
    path:
      v: Extension.url
    min:
      v: 1
    max:
      v: 1
  fixed: Uri
    v: status
    l: status
element:
  id:
    v: Extension.extension:status.value[x]
  path:
    v: Extension.extension.value[x]
  short:
    v: Status of the code assignment
  definition:
    v: Status of the code assignment.
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: Extension.value[x]
    min:
      v: 0
    max:
      v: 1
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
element:
  id:
    v: Extension.extension:statusDate
  path:
    v: Extension.extension
  slice name:
    v: statusDate
  short:
    v: R4: The date at which the code status is changed as part of the terminology maintenance (new)
  definition:
    v: R4: `SubstanceSpecification.code.statusDate` (new:dateTime)
  comment:
    v: Element `SubstanceSpecification.code.statusDate` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.statusDate` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.statusDate` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

v: Element `SubstanceSpecification.code.statusDate` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.statusDate` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.statusDate` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

v: 0

v: 1

path:
  v: Extension.extension
min:
  v: 0
max:
  v: *

id:
  v: Extension.extension:statusDate.url
path:
  v: Extension.extension.url
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
fixed: Uri
  v: statusDate
  l: statusDate

id:
  v: Extension.extension:statusDate.value[x]
path:
  v: Extension.extension.value[x]
short:
  v: The date at which the code status is changed as part of the terminology maintenance
definition:
  v: The date at which the code status is changed as part of the terminology maintenance.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime

id:
  v: Extension.extension:comment
path:
  v: Extension.extension
slice name:
  v: comment
short:
  v: R4: Any comment can be provided in this field, if necessary (new)
definition:
  v: R4: `SubstanceSpecification.code.comment` (new:string)
comment:
  v: Element `SubstanceSpecification.code.comment` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.comment` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.comment` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
requirements:
  v: Element `SubstanceSpecification.code.comment` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.comment` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.comment` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Extension.extension
  min:
    v: 0
  max:
    v: *

id:
  v: Extension.extension:comment.url
path:
  v: Extension.extension.url
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
fixed: Uri
  v: comment
  l: comment

id:
  v: Extension.extension:comment.value[x]
path:
  v: Extension.extension.value[x]
short:
  v: Any comment can be provided in this field, if necessary
definition:
  v: Any comment can be provided in this field, if necessary.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: Extension.extension:source
path:
  v: Extension.extension
slice name:
  v: source
short:
  v: R4: Supporting literature (new)
definition:
  v: R4: `SubstanceSpecification.code.source` (new:Reference(DocumentReference))
comment:
  v: Element `SubstanceSpecification.code.source` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.source` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.source` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
requirements:
  v: Element `SubstanceSpecification.code.source` is part of an existing definition because parent element `SubstanceSpecification.code` requires a cross-version extension. Element `SubstanceSpecification.code.source` is not mapped to FHIR STU3, since FHIR R4 `SubstanceSpecification` is not mapped. Element `SubstanceSpecification.code.source` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: Extension.extension
  min:
    v: 0
  max:
    v: *

id:
  v: Extension.extension:source.url
path:
  v: Extension.extension.url
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
fixed: Uri
  v: source
  l: source

id:
  v: Extension.extension:source.value[x]
path:
  v: Extension.extension.value[x]
short:
  v: Supporting literature
definition:
  v: Supporting literature.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/profile-DocumentReference|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/profile-DocumentReference
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DocumentReference
    l: DocumentReference

id:
  v: Extension.url
path:
  v: Extension.url
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
fixed: Uri
  v: http://hl7.org/fhir/4.0/StructureDefinition/extension-SubstanceSpecification.code
  l: extension-SubstanceSpecification.code

id:
  v: Extension.value[x]
path:
  v: Extension.value[x]
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1