Extensions for Using Data Elements from FHIR R5 in FHIR STU3
0.1.0 - STU International flag

Extensions for Using Data Elements from FHIR R5 in FHIR STU3 - Downloaded Version null See the Directory of published versions

Extension: ExtensionGraphDefinition_Link_Compartment - Detailed Descriptions

Page standards status: Trial-use Maturity Level: 0

Definitions for the ext-R5-GraphDefinition.lin.compartment extension.

Guidance on how to interpret the contents of this table can be foundhere

0. Extension
Definition

R5: GraphDefinition.link.compartment (new:BackboneElement)


Optional Extension Element - found in all resources.

ShortR5: Compartment Consistency Rules (new)Optional Extensions Element
Comments

Element GraphDefinition.link.compartment has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

Control0..*
This element is affected by the following invariants: ele-1
Is Modifierfalse
Invariantsele-1: All FHIR elements must have a @value or children (hasValue() | (children().count() > id.count()))
ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists())
ele-1: All FHIR elements must have a @value or children (hasValue() | (children().count() > id.count()))
ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists())
2. Extension.extension
Definition

An Extension


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.

ShortExtensionAdditional Content defined by implementations
Comments

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.

Control30..*
TypeExtension
Alternate Namesextensions, user content
SlicingThis element introduces a set of slices on Extension.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators:
  • value @ url
  • 4. Extension.extension:use
    Slice Nameuse
    Definition

    R5: GraphDefinition.link.compartment.use (new:code)

    ShortR5: where | requires (new)Additional Content defined by implementations
    Comments

    Element GraphDefinition.link.compartment.use is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.use has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.use has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). All conditional rules are evaluated; if they are true, then the rules are evaluated.

    Control10..1*
    TypeExtension
    Requirements

    Element GraphDefinition.link.compartment.use is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.use has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.use has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

    6. Extension.extension:use.url
    Definition

    Source of the definition for the extension code - a logical name or a URL.

    Shortidentifies the meaning of the extension
    Comments

    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.

    Control1..1
    Typeuri
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    XML FormatIn the XML format, this property is represented as an attribute.
    Fixed Valueuse
    8. Extension.extension:use.value[x]
    Definition

    Defines how the compartment rule is used - whether it it is used to test whether resources are subject to the rule, or whether it is a rule that must be followed.


    Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).

    Shortwhere | requiresValue of extension
    Comments

    All conditional rules are evaluated; if they are true, then the rules are evaluated.

    Control10..1
    BindingThe codes SHALL be taken from For codes, see R5GraphCompartmentUseForR3 (0.1.0)
    (required to http://hl7.org/fhir/uv/xver/ValueSet/R5-graph-compartment-use-for-R3|0.1.0)
    Typecode, date, dateTime, Meta, string, Address, Attachment, integer, oid, Count, instant, ContactPoint, HumanName, Money, Identifier, Coding, markdown, SampledData, Ratio, id, positiveInt, Age, Distance, Reference, Period, Quantity, Duration, Range, uri, Annotation, boolean, base64Binary, Signature, unsignedInt, time, Timing, decimal, CodeableConcept
    [x] NoteSeeChoice of Data Typesfor further information about how to use [x]
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    10. Extension.extension:rule
    Slice Namerule
    Definition

    R5: GraphDefinition.link.compartment.rule (new:code)

    ShortR5: identical | matching | different | custom (new)Additional Content defined by implementations
    Comments

    Element GraphDefinition.link.compartment.rule is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.rule has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.rule has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

    Control10..1*
    TypeExtension
    Requirements

    Element GraphDefinition.link.compartment.rule is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.rule has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.rule has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

    12. Extension.extension:rule.url
    Definition

    Source of the definition for the extension code - a logical name or a URL.

    Shortidentifies the meaning of the extension
    Comments

    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.

    Control1..1
    Typeuri
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    XML FormatIn the XML format, this property is represented as an attribute.
    Fixed Valuerule
    14. Extension.extension:rule.value[x]
    Definition

    identical | matching | different | no-rule | custom.


    Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).

    Shortidentical | matching | different | customValue of extension
    Control10..1
    BindingThe codes SHALL be taken from For codes, see GraphCompartmentRule
    (required to http://hl7.org/fhir/ValueSet/graph-compartment-rule|3.0.2)
    Typecode, date, dateTime, Meta, string, Address, Attachment, integer, oid, Count, instant, ContactPoint, HumanName, Money, Identifier, Coding, markdown, SampledData, Ratio, id, positiveInt, Age, Distance, Reference, Period, Quantity, Duration, Range, uri, Annotation, boolean, base64Binary, Signature, unsignedInt, time, Timing, decimal, CodeableConcept
    [x] NoteSeeChoice of Data Typesfor further information about how to use [x]
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    16. Extension.extension:code
    Slice Namecode
    Definition

    R5: GraphDefinition.link.compartment.code (new:code)

    ShortR5: Patient | Encounter | RelatedPerson | Practitioner | Device | EpisodeOfCare (new)Additional Content defined by implementations
    Comments

    Element GraphDefinition.link.compartment.code is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.code has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.code has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

    Control10..1*
    TypeExtension
    Requirements

    Element GraphDefinition.link.compartment.code is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.code has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.code has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

    18. Extension.extension:code.url
    Definition

    Source of the definition for the extension code - a logical name or a URL.

    Shortidentifies the meaning of the extension
    Comments

    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.

    Control1..1
    Typeuri
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    XML FormatIn the XML format, this property is represented as an attribute.
    Fixed Valuecode
    20. Extension.extension:code.value[x]
    Definition

    Identifies the compartment.


    Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).

    ShortPatient | Encounter | RelatedPerson | Practitioner | Device | EpisodeOfCareValue of extension
    Control10..1
    BindingThe codes SHALL be taken from For codes, see R5CompartmentTypeForR3 (0.1.0)
    (required to http://hl7.org/fhir/uv/xver/ValueSet/R5-compartment-type-for-R3|0.1.0)
    Typecode, date, dateTime, Meta, string, Address, Attachment, integer, oid, Count, instant, ContactPoint, HumanName, Money, Identifier, Coding, markdown, SampledData, Ratio, id, positiveInt, Age, Distance, Reference, Period, Quantity, Duration, Range, uri, Annotation, boolean, base64Binary, Signature, unsignedInt, time, Timing, decimal, CodeableConcept
    [x] NoteSeeChoice of Data Typesfor further information about how to use [x]
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    22. Extension.extension:expression
    Slice Nameexpression
    Definition

    R5: GraphDefinition.link.compartment.expression (new:string)

    ShortR5: Custom rule, as a FHIRPath expression (new)Additional Content defined by implementations
    Comments

    Element GraphDefinition.link.compartment.expression is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.expression has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.expression has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

    Control0..1*
    TypeExtension
    Requirements

    Element GraphDefinition.link.compartment.expression is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.expression has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.expression has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

    24. Extension.extension:expression.url
    Definition

    Source of the definition for the extension code - a logical name or a URL.

    Shortidentifies the meaning of the extension
    Comments

    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.

    Control1..1
    Typeuri
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    XML FormatIn the XML format, this property is represented as an attribute.
    Fixed Valueexpression
    26. Extension.extension:expression.value[x]
    Definition

    Custom rule, as a FHIRPath expression.


    Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).

    ShortCustom rule, as a FHIRPath expressionValue of extension
    Control0..1
    Typestring, date, dateTime, Meta, code, Address, Attachment, integer, oid, Count, instant, ContactPoint, HumanName, Money, Identifier, Coding, markdown, SampledData, Ratio, id, positiveInt, Age, Distance, Reference, Period, Quantity, Duration, Range, uri, Annotation, boolean, base64Binary, Signature, unsignedInt, time, Timing, decimal, CodeableConcept
    [x] NoteSeeChoice of Data Typesfor further information about how to use [x]
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    28. Extension.extension:description
    Slice Namedescription
    Definition

    R5: GraphDefinition.link.compartment.description (new:string)

    ShortR5: Documentation for FHIRPath expression (new)Additional Content defined by implementations
    Comments

    Element GraphDefinition.link.compartment.description is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.description has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.description has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

    Control0..1*
    TypeExtension
    Requirements

    Element GraphDefinition.link.compartment.description is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.description has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.description has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

    30. Extension.extension:description.url
    Definition

    Source of the definition for the extension code - a logical name or a URL.

    Shortidentifies the meaning of the extension
    Comments

    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.

    Control1..1
    Typeuri
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    XML FormatIn the XML format, this property is represented as an attribute.
    Fixed Valuedescription
    32. Extension.extension:description.value[x]
    Definition

    Documentation for FHIRPath expression.


    Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).

    ShortDocumentation for FHIRPath expressionValue of extension
    Control0..1
    Typestring, date, dateTime, Meta, code, Address, Attachment, integer, oid, Count, instant, ContactPoint, HumanName, Money, Identifier, Coding, markdown, SampledData, Ratio, id, positiveInt, Age, Distance, Reference, Period, Quantity, Duration, Range, uri, Annotation, boolean, base64Binary, Signature, unsignedInt, time, Timing, decimal, CodeableConcept
    [x] NoteSeeChoice of Data Typesfor further information about how to use [x]
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    34. Extension.url
    Definition

    Source of the definition for the extension code - a logical name or a URL.

    Shortidentifies the meaning of the extension
    Comments

    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.

    Control1..1
    Typeuri
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    XML FormatIn the XML format, this property is represented as an attribute.
    Fixed Valuehttp://hl7.org/fhir/5.0/StructureDefinition/extension-GraphDefinition.link.compartment
    36. Extension.value[x]
    Definition

    Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).

    ShortValue of extension
    Control0..01
    TypeChoice of: base64Binary, boolean, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference, SampledData, Signature, Timing, Meta
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension

    Guidance on how to interpret the contents of this table can be foundhere

    0. Extension
    Definition

    R5: GraphDefinition.link.compartment (new:BackboneElement)

    ShortR5: Compartment Consistency Rules (new)
    Comments

    Element GraphDefinition.link.compartment has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

    Control0..*
    Is Modifierfalse
    2. Extension.extension
    Control3..*
    SlicingThis element introduces a set of slices on Extension.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators:
    • value @ url
    • 4. Extension.extension:use
      Slice Nameuse
      Definition

      R5: GraphDefinition.link.compartment.use (new:code)

      ShortR5: where | requires (new)
      Comments

      Element GraphDefinition.link.compartment.use is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.use has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.use has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). All conditional rules are evaluated; if they are true, then the rules are evaluated.

      Control1..1
      Requirements

      Element GraphDefinition.link.compartment.use is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.use has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.use has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

      6. Extension.extension:use.url
      Control1..1
      Fixed Valueuse
      8. Extension.extension:use.value[x]
      Definition

      Defines how the compartment rule is used - whether it it is used to test whether resources are subject to the rule, or whether it is a rule that must be followed.

      Shortwhere | requires
      Comments

      All conditional rules are evaluated; if they are true, then the rules are evaluated.

      Control1..1
      BindingThe codes SHALL be taken from R5GraphCompartmentUseForR3 (0.1.0)
      (required to http://hl7.org/fhir/uv/xver/ValueSet/R5-graph-compartment-use-for-R3|0.1.0)
      Typecode
      [x] NoteSeeChoice of Data Typesfor further information about how to use [x]
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      10. Extension.extension:rule
      Slice Namerule
      Definition

      R5: GraphDefinition.link.compartment.rule (new:code)

      ShortR5: identical | matching | different | custom (new)
      Comments

      Element GraphDefinition.link.compartment.rule is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.rule has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.rule has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

      Control1..1
      Requirements

      Element GraphDefinition.link.compartment.rule is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.rule has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.rule has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

      12. Extension.extension:rule.url
      Control1..1
      Fixed Valuerule
      14. Extension.extension:rule.value[x]
      Definition

      identical | matching | different | no-rule | custom.

      Shortidentical | matching | different | custom
      Control1..1
      BindingThe codes SHALL be taken from GraphCompartmentRule
      (required to http://hl7.org/fhir/ValueSet/graph-compartment-rule|3.0.2)
      Typecode
      [x] NoteSeeChoice of Data Typesfor further information about how to use [x]
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      16. Extension.extension:code
      Slice Namecode
      Definition

      R5: GraphDefinition.link.compartment.code (new:code)

      ShortR5: Patient | Encounter | RelatedPerson | Practitioner | Device | EpisodeOfCare (new)
      Comments

      Element GraphDefinition.link.compartment.code is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.code has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.code has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

      Control1..1
      Requirements

      Element GraphDefinition.link.compartment.code is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.code has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.code has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

      18. Extension.extension:code.url
      Control1..1
      Fixed Valuecode
      20. Extension.extension:code.value[x]
      Definition

      Identifies the compartment.

      ShortPatient | Encounter | RelatedPerson | Practitioner | Device | EpisodeOfCare
      Control1..1
      BindingThe codes SHALL be taken from R5CompartmentTypeForR3 (0.1.0)
      (required to http://hl7.org/fhir/uv/xver/ValueSet/R5-compartment-type-for-R3|0.1.0)
      Typecode
      [x] NoteSeeChoice of Data Typesfor further information about how to use [x]
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      22. Extension.extension:expression
      Slice Nameexpression
      Definition

      R5: GraphDefinition.link.compartment.expression (new:string)

      ShortR5: Custom rule, as a FHIRPath expression (new)
      Comments

      Element GraphDefinition.link.compartment.expression is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.expression has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.expression has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

      Control0..1
      Requirements

      Element GraphDefinition.link.compartment.expression is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.expression has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.expression has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

      24. Extension.extension:expression.url
      Control1..1
      Fixed Valueexpression
      26. Extension.extension:expression.value[x]
      Definition

      Custom rule, as a FHIRPath expression.

      ShortCustom rule, as a FHIRPath expression
      Control0..1
      Typestring
      [x] NoteSeeChoice of Data Typesfor further information about how to use [x]
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      28. Extension.extension:description
      Slice Namedescription
      Definition

      R5: GraphDefinition.link.compartment.description (new:string)

      ShortR5: Documentation for FHIRPath expression (new)
      Comments

      Element GraphDefinition.link.compartment.description is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.description has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.description has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

      Control0..1
      Requirements

      Element GraphDefinition.link.compartment.description is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.description has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.description has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

      30. Extension.extension:description.url
      Control1..1
      Fixed Valuedescription
      32. Extension.extension:description.value[x]
      Definition

      Documentation for FHIRPath expression.

      ShortDocumentation for FHIRPath expression
      Control0..1
      Typestring
      [x] NoteSeeChoice of Data Typesfor further information about how to use [x]
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      34. Extension.url
      Control1..1
      Fixed Valuehttp://hl7.org/fhir/5.0/StructureDefinition/extension-GraphDefinition.link.compartment
      36. Extension.value[x]
      Control0..0

      Guidance on how to interpret the contents of this table can be foundhere

      0. Extension
      Definition

      R5: GraphDefinition.link.compartment (new:BackboneElement)

      ShortR5: Compartment Consistency Rules (new)
      Comments

      Element GraphDefinition.link.compartment has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

      Control0..*
      This element is affected by the following invariants: ele-1
      Is Modifierfalse
      Invariantsele-1: All FHIR elements must have a @value or children (hasValue() | (children().count() > id.count()))
      ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists())
      2. Extension.id
      Definition

      unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

      Shortxml:id (or equivalent in JSON)
      Control0..1
      Typestring
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      XML FormatIn the XML format, this property is represented as an attribute.
      4. Extension.extension
      Definition

      An Extension

      ShortExtension
      Control3..*
      TypeExtension
      SlicingThis element introduces a set of slices on Extension.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators:
      • value @ url
      • 6. Extension.extension:use
        Slice Nameuse
        Definition

        R5: GraphDefinition.link.compartment.use (new:code)

        ShortR5: where | requires (new)
        Comments

        Element GraphDefinition.link.compartment.use is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.use has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.use has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). All conditional rules are evaluated; if they are true, then the rules are evaluated.

        Control1..1
        TypeExtension
        Requirements

        Element GraphDefinition.link.compartment.use is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.use has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.use has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

        8. Extension.extension:use.id
        Definition

        unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

        Shortxml:id (or equivalent in JSON)
        Control0..1
        Typestring
        Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
        XML FormatIn the XML format, this property is represented as an attribute.
        10. Extension.extension:use.extension
        Definition

        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.

        ShortAdditional Content defined by implementations
        Comments

        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.

        Control0..*
        TypeExtension
        Alternate Namesextensions, user content
        SlicingThis element introduces a set of slices on Extension.extension.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators:
        • value @ url
        • 12. Extension.extension:use.url
          Definition

          Source of the definition for the extension code - a logical name or a URL.

          Shortidentifies the meaning of the extension
          Comments

          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.

          Control1..1
          Typeuri
          Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
          XML FormatIn the XML format, this property is represented as an attribute.
          Fixed Valueuse
          14. Extension.extension:use.value[x]
          Definition

          Defines how the compartment rule is used - whether it it is used to test whether resources are subject to the rule, or whether it is a rule that must be followed.

          Shortwhere | requires
          Comments

          All conditional rules are evaluated; if they are true, then the rules are evaluated.

          Control1..1
          BindingThe codes SHALL be taken from R5GraphCompartmentUseForR3 (0.1.0)
          (required to http://hl7.org/fhir/uv/xver/ValueSet/R5-graph-compartment-use-for-R3|0.1.0)
          Typecode
          [x] NoteSeeChoice of Data Typesfor further information about how to use [x]
          Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
          16. Extension.extension:rule
          Slice Namerule
          Definition

          R5: GraphDefinition.link.compartment.rule (new:code)

          ShortR5: identical | matching | different | custom (new)
          Comments

          Element GraphDefinition.link.compartment.rule is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.rule has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.rule has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

          Control1..1
          TypeExtension
          Requirements

          Element GraphDefinition.link.compartment.rule is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.rule has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.rule has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

          18. Extension.extension:rule.id
          Definition

          unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

          Shortxml:id (or equivalent in JSON)
          Control0..1
          Typestring
          Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
          XML FormatIn the XML format, this property is represented as an attribute.
          20. Extension.extension:rule.extension
          Definition

          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.

          ShortAdditional Content defined by implementations
          Comments

          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.

          Control0..*
          TypeExtension
          Alternate Namesextensions, user content
          SlicingThis element introduces a set of slices on Extension.extension.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators:
          • value @ url
          • 22. Extension.extension:rule.url
            Definition

            Source of the definition for the extension code - a logical name or a URL.

            Shortidentifies the meaning of the extension
            Comments

            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.

            Control1..1
            Typeuri
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            XML FormatIn the XML format, this property is represented as an attribute.
            Fixed Valuerule
            24. Extension.extension:rule.value[x]
            Definition

            identical | matching | different | no-rule | custom.

            Shortidentical | matching | different | custom
            Control1..1
            BindingThe codes SHALL be taken from GraphCompartmentRule
            (required to http://hl7.org/fhir/ValueSet/graph-compartment-rule|3.0.2)
            Typecode
            [x] NoteSeeChoice of Data Typesfor further information about how to use [x]
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            26. Extension.extension:code
            Slice Namecode
            Definition

            R5: GraphDefinition.link.compartment.code (new:code)

            ShortR5: Patient | Encounter | RelatedPerson | Practitioner | Device | EpisodeOfCare (new)
            Comments

            Element GraphDefinition.link.compartment.code is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.code has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.code has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

            Control1..1
            TypeExtension
            Requirements

            Element GraphDefinition.link.compartment.code is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.code has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.code has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

            28. Extension.extension:code.id
            Definition

            unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

            Shortxml:id (or equivalent in JSON)
            Control0..1
            Typestring
            Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
            XML FormatIn the XML format, this property is represented as an attribute.
            30. Extension.extension:code.extension
            Definition

            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.

            ShortAdditional Content defined by implementations
            Comments

            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.

            Control0..*
            TypeExtension
            Alternate Namesextensions, user content
            SlicingThis element introduces a set of slices on Extension.extension.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators:
            • value @ url
            • 32. Extension.extension:code.url
              Definition

              Source of the definition for the extension code - a logical name or a URL.

              Shortidentifies the meaning of the extension
              Comments

              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.

              Control1..1
              Typeuri
              Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
              XML FormatIn the XML format, this property is represented as an attribute.
              Fixed Valuecode
              34. Extension.extension:code.value[x]
              Definition

              Identifies the compartment.

              ShortPatient | Encounter | RelatedPerson | Practitioner | Device | EpisodeOfCare
              Control1..1
              BindingThe codes SHALL be taken from R5CompartmentTypeForR3 (0.1.0)
              (required to http://hl7.org/fhir/uv/xver/ValueSet/R5-compartment-type-for-R3|0.1.0)
              Typecode
              [x] NoteSeeChoice of Data Typesfor further information about how to use [x]
              Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
              36. Extension.extension:expression
              Slice Nameexpression
              Definition

              R5: GraphDefinition.link.compartment.expression (new:string)

              ShortR5: Custom rule, as a FHIRPath expression (new)
              Comments

              Element GraphDefinition.link.compartment.expression is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.expression has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.expression has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

              Control0..1
              TypeExtension
              Requirements

              Element GraphDefinition.link.compartment.expression is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.expression has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.expression has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

              38. Extension.extension:expression.id
              Definition

              unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

              Shortxml:id (or equivalent in JSON)
              Control0..1
              Typestring
              Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
              XML FormatIn the XML format, this property is represented as an attribute.
              40. Extension.extension:expression.extension
              Definition

              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.

              ShortAdditional Content defined by implementations
              Comments

              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.

              Control0..*
              TypeExtension
              Alternate Namesextensions, user content
              SlicingThis element introduces a set of slices on Extension.extension.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators:
              • value @ url
              • 42. Extension.extension:expression.url
                Definition

                Source of the definition for the extension code - a logical name or a URL.

                Shortidentifies the meaning of the extension
                Comments

                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.

                Control1..1
                Typeuri
                Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
                XML FormatIn the XML format, this property is represented as an attribute.
                Fixed Valueexpression
                44. Extension.extension:expression.value[x]
                Definition

                Custom rule, as a FHIRPath expression.

                ShortCustom rule, as a FHIRPath expression
                Control0..1
                Typestring
                [x] NoteSeeChoice of Data Typesfor further information about how to use [x]
                Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
                46. Extension.extension:description
                Slice Namedescription
                Definition

                R5: GraphDefinition.link.compartment.description (new:string)

                ShortR5: Documentation for FHIRPath expression (new)
                Comments

                Element GraphDefinition.link.compartment.description is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.description has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.description has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

                Control0..1
                TypeExtension
                Requirements

                Element GraphDefinition.link.compartment.description is part of an existing definition because parent element GraphDefinition.link.compartment requires a cross-version extension. Element GraphDefinition.link.compartment.description has a context of GraphDefinition.link based on following the parent source element upwards and mapping to GraphDefinition. Element GraphDefinition.link.compartment.description has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).

                48. Extension.extension:description.id
                Definition

                unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

                Shortxml:id (or equivalent in JSON)
                Control0..1
                Typestring
                Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
                XML FormatIn the XML format, this property is represented as an attribute.
                50. Extension.extension:description.extension
                Definition

                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.

                ShortAdditional Content defined by implementations
                Comments

                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.

                Control0..*
                TypeExtension
                Alternate Namesextensions, user content
                SlicingThis element introduces a set of slices on Extension.extension.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators:
                • value @ url
                • 52. Extension.extension:description.url
                  Definition

                  Source of the definition for the extension code - a logical name or a URL.

                  Shortidentifies the meaning of the extension
                  Comments

                  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.

                  Control1..1
                  Typeuri
                  Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
                  XML FormatIn the XML format, this property is represented as an attribute.
                  Fixed Valuedescription
                  54. Extension.extension:description.value[x]
                  Definition

                  Documentation for FHIRPath expression.

                  ShortDocumentation for FHIRPath expression
                  Control0..1
                  Typestring
                  [x] NoteSeeChoice of Data Typesfor further information about how to use [x]
                  Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
                  56. Extension.url
                  Definition

                  Source of the definition for the extension code - a logical name or a URL.

                  Shortidentifies the meaning of the extension
                  Comments

                  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.

                  Control1..1
                  Typeuri
                  Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
                  XML FormatIn the XML format, this property is represented as an attribute.
                  Fixed Valuehttp://hl7.org/fhir/5.0/StructureDefinition/extension-GraphDefinition.link.compartment
                  58. Extension.value[x]
                  Definition

                  Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).

                  ShortValue of extension
                  Control0..0
                  TypeChoice of: base64Binary, boolean, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference, SampledData, Signature, Timing, Meta
                  Primitive ValueThis primitive element may be present, or absent, or replaced by an extension