http://hl7.org/fhir/StructureDefinition/targetConstraint|5.2.0

Specifies a constraint that is enforced on instantiated (or target) resources. This extension can be applied to definitional resources (such as ActivityDefinition or Measure) and indicates that the constraint should be enforced on resources that are instantiated from the definition. For example, this extension can be used to define a constraint such as `numerator count must be less than or equal to denominator count`.
description: Specifies a constraint that is enforced on instantiated (or target) resources. This extension can be applied to definitional resources (such as ActivityDefinition or Measure) and indicates that the constraint should be enforced on resources that are instantiated from the definition. For example, this extension can be used to define a constraint such as `numerator count must be less than or equal to denominator count`.
derivation: constraint
name: TargetConstraint
type: Extension
elements:
  extension:
    short: Unique identifier
    index: 0
    slicing:
      slices:
        key:
          match: {}
          schema:
            short: Unique identifier
            _required: true
            index: 0
            extensions: {}
            elements:
              extension: {index: 1}
              url:
                pattern: {type: Uri, value: key}
                index: 2
              value:
                choices: []
                index: 4
            required: [value]
        requirements:
          match: {}
          schema:
            short: Why the constraint is defined
            index: 5
            extensions: {}
            elements:
              extension: {index: 6}
              url:
                pattern: {type: Uri, value: requirements}
                index: 7
              value:
                choices: []
                index: 9
            required: [value]
        severity:
          match: {}
          schema:
            short: error | warning
            _required: true
            index: 10
            extensions: {}
            elements:
              extension: {index: 11}
              url:
                pattern: {type: Uri, value: severity}
                index: 12
              value:
                choices: []
                index: 14
            required: [value]
        expression:
          match: {}
          schema:
            short: The invariant expression
            _required: true
            index: 15
            extensions: {}
            elements:
              extension: {index: 16}
              url:
                pattern: {type: Uri, value: expression}
                index: 17
              value:
                choices: []
                index: 19
            required: [value]
        human:
          match: {}
          schema:
            short: Human-readable rule
            _required: true
            index: 20
            extensions: {}
            elements:
              extension: {index: 21}
              url:
                pattern: {type: Uri, value: human}
                index: 22
              value:
                choices: []
                index: 24
            required: [value]
        location:
          match: {}
          schema:
            short: Relative path to elements
            array: true
            index: 25
            extensions: {}
            elements:
              extension: {index: 26}
              url:
                pattern: {type: Uri, value: location}
                index: 27
              value:
                choices: []
                index: 29
            required: [value]
  url:
    pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/targetConstraint'}
    index: 30
  value:
    choices: []
    index: 32
extensions:
  key:
    url: null
    short: Unique identifier
    _required: true
    index: 0
    extensions: {}
    elements:
      extension: {index: 1}
      url:
        pattern: {type: Uri, value: key}
        index: 2
      value:
        choices: []
        index: 4
    required: [value]
  requirements:
    url: null
    short: Why the constraint is defined
    index: 5
    extensions: {}
    elements:
      extension: {index: 6}
      url:
        pattern: {type: Uri, value: requirements}
        index: 7
      value:
        choices: []
        index: 9
    required: [value]
  severity:
    url: null
    short: error | warning
    _required: true
    index: 10
    extensions: {}
    elements:
      extension: {index: 11}
      url:
        pattern: {type: Uri, value: severity}
        index: 12
      value:
        choices: []
        index: 14
    required: [value]
  expression:
    url: null
    short: The invariant expression
    _required: true
    index: 15
    extensions: {}
    elements:
      extension: {index: 16}
      url:
        pattern: {type: Uri, value: expression}
        index: 17
      value:
        choices: []
        index: 19
    required: [value]
  human:
    url: null
    short: Human-readable rule
    _required: true
    index: 20
    extensions: {}
    elements:
      extension: {index: 21}
      url:
        pattern: {type: Uri, value: human}
        index: 22
      value:
        choices: []
        index: 24
    required: [value]
  location:
    url: null
    short: Relative path to elements
    array: true
    index: 25
    extensions: {}
    elements:
      extension: {index: 26}
      url:
        pattern: {type: Uri, value: location}
        index: 27
      value:
        choices: []
        index: 29
    required: [value]
class: extension
kind: complex-type
url: http://hl7.org/fhir/StructureDefinition/targetConstraint
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 5.2.0
required: [extension]