<?xml version="1.0" encoding="UTF-8"?><CodeSystem xmlns="http://hl7.org/fhir"><id value="resource-aggregation-mode"/><meta><lastUpdated value="2026-03-16T22:59:53.445+00:00"/></meta><text><status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: CodeSystem resource-aggregation-mode</b></p><a name="resource-aggregation-mode"> </a><a name="hcresource-aggregation-mode"> </a><p>This case-sensitive code system <code>http://hl7.org/fhir/resource-aggregation-mode</code> defines the following codes in an undefined hierarchy:</p><table class="codes"><tr><td><b>Lvl</b></td><td style="white-space:nowrap"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td>1</td><td style="white-space:nowrap">contained<a name="resource-aggregation-mode-contained"> </a></td><td>Contained</td><td>The reference is a local reference to a contained resource.</td></tr><tr><td>1</td><td style="white-space:nowrap">referenced<a name="resource-aggregation-mode-referenced"> </a></td><td>Referenced</td><td>The reference to a resource that has to be resolved externally to the resource that includes the reference.</td></tr><tr><td>2</td><td style="white-space:nowrap">  bundled<a name="resource-aggregation-mode-bundled"> </a></td><td>Bundled</td><td>When the resource is in a Bundle, the resource the reference points to will be found in the same bundle as the resource that includes the reference.</td></tr></table></div></text><extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"><valueCode value="fhir"/></extension><extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"><valueCode value="normative"/></extension><url value="http://hl7.org/fhir/resource-aggregation-mode"/><identifier><system value="urn:ietf:rfc:3986"/><value value="urn:oid:2.16.840.1.113883.4.642.4.86"/></identifier><version value="6.0.0-ballot4"/><name value="AggregationMode"/><title value="AggregationMode"/><status value="active"/><experimental value="false"/><date value="2026-03-16T22:59:53+00:00"/><publisher value="HL7 International / FHIR Infrastructure"/><contact><telecom><system value="url"/><value value="http://hl7.org/fhir"/></telecom><telecom><system value="email"/><value value="fhir@lists.hl7.org"/></telecom></contact><contact><telecom><system value="url"/><value value="http://www.hl7.org/Special/committees/fiwg"/></telecom></contact><description value="How resource references can be aggregated."/><jurisdiction><coding><system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/><code value="001"/><display value="World"/></coding></jurisdiction><caseSensitive value="true"/><valueSet value="http://hl7.org/fhir/ValueSet/resource-aggregation-mode"/><content value="complete"/><concept><code value="contained"/><display value="Contained"/><definition value="The reference is a local reference to a contained resource."/></concept><concept><code value="referenced"/><display value="Referenced"/><definition value="The reference to a resource that has to be resolved externally to the resource that includes the reference."/><concept><code value="bundled"/><display value="Bundled"/><definition value="When the resource is in a Bundle, the resource the reference points to will be found in the same bundle as the resource that includes the reference."/></concept></concept></CodeSystem>