ext-R4-ExampleScenario.useContext
type: StructureDefinition
node role: treeRoot
id:
  v: ext-R4-ExampleScenario.useContext
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition ext-R4-ExampleScenario.useContext Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> Extension 0..* Extension R4: The context that the content is intended to support (new) #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:_datatype 1..1 Extension DataType slice for a FHIR R4 `UsageContext` value #xD; url 1..1 uri "http://hl7.org/fhir/StructureDefinition/_datatype" #xD; value[x] 1..1 string Value of extension Fixed Value: UsageContext #xD; extension:code 1..1 Extension R4: code #xD; url 1..1 uri "code" #xD; value[x] 1..1 Coding Type of context being specified Binding: R4UsageContextTypeForR3 (0.1.0) (extensible): A code that specifies a type of context being specified by a usage context. #xD; <a href="StructureDefinition-ext-R4-ExampleScenario.useContext-definitions.html#Extension.extension:value" title="Slice value: R4: `UsageContext.value[x]` additional types (Reference(http://hl7.org/fhir/StructureDefinition/PlanDefinition), Reference(http://hl7.org/fhir/StructureDefinition/ResearchStudy), Reference(http://hl7.org/fhir/StructureDefinition/InsurancePlan), Reference(http://hl7.org/fhir/StructureDefinition/HealthcareService), Reference(http://hl7.org/fhir/StructureDefinition/Group), Reference(http://hl7.org/fhir/StructureDefinition/Location), Reference(http://hl7.org/fhir/StructureDefinition/Organization))">extension:value 1..1 Extension R4: value additional types #xD; url 1..1 uri "value" #xD; value[x] 1..1 Reference(Cross-version Profile for R4.PlanDefinition for use in FHIR STU3(0.1.0) | PlanDefinition | Cross-version Profile for R4.ResearchStudy for use in FHIR STU3(0.1.0) | ResearchStudy | Cross-version Profile for R4.InsurancePlan for use in FHIR STU3(0.1.0) | Basic | Cross-version Profile for R4.HealthcareService for use in FHIR STU3(0.1.0) | HealthcareService | Cross-version Profile for R4.Group for use in…
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-ExampleScenario.useContext
  l: extension-ExampleScenario.useContext
version:
  v: 0.1.0
name:
  v: ExtensionExampleScenario_UseContext
title:
  v: R4: The context that the content is intended to support (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: `ExampleScenario.useContext` (new:UsageContext)
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 `ExampleScenario.useContext` as defined in FHIR R4 in FHIR STU3. The source element is defined as: `ExampleScenario.useContext` 0..* `UsageContext` Following are the generation technical comments: Element `ExampleScenario.useContext` is not mapped to FHIR STU3, since FHIR R4 `ExampleScenario` is not mapped. Element `ExampleScenario.useContext` 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: The context that the content is intended to support (new)
    definition:
      v: R4: `ExampleScenario.useContext` (new:UsageContext)
    comment:
      v: Element `ExampleScenario.useContext` is not mapped to FHIR STU3, since FHIR R4 `ExampleScenario` is not mapped. Element `ExampleScenario.useContext` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.
    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:_datatype
path:
  v: Extension.extension
slice name:
  v: _datatype
short:
  v: DataType slice for a FHIR R4 `UsageContext` value
definition:
  v: Slice to indicate the presence of a R4 `UsageContext` in FHIR STU3
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Extension.extension:_datatype.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:_datatype.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:_datatype.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: http://hl7.org/fhir/StructureDefinition/_datatype
  l: datatype
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Extension.extension:_datatype.value[x]
path:
  v: Extension.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).
comment:
  v: Must be: UsageContext
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
fixed: String
  v: UsageContext
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Extension.extension:code
path:
  v: Extension.extension
slice name:
  v: code
short:
  v: R4: code
definition:
  v: R4: `UsageContext.code`
comment:
  v: Element `UsageContext.code` is mapped to FHIR STU3 element `UsageContext.code` as `Equivalent`.
requirements:
  v: Element `UsageContext.code` is mapped to FHIR STU3 element `UsageContext.code` as `Equivalent`.
min:
  v: 1
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: Type of context being specified
definition:
  v: A code that identifies the type of context being specified by this usage context.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: extensible
  description:
    v: A code that specifies a type of context being specified by a usage context.
  value set: Uri
    v: http://hl7.org/fhir/uv/xver/ValueSet/R4-usage-context-type-for-R3|0.1.0
    l: http://hl7.org/fhir/uv/xver/ValueSet/R4-usage-context-type-for-R3
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Extension.extension:value
path:
  v: Extension.extension
slice name:
  v: value
short:
  v: R4: value additional types
definition:
  v: R4: `UsageContext.value[x]` additional types (Reference(http://hl7.org/fhir/StructureDefinition/PlanDefinition), Reference(http://hl7.org/fhir/StructureDefinition/ResearchStudy), Reference(http://hl7.org/fhir/StructureDefinition/InsurancePlan), Reference(http://hl7.org/fhir/StructureDefinition/HealthcareService), Reference(http://hl7.org/fhir/StructureDefinition/Group), Reference(http://hl7.org/fhir/StructureDefinition/Location), Reference(http://hl7.org/fhir/StructureDefinition/Organization))
comment:
  v: Element `UsageContext.value[x]` is mapped to FHIR STU3 element `UsageContext.value[x]` as `SourceIsBroaderThanTarget`. The mappings for `UsageContext.value[x]` do not cover the following types: Reference. The target context `UsageContext.value[x]` is a choice-type element and cannot directly hold extensions. The context is moved up to parent element `UsageContext`.
requirements:
  v: Element `UsageContext.value[x]` is mapped to FHIR STU3 element `UsageContext.value[x]` as `SourceIsBroaderThanTarget`. The mappings for `UsageContext.value[x]` do not cover the following types: Reference. The target context `UsageContext.value[x]` is a choice-type element and cannot directly hold extensions. The context is moved up to parent element `UsageContext`.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Extension.extension:value.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:value.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:value.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: value
  l: value
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Extension.extension:value.value[x]
path:
  v: Extension.extension.value[x]
short:
  v: Value that defines the context
definition:
  v: A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.
min:
  v: 1
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-PlanDefinition|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/profile-PlanDefinition
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PlanDefinition
    l: PlanDefinition
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/profile-ResearchStudy|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/profile-ResearchStudy
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ResearchStudy
    l: ResearchStudy
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/profile-InsurancePlan|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/profile-InsurancePlan
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Basic
    l: Basic
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/profile-HealthcareService|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/profile-HealthcareService
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/HealthcareService
    l: HealthcareService
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/profile-Group|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/profile-Group
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Group
    l: Group
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/profile-Location|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/profile-Location
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Location
    l: Location
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/profile-Organization|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/profile-Organization
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    l: Organization
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-ExampleScenario.useContext
  l: extension-ExampleScenario.useContext
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: The context that the content is intended to support (new)
  definition:
    v: R4: `ExampleScenario.useContext` (new:UsageContext)
  comment:
    v: Element `ExampleScenario.useContext` is not mapped to FHIR STU3, since FHIR R4 `ExampleScenario` is not mapped. Element `ExampleScenario.useContext` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.
  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:_datatype
  path:
    v: Extension.extension
  slice name:
    v: _datatype
  short:
    v: DataType slice for a FHIR R4 `UsageContext` value
  definition:
    v: Slice to indicate the presence of a R4 `UsageContext` in FHIR STU3
  min:
    v: 1
  max:
    v: 1
  base:
    path:
      v: Extension.extension
    min:
      v: 0
    max:
      v: *
element:
  id:
    v: Extension.extension:_datatype.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: http://hl7.org/fhir/StructureDefinition/_datatype
    l: datatype
element:
  id:
    v: Extension.extension:_datatype.value[x]
  path:
    v: Extension.extension.value[x]
  comment:
    v: Must be: UsageContext
  min:
    v: 1
  max:
    v: 1
  base:
    path:
      v: Extension.value[x]
    min:
      v: 0
    max:
      v: 1
  type:
    code:
      v: string
      l: string
  fixed: String
    v: UsageContext
element:
  id:
    v: Extension.extension:code
  path:
    v: Extension.extension
  slice name:
    v: code
  short:
    v: R4: code
  definition:
    v: R4: `UsageContext.code`
  comment:
    v: Element `UsageContext.code` is mapped to FHIR STU3 element `UsageContext.code` as `Equivalent`.
  requirements:
    v: Element `UsageContext.code` is mapped to FHIR STU3 element `UsageContext.code` as `Equivalent`.
  min:
    v: 1
  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: Type of context being specified
  definition:
    v: A code that identifies the type of context being specified by this usage context.
  min:
    v: 1
  max:
    v: 1
  base:
    path:
      v: Extension.value[x]
    min:
      v: 0
    max:
      v: 1
  type:
    code:
      v: Coding
      l: Coding
  binding:
    strength:
      v: extensible
    description:
      v: A code that specifies a type of context being specified by a usage context.
    value set: Uri
      v: http://hl7.org/fhir/uv/xver/ValueSet/R4-usage-context-type-for-R3|0.1.0
      l: http://hl7.org/fhir/uv/xver/ValueSet/R4-usage-context-type-for-R3
element:
  id:
    v: Extension.extension:value
  path:
    v: Extension.extension
  slice name:
    v: value
  short:
    v: R4: value additional types

v: R4: `UsageContext.value[x]` additional types (Reference(http://hl7.org/fhir/StructureDefinition/PlanDefinition), Reference(http://hl7.org/fhir/StructureDefinition/ResearchStudy), Reference(http://hl7.org/fhir/StructureDefinition/InsurancePlan), Reference(http://hl7.org/fhir/StructureDefinition/HealthcareService), Reference(http://hl7.org/fhir/StructureDefinition/Group), Reference(http://hl7.org/fhir/StructureDefinition/Location), Reference(http://hl7.org/fhir/StructureDefinition/Organization))

v: Element `UsageContext.value[x]` is mapped to FHIR STU3 element `UsageContext.value[x]` as `SourceIsBroaderThanTarget`. The mappings for `UsageContext.value[x]` do not cover the following types: Reference. The target context `UsageContext.value[x]` is a choice-type element and cannot directly hold extensions. The context is moved up to parent element `UsageContext`.

v: Element `UsageContext.value[x]` is mapped to FHIR STU3 element `UsageContext.value[x]` as `SourceIsBroaderThanTarget`. The mappings for `UsageContext.value[x]` do not cover the following types: Reference. The target context `UsageContext.value[x]` is a choice-type element and cannot directly hold extensions. The context is moved up to parent element `UsageContext`.

v: 1

v: 1

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

id:
  v: Extension.extension:value.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: value
  l: value

id:
  v: Extension.extension:value.value[x]
path:
  v: Extension.extension.value[x]
short:
  v: Value that defines the context
definition:
  v: A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.
min:
  v: 1
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-PlanDefinition|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/profile-PlanDefinition
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PlanDefinition
    l: PlanDefinition
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/profile-ResearchStudy|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/profile-ResearchStudy
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ResearchStudy
    l: ResearchStudy
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/profile-InsurancePlan|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/profile-InsurancePlan
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Basic
    l: Basic
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/profile-HealthcareService|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/profile-HealthcareService
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/HealthcareService
    l: HealthcareService
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/profile-Group|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/profile-Group
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Group
    l: Group
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/profile-Location|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/profile-Location
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Location
    l: Location
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/profile-Organization|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/profile-Organization
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    l: Organization

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-ExampleScenario.useContext
  l: extension-ExampleScenario.useContext

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