PACIO Advance Directive Interoperability Implementation Guide
1.0.0 - STU 1 United States of America flag

This page is part of the PACIO Advance Directive Information Implementation Guide (v1.0.0: STU 1) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

: ADI CapabilityStatement - XML Representation

Active as of 2023-11-10

Raw xml | Download



<CapabilityStatement xmlns="http://hl7.org/fhir">
  <id value="adi"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><h2 id="title">ADI CapabilityStatement</h2><ul><li>Implementation Guide Version: 0.0.1</li><li>FHIR Version: 4.0.1</li><li>Supported formats: xml, json</li><li>Published: 2023-11-09</li><li>Published by: HL7 Patient Empowerment Working Group (PE WG)</li></ul><p>This Section describes the expected capabilities of the PACIO Advance Directive Interoperability (ADI) Server actor which is responsible for providing responses to the queries submitted by the ADI Requestors.</p><p>There are two primary vehicles in which Advance Directive Information can be conveyed: DocumentReference and Bundle. Through a DocumentReference, the ADI may be encoded inside directly as content data or referred to through a content reference (pointing to the ADI included in a resource like Binary) or reference a Bundle with the type=document for FHIR encoded data.
The resources referred to by the Composition in the document bundle include Patient, Observation, Goal, ServiceRequest, Organization, RelatedPerson, Consent, List, and Provenance.</p><h3 id="behavior">FHIR RESTful Capabilities</h3><p>The ADI  Server <strong>SHALL</strong>:</p><ol><li>Support all profiles defined in this Implementation Guide.</li><li>Implement the RESTful behavior according to the FHIR specification.</li><li>Return the following response classes:
<ul><li>(Status 400): invalid parameter</li><li>(Status 401/4xx): unauthorized request</li><li>(Status 403): insufficient scope</li><li>(Status 404): unknown resource</li><li>(Status 410): deleted resource.</li></ul>
</li><li>Support json source formats for all ADI interactions.</li><li>Support the searchParameters on each profile  individually and in combination.</li></ol><p>The ADI  Server <strong>SHOULD</strong>:</p><ol><li>Support xml source formats for all ADI interactions.</li></ol><p id="security"><strong>Security:</strong></p><ol><li>See the <a href="security_privacy_consent.html">Guidance</a> section for requirements and recommendations.</li><li>A server <strong>SHALL</strong> reject any unauthorized requests by returning an HTTP 401 &quot;Unauthorized&quot;, HTTP 403 &quot;Forbidden&quot;, or HTTP 404 &quot;Not Found&quot; response code.</li></ol><h3 id="resource--details" class="no_toc">RESTful Capabilities by Resource/Profile:</h3><p><strong>Summary of Search Criteria</strong></p><table class="grid"><thead><tr><th>Resource Type</th><th>Supported Profiles</th><th>Supported Searches</th><th>Supported <code>_includes</code></th><th>Supported <code>_revincludes</code></th><th>Supported Operations</th></tr></thead><tbody><tr><td><a href="#bundle">Bundle</a></td><td style="white-space:nowrap;">

						</td><td>
							
							_id, composition, identifier, timestamp, type
							
							
							
						</td><td>
							
						</td><td>
              
            </td><td>
							
						</td></tr><tr><td><a href="#composition">Composition</a></td><td style="white-space:nowrap;"><a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-Composition-Header.html">ADI-Composition-Header</a>, 

						
						<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-PACPComposition.html">ADI-PACPComposition</a></td><td>
							
						</td><td>
							
						</td><td>
              
            </td><td>
							
						</td></tr><tr><td><a href="#consent">Consent</a></td><td style="white-space:nowrap;"><a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-HealthcareAgentAuthority.html">ADI-HealthcareAgentAuthority</a>, 

						
						<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-ConsentForHealthcareAgent.html">ADI-ConsentForHealthcareAgent</a></td><td>
							
						</td><td>
							
						</td><td>
              
            </td><td>
							
						</td></tr><tr><td><a href="#documentreference">DocumentReference</a></td><td style="white-space:nowrap;"><a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-DocumentReference.html">ADI-DocumentReference</a></td><td>
							
							_id, authenticator, author, category, contenttype, custodian, date, description, encounter, event, facility, format, identifier, language, location, patient, period, related, relatesto, relation, relationship, security-label, setting, status, subject, type
							
							
							
						</td><td>
							
						</td><td>
              
            </td><td>
							
						</td></tr><tr><td><a href="#goal">Goal</a></td><td style="white-space:nowrap;"><a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-PersonalGoal.html">ADI-PersonalGoal</a></td><td>
							
						</td><td>
							
						</td><td>
              
            </td><td>
							
						</td></tr><tr><td><a href="#list">List</a></td><td style="white-space:nowrap;"><a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-PersonalPrioritiesOrganizer.html">ADI-PersonalPrioritiesOrganizer</a></td><td>
							
						</td><td>
							
						</td><td>
              
            </td><td>
							
						</td></tr><tr><td><a href="#observation">Observation</a></td><td style="white-space:nowrap;"><a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-DocumentationObservation.html">ADI-DocumentationObservation</a>, 

						
						<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-PersonalInterventionPreference.html">ADI-PersonalInterventionPreference</a>, 

						
						<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-OrganDonationObservation.html">ADI-OrganDonationObservation</a>, 

						
						<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-AutopsyObservation.html">ADI-AutopsyObservation</a>, 

						
						<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-CareExperiencePreference.html">ADI-CareExperiencePreference</a></td><td>
							
						</td><td>
							
						</td><td>
              
            </td><td>
							
						</td></tr><tr><td><a href="#organization">Organization</a></td><td style="white-space:nowrap;">

						</td><td>
							
						</td><td>
							
						</td><td>
              
            </td><td>
							
						</td></tr><tr><td><a href="#patient">Patient</a></td><td style="white-space:nowrap;"><a href="https://www.hl7.org/fhir/us/core/StructureDefinition-us-core-patient.html">us-core-patient</a></td><td>
							
							_id, active, address, address-city, address-country, address-postalcode, address-state, address-use, birthdate, death-date, deceased, email, family, gender, general-practitioner, given, identifier, language, link, name, organization, phone, phonetic, telecom, race, ethnicity
							
							
							
						</td><td>
							
						</td><td>
              
            </td><td>
							
						</td></tr><tr><td><a href="#provenance">Provenance</a></td><td style="white-space:nowrap;"><a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-Provenance.html">ADI-Provenance</a></td><td>
							
						</td><td>
							
						</td><td>
              
            </td><td>
							
						</td></tr><tr><td><a href="#relatedperson">RelatedPerson</a></td><td style="white-space:nowrap;"><a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-HealthcareAgent.html">ADI-HealthcareAgent</a>, 

						
						<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-Guardian.html">ADI-Guardian</a></td><td>
							
						</td><td>
							
						</td><td>
              
            </td><td>
							
						</td></tr></tbody></table><br></br><h4 id="bundle" class="no_toc">Bundle</h4><p>Conformance Expectation:	<strong>SHALL</strong></p><p>Reference Policy: <code>resolves</code></p><p>Profile Interaction Summary:</p><ul><li><strong>SHALL</strong> support 
																							<code>create</code>, 
																							<code>read</code>, 
																							<code>update</code>.</li><li><strong>SHOULD</strong> support 
																							<code>search-type</code>, 
																							<code>vread</code>, 
																							<code>history-instance</code>.</li></ul><p>Fetch and Search Criteria:</p><ul><li>
					A Server <strong>SHALL</strong> be capable of returning a Bundle resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/Bundle/[id]</code>
				</li><br></br><li>
					A Server <strong>SHOULD</strong> be capable of returning a Bundle resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/Bundle/[id]/_history/vid</code>
				</li><br></br>  <!-- Only SHALL for include for now the capability statement does not create the primitive
				     extensios for this yet. -->  <!-- Only SHALLs for revinclude for now the capability statement does not create the primitive extensios for this yet --></ul><p>Search Parameter Summary:</p><table class="grid"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Example</th></tr></thead><tbody><tr><td><strong>SHOULD</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">_id</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/Bundle?_id=[id]</code></td></tr><tr><td><strong>SHOULD</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">composition</a></td><td>
							reference
						</td><td><code class="highlighter-rouge">GET [base]/Bundle?composition=[composition]</code></td></tr><tr><td><strong>SHOULD</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">identifier</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/Bundle?identifier=[system]|[code]</code></td></tr><tr><td><strong>SHOULD</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">timestamp</a></td><td>
							date
						</td><td><code class="highlighter-rouge">GET [base]/Bundle?timestamp=[timestamp]</code></td></tr><tr><td><strong>SHOULD</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">type</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/Bundle?type=[system]|[code]</code></td></tr></tbody></table><hr></hr><h4 id="composition" class="no_toc">Composition</h4><p>Conformance Expectation:	<strong>MAY</strong></p><p>Supported Profiles:
				
											<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-Composition-Header.html">ADI-Composition-Header</a>, 
				
											<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-PACPComposition.html">ADI-PACPComposition</a>
				
				</p><p>Reference Policy: <code>resolves</code></p><p>Profile Interaction Summary:</p><ul><li><strong>SHALL</strong> support 
																							<code>create</code>, 
																							<code>search-type</code>, 
																							<code>read</code>, 
																							<code>update</code>.</li><li><strong>SHOULD</strong> support 
																							<code>vread</code>, 
																							<code>history-instance</code>.</li></ul><p>Fetch and Search Criteria:</p><ul><li>
					A Server <strong>MAY</strong> be capable of returning a Composition resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/Composition/[id]</code>
				</li><br></br><li>
					A Server <strong>SHOULD</strong> be capable of returning a Composition resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/Composition/[id]/_history/vid</code>
				</li><br></br>  <!-- Only SHALL for include for now the capability statement does not create the primitive
				     extensios for this yet. -->  <!-- Only SHALLs for revinclude for now the capability statement does not create the primitive extensios for this yet --></ul><hr></hr><h4 id="consent" class="no_toc">Consent</h4><p>Conformance Expectation:	<strong>MAY</strong></p><p>Supported Profiles:
				
											<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-HealthcareAgentAuthority.html">ADI-HealthcareAgentAuthority</a>, 
				
											<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-ConsentForHealthcareAgent.html">ADI-ConsentForHealthcareAgent</a>
				
				</p><p>Reference Policy: <code>resolves</code></p><p>Profile Interaction Summary:</p><ul><li><strong>MAY</strong> support 
																							<code>create</code>, 
																							<code>search-type</code>, 
																							<code>read</code>, 
																							<code>update</code>.</li><li><strong>SHOULD</strong> support 
																							<code>vread</code>, 
																							<code>history-instance</code>.</li></ul><p>Fetch and Search Criteria:</p><ul><li>
					A Server <strong>MAY</strong> be capable of returning a Consent resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/Consent/[id]</code>
				</li><br></br><li>
					A Server <strong>SHOULD</strong> be capable of returning a Consent resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/Consent/[id]/_history/vid</code>
				</li><br></br>  <!-- Only SHALL for include for now the capability statement does not create the primitive
				     extensios for this yet. -->  <!-- Only SHALLs for revinclude for now the capability statement does not create the primitive extensios for this yet --></ul><hr></hr><h4 id="documentreference" class="no_toc">DocumentReference</h4><p>Conformance Expectation:	<strong>SHALL</strong></p><p>Supported Profiles:
				
											<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-DocumentReference.html">ADI-DocumentReference</a>
				
				</p><p>Reference Policy: <code>resolves</code></p><p>Profile Interaction Summary:</p><ul><li><strong>SHALL</strong> support 
																							<code>create</code>, 
																							<code>search-type</code>, 
																							<code>read</code>, 
																							<code>update</code>.</li><li><strong>SHOULD</strong> support 
																							<code>vread</code>, 
																							<code>history-instance</code>.</li></ul><p>Fetch and Search Criteria:</p><ul><li>
					A Server <strong>SHALL</strong> be capable of returning a DocumentReference resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/DocumentReference/[id]</code>
				</li><br></br><li>
					A Server <strong>SHOULD</strong> be capable of returning a DocumentReference resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/DocumentReference/[id]/_history/vid</code>
				</li><br></br>  <!-- Only SHALL for include for now the capability statement does not create the primitive
				     extensios for this yet. -->  <!-- Only SHALLs for revinclude for now the capability statement does not create the primitive extensios for this yet --></ul><p>Search Parameter Summary:</p><table class="grid"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Example</th></tr></thead><tbody><tr><td><strong>SHALL</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">_id</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?_id=[id]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">authenticator</a></td><td>
							reference
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?authenticator=[authenticator]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">author</a></td><td>
							reference
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?author=[author]</code></td></tr><tr><td><strong>SHOULD</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">category</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?category=[system]|[code]</code></td></tr><tr><td><strong>SHOULD</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">contenttype</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?contenttype=[system]|[code]</code></td></tr><tr><td><strong>SHALL</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">custodian</a></td><td>
							reference
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?custodian=[custodian]</code></td></tr><tr><td><strong>SHALL</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">date</a></td><td>
							date
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?date=[date]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">description</a></td><td>
							string
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?description=[description]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">encounter</a></td><td>
							reference
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?encounter=[encounter]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">event</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?event=[system]|[code]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">facility</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?facility=[system]|[code]</code></td></tr><tr><td><strong>SHOULD</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">format</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?format=[system]|[code]</code></td></tr><tr><td><strong>SHALL</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">identifier</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?identifier=[system]|[code]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">language</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?language=[system]|[code]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">location</a></td><td>
							uri
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?location=[uri]</code></td></tr><tr><td><strong>SHALL</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">patient</a></td><td>
							reference
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?patient=[patient]</code></td></tr><tr><td><strong>SHALL</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">period</a></td><td>
							date
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?period=[period]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">related</a></td><td>
							reference
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?related=[related]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">relatesto</a></td><td>
							reference
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?relatesto=[relatesto]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">relation</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?relation=[system]|[code]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">relationship</a></td><td>
							composite
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?relationship=[code]&amp;[value]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">security-label</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?security-label=[system]|[code]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">setting</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?setting=[system]|[code]</code></td></tr><tr><td><strong>SHALL</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">status</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?status=[status]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">subject</a></td><td>
							reference
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?subject=[subject]</code></td></tr><tr><td><strong>SHALL</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">type</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/DocumentReference?type=[system]|[code]</code></td></tr></tbody></table><hr></hr><h4 id="goal" class="no_toc">Goal</h4><p>Conformance Expectation:	<strong>MAY</strong></p><p>Supported Profiles:
				
											<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-PersonalGoal.html">ADI-PersonalGoal</a>
				
				</p><p>Reference Policy: <code>resolves</code></p><p>Profile Interaction Summary:</p><ul><li><strong>MAY</strong> support 
																							<code>create</code>, 
																							<code>search-type</code>, 
																							<code>read</code>, 
																							<code>update</code>.</li><li><strong>SHOULD</strong> support 
																							<code>vread</code>, 
																							<code>history-instance</code>.</li></ul><p>Fetch and Search Criteria:</p><ul><li>
					A Server <strong>MAY</strong> be capable of returning a Goal resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/Goal/[id]</code>
				</li><br></br><li>
					A Server <strong>SHOULD</strong> be capable of returning a Goal resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/Goal/[id]/_history/vid</code>
				</li><br></br>  <!-- Only SHALL for include for now the capability statement does not create the primitive
				     extensios for this yet. -->  <!-- Only SHALLs for revinclude for now the capability statement does not create the primitive extensios for this yet --></ul><hr></hr><h4 id="list" class="no_toc">List</h4><p>Conformance Expectation:	<strong>MAY</strong></p><p>Supported Profiles:
				
											<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-PersonalPrioritiesOrganizer.html">ADI-PersonalPrioritiesOrganizer</a>
				
				</p><p>Reference Policy: <code>resolves</code></p><p>Profile Interaction Summary:</p><ul><li><strong>MAY</strong> support 
																							<code>create</code>, 
																							<code>search-type</code>, 
																							<code>read</code>, 
																							<code>update</code>.</li><li><strong>SHOULD</strong> support 
																							<code>vread</code>, 
																							<code>history-instance</code>.</li></ul><p>Fetch and Search Criteria:</p><ul><li>
					A Server <strong>MAY</strong> be capable of returning a List resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/List/[id]</code>
				</li><br></br><li>
					A Server <strong>SHOULD</strong> be capable of returning a List resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/List/[id]/_history/vid</code>
				</li><br></br>  <!-- Only SHALL for include for now the capability statement does not create the primitive
				     extensios for this yet. -->  <!-- Only SHALLs for revinclude for now the capability statement does not create the primitive extensios for this yet --></ul><hr></hr><h4 id="observation" class="no_toc">Observation</h4><p>Conformance Expectation:	<strong>MAY</strong></p><p>Supported Profiles:
				
											<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-DocumentationObservation.html">ADI-DocumentationObservation</a>, 
				
											<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-PersonalInterventionPreference.html">ADI-PersonalInterventionPreference</a>, 
				
											<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-OrganDonationObservation.html">ADI-OrganDonationObservation</a>, 
				
											<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-AutopsyObservation.html">ADI-AutopsyObservation</a>, 
				
											<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-CareExperiencePreference.html">ADI-CareExperiencePreference</a>
				
				</p><p>Reference Policy: <code>resolves</code></p><p>Profile Interaction Summary:</p><ul><li><strong>MAY</strong> support 
																							<code>create</code>, 
																							<code>search-type</code>, 
																							<code>read</code>, 
																							<code>update</code>.</li><li><strong>SHOULD</strong> support 
																							<code>vread</code>, 
																							<code>history-instance</code>.</li></ul><p>Fetch and Search Criteria:</p><ul><li>
					A Server <strong>MAY</strong> be capable of returning a Observation resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/Observation/[id]</code>
				</li><br></br><li>
					A Server <strong>SHOULD</strong> be capable of returning a Observation resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/Observation/[id]/_history/vid</code>
				</li><br></br>  <!-- Only SHALL for include for now the capability statement does not create the primitive
				     extensios for this yet. -->  <!-- Only SHALLs for revinclude for now the capability statement does not create the primitive extensios for this yet --></ul><hr></hr><h4 id="organization" class="no_toc">Organization</h4><p>Conformance Expectation:	<strong>SHALL</strong></p><p>Reference Policy: <code>resolves</code></p><p>Profile Interaction Summary:</p><ul><li><strong>SHALL</strong> support 
																							<code>create</code>, 
																							<code>search-type</code>, 
																							<code>read</code>, 
																							<code>update</code>.</li><li><strong>SHOULD</strong> support 
																							<code>vread</code>, 
																							<code>history-instance</code>.</li></ul><p>Fetch and Search Criteria:</p><ul><li>
					A Server <strong>SHALL</strong> be capable of returning a Organization resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/Organization/[id]</code>
				</li><br></br><li>
					A Server <strong>SHOULD</strong> be capable of returning a Organization resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/Organization/[id]/_history/vid</code>
				</li><br></br>  <!-- Only SHALL for include for now the capability statement does not create the primitive
				     extensios for this yet. -->  <!-- Only SHALLs for revinclude for now the capability statement does not create the primitive extensios for this yet --></ul><hr></hr><h4 id="patient" class="no_toc">Patient</h4><p>Conformance Expectation:	<strong>MAY</strong></p><p>Supported Profiles:
				
											<a href="https://www.hl7.org/fhir/us/core/StructureDefinition-us-core-patient.html">us-core-patient</a>
				
				</p><p>Reference Policy: <code>resolves</code></p><p>Profile Interaction Summary:</p><ul><li><strong>SHALL</strong> support 
																							<code>create</code>, 
																							<code>search-type</code>, 
																							<code>read</code>, 
																							<code>update</code>.</li><li><strong>SHOULD</strong> support 
																							<code>vread</code>, 
																							<code>history-instance</code>.</li></ul><p>Fetch and Search Criteria:</p><ul><li>
					A Server <strong>SHALL</strong> be capable of returning a Patient resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/Patient/[id]</code>
				</li><br></br><li>
					A Server <strong>SHOULD</strong> be capable of returning a Patient resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/Patient/[id]/_history/vid</code>
				</li><br></br>  <!-- Only SHALL for include for now the capability statement does not create the primitive
				     extensios for this yet. -->  <!-- Only SHALLs for revinclude for now the capability statement does not create the primitive extensios for this yet --></ul><p>Search Parameter Summary:</p><table class="grid"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Example</th></tr></thead><tbody><tr><td><strong>SHALL</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">_id</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/Patient?_id=[id]</code></td></tr><tr><td><strong>SHOULD</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">active</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/Patient?active=[system]|[code]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">address</a></td><td>
							string
						</td><td><code class="highlighter-rouge">GET [base]/Patient?address=[address]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">address-city</a></td><td>
							string
						</td><td><code class="highlighter-rouge">GET [base]/Patient?address-city=[address-city]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">address-country</a></td><td>
							string
						</td><td><code class="highlighter-rouge">GET [base]/Patient?address-country=[address-country]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">address-postalcode</a></td><td>
							string
						</td><td><code class="highlighter-rouge">GET [base]/Patient?address-postalcode=[address-postalcode]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">address-state</a></td><td>
							string
						</td><td><code class="highlighter-rouge">GET [base]/Patient?address-state=[address-state]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">address-use</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/Patient?address-use=[system]|[code]</code></td></tr><tr><td><strong>SHALL</strong></td><td><a href="https://www.hl7.org/fhir/us/core/SearchParameter-us-core-patient-birthdate.html">birthdate</a></td><td>
							date
						</td><td><code class="highlighter-rouge">GET [base]/Patient?birthdate=[birthdate]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">death-date</a></td><td>
							date
						</td><td><code class="highlighter-rouge">GET [base]/Patient?death-date=[death-date]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">deceased</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/Patient?deceased=[system]|[code]</code></td></tr><tr><td><strong>SHOULD</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">email</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/Patient?email=[system]|[code]</code></td></tr><tr><td><strong>SHALL</strong></td><td><a href="https://www.hl7.org/fhir/us/core/SearchParameter-us-core-patient-family.html">family</a></td><td>
							string
						</td><td><code class="highlighter-rouge">GET [base]/Patient?family=[family]</code></td></tr><tr><td><strong>SHALL</strong></td><td><a href="https://www.hl7.org/fhir/us/core/SearchParameter-us-core-patient-given.html">gender</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/Patient?gender=[system]|[code]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">general-practitioner</a></td><td>
							reference
						</td><td><code class="highlighter-rouge">GET [base]/Patient?general-practitioner=[general-practitioner]</code></td></tr><tr><td><strong>SHALL</strong></td><td><a href="https://www.hl7.org/fhir/us/core/SearchParameter-us-core-patient-given.html">given</a></td><td>
							string
						</td><td><code class="highlighter-rouge">GET [base]/Patient?given=[given]</code></td></tr><tr><td><strong>SHALL</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">identifier</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/Patient?identifier=[system]|[code]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">language</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/Patient?language=[system]|[code]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">link</a></td><td>
							reference
						</td><td><code class="highlighter-rouge">GET [base]/Patient?link=[link]</code></td></tr><tr><td><strong>SHALL</strong></td><td><a href="https://www.hl7.org/fhir/us/core/SearchParameter-us-core-patient-name.html">name</a></td><td>
							string
						</td><td><code class="highlighter-rouge">GET [base]/Patient?name=[name]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">organization</a></td><td>
							reference
						</td><td><code class="highlighter-rouge">GET [base]/Patient?organization=[organization]</code></td></tr><tr><td><strong>SHOULD</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">phone</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/Patient?phone=[system]|[code]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">phonetic</a></td><td>
							string
						</td><td><code class="highlighter-rouge">GET [base]/Patient?phonetic=[phonetic]</code></td></tr><tr><td><strong>SHOULD</strong></td><td><a href="http://hl7.org/fhir/R4/search.html">telecom</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/Patient?telecom=[system]|[code]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="https://www.hl7.org/fhir/us/core/SearchParameter-us-core-race.html">race</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/Patient?race=[system]|[code]</code></td></tr><tr><td><strong>MAY</strong></td><td><a href="https://www.hl7.org/fhir/us/core/SearchParameter-us-core-ethnicity.html">ethnicity</a></td><td>
							token
						</td><td><code class="highlighter-rouge">GET [base]/Patient?ethnicity=[system]|[code]</code></td></tr></tbody></table><hr></hr><h4 id="provenance" class="no_toc">Provenance</h4><p>Conformance Expectation:	<strong>MAY</strong></p><p>Supported Profiles:
				
											<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-Provenance.html">ADI-Provenance</a>
				
				</p><p>Reference Policy: <code>resolves</code></p><p>Profile Interaction Summary:</p><ul><li><strong>MAY</strong> support 
																							<code>create</code>, 
																							<code>search-type</code>, 
																							<code>read</code>, 
																							<code>update</code>.</li><li><strong>SHOULD</strong> support 
																							<code>vread</code>, 
																							<code>history-instance</code>.</li></ul><p>Fetch and Search Criteria:</p><ul><li>
					A Server <strong>MAY</strong> be capable of returning a Provenance resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/Provenance/[id]</code>
				</li><br></br><li>
					A Server <strong>SHOULD</strong> be capable of returning a Provenance resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/Provenance/[id]/_history/vid</code>
				</li><br></br>  <!-- Only SHALL for include for now the capability statement does not create the primitive
				     extensios for this yet. -->  <!-- Only SHALLs for revinclude for now the capability statement does not create the primitive extensios for this yet --></ul><hr></hr><h4 id="relatedperson" class="no_toc">RelatedPerson</h4><p>Conformance Expectation:	<strong>MAY</strong></p><p>Supported Profiles:
				
											<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-HealthcareAgent.html">ADI-HealthcareAgent</a>, 
				
											<a href="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-Guardian.html">ADI-Guardian</a>
				
				</p><p>Reference Policy: <code>resolves</code></p><p>Profile Interaction Summary:</p><ul><li><strong>MAY</strong> support 
																							<code>create</code>, 
																							<code>search-type</code>, 
																							<code>read</code>, 
																							<code>update</code>.</li><li><strong>SHOULD</strong> support 
																							<code>vread</code>, 
																							<code>history-instance</code>.</li></ul><p>Fetch and Search Criteria:</p><ul><li>
					A Server <strong>MAY</strong> be capable of returning a RelatedPerson resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/RelatedPerson/[id]</code>
				</li><br></br><li>
					A Server <strong>SHOULD</strong> be capable of returning a RelatedPerson resource using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/RelatedPerson/[id]/_history/vid</code>
				</li><br></br>  <!-- Only SHALL for include for now the capability statement does not create the primitive
				     extensions for this yet. -->  <!-- Only SHALLs for revinclude for now the capability statement does not create the primitive extensios for this yet --></ul><hr></hr><br></br><h4 id="matchpatient" class="no_toc">$match</h4><p>The <a href="https://hl7.org/fhir/R4/patient-operation-match.html">$match</a> operation is used to manage patient identification in a context where multiple patient databases exist.To ask an MPI to match a patient, clients use the '$match' operation, which accepts a patient resource which may be only partially complete. The data provided is interpreted as an MPI input and processed by an algorithm of some kind that uses the data to determine the most appropriate matches in the patient set.</p><p>Conformance Expectation:	<strong>SHOULD</strong></p><p>Documentation:</p><ul><li>
					A Server <strong>SHOULD</strong> be capable of returning a unique patient match using:
					<br></br>
						<code class="highlighter-rouge">GET [base]/Patient/$match</code>
				</li><br></br>  <!-- Only SHALL for include for now the capability statement does not create the primitive
				     extensions for this yet. -->  <!-- Only SHALLs for revinclude for now the capability statement does not create the primitive extensios for this yet --></ul><hr></hr><br></br></div>
  </text>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="pe"/>
  </extension>
  <url value="http://hl7.org/fhir/us/pacio-adi/CapabilityStatement/adi"/>
  <version value="1.0.0"/>
  <name value="PacioAdiCapabilityStatement"/>
  <title value="ADI CapabilityStatement"/>
  <status value="active"/>
  <experimental value="false"/>
  <date value="2023-11-10"/>
  <publisher value="HL7 International / Patient Empowerment"/>
  <contact>
    <name value="HL7 International / Patient Empowerment"/>
    <telecom>
      <system value="url"/>
      <value
             value="http://www.hl7.org/Special/committees/patientempowerment"/>
    </telecom>
    <telecom>
      <system value="email"/>
      <value value="patients@lists.HL7.org"/>
    </telecom>
  </contact>
  <description
               value="This Section describes the expected capabilities of the PACIO Advance Directive Interoperability (ADI) Server actor which is responsible for providing responses to the queries submitted by the ADI Requestors. 

There are two primary vehicles in which Advance Directive Information can be conveyed: DocumentReference and Bundle. Through a DocumentReference, the ADI may be encoded inside directly as content data or referred to through a content reference (pointing to the ADI included in a resource like Binary) or reference a Bundle with the type=document for FHIR encoded data.
The resources referred to by the Composition in the document bundle include Patient, Observation,Goal, ServiceRequest, Organization, RelatedPerson, Consent, List, and Provenance."/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="US"/>
    </coding>
  </jurisdiction>
  <kind value="requirements"/>
  <fhirVersion value="4.0.1"/>
  <format value="xml"/>
  <format value="json"/>
  <patchFormat value="application/json-patch+json"/>
  <implementationGuide
                       value="https://build.fhir.org/ig/HL7/pacio-adi/ImplementationGuide-hl7.fhir.us.pacio-adi"/>
  <rest>
    <mode value="server"/>
    <documentation
                   value="The ADI  Server **SHALL**:

1. Support all profiles defined in this Implementation Guide.
2.  Implement the RESTful behavior according to the FHIR specification.
3. Return the following response classes:
   - (Status 400): invalid parameter
   - (Status 401/4xx): unauthorized request
   - (Status 403): insufficient scope
   - (Status 404): unknown resource
   - (Status 410): deleted resource.
4. Support json source formats for all ADI interactions.
5. Support the searchParameters on each profile  individually and in combination.

The ADI  Server **SHOULD**:

1. Support xml source formats for all ADI interactions."/>
    <security>
      <description
                   value="1. See the [Guidance](security_privacy_consent.html) section for requirements and recommendations.
1. A server **SHALL** reject any unauthorized requests by returning an HTTP 401 &quot;Unauthorized&quot;, HTTP 403 &quot;Forbidden&quot;, or HTTP 404 &quot;Not Found&quot; response code."/>
    </security>
    <resource>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="SHALL"/>
      </extension>
      <type value="Bundle"/>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="create"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="search-type"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="read"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="vread"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="update"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="history-instance"/>
      </interaction>
      <referencePolicy value="resolves"/>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <name value="_id"/>
        <definition value="http://hl7.org/fhir/SearchParameter/Resource-id"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <name value="composition"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/Bundle-composition"/>
        <type value="reference"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <name value="identifier"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/Bundle-identifier"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <name value="timestamp"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/Bundle-timestamp"/>
        <type value="date"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <name value="type"/>
        <definition value="http://hl7.org/fhir/SearchParameter/Bundle-type"/>
        <type value="token"/>
      </searchParam>
    </resource>
    <resource>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY"/>
      </extension>
      <type value="Composition"/>
      <supportedProfile
                        value="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-Composition-Header.html"/>
      <supportedProfile
                        value="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-PACPComposition.html"/>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="create"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="search-type"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="read"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="vread"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="update"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="history-instance"/>
      </interaction>
      <referencePolicy value="resolves"/>
    </resource>
    <resource>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="SHOULD"/>
      </extension>
      <type value="Consent"/>
      <supportedProfile
                        value="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-HealthcareAgentAuthority.html"/>
      <supportedProfile
                        value="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-ConsentForHealthcareAgent.html"/>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="create"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="search-type"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="read"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="vread"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="update"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="history-instance"/>
      </interaction>
      <referencePolicy value="resolves"/>
    </resource>
    <resource>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="SHALL"/>
      </extension>
      <type value="DocumentReference"/>
      <supportedProfile
                        value="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-DocumentReference.html"/>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="create"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="search-type"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="read"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="vread"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="update"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="history-instance"/>
      </interaction>
      <referencePolicy value="resolves"/>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <name value="_id"/>
        <definition value="http://hl7.org/fhir/SearchParameter/Resource-id"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="authenticator"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-authenticator"/>
        <type value="reference"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="author"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-author"/>
        <type value="reference"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <name value="category"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-category"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <name value="contenttype"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-contenttype"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <name value="custodian"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-custodian"/>
        <type value="reference"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <name value="date"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-date"/>
        <type value="date"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="description"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-description"/>
        <type value="string"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="encounter"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/clinical-encounter"/>
        <type value="reference"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="event"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-event"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="facility"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-facility"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <name value="format"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-format"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <name value="identifier"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/clinical-identifier"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="language"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-language"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="location"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-location"/>
        <type value="uri"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <name value="patient"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/clinical-patient"/>
        <type value="reference"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <name value="period"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-period"/>
        <type value="date"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="related"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-related"/>
        <type value="reference"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="relatesto"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-relatesto"/>
        <type value="reference"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="relation"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-relation"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="security-label"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-security-label"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="setting"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-setting"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <name value="status"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-status"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="subject"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/DocumentReference-subject"/>
        <type value="reference"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <name value="type"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/clinical-type"/>
        <type value="token"/>
      </searchParam>
    </resource>
    <resource>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY"/>
      </extension>
      <type value="Goal"/>
      <supportedProfile
                        value="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-PersonalGoal.html"/>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="create"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="search-type"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="read"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="vread"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="update"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="history-instance"/>
      </interaction>
      <referencePolicy value="resolves"/>
    </resource>
    <resource>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY"/>
      </extension>
      <type value="List"/>
      <supportedProfile
                        value="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-PersonalPrioritiesOrganizer.html"/>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="create"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="search-type"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="read"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="vread"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="update"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="history-instance"/>
      </interaction>
      <referencePolicy value="resolves"/>
    </resource>
    <resource>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY"/>
      </extension>
      <type value="Observation"/>
      <supportedProfile
                        value="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-DocumentationObservation.html"/>
      <supportedProfile
                        value="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-PersonalInterventionPreference.html"/>
      <supportedProfile
                        value="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-OrganDonationObservation.html"/>
      <supportedProfile
                        value="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-AutopsyObservation.html"/>
      <supportedProfile
                        value="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-CareExperiencePreference.html"/>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="create"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="search-type"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="read"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="vread"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="update"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="history-instance"/>
      </interaction>
      <referencePolicy value="resolves"/>
    </resource>
    <resource>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="SHALL"/>
      </extension>
      <type value="Organization"/>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="create"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="search-type"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="read"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="vread"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="update"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="history-instance"/>
      </interaction>
      <referencePolicy value="resolves"/>
    </resource>
    <resource>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY"/>
      </extension>
      <type value="Patient"/>
      <supportedProfile
                        value="https://www.hl7.org/fhir/us/core/StructureDefinition-us-core-patient.html"/>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="create"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="search-type"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="read"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="vread"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="update"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="history-instance"/>
      </interaction>
      <referencePolicy value="resolves"/>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <name value="_id"/>
        <definition
                    value="http://hl7.org/fhir/us/core/SearchParameter/us-core-patient-id"/>
        <type value="token"/>
        <documentation
                       value="https://www.hl7.org/fhir/us/core/SearchParameter-us-core-patient-id.html"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <name value="active"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/Patient-active"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="address"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/individual-address"/>
        <type value="string"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="address-city"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/individual-address-city"/>
        <type value="string"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="address-country"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/individual-address-country"/>
        <type value="string"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="address-postalcode"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/individual-address-postalcode"/>
        <type value="string"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="address-state"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/individual-address-state"/>
        <type value="string"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="address-use"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/individual-address-use"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <name value="birthdate"/>
        <definition
                    value="https://build.fhir.org/ig/HL7/pacio-adi/SearchParameter/patient-birthdate"/>
        <type value="date"/>
        <documentation
                       value="https://www.hl7.org/fhir/us/core/SearchParameter-us-core-patient-birthdate.html"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="death-date"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/Patient-death-date"/>
        <type value="date"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="deceased"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/Patient-deceased"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <name value="email"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/individual-email"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <name value="family"/>
        <definition
                    value="http://hl7.org/fhir/us/core/SearchParameter/us-core-patient-family"/>
        <type value="string"/>
        <documentation
                       value="https://www.hl7.org/fhir/us/core/SearchParameter-us-core-patient-family.html"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <name value="gender"/>
        <definition
                    value="http://hl7.org/fhir/us/core/SearchParameter/us-core-patient-gender"/>
        <type value="token"/>
        <documentation
                       value="https://www.hl7.org/fhir/us/core/SearchParameter-us-core-patient-given.html"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="general-practitioner"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/Patient-general-practitioner"/>
        <type value="reference"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <name value="given"/>
        <definition
                    value="http://hl7.org/fhir/us/core/SearchParameter/us-core-patient-given"/>
        <type value="string"/>
        <documentation
                       value="https://www.hl7.org/fhir/us/core/SearchParameter-us-core-patient-given.html"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <name value="identifier"/>
        <definition
                    value="http://hl7.org/fhir/us/core/SearchParameter/us-core-patient-identifier"/>
        <type value="token"/>
        <documentation
                       value="https://www.hl7.org/fhir/us/core/SearchParameter-us-core-patient-identifier.html"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="language"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/Patient-language"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="link"/>
        <definition value="http://hl7.org/fhir/SearchParameter/Patient-link"/>
        <type value="reference"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <name value="name"/>
        <definition
                    value="http://hl7.org/fhir/us/core/SearchParameter/us-core-patient-name"/>
        <type value="string"/>
        <documentation
                       value="https://www.hl7.org/fhir/us/core/SearchParameter-us-core-patient-name.html"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="organization"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/Patient-organization"/>
        <type value="reference"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <name value="phone"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/individual-phone"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="phonetic"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/individual-phonetic"/>
        <type value="string"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <name value="telecom"/>
        <definition
                    value="http://hl7.org/fhir/SearchParameter/individual-telecom"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="race"/>
        <definition
                    value="http://hl7.org/fhir/us/core/SearchParameter/us-core-race"/>
        <type value="token"/>
        <documentation
                       value="https://www.hl7.org/fhir/us/core/SearchParameter-us-core-race.html"/>
      </searchParam>
      <searchParam>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <name value="ethnicity"/>
        <definition
                    value="http://hl7.org/fhir/us/core/SearchParameter/us-core-ethnicity"/>
        <type value="token"/>
        <documentation
                       value="https://www.hl7.org/fhir/us/core/SearchParameter-us-core-ethnicity.html"/>
      </searchParam>
    </resource>
    <resource>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY"/>
      </extension>
      <type value="Provenance"/>
      <supportedProfile
                        value="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-Provenance.html"/>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="create"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="search-type"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="read"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="vread"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="update"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="history-instance"/>
      </interaction>
      <referencePolicy value="resolves"/>
    </resource>
    <resource>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY"/>
      </extension>
      <type value="RelatedPerson"/>
      <supportedProfile
                        value="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-HealthcareAgent.html"/>
      <supportedProfile
                        value="https://hl7.org/fhir/us/pacio-adi/StructureDefinition-ADI-Guardian.html"/>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="create"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="search-type"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="read"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="vread"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="update"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="history-instance"/>
      </interaction>
      <referencePolicy value="resolves"/>
    </resource>
    <resource>
      <type value="OperationDefinition"/>
      <profile value="https://hl7.org/fhir/R4/patient-operation-match.html"/>
      <operation>
        <name value="$match"/>
        <definition
                    value="https://hl7.org/fhir/R4/patient-operation-match.html"/>
        <documentation
                       value="$match is a service used to manage patient identification in a context where multiple patient databases exist.To ask an MPI to match a patient, clients use the '$match' operation, which accepts a patient resource which may be only partially complete. The data provided is interpreted as an MPI input and processed by an algorithm of some kind that uses the data to determine the most appropriate matches in the patient set."/>
      </operation>
    </resource>
  </rest>
</CapabilityStatement>