<?xml version="1.0" encoding="UTF-8"?>

<CapabilityStatement xmlns="http://hl7.org/fhir">
  <id value="pca-subscriber-agent"/>
  <text>
    <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><h2 id="title">PCA Subscriber Agent Capability Statement</h2><ul><li>Implementation Guide Version: 2.4.2</li><li>FHIR Version: 4.0.1</li><li>Supported Formats: <code>application/fhir+json</code>, <code>application/fhir+xml</code></li><li>Supported Patch Formats: </li><li>Published on: Tue Mar 19 16:16:25 GMT+10:00 2024</li><li>Published by: Australian Digital Health Agency</li></ul><blockquote class="impl-note"><p><strong>Note to Implementers: FHIR Capabilities</strong></p><p>Any FHIR capability may be 'allowed' by the system unless explicitly marked as &quot;SHALL NOT&quot;. A few items are marked as MAY in the Implementation Guide to highlight their potential relevance to the use case.</p></blockquote><h2 id="rest">FHIR RESTful Capabilities</h2><div class="panel panel-default"><div class="panel-heading"><h3 id="mode1" class="panel-title">Mode: <code>server</code></h3></div><div class="panel-body"><div><p>A PCA Subscriber Agent manages the service offerings for one subscriber organisation (also referred to as a 'business partner' in the PCA portal).</p>
<p>The PCA service instantiates one PCA Subscriber Agent for each participating subscriber organisation. That is, each subscriber organisation interacts with a PCA Subscriber Agent located at a <em>subscriber agent base url</em> that is unique to that organisation.</p>
<p>The <em>subscriber agent base URL</em> for a particular organisation is available via the PCA portal on the 'Organisation Details' screen of the subscriber organisation.</p>
<p>A service offering is made available to a subscriber organisation when a publisher authorises publication of a resource to one or more of the subscriber organisation's partner services.</p>
<p><strong>Publication process</strong></p>
<p>A PCA Publisher Agent creates the <code>Location</code>, <code>HealthcareService</code> and <code>PractitionerRole</code> resources (that are associated with existing <code>Organization</code> and <code>Practitioner</code> resources) that represent their service offerings.  These resources are made available to a subscriber organisation when a publisher authorises publication of a <code>HealthcareService</code> or <code>PractitionerRole</code> resource to one or more of the subscriber organisation's partner services.</p>
<p>The authority to publish is represented using <code>Contract</code> resources which are also implemented by the PCA Publisher Agent (see the <a href="CapabilityStatement-pca-publisher-agent.html#contract">Contract resource endpoint</a>).</p>
<p><strong>Identifier disclosure rules</strong></p>
<p>The PCA service enforces certain business rules regarding the disclosure of <em>Identifiers</em> (including subscriber-issued identifiers) in the resources that it makes available to subscribers.</p>
<p>The result of these rules may be that a copy of  a resource received by one subscriber may contain <em>Identifiers</em> that are not included in the copy of the same resource that is received by a different subscriber.</p>
<p>In the case of HPI-Is these <em>identifier disclosure rules</em> ensure that relevant legal requirements are complied with.</p>
<p>Other <em>identifier disclosure rules</em> are defined by the PCA operator.</p>
<p>The <em>identifier disclosure rules</em> are applied automatically at the time that the resource is retrieved by the target PCA Subscriber Agent.</p>
<p><strong>Authorisation rules</strong></p>
<p>Authorised client systems are only permitted to interact with a PCA Subscriber Agent API where the participating organisation associated with the PCA Subscriber Agent has a subscriber approval status of 'Approved'.</p>
<p><strong>Resource profiles and extensions</strong></p>
<p>This API specification defines the required resource profiles for each operation.  The PCA Subscriber Agent will reject any request to create or update a resource that contains any extensions (including modifier extensions) not explicitly defined in that resource profile.</p>
</div><div class="lead"><em>Security</em></div><div class="row"><div class="col-lg-6">Enable CORS: yes</div><div class="col-lg-6">Security services supported: <code>OAuth</code></div></div><blockquote><div><p>This server implements OAuth2</p>
</div></blockquote><div class="lead"><em>Summary of System-wide Interactions</em></div><ul><li>Supports the <code>search-system</code> interaction described as follows:<div><p><strong>Definition</strong>:<br/>
This operation is a RESTful <em>search</em> interaction (whole system interaction), across multiple resource types (as described in the <a href="https://www.hl7.org/fhir/http.html#search">FHIR specification</a>).</p>
<p><strong>Behaviour</strong>:<br/>
This operation is used by a client system operated by a subscriber organisation to get resources that match the specified search parameters and that have been published to the subscriber organisation's partner services.</p>
<p>The following  search parameters are supported:</p>
<ul>
<li>
<p><em>_lastUpdated</em> is used to get the resources that have been added or changed since the requesting system last synchronised their local data store with PCA Subscriber Agent.  This search parameter supports the <code>gt</code> and <code>lt</code> comparison prefixes.</p>
</li>
<li>
<p><em>_type</em> is used to filter the resources returned by their resource type. The available types are:</p>
<ul>
<li>
<p><code>HealthcareService</code> (returns resources conforming to the <a href="StructureDefinition-pca-healthcare-service.html">PCA Healthcare Service</a> profile)</p>
</li>
<li>
<p><code>PractitionerRole</code> (returns resources conforming to the <a href="StructureDefinition-pca-practitioner-role.html">PCA Practitioner Role</a> profile)</p>
</li>
<li>
<p><code>Organization</code> (returns resources conforming to the <a href="StructureDefinition-pca-organization.html">PCA Organization</a> profile)</p>
</li>
<li>
<p><code>Location</code> (returns resources conforming to the <a href="StructureDefinition-pca-location.html">PCA Location</a> profile)</p>
</li>
<li>
<p><code>Practitioner</code> (returns resources conforming to the <a href="StructureDefinition-pca-practitioner.html">PCA Practitioner</a> profile)</p>
</li>
<li>
<p><code>Provenance</code> (returns resources conforming to the <a href="StructureDefinition-pca-provenance.html">PCA Provenance</a> profile)</p>
</li>
<li>
<p><code>Contract</code> (returns resources conforming to the <a href="StructureDefinition-pca-publication-authorisation-record.html">PCA Publication Authorisation Record</a> profile)</p>
</li>
<li>
<p><code>Task</code> (returns resources conforming to the <a href="StructureDefinition-pca-match-record.html">PCA Match Record</a> profile)</p>
<ul>
<li>Note: a <code>Contract</code> resource with 'status' of 'revoked' indiates that a service offering that was previously published to a partner service is no longer available to that partner service. In this case the <code>Contract</code> resource will reference a <em>target</em> <code>Organization</code>, <code>Location</code>, <code>HealthcareService</code>, or <code>PractitionerRole</code> that is not included in the <code>Bundle</code> (but its <em>id</em> will identify the resource which is no longer published to the subscriber).</li>
</ul>
</li>
</ul>
</li>
<li>
<p><em>_include</em> (and <em>_include:iterate</em>) are used in order that all the resources that match the <em>_lastUpdated</em> and <em>_type</em> filters will be accompanied, in the result <code>Bundle</code>, with all the other resources which they reference (directly or indirectly).  Note that the use of <em>_include</em> (and <em>_include:iterate</em>) means that a resource may be present in the result <code>Bundle</code> either because it matched the other query parameters or because it was referenced (possibly indirectly) by another resource that matched the other query parameters.</p>
</li>
<li>
<p><em>_filter</em> is used to only get the resources that have been published to a specific <a href="StructureDefinition-pca-partner-service.html">PCA Partner Service</a> of the subscriber organisation.  If the <em>_filter</em> parameter is not present, the operation will return resources that have been published to all of the subscriber organisation's partner services.  The <em>_filter</em> parameter supports the following query expression:</p>
<ul>
<li><code>HealthcareService: id eq [FHIR ID of partner service]</code></li>
</ul>
</li>
</ul>
<p>All of the following query parameters are required in order to receive the complete set of resources that have been created, changed or published to all the subscriber organisation's partner services since <em>[last_synchronized]</em>:</p>
<p><code>_lastUpdated=[last_synchronized]</code><br/>
<code>_type=HealthcareService,PractitionerRole,Practitioner,Organization,Location,Provenance,Contract,Task </code><br/>
<code>_include=Location:organization </code><br/>
<code>_include=HealthcareService:organization </code><br/>
<code>_include=HealthcareService:location </code><br/>
<code>_include=PractitionerRole:organization </code><br/>
<code>_include=PractitionerRole:location </code><br/>
<code>_include=PractitionerRole:service </code><br/>
<code>_include=PractitionerRole:practitioner </code><br/>
<code>_include=Provenance:target </code><br/>
<code>_include=Contract:subject </code><br/>
<code>_include:iterate=HealthcareService:organization  </code><br/>
<code>_include:iterate=HealthcareService:location </code><br/>
<code>_include:iterate=PractitionerRole:organization </code><br/>
<code>_include:iterate=PractitionerRole:location </code><br/>
<code>_include:iterate=PractitionerRole:service </code><br/>
<code>_include:iterate=PractitionerRole:practitioner </code></p>
<p>As described <a href="CapabilityStatement-pca-subscriber-agent.html#common-behaviour">above</a> the resources returned in the Bundle exclude any <em>Identifiers</em> (e.g. HPI-Is) that cannot be disclosed to the subscriber.</p>
<p>This operation supports 'paging' (<a href="https://www.hl7.org/fhir/search.html#Paging">see FHIR specification</a>).  If there are too many resources to return in one <code>Bundle</code>, the FHIR server adds a <em>next</em> link to the response <code>Bundle</code>. The contents of the result <code>Bundle</code> therefore comprise all instances of the requested resource types whose <em>lastUpdated</em> timestamp is greater than the &lt;lastSync&gt; in the request query expression and less than or equal to &lt;lastInBundle&gt; where &lt;lastInBundle&gt; is the greatest <em>lastUpdated</em> value of all resources included in the result <code>Bundle</code>. The Subscriber Agent FHIR server sets the <em>next</em> link to the filter expression that was used in the original request except that &lt;lastSync&gt; is replaced with &lt;lastInBundle&gt;. If the <em>next</em> link is not present in the Bundle, then there are no more service offerings available.</p>
<p><strong>HTTP interaction signature</strong>:</p>
<ul>
<li><code>GET [subscriber agent base url]/?[parameters]</code></li>
</ul>
<p><strong>Mandatory Request Headers</strong>:</p>
<ul>
<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>
<li><code>Authorization: Bearer [token]</code></li>
</ul>
<p><strong>Request Body</strong>:</p>
<ul>
<li>(No request body)</li>
</ul>
<p><strong>Mandatory Response Headers</strong>:</p>
<ul>
<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>
</ul>
<p><strong>Response Body</strong>:</p>
<ul>
<li>
<p>Success: <code>Bundle</code> that contains zero to many resources (where the resource type was included in the filter expression of the search request) that conform to the following <a href="profiles.html">PCA profiles</a>:</p>
<ul>
<li>
<p><code>HealthcareService</code> resources conforming to the <a href="StructureDefinition-pca-healthcare-service.html">PCA Healthcare Service</a> profile</p>
</li>
<li>
<p><code>PractitionerRole</code> resources conforming to the <a href="StructureDefinition-pca-practitioner-role.html">PCA Practitioner Role</a> profile</p>
</li>
<li>
<p><code>Organization</code> resources conforming to the <a href="StructureDefinition-pca-organization.html">PCA Organization</a> profile</p>
</li>
<li>
<p><code>Location</code> resources conforming to the <a href="StructureDefinition-pca-location.html">PCA Location</a> profile</p>
</li>
<li>
<p><code>Practitioner</code> resources conforming to the <a href="StructureDefinition-pca-practitioner.html">PCA Practitioner</a> profile</p>
</li>
<li>
<p><code>Provenance</code> resources conforming to the <a href="StructureDefinition-pca-provenance.html">PCA Provenance</a> profile</p>
</li>
<li>
<p><code>Contract</code> resources conforming to the <a href="StructureDefinition-pca-publication-authorisation-record.html">PCA Publication Authorisation Record</a> profile</p>
<ul>
<li><code>Contract</code> resources will be returned that reference each of the <code>HealthcareService</code> or <code>PractitionerRole</code> resources that are included in the <code>Bundle</code> - these <code>Contract</code> resources have a <em>status</em> of “executed” if the associated PCA Partner Service is active, or a <em>status</em> of “cancelled” if the associated PCA Partner Service is inactive).</li>
<li><code>Contract</code> resources will also be returned that reference <code>HealthcareService</code> or <code>PractitionerRole</code> resources that are not in the <code>Bundle</code> but for which authority to publish has been revoked - these <code>Contract</code> resources will have a <em>status</em> of “revoked”).</li>
</ul>
</li>
<li>
<p><code>Task</code> resources conforming to the <a href="StructureDefinition-pca-match-record.html">PCA Match Record</a> profile</p>
</li>
</ul>
</li>
<li>
<p>Error: <code>OperationOutcome</code> resource (see <a href="https://www.hl7.org/fhir/operationoutcome.html">FHIR specification</a>).</p>
</li>
</ul>
<p><strong>Required OAuth 2.0 scopes</strong>:</p>
<p>The <em>scope</em> string <strong>SHALL</strong> contain the following <em>scoped role</em>:</p>
<ul>
<li><code> Organization/[id]:SS_Receiver</code></li>
</ul>
<p>Where [id] <strong>SHALL</strong> identify the <code>Organization</code> associated with the target PCA Subscriber Agent.</p>
<p><strong>Response Codes</strong>:</p>
<ul>
<li>Code 200:  Search successfully performed (but may return zero matching results).</li>
<li>Code 400:  The input query could not be parsed, or the <a href="StructureDefinition-pca-partner-service.html">PCA Partner Service</a> referenced in the <code>_filter</code> parameter could not be found or is inactive.</li>
<li>Code 403:  Server refused to perform the search.</li>
</ul>
</div></li></ul></div></div><h3 id="resourcesCap1">Capabilities by Resource/Profile</h3><h4 id="resourcesSummary1">Summary</h4><p>The summary table lists the resources that are part of this configuration, and for each resource it lists:</p><ul><li>The relevant profiles (if any)</li><li>The interactions supported by each resource (<b><span class="bg-info">R</span></b>ead, <b><span class="bg-info">S</span></b>earch, <b><span class="bg-info">U</span></b>pdate, and <b><span class="bg-info">C</span></b>reate, are always shown, while <b><span class="bg-info">VR</span></b>ead, <b><span class="bg-info">P</span></b>atch, <b><span class="bg-info">D</span></b>elete, <b><span class="bg-info">H</span></b>istory on <b><span class="bg-info">I</span></b>nstance, or <b><span class="bg-info">H</span></b>istory on <b><span class="bg-info">T</span></b>ype are only present if at least one of the resources has support for them.</li><li><span>The required, recommended, and some optional search parameters (if any). </span></li><li>The linked resources enabled for <code>_include</code></li><li>The other resources enabled for <code>_revinclude</code></li><li>The operations on the resource (if any)</li></ul><div class="table-responsive"><table class="table table-condensed table-hover"><thead><tr><th><b>Resource Type</b></th><th><b>Profile</b></th><th class="text-center"><b title="GET a resource (read interaction)">R</b></th><th class="text-center"><b title="GET all set of resources of the type (search interaction)">S</b></th><th class="text-center"><b title="PUT a new resource version (update interaction)">U</b></th><th class="text-center"><b title="PATCH a new resource version (patch interaction)">P</b></th><th class="text-center"><b title="POST a new resource (create interaction)">C</b></th><th class="text-center"><b title="DELETE a resource (delete interaction)">D</b></th><th><b title="Required and recommended search parameters">Searches</b></th><th><code><b>_include</b></code></th><th><code><b>_revinclude</b></code></th><th><b>Operations</b></th></tr></thead><tbody><tr><td><a href="#Organization1-1">Organization</a></td><td><a href="StructureDefinition-pca-organization.html">http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-organization</a></td><td>y</td><td class="text-center"></td><td class="text-center"></td><td class="text-center">y</td><td class="text-center"></td><td class="text-center"></td><td></td><td/><td/><td/></tr><tr><td><a href="#Location1-2">Location</a></td><td><a href="StructureDefinition-pca-location.html">http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-location</a></td><td>y</td><td class="text-center"></td><td class="text-center"></td><td class="text-center">y</td><td class="text-center"></td><td class="text-center"></td><td></td><td/><td/><td/></tr><tr><td><a href="#HealthcareService1-3">HealthcareService</a></td><td> </td><td>y</td><td class="text-center">y</td><td class="text-center"></td><td class="text-center">y</td><td class="text-center"></td><td class="text-center"></td><td>_profile, active, organization, service-catgeory, coverage-area.location.address-postalcode</td><td/><td/><td/></tr><tr><td><a href="#PractitionerRole1-4">PractitionerRole</a></td><td><a href="StructureDefinition-pca-practitioner-role.html">http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-practitioner-role</a></td><td>y</td><td class="text-center"></td><td class="text-center"></td><td class="text-center">y</td><td class="text-center"></td><td class="text-center"></td><td></td><td><code>PractitionerRole:practitioner</code>, <code>PractitionerRole:healthcareService</code>, <code>PractitionerRole:organization</code>, <code>PractitionerRole:location</code></td><td/><td/></tr><tr><td><a href="#Practitioner1-5">Practitioner</a></td><td><a href="StructureDefinition-pca-practitioner.html">http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-practitioner</a></td><td>y</td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td></td><td/><td/><td/></tr><tr><td><a href="#Provenance1-6">Provenance</a></td><td><a href="StructureDefinition-pca-provenance.html">http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-provenance</a></td><td>y</td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td></td><td/><td/><td/></tr><tr><td><a href="#Contract1-7">Contract</a></td><td> </td><td>y</td><td class="text-center">y</td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td class="text-center"></td><td>_profile, subject, version</td><td/><td/><td/></tr><tr><td><a href="#Task1-8">Task</a></td><td><a href="StructureDefinition-pca-match-record.html">http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-match-record</a></td><td>y</td><td class="text-center"></td><td class="text-center">y</td><td class="text-center"></td><td class="text-center">y</td><td class="text-center"></td><td></td><td/><td/><td/></tr><tr><td><a href="#Subscription1-9">Subscription</a></td><td><a href="http://hl7.org/fhir/R4/subscription.html">http://hl7.org/fhir/StructureDefinition/Subscription</a></td><td></td><td class="text-center">y</td><td class="text-center"></td><td class="text-center"></td><td class="text-center">y</td><td class="text-center">y</td><td></td><td/><td/><td/></tr></tbody></table></div><hr/><div class="panel panel-default"><div class="panel-heading"><h4 id="Organization1-1" class="panel-title"><span style="float: right;">Resource Conformance: supported</span>Organization</h4></div><div class="panel-body"><div class="container"><div class="row"><div class="col-lg-6"><span class="lead">Base System Profile</span><br/><a href="StructureDefinition-pca-organization.html">http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-organization</a></div><div class="col-lg-3"><span class="lead">Profile Conformance</span><br/><b>SHALL</b></div><div class="col-lg-3"><span class="lead">Reference Policy</span><br/></div></div><p/><div class="row"><div class="col-lg-6"><span class="lead">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>patch</code>.</li></ul></div></div><p/><div class="row"><div class="col-12"><span class="lead">Documentation</span><blockquote><div><p>This section defines the supported interactions for the <a href="StructureDefinition-pca-organization.html">PCA Organization</a> profile of the <code>Organization</code> resource type.</p>
</div></blockquote></div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h4 id="Location1-2" class="panel-title"><span style="float: right;">Resource Conformance: supported</span>Location</h4></div><div class="panel-body"><div class="container"><div class="row"><div class="col-lg-6"><span class="lead">Base System Profile</span><br/><a href="StructureDefinition-pca-location.html">http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-location</a></div><div class="col-lg-3"><span class="lead">Profile Conformance</span><br/><b>SHALL</b></div><div class="col-lg-3"><span class="lead">Reference Policy</span><br/></div></div><p/><div class="row"><div class="col-lg-6"><span class="lead">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>patch</code>.</li></ul></div></div><p/><div class="row"><div class="col-12"><span class="lead">Documentation</span><blockquote><div><p>This section defines the supported interactions for the <a href="StructureDefinition-pca-location.html">PCA Location</a> profile of the <code>Location</code> resource type.</p>
<p>A <code>Location</code> resource conforming to the <a href="StructureDefinition-pca-location.html">PCA Location</a> profile represents a location at which healthcare services are offered by a PCA publisher.</p>
</div></blockquote></div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h4 id="HealthcareService1-3" class="panel-title"><span style="float: right;">Resource Conformance: supported</span>HealthcareService</h4></div><div class="panel-body"><div class="container"><div class="row"><div class="col-lg-4"><span class="lead">Core FHIR Resource</span><br/><a href="http://hl7.org/fhir/R4/healthcareservice.html">HealthcareService</a></div><div class="col-lg-4"><span class="lead">Reference Policy</span><br/></div><div class="col-lg-4"><span class="lead">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>patch</code>, <code>search-type</code>.</li></ul></div></div><p/><p/><div class="row"><div class="col-12"><span class="lead">Documentation</span><blockquote><div><p>This section defines the supported interactions for the <a href="StructureDefinition-pca-healthcare-service.html">PCA Healthcare Service</a> profile and the <a href="StructureDefinition-pca-partner-service.html">PCA Partner Service</a> profile of the <code>HealthcareService</code> resource type.</p>
<p>A <code>HealthcareService</code> resource conforming to the <a href="StructureDefinition-pca-healthcare-service.html">PCA Healthcare Service</a> profile describes a healthcare service offered at a location by a PCA publisher.</p>
<p>A <code>HealthcareService</code> resource conforming to the <a href="StructureDefinition-pca-partner-service.html">PCA Partner Service</a> profile describes a partner service offered by a subscriber to which PCA publishers can publish their service offerings.</p>
</div></blockquote></div></div><div class="row"><div class="col-lg-7"><span class="lead">Search Parameters</span><table class="table table-condensed table-hover"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td><a href="http://hl7.org/fhir/R4/resource.html#search">_profile</a></td><td><code>uri</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td><a href="http://hl7.org/fhir/R4/healthcareservice.html#search">active</a></td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td><a href="http://hl7.org/fhir/R4/healthcareservice.html#search">organization</a></td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td><a href="http://hl7.org/fhir/R4/healthcareservice.html#search">service-catgeory</a></td><td><code>token</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>coverage-area.location.address-postalcode</td><td><code>string</code></td><td><div/></td></tr></tbody></table></div><div class="col-lg-5"> </div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h4 id="PractitionerRole1-4" class="panel-title"><span style="float: right;">Resource Conformance: supported</span>PractitionerRole</h4></div><div class="panel-body"><div class="container"><div class="row"><div class="col-lg-6"><span class="lead">Base System Profile</span><br/><a href="StructureDefinition-pca-practitioner-role.html">http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-practitioner-role</a></div><div class="col-lg-3"><span class="lead">Profile Conformance</span><br/><b>SHALL</b></div><div class="col-lg-3"><span class="lead">Reference Policy</span><br/></div></div><p/><div class="row"><div class="col-lg-6"><span class="lead">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>patch</code>.</li></ul></div></div><p/><div class="row"><div class="col-12"><span class="lead">Documentation</span><blockquote><div><p>This section defines the supported interactions for the <a href="StructureDefinition-pca-practitioner-role.html">PCA Practitioner Role</a> profile of the <code>PractitionerRole</code> resource type.<br/>
Each <code>PractitionerRole</code> resource conforming to the <a href="StructureDefinition-pca-practitioner-role.html">PCA Practitioner Role</a> profile describes a practitioner in a role at a healthcare service.</p>
</div></blockquote></div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h4 id="Practitioner1-5" class="panel-title"><span style="float: right;">Resource Conformance: supported</span>Practitioner</h4></div><div class="panel-body"><div class="container"><div class="row"><div class="col-lg-6"><span class="lead">Base System Profile</span><br/><a href="StructureDefinition-pca-practitioner.html">http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-practitioner</a></div><div class="col-lg-3"><span class="lead">Profile Conformance</span><br/><b>SHALL</b></div><div class="col-lg-3"><span class="lead">Reference Policy</span><br/></div></div><p/><div class="row"><div class="col-lg-6"><span class="lead">Interaction summary</span><br/><ul><li>Supports <code>read</code>.</li></ul></div></div><p/><div class="row"><div class="col-12"><span class="lead">Documentation</span><blockquote><div><p>This section defines the supported interactions for the <a href="StructureDefinition-pca-practitioner.html">PCA Practitioner</a> profile of the <code>Practitioner</code> resource type.</p>
<p>Each <code>Practitioner</code> resource conforming the <a href="StructureDefinition-pca-practitioner.html">PCA Practitioner</a> profile is a read-only proxy for a corresponding <code>Practitioner</code> resource managed by the PCA portal.</p>
<p>Each 'proxy' has the same <em>id</em> and <em>versionId</em> as the resource within the PCA portal for which it is a proxy.</p>
</div></blockquote></div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h4 id="Provenance1-6" class="panel-title"><span style="float: right;">Resource Conformance: supported</span>Provenance</h4></div><div class="panel-body"><div class="container"><div class="row"><div class="col-lg-6"><span class="lead">Base System Profile</span><br/><a href="StructureDefinition-pca-provenance.html">http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-provenance</a></div><div class="col-lg-3"><span class="lead">Profile Conformance</span><br/><b>SHALL</b></div><div class="col-lg-3"><span class="lead">Reference Policy</span><br/></div></div><p/><div class="row"><div class="col-lg-6"><span class="lead">Interaction summary</span><br/><ul><li>Supports <code>read</code>.</li></ul></div></div><p/><div class="row"><div class="col-12"><span class="lead">Documentation</span><blockquote><div><p>This section defines the supported interactions for the <a href="StructureDefinition-pca-provenance.html">PCA Provenance</a> profile of the <code>Provenance</code> resource type.</p>
<p>Each <code>Provenance</code> resource conforming to the <a href="StructureDefinition-pca-provenance.html">PCA Provenance</a> profile represents an activity performed by the PCA service (conditionally on behalf of a participating organisation when the target element references a PCA Organization resource) whereby specific data elements of a PCA Organization or PCA Practitioner resource have been initially retrieved, updated or verified from an external system of record.</p>
</div></blockquote></div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h4 id="Contract1-7" class="panel-title"><span style="float: right;">Resource Conformance: supported</span>Contract</h4></div><div class="panel-body"><div class="container"><div class="row"><div class="col-lg-4"><span class="lead">Core FHIR Resource</span><br/><a href="http://hl7.org/fhir/R4/contract.html">Contract</a></div><div class="col-lg-4"><span class="lead">Reference Policy</span><br/></div><div class="col-lg-4"><span class="lead">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>search-type</code>.</li></ul></div></div><p/><p/><div class="row"><div class="col-12"><span class="lead">Documentation</span><blockquote><div><p>This section defines the supported interactions for the <a href="StructureDefinition-pca-publication-authorisation-record.html">PCA Publication Authorisation Record</a> profile and the <a href="StructureDefinition-pca-information-use-statement.html">PCA Information Use Statement</a> profile of the <code>Contract</code> resource type.</p>
<p>A <code>Contract</code> resource conforming to the <a href="StructureDefinition-pca-publication-authorisation-record.html">PCA Publication Authorisation Record</a> profile records a decision regarding the publication of a specific service offering (either a <code>HealthcareService</code> or a <code>PractitionerRole</code>) to a specific partner service. The decision is either to authorise publication or to revoke a previous authority to publish.</p>
<p>A <code>Contract</code> resource conforming to the <a href="StructureDefinition-pca-information-use-statement.html">PCA Information Use Statement</a> profile represents a policy statement by a subscriber organisation's partner service that describes how they will use the information from publisher organisations that is disclosed to the partner service.</p>
</div></blockquote></div></div><div class="row"><div class="col-lg-7"><span class="lead">Search Parameters</span><table class="table table-condensed table-hover"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td><a href="http://hl7.org/fhir/R4/resource.html#search">_profile</a></td><td><code>uri</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td><a href="http://hl7.org/fhir/R4/contract.html#search">subject</a></td><td><code>reference</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td>version</td><td><code>string</code></td><td><div/></td></tr></tbody></table></div><div class="col-lg-5"> </div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h4 id="Task1-8" class="panel-title"><span style="float: right;">Resource Conformance: supported</span>Task</h4></div><div class="panel-body"><div class="container"><div class="row"><div class="col-lg-6"><span class="lead">Base System Profile</span><br/><a href="StructureDefinition-pca-match-record.html">http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-match-record</a></div><div class="col-lg-3"><span class="lead">Profile Conformance</span><br/><b>SHALL</b></div><div class="col-lg-3"><span class="lead">Reference Policy</span><br/></div></div><p/><div class="row"><div class="col-lg-6"><span class="lead">Interaction summary</span><br/><ul><li>Supports <code>read</code>, <code>create</code>, <code>update</code>.</li></ul></div></div><p/><div class="row"><div class="col-12"><span class="lead">Documentation</span><blockquote><div><p>This section defines the supported interactions for the <a href="StructureDefinition-pca-match-record.html">PCA Match Record</a> profile of the <code>Task</code> resource type.</p>
<p>A <code>Task</code> resource conforming to the <a href="StructureDefinition-pca-match-record.html">PCA Match Record</a> profile indicates the matching status of a service offering to a partner service’s local data store.</p>
</div></blockquote></div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h4 id="Subscription1-9" class="panel-title"><span style="float: right;">Resource Conformance: supported</span>Subscription</h4></div><div class="panel-body"><div class="container"><div class="row"><div class="col-lg-6"><span class="lead">Base System Profile</span><br/><a href="http://hl7.org/fhir/R4/subscription.html">http://hl7.org/fhir/StructureDefinition/Subscription</a></div><div class="col-lg-3"><span class="lead">Profile Conformance</span><br/><b>SHALL</b></div><div class="col-lg-3"><span class="lead">Reference Policy</span><br/></div></div><p/><div class="row"><div class="col-lg-6"><span class="lead">Interaction summary</span><br/><ul><li>Supports <code>create</code>, <code>search-type</code>, <code>delete</code>.</li></ul></div></div><p/><div class="row"><div class="col-12"><span class="lead">Documentation</span><blockquote><div><p>This section defines the supported interactions for the <a href="StructureDefinition-pca-subscription.html">PCA Subscription</a> profile of the <code>Subscription</code> resource type.</p>
<p>The <a href="StructureDefinition-pca-subscription.html">PCA Subscription</a> profile of <code>Subscription</code> is used by subscribing systems to register for notifications from the PCA service when new or updated service offerings are available, or when publication of existing service offerings has been newly revoked.</p>
</div></blockquote></div></div></div></div></div></div>
  </text>
  <url value="http://pca.digitalhealth.gov.au/fhir/4.0/CapabilityStatement/pca-subscriber-agent"/>
  <version value="2.4.2"/>
  <name value="PCASubscriberAgentCapabilityStatement"/>
  <title value="PCA Subscriber Agent Capability Statement"/>
  <status value="active"/>
  <experimental value="false"/>
  <date value="2024-03-19T16:16:25+10:00"/>
  <publisher value="Australian Digital Health Agency"/>
  <contact>
    <telecom>
      <system value="email"/>
      <value value="mailto:help@digitalhealth.gov.au"/>
    </telecom>
  </contact>
  <description value="This is the Capability statement for a PCA Subscriber Agent FHIR server."/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="AU"/>
    </coding>
  </jurisdiction>
  <copyright value="Copyright © 2023 Australian Digital Health Agency - All rights reserved. This content is licensed under a Creative Commons Attribution 4.0 International License. See https://creativecommons.org/licenses/by/4.0/."/>
  <kind value="requirements"/>
  <fhirVersion value="4.0.1"/>
  <format value="application/fhir+json"/>
  <format value="application/fhir+xml"/>
  <rest>
    <mode value="server"/>
    <documentation value="A PCA Subscriber Agent manages the service offerings for one subscriber organisation (also referred to as a 'business partner' in the PCA portal).      &#xA;&#xA;The PCA service instantiates one PCA Subscriber Agent for each participating subscriber organisation. That is, each subscriber organisation interacts with a PCA Subscriber Agent located at a *subscriber agent base url* that is unique to that organisation.    &#xA;&#xA;The *subscriber agent base URL* for a particular organisation is available via the PCA portal on the 'Organisation Details' screen of the subscriber organisation.    &#xA;&#xA;A service offering is made available to a subscriber organisation when a publisher authorises publication of a resource to one or more of the subscriber organisation's partner services.    &#xA;    &#xA; **Publication process**    &#xA;    &#xA; A PCA Publisher Agent creates the ```Location```, ```HealthcareService``` and ```PractitionerRole``` resources (that are associated with existing ```Organization``` and ```Practitioner``` resources) that represent their service offerings.  These resources are made available to a subscriber organisation when a publisher authorises publication of a ```HealthcareService``` or ```PractitionerRole``` resource to one or more of the subscriber organisation's partner services.    &#xA;    &#xA; The authority to publish is represented using ```Contract``` resources which are also implemented by the PCA Publisher Agent (see the [Contract resource endpoint](CapabilityStatement-pca-publisher-agent.html#contract)).    &#xA;    &#xA; **Identifier disclosure rules**    &#xA;    &#xA; The PCA service enforces certain business rules regarding the disclosure of *Identifiers* (including subscriber-issued identifiers) in the resources that it makes available to subscribers.     &#xA;    &#xA; The result of these rules may be that a copy of  a resource received by one subscriber may contain *Identifiers* that are not included in the copy of the same resource that is received by a different subscriber.    &#xA;    &#xA; In the case of HPI-Is these *identifier disclosure rules* ensure that relevant legal requirements are complied with.    &#xA;    &#xA; Other *identifier disclosure rules* are defined by the PCA operator.     &#xA;    &#xA; The *identifier disclosure rules* are applied automatically at the time that the resource is retrieved by the target PCA Subscriber Agent.    &#xA;    &#xA; **Authorisation rules**    &#xA;    &#xA;Authorised client systems are only permitted to interact with a PCA Subscriber Agent API where the participating organisation associated with the PCA Subscriber Agent has a subscriber approval status of 'Approved'.    &#xA;    &#xA; **Resource profiles and extensions**    &#xA;    &#xA;This API specification defines the required resource profiles for each operation.  The PCA Subscriber Agent will reject any request to create or update a resource that contains any extensions (including modifier extensions) not explicitly defined in that resource profile.    &#xA;    "/>
    <security>
      <cors value="true"/>
      <service>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/restful-security-service"/>
          <code value="OAuth"/>
          <display value="OAuth"/>
        </coding>
      </service>
      <description value="This server implements OAuth2"/>
    </security>
    <resource>
      <type value="Organization"/>
      <profile value="http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-organization"/>
      <documentation value="     &#xA;     &#xA; This section defines the supported interactions for the [PCA Organization](StructureDefinition-pca-organization.html) profile of the ```Organization``` resource type.     "/>
      <interaction>
        <code value="read"/>
        <documentation value="**Definition**:      &#xA;      &#xA; This operation is a RESTful **read** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#read)) of an ```Organization``` resource.       &#xA;      &#xA; **Behaviour**:      &#xA;      &#xA; This operation retrieves an identified ```Organization``` resource that conforms to the [PCA Organization](StructureDefinition-pca-organization.html) profile. As described in the [common behaviour](CapabilityStatement-pca-subscriber-agent.html#common-behaviour) section, the ```Organization``` resource excludes any *Identifiers* that cannot be disclosed to the subscriber.      &#xA;      &#xA; **HTTP interaction signature**:      &#xA; * ```GET [subscriber agent base url]/Organization/[id]```      &#xA;      &#xA; **Mandatory Request Headers**:      &#xA; * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      &#xA; * ```Authorization: Bearer [token]```      &#xA;      &#xA; **Request Body**:      &#xA; * (No request body)      &#xA;      &#xA; **Mandatory Response Headers**:      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA; * ```ETag: [version id]``` where [version id] identifies the version of the ```Organization``` resource returned.        &#xA;      &#xA; **Response Body**:      &#xA; * Success: ```Organization``` resource that conforms to the [PCA Organization](StructureDefinition-pca-organization.html) profile.      &#xA; * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      &#xA;      &#xA; **Required OAuth 2.0 scopes**:      &#xA;      &#xA; The *scope* string **SHALL** contain the following *scoped role*:      &#xA; * ```Organization/[id]:SS_Receiver```      &#xA;      &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **Response Codes**:          &#xA; *  Code 200:  The resource was found and returned.      &#xA; *  Code 404:  The resource was not found.      "/>
      </interaction>
      <interaction>
        <code value="patch"/>
        <documentation value="**Definition**:      &#xA;      &#xA; This operation is a RESTful **patch** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#patch)) of an ```Organization``` resource.       &#xA;      &#xA; **Behaviour**:      &#xA;      &#xA; This operation is used to update an identified ```Organization``` resource that conforms to the [PCA Organization](StructureDefinition-pca-organization.html) profile via a JSON or XML patch document. This operation will only process a patch operation for adding or updating an *identifier* element.      &#xA;      &#xA; If any of the following data validation rules are violated, then the request is rejected and the error code 422 is returned:      &#xA;      &#xA; * The patch document **SHALL** only contain an operation for adding or updating an *identifier* element.      &#xA; * Only one *identifier* element per *identifier.system* **SHALL** be allowed for the identified ```Organization``` resource.      &#xA; * The patch operation **SHALL** only add or update an *identifier* element where *identifier.system* identifies a subscriber identifier system that is owned by the participating organisation associated with the target PCA Subscriber Agent.      &#xA; * The patch operation **SHALL** only add or update an *identifier* element where a [PCA Match Record](StructureDefinition-pca-match-record.html) exists within the PCA service with:      &#xA;   * A *status* of 'completed', and;       &#xA;   * A *focus* referencing the ```Organization``` resource, and;      &#xA;   * An *owner* referencing a [PCA Partner Service](StructureDefinition-pca-partner-service.html) of the participating organisation associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **HTTP interaction signature**:      &#xA; * ```PATCH [subscriber agent base url]/Organization/[id]```      &#xA;      &#xA; **Mandatory Request Headers**:      &#xA; * ```Accept: application/json-patch+json;charset=utf-8``` or ```Accept: application/xml-patch+xml;charset=utf-8```      &#xA; * ```Content-Type: application/json-patch+json;charset=utf-8``` or ```Accept: application/xml-patch+xml;charset=utf-8```      &#xA; * ```Authorization: Bearer [token]```      &#xA;      &#xA; **Request Body**:      &#xA; * A JSON Patch document that conforms to [https://datatracker.ietf.org/doc/html/rfc6902](https://datatracker.ietf.org/doc/html/rfc6902) with a content type of ```application/json-patch+json```, or;      &#xA; * An XML Patch document that conforms to [https://datatracker.ietf.org/doc/html/rfc5261](https://datatracker.ietf.org/doc/html/rfc5261) with a content type of ```application/xml-patch+xml```      &#xA;      &#xA; **Mandatory Response Headers**:      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA; * ```ETag: [version id]``` where [version id] identifies the version of the ```Organization``` resource returned.        &#xA;      &#xA; **Response Body**:      &#xA; * Success: ```Organization``` resource that conforms to the [PCA Organization](StructureDefinition-pca-organization.html) profile.      &#xA; * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      &#xA;      &#xA; **Required OAuth 2.0 scopes**:      &#xA;      &#xA; The *scope* string **SHALL** contain the following *scoped role*:      &#xA; * ``` Organization/[id]:SS_Updater```      &#xA;      &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **Response Codes**:          &#xA; *  Code 200:  The resource was found and returned.      &#xA; *  Code 404:  The resource was not found.      &#xA; *  Code 422:  The input patch document violated applicable FHIR profiles or server data validation rules.      "/>
      </interaction>
      <versioning value="versioned"/>
      <readHistory value="false"/>
      <updateCreate value="false"/>
      <conditionalCreate value="false"/>
      <conditionalRead value="not-supported"/>
      <conditionalUpdate value="false"/>
      <conditionalDelete value="not-supported"/>
    </resource>
    <resource>
      <type value="Location"/>
      <profile value="http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-location"/>
      <documentation value="       &#xA;     &#xA; This section defines the supported interactions for the [PCA Location](StructureDefinition-pca-location.html) profile of the ```Location``` resource type.     &#xA;     &#xA; A ```Location``` resource conforming to the [PCA Location](StructureDefinition-pca-location.html) profile represents a location at which healthcare services are offered by a PCA publisher.       "/>
      <interaction>
        <code value="read"/>
        <documentation value="**Definition**:      &#xA;      &#xA; This operation is a RESTful **read** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#read)) of a ```Location``` resource.       &#xA;      &#xA; **Behaviour**:      &#xA;      &#xA; This operation retrieves an identified ```Location``` resource that conforms to the [PCA Location](StructureDefinition-pca-location.html) profile. As described in the [common behaviour](CapabilityStatement-pca-subscriber-agent.html#common-behaviour) section, the ```Location``` resource excludes any *Identifiers* that cannot be disclosed to the subscriber.      &#xA;      &#xA; **HTTP interaction signature**:      &#xA; * ```GET [subscriber agent base url]/Location/[id]```      &#xA;      &#xA; **Mandatory Request Headers**:      &#xA; * ```Accept: application/fhir+json;charset=utf-8``` or ```application/fhir+xml;charset=utf-8```      &#xA; * ```Authorization: Bearer [token]```      &#xA;      &#xA; **Request Body**:      &#xA; * (No request body)      &#xA;      &#xA; **Mandatory Response Headers**:      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA; * ```ETag: [version id]``` where [version id] identifies the version of the ```Location``` resource returned.        &#xA;      &#xA; **Response Body**:      &#xA; * Success: ```Location``` resource that conforms to the [PCA Location](StructureDefinition-pca-location.html) profile.      &#xA; * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      &#xA;      &#xA; **Required OAuth 2.0 scopes**:      &#xA;      &#xA; The *scope* string **SHALL** contain the following *scoped role*:      &#xA; * ``` Organization/[id]:SS_Receiver```      &#xA;      &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **Response Codes**:          &#xA; *  Code 200:  The resource was found and returned.      &#xA; *  Code 404:  The resource was not found.      "/>
      </interaction>
      <interaction>
        <code value="patch"/>
        <documentation value="**Definition**:      &#xA;      &#xA; This operation is a RESTful **patch** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#patch)) of a ```Location``` resource.       &#xA;      &#xA; **Behaviour**:      &#xA;      &#xA; This operation is used to update an identified ```Location``` resource that conforms to the [PCA Location](StructureDefinition-pca-location.html) profile via a JSON or XML patch document. This operation will only process a patch operation for adding or updating an *identifier* element.      &#xA;      &#xA; If any of the following data validation rules are violated, then the request is rejected and the error code 422 is returned:      &#xA;      &#xA; * The patch document **SHALL** only contain an operation for adding or updating an *identifier* element.      &#xA; * Only one *identifier* element per *identifier.system* **SHALL** be allowed for the identified ```Location``` resource.      &#xA; * The patch operation **SHALL** only add or update an *identifier* element where *identifier.system* identifies a subscriber identifier system that is owned by the participating organisation associated with the target PCA Subscriber Agent.      &#xA; * The patch operation **SHALL** only add or update an *identifier* element where a [PCA Match Record](StructureDefinition-pca-match-record.html) exists within the PCA service with:      &#xA;   * A *status* of 'completed', and;       &#xA;   * A *focus* referencing the ```Location``` resource, and;      &#xA;   * An *owner* referencing a [PCA Partner Service](StructureDefinition-pca-partner-service.html) of the participating organisation associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **HTTP interaction signature**:      &#xA; * ```PATCH [subscriber agent base url]/Location/[id]```      &#xA;      &#xA; **Mandatory Request Headers**:      &#xA; * ```Accept: application/json-patch+json;charset=utf-8``` or ```Accept: application/xml-patch+xml;charset=utf-8```      &#xA; * ```Content-Type: application/json-patch+json;charset=utf-8``` or ```Accept: application/xml-patch+xml;charset=utf-8```      &#xA; * ```Authorization: Bearer [token]```      &#xA;      &#xA; **Request Body**:      &#xA; * A JSON Patch document that conforms to [https://datatracker.ietf.org/doc/html/rfc6902](https://datatracker.ietf.org/doc/html/rfc6902) with a content type of ```application/json-patch+json```, or;      &#xA; * An XML Patch document that conforms to [https://datatracker.ietf.org/doc/html/rfc5261](https://datatracker.ietf.org/doc/html/rfc5261) with a content type of ```application/xml-patch+xml```      &#xA;      &#xA; **Mandatory Response Headers**:      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA; * ```ETag: [version id]``` where [version id] identifies the version of the ```Location``` resource returned.        &#xA;      &#xA; **Response Body**:      &#xA; * Success: ```Location``` resource that conforms to the [PCA Location](StructureDefinition-pca-location.html) profile.      &#xA; * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      &#xA;      &#xA; **Required OAuth 2.0 scopes**:      &#xA;      &#xA; The *scope* string **SHALL** contain the following *scoped role*:      &#xA; * ``` Organization/[id]:SS_Updater```      &#xA;      &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **Response Codes**:          &#xA; *  Code 200:  The resource was found and returned.      &#xA; *  Code 404:  The resource was not found.      &#xA; *  Code 422:  The input patch document violated applicable FHIR profiles or server data validation rules.      "/>
      </interaction>
      <versioning value="versioned"/>
      <readHistory value="false"/>
      <updateCreate value="false"/>
      <conditionalCreate value="false"/>
      <conditionalRead value="not-supported"/>
      <conditionalUpdate value="false"/>
      <conditionalDelete value="not-supported"/>
    </resource>
    <resource>
      <type value="HealthcareService"/>
      <documentation value="       &#xA;     &#xA; This section defines the supported interactions for the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) profile and the [PCA Partner Service](StructureDefinition-pca-partner-service.html) profile of the ```HealthcareService``` resource type.     &#xA;     &#xA; A ```HealthcareService``` resource conforming to the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) profile describes a healthcare service offered at a location by a PCA publisher.     &#xA;     &#xA; A ```HealthcareService``` resource conforming to the [PCA Partner Service](StructureDefinition-pca-partner-service.html) profile describes a partner service offered by a subscriber to which PCA publishers can publish their service offerings.     "/>
      <interaction>
        <code value="read"/>
        <documentation value="**Definition**:      &#xA;      &#xA; This operation is a RESTful **read** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#read)) of a ```HealthcareService``` resource.       &#xA;      &#xA; **Behaviour**:      &#xA;      &#xA; This operation is used to retrieve an identified ```HealthcareService``` resource that conforms to one of the following profiles:      &#xA; * [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html)      &#xA; * [PCA Partner Service](StructureDefinition-pca-partner-service.html)      &#xA;      &#xA; As described [above](CapabilityStatement-pca-subscriber-agent.html#common-behaviour) a ```HealthcareService``` resource conforming to the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) profile excludes any *Identifiers* that cannot be disclosed to the subscriber.      &#xA;      &#xA; **HTTP interaction signature**:      &#xA; * ```GET [subscriber agent base url]/HealthcareService/[id]```      &#xA;      &#xA; **Mandatory Request Headers**:      &#xA; * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      &#xA; * ```Authorization: Bearer [token]```      &#xA;      &#xA; **Request Body**:      &#xA; * (No request body)      &#xA;      &#xA; **Mandatory Response Headers**:      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA; * ```ETag: [version id]``` where [version id] identifies the version of the ```HealthcareService``` resource returned.        &#xA;      &#xA; **Response Body**:      &#xA; * Success: ```HealthcareService``` resource that conforms to the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) profile.      &#xA; * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      &#xA;      &#xA; **Required OAuth 2.0 scopes**:      &#xA;      &#xA; The *scope* string **SHALL** contain the following *scoped role*:      &#xA; * ``` Organization/[id]:SS_Receiver```      &#xA;      &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **Response Codes**:          &#xA; * Code 200:  The resource was found and returned.      &#xA; * Code 404:  The resource was not found.      "/>
      </interaction>
      <interaction>
        <code value="patch"/>
        <documentation value="**Definition**:      &#xA;      &#xA; This operation is a RESTful **patch** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#patch)) of a ```HealthcareService``` resource.       &#xA;      &#xA; **Behaviour**:      &#xA;      &#xA; This operation is used to update an identified ```HealthcareService``` resource that conforms to the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) profile via a JSON or XML patch document. This operation will only process a patch operation for adding or updating an *identifier* element.      &#xA;      &#xA; If any of the following data validation rules are violated, then the request is rejected and the error code 422 is returned:      &#xA;      &#xA; * The patch document **SHALL** only contain an operation for adding or updating an *identifier* element.      &#xA; * Only one *identifier* element per *identifier.system* **SHALL** be allowed for the identified ```HealthcareService``` resource.      &#xA; * The patch operation **SHALL** only add or update an *identifier* element where *identifier.system* identifies a subscriber identifier system that is owned by the participating organisation associated with the target PCA Subscriber Agent.      &#xA; * The patch operation **SHALL** only add or update an *identifier* element where a [PCA Match Record](StructureDefinition-pca-match-record.html) exists within the PCA service with:      &#xA;   * A *status* of 'completed', and;       &#xA;   * A *focus* referencing the ```HealthcareService``` resource, and;      &#xA;   * An *owner* referencing a [PCA Partner Service](StructureDefinition-pca-partner-service.html) of the participating organisation associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **HTTP interaction signature**:      &#xA; * ```PATCH [subscriber agent base url]/HealthcareService/[id]```      &#xA;      &#xA; **Mandatory Request Headers**:      &#xA; * ```Accept: application/json-patch+json;charset=utf-8``` or ```Accept: application/xml-patch+xml;charset=utf-8```      &#xA; * ```Content-Type: application/json-patch+json;charset=utf-8``` or ```Accept: application/xml-patch+xml;charset=utf-8```      &#xA; * ```Authorization: Bearer [token]```      &#xA;      &#xA; **Request Body**:      &#xA; * A JSON Patch document that conforms to [https://datatracker.ietf.org/doc/html/rfc6902](https://datatracker.ietf.org/doc/html/rfc6902) with a content type of ```application/json-patch+json```, or;      &#xA; * An XML Patch document that conforms to [https://datatracker.ietf.org/doc/html/rfc5261](https://datatracker.ietf.org/doc/html/rfc5261) with a content type of ```application/xml-patch+xml```      &#xA;      &#xA; **Mandatory Response Headers**:      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA; * ```ETag: [version id]``` where [version id] identifies the version of the ```HealthcareService``` resource returned.        &#xA;      &#xA; **Response Body**:      &#xA; * Success: ```HealthcareService``` resource that conforms to the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) profile.      &#xA; * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      &#xA;      &#xA; **Required OAuth 2.0 scopes**:      &#xA;      &#xA; The *scope* string **SHALL** contain the following *scoped role*:      &#xA; * ``` Organization/[id]:SS_Updater```      &#xA;      &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **Response Codes**:          &#xA; *  Code 200:  The resource was found and returned.      &#xA; *  Code 404:  The resource was not found.      &#xA; *  Code 422:  The input patch document violated applicable FHIR profiles or server data validation rules.      "/>
      </interaction>
      <interaction>
        <code value="search-type"/>
        <documentation value="**Definition**:      &#xA;      &#xA; This operation is a RESTful **search** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#search)) for ```HealthcareService``` resources that conform to the [PCA Partner Service](StructureDefinition-pca-partner-service.html) profile.       &#xA;      &#xA; **Behaviour**:      &#xA;      &#xA; The operation is used to find ```HealthcareService``` resources that that conform to the profile [PCA Partner Service](StructureDefinition-pca-partner-service.html) profile and that match the search parameters.      &#xA; Note that all [PCA Partner Service](StructureDefinition-pca-partner-service.html) resources in the PCA service are accessible to all authorised client systems.      &#xA;      &#xA; **HTTP interaction signature**:      &#xA; * ```GET [subscriber agent base url]/HealthcareService/{?[parameters]}```      &#xA;      &#xA; **Mandatory Request Headers**:      &#xA; * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      &#xA; * ```Authorization: Bearer [token]```      &#xA;      &#xA; **Request Body**:      &#xA; * (No request body)      &#xA;      &#xA; **Mandatory Response Headers**:      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA;      &#xA; **Response Body**:      &#xA; * Success: Bundle that contains zero to many ```HealthcareService``` resources that conform to the [PCA Partner Service](StructureDefinition-pca-partner-service.html) profile.      &#xA; * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      &#xA;      &#xA; **Required OAuth 2.0 scopes**:      &#xA;      &#xA; The *scope* string **SHALL** contain the following *scoped role*:      &#xA; * ``` Organization/[id]:SS_Receiver```      &#xA;      &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **Response Codes**:          &#xA; * Code 200:  Search successfully performed (but may return zero matching results).      &#xA; * Code 403:  Server refused to perform the search.      "/>
      </interaction>
      <versioning value="versioned"/>
      <readHistory value="false"/>
      <updateCreate value="false"/>
      <conditionalCreate value="false"/>
      <conditionalRead value="not-supported"/>
      <conditionalUpdate value="false"/>
      <conditionalDelete value="not-supported"/>
      <searchParam>
        <name value="_profile"/>
        <definition value="http://hl7.org/fhir/SearchParameter/Resource-profile"/>
        <type value="uri"/>
      </searchParam>
      <searchParam>
        <name value="active"/>
        <definition value="http://hl7.org/fhir/SearchParameter/HealthcareService-active"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <name value="organization"/>
        <definition value="http://hl7.org/fhir/SearchParameter/HealthcareService-organization"/>
        <type value="reference"/>
      </searchParam>
      <searchParam>
        <name value="service-catgeory"/>
        <definition value="http://hl7.org/fhir/SearchParameter/HealthcareService-service-category"/>
        <type value="token"/>
      </searchParam>
      <searchParam>
        <name value="coverage-area.location.address-postalcode"/>
        <type value="string"/>
      </searchParam>
    </resource>
    <resource>
      <type value="PractitionerRole"/>
      <profile value="http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-practitioner-role"/>
      <documentation value="       &#xA;     &#xA; This section defines the supported interactions for the [PCA Practitioner Role](StructureDefinition-pca-practitioner-role.html) profile of the ```PractitionerRole``` resource type.     &#xA;Each ```PractitionerRole``` resource conforming to the [PCA Practitioner Role](StructureDefinition-pca-practitioner-role.html) profile describes a practitioner in a role at a healthcare service.     "/>
      <interaction>
        <code value="read"/>
        <documentation value="**Definition**:      &#xA;      &#xA; This operation is a RESTful **read** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#read)) of a ```PractitionerRole``` resource.       &#xA;      &#xA; **Behaviour**:      &#xA;      &#xA; This operation retrieves an identified ```PractitionerRole``` resource that conforms to the [PCA Practitioner Role](StructureDefinition-pca-practitioner-role.html) profile. As described in the [common behaviour](CapabilityStatement-pca-subscriber-agent.html#common-behaviour) section, the ```PractitionerRole``` resource excludes any *Identifiers* that cannot be disclosed to the subscriber.      &#xA;      &#xA; **HTTP interaction signature**:      &#xA; * ```GET [subscriber agent base url]/PractitionerRole/[id]```      &#xA;      &#xA; **Mandatory Request Headers**:      &#xA; * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      &#xA; * ```Authorization: Bearer [token]```      &#xA;      &#xA; **Request Body**:      &#xA; * (No request body)      &#xA;      &#xA; **Mandatory Response Headers**:      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA; * ```ETag: [version id]``` where [version id] identifies the version of the ```PractitionerRole``` resource returned.        &#xA;      &#xA; **Response Body**:      &#xA; * Success: ```PractitionerRole``` resource that conforms to the [PCA Practitioner Role](StructureDefinition-pca-practitioner-role.html) profile.      &#xA; * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      &#xA;      &#xA; **Required OAuth 2.0 scopes**:      &#xA;      &#xA; The *scope* string **SHALL** contain the following *scoped role*:      &#xA; * ```Organization/[id]:SS_Receiver```      &#xA;      &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **Response Codes**:          &#xA;*  Code 200:  The resource was found and returned.      &#xA;*  Code 404:  The resource was not found.      "/>
      </interaction>
      <interaction>
        <code value="patch"/>
        <documentation value="**Definition**:      &#xA;      &#xA; This operation is a RESTful **patch** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#patch)) of a ```PractitionerRole``` resource.       &#xA;      &#xA; **Behaviour**:      &#xA;      &#xA; This operation is used to update an identified ```PractitionerRole``` resource that conforms to the [PCA Practitioner Role](StructureDefinition-pca-practitioner-role.html) profile via a JSON or XML patch document. This operation will only process a patch operation for adding or updating an *identifier* element.      &#xA;      &#xA; If any of the following data validation rules are violated, then the request is rejected and the error code 422 is returned:      &#xA;      &#xA; * The patch document **SHALL** only contain an operation for adding or updating an *identifier* element.      &#xA; * Only one *identifier* element per *identifier.system* **SHALL** be allowed for the identified ```PractitionerRole``` resource.      &#xA; * The patch operation **SHALL** only add or update an *identifier* element where *identifier.system* identifies a subscriber identifier system that is owned by the participating organisation associated with the target PCA Subscriber Agent.      &#xA; * The patch operation **SHALL** only add or update an *identifier* element where a [PCA Match Record](StructureDefinition-pca-match-record.html) exists within the PCA service with:      &#xA;   * A *status* of 'completed', and;       &#xA;   * A *focus* referencing the ```PractitionerRole``` resource, and;      &#xA;   * An *owner* referencing a [PCA Partner Service](StructureDefinition-pca-partner-service.html) of the participating organisation associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **HTTP interaction signature**:      &#xA; * ```PATCH [subscriber agent base url]/PractitionerRole/[id]```      &#xA;      &#xA; **Mandatory Request Headers**:      &#xA; * ```Accept: application/json-patch+json;charset=utf-8``` or ```Accept: application/xml-patch+xml;charset=utf-8```      &#xA; * ```Content-Type: application/json-patch+json;charset=utf-8``` or ```Accept: application/xml-patch+xml;charset=utf-8```      &#xA; * ```Authorization: Bearer [token]```      &#xA;      &#xA; **Request Body**:      &#xA; * A JSON Patch document that conforms to [https://datatracker.ietf.org/doc/html/rfc6902](https://datatracker.ietf.org/doc/html/rfc6902) with a content type of ```application/json-patch+json```, or;      &#xA; * An XML Patch document that conforms to [https://datatracker.ietf.org/doc/html/rfc5261](https://datatracker.ietf.org/doc/html/rfc5261) with a content type of ```application/xml-patch+xml```      &#xA;      &#xA; **Mandatory Response Headers**:      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA; * ```ETag: [version id]``` where [version id] identifies the version of the ```PractitionerRole``` resource returned.        &#xA;      &#xA; **Response Body**:      &#xA; * Success: ```PractitionerRole``` resource that conforms to the [PCA Practitioner Role](StructureDefinition-pca-practitioner-role.html) profile.      &#xA; * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      &#xA;      &#xA; **Required OAuth 2.0 scopes**:      &#xA;      &#xA; The *scope* string **SHALL** contain the following *scoped role*:      &#xA; * ``` Organization/[id]:SS_Updater```      &#xA;      &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **Response Codes**:          &#xA; *  Code 200:  The resource was found and returned.      &#xA; *  Code 404:  The resource was not found.      &#xA; *  Code 422:  The input patch document violated applicable FHIR profiles or server data validation rules.      "/>
      </interaction>
      <versioning value="versioned"/>
      <readHistory value="false"/>
      <updateCreate value="false"/>
      <conditionalCreate value="false"/>
      <conditionalRead value="not-supported"/>
      <conditionalUpdate value="false"/>
      <conditionalDelete value="not-supported"/>
      <searchInclude value="PractitionerRole:practitioner"/>
      <searchInclude value="PractitionerRole:healthcareService"/>
      <searchInclude value="PractitionerRole:organization"/>
      <searchInclude value="PractitionerRole:location"/>
    </resource>
    <resource>
      <type value="Practitioner"/>
      <profile value="http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-practitioner"/>
      <documentation value="     &#xA;     &#xA; This section defines the supported interactions for the [PCA Practitioner](StructureDefinition-pca-practitioner.html) profile of the ```Practitioner``` resource type.       &#xA;     &#xA;Each ```Practitioner``` resource conforming the [PCA Practitioner](StructureDefinition-pca-practitioner.html) profile is a read-only proxy for a corresponding ```Practitioner``` resource managed by the PCA portal.     &#xA;     &#xA;Each 'proxy' has the same *id* and *versionId* as the resource within the PCA portal for which it is a proxy.       "/>
      <interaction>
        <code value="read"/>
        <documentation value="**Definition**:      &#xA;      &#xA; This operation is a RESTful **read** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#read)) of a ```Practitioner``` resource.       &#xA;      &#xA; **Behaviour**:      &#xA;      &#xA; This operation retrieves an identified ```Practitioner``` resource that conforms to the [PCA Practitioner](StructureDefinition-pca-practitioner.html) profile. As described in the [common behaviour](CapabilityStatement-pca-subscriber-agent.html#common-behaviour) section, the ```Practitioner``` resource excludes any *Identifiers* that cannot be disclosed to the subscriber.      &#xA;      &#xA; **HTTP interaction signature**:      &#xA; * ```GET [subscriber agent base url]/Practitioner/[id]```      &#xA;      &#xA; **Mandatory Request Headers**:      &#xA; * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      &#xA; * ```Authorization: Bearer [token]```      &#xA;      &#xA; **Request Body**:      &#xA; * (No request body)      &#xA;      &#xA; **Mandatory Response Headers**:      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA; * ```ETag: [version id]``` where [version id] identifies the version of the ```Practitioner``` resource returned.        &#xA;      &#xA; **Response Body**:      &#xA; * Success: ```Practitioner``` resource that conforms to the [PCA Practitioner](StructureDefinition-pca-practitioner.html) profile.      &#xA; * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      &#xA;      &#xA; **Required OAuth 2.0 scopes**:      &#xA;      &#xA; The *scope* string **SHALL** contain the following *scoped role*:      &#xA; * ``` Organization/[id]:SS_Receiver```      &#xA;      &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **Response Codes**:          &#xA; * Code 200:  The resource was found and returned.      &#xA; * Code 404:  The resource was not found.      "/>
      </interaction>
      <versioning value="versioned"/>
      <readHistory value="false"/>
      <updateCreate value="false"/>
      <conditionalCreate value="false"/>
      <conditionalRead value="not-supported"/>
      <conditionalUpdate value="false"/>
      <conditionalDelete value="not-supported"/>
    </resource>
    <resource>
      <type value="Provenance"/>
      <profile value="http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-provenance"/>
      <documentation value="     &#xA;     &#xA; This section defines the supported interactions for the [PCA Provenance](StructureDefinition-pca-provenance.html) profile of the ```Provenance``` resource type.     &#xA;     &#xA; Each ```Provenance``` resource conforming to the [PCA Provenance](StructureDefinition-pca-provenance.html) profile represents an activity performed by the PCA service (conditionally on behalf of a participating organisation when the target element references a PCA Organization resource) whereby specific data elements of a PCA Organization or PCA Practitioner resource have been initially retrieved, updated or verified from an external system of record.   "/>
      <interaction>
        <code value="read"/>
        <documentation value="**Definition**:      &#xA;      &#xA; This operation is a RESTful **read** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#read)) of a ```Provenance``` resource.       &#xA;      &#xA; **Behaviour**:      &#xA;      &#xA; This operation retrieves an identified ```Provenance``` resource that conforms to the [PCA Provenance](StructureDefinition-pca-practitioner-role.html) profile.      &#xA;      &#xA; **HTTP interaction signature**:      &#xA; * ```GET [subscriber agent base url]/Provenance/[id]```      &#xA;      &#xA; **Mandatory Request Headers**:      &#xA; * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      &#xA; * ```Authorization: Bearer [token]```      &#xA;      &#xA; **Request Body**:      &#xA; * (No request body)      &#xA;      &#xA; **Mandatory Response Headers**:      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA;      &#xA; **Response Body**:      &#xA; * Success: ```Provenance``` resource that conforms to the [PCA Provenance](StructureDefinition-pca-provenance.html) profile.      &#xA; * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      &#xA;      &#xA; **Required OAuth 2.0 scopes**:      &#xA;      &#xA;  The *scope* string **SHALL** contain the following *scoped role*:      &#xA; * ``` Organization/[id]:SS_Receiver```      &#xA;      &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **Response Codes**:          &#xA; * Code 200:  The resource was found and returned.      &#xA; * Code 404:  The resource was not found.      "/>
      </interaction>
      <versioning value="no-version"/>
      <readHistory value="false"/>
      <updateCreate value="false"/>
      <conditionalCreate value="false"/>
      <conditionalRead value="not-supported"/>
      <conditionalUpdate value="false"/>
      <conditionalDelete value="not-supported"/>
    </resource>
    <resource>
      <type value="Contract"/>
      <documentation value="     &#xA;     &#xA; This section defines the supported interactions for the [PCA Publication Authorisation Record](StructureDefinition-pca-publication-authorisation-record.html) profile and the [PCA Information Use Statement](StructureDefinition-pca-information-use-statement.html) profile of the ```Contract``` resource type.     &#xA;     &#xA;     &#xA; A ```Contract``` resource conforming to the [PCA Publication Authorisation Record](StructureDefinition-pca-publication-authorisation-record.html) profile records a decision regarding the publication of a specific service offering (either a ```HealthcareService``` or a ```PractitionerRole```) to a specific partner service. The decision is either to authorise publication or to revoke a previous authority to publish.     &#xA;     &#xA; A ```Contract``` resource conforming to the [PCA Information Use Statement](StructureDefinition-pca-information-use-statement.html) profile represents a policy statement by a subscriber organisation's partner service that describes how they will use the information from publisher organisations that is disclosed to the partner service.         "/>
      <interaction>
        <code value="read"/>
        <documentation value="**Definition**:      &#xA;      &#xA; This operation is a RESTful **read** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#read)) of a ```Contract``` resource.       &#xA;      &#xA; This operation is used to retrieve an identified ```Contract``` resource that conforms to one of the following profiles:      &#xA; * [PCA Publication Authorisation Record](StructureDefinition-pca-publication-authorisation-record.html)      &#xA; * [PCA Information Use Statement](StructureDefinition-pca-information-use-statement.html)      &#xA;      &#xA; Different authorisation rules apply depending on the profile of the ```Contract``` resource being retrieved; see the 'Required OAuth 2.0 scopes' section       &#xA;      &#xA; **HTTP interaction signature**:      &#xA; * ```GET [subscriber agent base url]/Contract/[id]```      &#xA;      &#xA; **Mandatory Request Headers**:      &#xA; * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      &#xA; * ```Authorization: Bearer [token]```      &#xA;      &#xA; **Request Body**:      &#xA; * (No request body)      &#xA;      &#xA; **Mandatory Response Headers**:      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA;      &#xA; **Response Body**:      &#xA; * Success: ```Contract``` resource that conforms to the [PCA Publication Authorisation Record](StructureDefinition-pca-publication-authorisation-record.html) profile.      &#xA; * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      &#xA;      &#xA; **Required OAuth 2.0 scopes**:      &#xA;      &#xA; The *scope* string **SHALL** contain the following *scoped role*:      &#xA; * ``` Organization/[id]:SS_Receiver```      &#xA;      &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **Response Codes**:          &#xA; * Code 200:  The resource was found and returned.      &#xA; * Code 404:  The resource was not found.      "/>
      </interaction>
      <interaction>
        <code value="search-type"/>
        <documentation value="**Definition**:      &#xA;      &#xA; This operation is a RESTful **search** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#search)) for ```Contract``` resources.       &#xA;      &#xA; **Behaviour**:      &#xA;      &#xA; This operation is used to find ```Contract``` resources that conform to the [PCA Information Use Statement](StructureDefinition-pca-information-use-statement) profile and that match the search parameters.       &#xA;      &#xA; Note that all [PCA Information Use Statement](StructureDefinition-pca-information-use-statement.html) resources in the PCA service are accessible to all authorised client systems.      &#xA;      &#xA; **HTTP interaction signature**:      &#xA; * ```GET [subscriber agent base url]/Contract/{?[parameters]}```      &#xA;      &#xA; **Mandatory Request Headers**:      &#xA; * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      &#xA; * ```Authorization: Bearer [token]```      &#xA;      &#xA; **Request Body**:      &#xA; * (No request body)      &#xA;      &#xA; **Mandatory Response Headers**:      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA;      &#xA; **Response Body**:      &#xA; * Success: Bundle containing zero to many ```Contract``` resources that conform to the profile [PCA Information Use Statement](StructureDefinition-pca-information-use-statement.html) profile.      &#xA; * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      &#xA;      &#xA; **Required OAuth 2.0 scopes**:      &#xA;      &#xA; The *scope* string **SHALL** contain the following *scoped role*:      &#xA; * ``` Organization/[id]:SS_Receiver```      &#xA;      &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **Response Codes**:          &#xA; * Code 200:  Search successfully performed (but may return zero matching results).      &#xA; * Code 403:  Server refused to perform the search.      "/>
      </interaction>
      <versioning value="versioned"/>
      <readHistory value="false"/>
      <updateCreate value="false"/>
      <conditionalCreate value="false"/>
      <conditionalRead value="not-supported"/>
      <conditionalUpdate value="false"/>
      <conditionalDelete value="not-supported"/>
      <searchParam>
        <name value="_profile"/>
        <definition value="http://hl7.org/fhir/SearchParameter/Resource-profile"/>
        <type value="uri"/>
      </searchParam>
      <searchParam>
        <name value="subject"/>
        <definition value="http://hl7.org/fhir/SearchParameter/Contract-subject"/>
        <type value="reference"/>
      </searchParam>
      <searchParam>
        <name value="version"/>
        <type value="string"/>
      </searchParam>
    </resource>
    <resource>
      <type value="Task"/>
      <profile value="http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-match-record"/>
      <documentation value="     &#xA;     &#xA; This section defines the supported interactions for the [PCA Match Record](StructureDefinition-pca-match-record.html) profile of the ```Task``` resource type.     &#xA;     &#xA; A ```Task``` resource conforming to the [PCA Match Record](StructureDefinition-pca-match-record.html) profile indicates the matching status of a service offering to a partner service’s local data store.       "/>
      <interaction>
        <code value="read"/>
        <documentation value="**Definition**:      &#xA;      &#xA; This operation is a RESTful **read** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#read)) of a ```Task``` resource.       &#xA;      &#xA; **Behaviour**:      &#xA;      &#xA; This operation retrieves an identified ```Task``` resource that conforms to the [PCA Match Record](StructureDefinition-pca-match-record.html) profile.       &#xA;       &#xA; **HTTP interaction signature**:      &#xA; * ```GET [subscriber agent base url]/Task/[id]```      &#xA;      &#xA; **Mandatory Request Headers**:      &#xA; * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      &#xA; * ```Authorization: Bearer [token]```      &#xA;      &#xA; **Request Body**:      &#xA; * (No request body)      &#xA;      &#xA; **Mandatory Response Headers**:      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA;      &#xA; **Response Body**:      &#xA; * Success: ```Task``` resource that conforms to the [PCA Match Record](StructureDefinition-pca-match-record.html) profile.      &#xA; * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      &#xA;      &#xA; **Required OAuth 2.0 scopes**:      &#xA;      &#xA; The *scope* string **SHALL** contain the following *scoped role*:      &#xA; * ``` Organization/[id]:SS_Receiver```      &#xA;      &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **Response Codes**:          &#xA; * Code 200:  The resource was found and returned.      &#xA; * Code 404:  The resource was not found.      "/>
      </interaction>
      <interaction>
        <code value="create"/>
        <documentation value="**Definition**:      &#xA;      &#xA; This operation is a RESTful **create** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#create)) of a ```Task``` resource conforming to the [PCA Match Record](StructureDefinition-pca-match-record.html) profile.       &#xA;      &#xA; **Behaviour**:      &#xA;      &#xA; If any of the following data validation rules are violated in the input resource then the request is rejected and the error code 422 is returned:      &#xA;      &#xA; * The resource **SHALL** conform to the [PCA Match Record](StructureDefinition-pca-match-record.html) profile.      &#xA; * *id* **SHALL NOT** be present.         &#xA; * *meta.versionId* **SHALL NOT** be present.         &#xA; * *meta.lastUpdated* **SHALL NOT** be present.         &#xA; * *focus* **SHALL** reference a resource that has been published to one or more [Partner Services](StructureDefinition-pca-partner-service.html) associated with the target PCA Subscriber Agent.       &#xA; * *owner* **SHALL** reference a [Partner Service](StructureDefinition-pca-partner-service.html) associated with the target PCA Subscriber Agent.      &#xA; * *note.text* **SHALL** be a maximum of 200 characters.      &#xA;       &#xA; **HTTP interaction signature**:      &#xA; * ```POST [subscriber agent base url]/Task```      &#xA;      &#xA; **Mandatory Request Headers**:      &#xA; * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA; * ```Authorization: Bearer [token]```      &#xA;      &#xA; **Request Body**:      &#xA; * ```Task``` resource that conforms to the [PCA Match Record](StructureDefinition-pca-match-record.html) profile.      &#xA;      &#xA; **Mandatory Response Headers**:      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA; * ```ETag: [version id]``` where [version id] identifies the version of the new ```Task``` resource.        &#xA;      &#xA; **Response Body**:      &#xA; * Success: ```Task``` resource that conforms to the [PCA Match Record](StructureDefinition-pca-match-record.html) profile.      &#xA;*  Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      &#xA;      &#xA; **Required OAuth 2.0 scopes**:      &#xA;      &#xA; The *scope* string **SHALL** contain the following *scoped role*:      &#xA; * ``` Organization/[id]:SS_Updater```      &#xA;      &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **Response Codes**:          &#xA; * Code 201:  The resource was successfully created.      &#xA; * Code 400:  The input resource could not be parsed or failed basic FHIR validation rules.      &#xA; * Code 404:  The resource type is not supported, or not a FHIR end-point.      &#xA; * Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.      "/>
      </interaction>
      <interaction>
        <code value="update"/>
        <documentation value="**Definition**:      &#xA;      &#xA; This operation is a RESTful **update** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#update)) of a ```Task``` resource.       &#xA;      &#xA; **Behaviour**:      &#xA;      &#xA; If any of the following data validation rules are violated in the input resource then the request is rejected and the error code 422 is returned:      &#xA;      &#xA; * The resource **SHALL** conform to the [PCA Match Record](StructureDefinition-pca-match-record.html) profile.      &#xA; * *id* **SHALL** be identical to the corresponding value in the version of the ```Task``` identified in the 'if-match' HTTP header.       &#xA; * *meta.versionId* **SHALL NOT** be present.         &#xA; * *meta.lastUpdated* **SHALL NOT** be present.         &#xA; * *owner* **SHALL** reference a [Partner Service](StructureDefinition-pca-partner-service.html) associated with the target PCA Subscriber Agent.      &#xA; * Only changes to *status* (and optionally *note.text*) will be accepted; changes to any other element values will not be accepted when updating an existing ```Task```.       &#xA; * *note.text* **SHALL** only be updated if *status* is being changed from 'completed' to 'failed'.      &#xA; * *note.text* **SHALL** be a maximum of 200 characters.      &#xA;      &#xA; If the 'if-match' HTTP header is not provided in the request, then the PCA Subscriber Agent will reject the request and return the error code 400.        &#xA;      &#xA; If the 'if-match' HTTP header does not match the current version, then the PCA Subscriber Agent will reject the request and return the error code 412.            &#xA;      &#xA; **HTTP interaction signature**:      &#xA; * ```PUT [subscriber agent base url]/Task/[id]```      &#xA;      &#xA; **Mandatory Request Headers**:      &#xA; * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA; * ```Authorization: Bearer [token]```      &#xA; * ```if-match [version id]``` where [version id] is the version of the ```Task``` being updated.      &#xA;      &#xA; **Request Body**:      &#xA; ```Task``` resource that conforms to the [PCA Match Record](StructureDefinition-pca-match-record.html) profile.      &#xA;      &#xA; **Mandatory Response Headers**:      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA; * ```ETag: [version id]``` where [version id] identifies the version of the ```Task``` resource returned.        &#xA;      &#xA; **Response Body**:      &#xA; * Success: ```Task``` resource that conforms to the [PCA Match Record](StructureDefinition-pca-match-record.html) profile.      &#xA;*  Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      &#xA;      &#xA; **Required OAuth 2.0 scopes**:      &#xA;      &#xA; The *scope* string **SHALL** contain the following *scoped role*:      &#xA; * ``` Organization/[id]:SS_Updater```      &#xA;      &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **Response Codes**:          &#xA; * Code 200:  The resource was found and returned.      &#xA; * Code 400:  Client error:  request did not include the *if-match* HTTP header.      &#xA; * Code 404:  The resource was not found.      &#xA; * Code 412:  The version id given in the *if-Match* HTTP request header does not match the current version.      &#xA; * Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.      "/>
      </interaction>
      <versioning value="versioned-update"/>
      <readHistory value="false"/>
      <updateCreate value="false"/>
      <conditionalCreate value="false"/>
      <conditionalRead value="not-supported"/>
      <conditionalUpdate value="false"/>
      <conditionalDelete value="not-supported"/>
    </resource>
    <resource>
      <type value="Subscription"/>
      <profile value="http://hl7.org/fhir/StructureDefinition/Subscription"/>
      <documentation value="     &#xA;      &#xA; This section defines the supported interactions for the [PCA Subscription](StructureDefinition-pca-subscription.html) profile of the ```Subscription``` resource type.     &#xA;     &#xA; The [PCA Subscription](StructureDefinition-pca-subscription.html) profile of ```Subscription``` is used by subscribing systems to register for notifications from the PCA service when new or updated service offerings are available, or when publication of existing service offerings has been newly revoked.       "/>
      <interaction>
        <code value="create"/>
        <documentation value="**Definition**:      &#xA;      &#xA; This operation is a RESTful **create** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#create)) of a ```Subscription``` resource conforming to the [PCA Subscription](StructureDefinition-pca-subscription.html) profile.       &#xA;      &#xA; **Behaviour**:      &#xA;      &#xA; This operation is used to register a callback to receive a notification whenever there are changes in the data set that is published to a subscriber.      &#xA;      &#xA; A notification is simply a HTTP POST without any content – the purpose is to trigger the subscriber’s client system to get the available service offerings by invoking the [whole system search operation](CapabilityStatement-pca-subscriber-agent.html#search-system).      &#xA;      &#xA; If any of the following data validation rules are violated in the input resource, then the request is rejected and the error code 422 is returned:      &#xA; * *status* **SHALL** be 'requested'      &#xA; * *reason* **SHALL** be 'subscriber change notifications'      &#xA; * *criteria*  **SHALL** be a space separated list of resource types from the list 'HealthcareService', 'PractitionerRole', 'Location', 'Organization', 'Practitioner', 'Provenance', 'Contract', 'Task'       &#xA; * *channel.type*  **SHALL** be 'rest-hook'       &#xA; * *channel.endpoint* **SHALL** be the URL of an endpoint that is operated by (or on behalf of) the subscriber for receiving notifications. The protocol **SHALL** be https.      &#xA; * *channel.payload* **SHALL NOT** be present – its absence indicates that the subscriber will not receive any resources via this endpoint.       &#xA; * *channel.header* **SHALL** be set to 'Authorization: Bearer [secret string]' where [secret string] is the basic authentication string, set by the subscriber organisation, that is used to authenticate the PCA Subscriber Agent to the notification receiving endpoint.      &#xA;      &#xA; **HTTP interaction signature**:      &#xA; * ```POST [subscriber agent base url]/Subscription```      &#xA;      &#xA; **Mandatory Request Headers**:      &#xA; * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA; * ```Authorization: Bearer [token]```      &#xA;      &#xA; **Request Body**:      &#xA; * ```Subscription``` resource that conforms to the [PCA Subscription](StructureDefinition-pca-subscription.html) profile.      &#xA;      &#xA; **Mandatory Response Headers**:      &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      &#xA;      &#xA; **Response Body**:      &#xA; * Success: ```Subcription``` resource that conforms to the [PCA Subscription](StructureDefinition-pca-subscription.html) profile.      &#xA; * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      &#xA;      &#xA; **Required OAuth 2.0 scopes**:      &#xA;      &#xA; The *scope* string **SHALL** contain the following *scoped role*:      &#xA; * ``` Organization/[id]:SS_Receiver```      &#xA;      &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **Response Codes**:          &#xA; * Code 201:  The resource was successfully created.      &#xA; * Code 400:  The input resource could not be parsed or failed basic FHIR validation rules.      &#xA; * Code 404:  The resource type is not supported, or not a FHIR end-point.      &#xA; * Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.      "/>
      </interaction>
      <interaction>
        <code value="search-type"/>
        <documentation value="**Definition**:       &#xA;       &#xA; This operation is a RESTful **search** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#search)) for a ```Subscription``` resource that is associated with the target Subscriber Agent and that conforms to the [PCA Subscription](StructureDefinition-pca-subscription.html) profile.        &#xA;       &#xA; **Behaviour**:       &#xA;       &#xA; This operation is used to find a ```Subscription``` resource that is associated with the target Subscriber Agent and that conforms to the [PCA Subscription](StructureDefinition-pca-subscription.html) profile.       &#xA;       &#xA; **HTTP interaction signature**:       &#xA;        &#xA; * ```GET [subscriber agent base url]/Subscription/```       &#xA;       &#xA; **Mandatory Request Headers**:       &#xA; * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```       &#xA; * ```Authorization: Bearer [token]```       &#xA;       &#xA; **Request Body**:       &#xA; * (No request body)       &#xA;       &#xA; **Mandatory Response Headers**:       &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```       &#xA;       &#xA; **Response Body**:       &#xA; * Success: ```Bundle``` that contains zero or one ```Subscription``` resource that that is associated with the target Subscriber Agent and that conforms to the [PCA Subscription](StructureDefinition-pca-subscription.html) profile.       &#xA; * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).       &#xA;       &#xA; **Required OAuth 2.0 scopes**:       &#xA;       &#xA; The *scope* string **SHALL** contain the following *scoped role*:       &#xA; * ``` Organization/[id]:SS_Receiver```       &#xA;       &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.       &#xA;       &#xA; **Response Codes**:           &#xA; * Code 200:  Search successfully performed (but may return zero matching results).       &#xA; * Code 403:  Server refused to perform the search.       "/>
      </interaction>
      <interaction>
        <code value="delete"/>
        <documentation value="**Definition**:      &#xA;      &#xA; This operation is a RESTful **delete** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#delete)) of a ```Subscription``` resource.       &#xA;      &#xA; **Behaviour**:      &#xA;      &#xA; This operation is used to deregister an existing notification callback.       &#xA;      &#xA; **HTTP interaction signature**:      &#xA; * ```DELETE [subscriber agent base url]/Subscription/[id]```      &#xA;      &#xA; **Mandatory Request Headers**:      &#xA; * ```Authorization: Bearer [token]```      &#xA;      &#xA; **Request Body**:      &#xA; * (No request body)      &#xA;      &#xA; **Mandatory Response Headers**:      &#xA; * (No request body)      &#xA;      &#xA; **Response Body**:      &#xA; * (No request body)      &#xA;      &#xA; **Required OAuth 2.0 scopes**:      &#xA;      &#xA; The *scope* string **SHALL** contain the following *scoped role*:      &#xA; * ``` Organization/[id]:SS_Receiver```      &#xA;      &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.      &#xA;      &#xA; **Response Codes**:          &#xA; * Code 202:  The deletion was accepted.      &#xA; * Code 404:  The resource was not found.      "/>
      </interaction>
      <versioning value="no-version"/>
      <readHistory value="false"/>
      <updateCreate value="false"/>
      <conditionalCreate value="false"/>
      <conditionalRead value="not-supported"/>
      <conditionalUpdate value="false"/>
      <conditionalDelete value="not-supported"/>
    </resource>
    <interaction>
      <code value="search-system"/>
      <documentation value="**Definition**:     &#xA; This operation is a RESTful *search* interaction (whole system interaction), across multiple resource types (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#search)).      &#xA;     &#xA; **Behaviour**:     &#xA; This operation is used by a client system operated by a subscriber organisation to get resources that match the specified search parameters and that have been published to the subscriber organisation's partner services.     &#xA;     &#xA; The following  search parameters are supported:     &#xA;     &#xA; * *_lastUpdated* is used to get the resources that have been added or changed since the requesting system last synchronised their local data store with PCA Subscriber Agent.  This search parameter supports the ```gt``` and ```lt``` comparison prefixes.     &#xA; * *_type* is used to filter the resources returned by their resource type. The available types are:      &#xA;     &#xA;   * ```HealthcareService``` (returns resources conforming to the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) profile)     &#xA;   * ```PractitionerRole``` (returns resources conforming to the [PCA Practitioner Role](StructureDefinition-pca-practitioner-role.html) profile)     &#xA;   * ```Organization``` (returns resources conforming to the [PCA Organization](StructureDefinition-pca-organization.html) profile)     &#xA;   * ```Location``` (returns resources conforming to the [PCA Location](StructureDefinition-pca-location.html) profile)     &#xA;   * ```Practitioner``` (returns resources conforming to the [PCA Practitioner](StructureDefinition-pca-practitioner.html) profile)     &#xA;   * ```Provenance``` (returns resources conforming to the [PCA Provenance](StructureDefinition-pca-provenance.html) profile)     &#xA;   * ```Contract``` (returns resources conforming to the [PCA Publication Authorisation Record](StructureDefinition-pca-publication-authorisation-record.html) profile)      &#xA;   * ```Task``` (returns resources conforming to the [PCA Match Record](StructureDefinition-pca-match-record.html) profile)      &#xA;     &#xA;     * Note: a ```Contract``` resource with 'status' of 'revoked' indiates that a service offering that was previously published to a partner service is no longer available to that partner service. In this case the ```Contract``` resource will reference a *target* ```Organization```, ```Location```, ```HealthcareService```, or ```PractitionerRole``` that is not included in the ```Bundle``` (but its *id* will identify the resource which is no longer published to the subscriber).      &#xA;            &#xA; * *_include* (and *_include:iterate*) are used in order that all the resources that match the *_lastUpdated* and *_type* filters will be accompanied, in the result ```Bundle```, with all the other resources which they reference (directly or indirectly).  Note that the use of *_include* (and *_include:iterate*) means that a resource may be present in the result ```Bundle``` either because it matched the other query parameters or because it was referenced (possibly indirectly) by another resource that matched the other query parameters.     &#xA; * *_filter* is used to only get the resources that have been published to a specific [PCA Partner Service](StructureDefinition-pca-partner-service.html) of the subscriber organisation.  If the *_filter* parameter is not present, the operation will return resources that have been published to all of the subscriber organisation's partner services.  The *_filter* parameter supports the following query expression:     &#xA;     &#xA;   * ```HealthcareService: id eq [FHIR ID of partner service]```     &#xA;      &#xA; All of the following query parameters are required in order to receive the complete set of resources that have been created, changed or published to all the subscriber organisation's partner services since *[last_synchronized]*:     &#xA;     &#xA; ``` _lastUpdated=[last_synchronized] ```     &#xA; ```_type=HealthcareService,PractitionerRole,Practitioner,Organization,Location,Provenance,Contract,Task ```     &#xA; ```_include=Location:organization ```     &#xA; ```_include=HealthcareService:organization ```     &#xA; ```_include=HealthcareService:location ```     &#xA; ```_include=PractitionerRole:organization ```     &#xA; ```_include=PractitionerRole:location ```       &#xA; ```_include=PractitionerRole:service ```     &#xA; ```_include=PractitionerRole:practitioner ```      &#xA; ```_include=Provenance:target ```        &#xA; ```_include=Contract:subject ```        &#xA; ```_include:iterate=HealthcareService:organization  ```       &#xA; ```_include:iterate=HealthcareService:location ```     &#xA; ```_include:iterate=PractitionerRole:organization ```     &#xA; ```_include:iterate=PractitionerRole:location ```     &#xA; ```_include:iterate=PractitionerRole:service ```     &#xA; ```_include:iterate=PractitionerRole:practitioner ```     &#xA;      &#xA; As described [above](CapabilityStatement-pca-subscriber-agent.html#common-behaviour) the resources returned in the Bundle exclude any *Identifiers* (e.g. HPI-Is) that cannot be disclosed to the subscriber.     &#xA;      &#xA; This operation supports 'paging' ([see FHIR specification](https://www.hl7.org/fhir/search.html#Paging)).  If there are too many resources to return in one ```Bundle```, the FHIR server adds a *next* link to the response ```Bundle```. The contents of the result ```Bundle``` therefore comprise all instances of the requested resource types whose *lastUpdated* timestamp is greater than the &lt;lastSync&gt; in the request query expression and less than or equal to &lt;lastInBundle&gt; where &lt;lastInBundle&gt; is the greatest *lastUpdated* value of all resources included in the result ```Bundle```. The Subscriber Agent FHIR server sets the *next* link to the filter expression that was used in the original request except that &lt;lastSync&gt; is replaced with &lt;lastInBundle&gt;. If the *next* link is not present in the Bundle, then there are no more service offerings available.     &#xA;     &#xA; **HTTP interaction signature**:     &#xA; * ```GET [subscriber agent base url]/?[parameters]```     &#xA;     &#xA; **Mandatory Request Headers**:     &#xA; * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```     &#xA; * ```Authorization: Bearer [token]```     &#xA;     &#xA; **Request Body**:     &#xA; * (No request body)     &#xA;     &#xA; **Mandatory Response Headers**:     &#xA; * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```     &#xA;     &#xA; **Response Body**:     &#xA; * Success: ```Bundle``` that contains zero to many resources (where the resource type was included in the filter expression of the search request) that conform to the following [PCA profiles](profiles.html):      &#xA;     &#xA;   * ```HealthcareService``` resources conforming to the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) profile     &#xA;   * ```PractitionerRole``` resources conforming to the [PCA Practitioner Role](StructureDefinition-pca-practitioner-role.html) profile     &#xA;   * ```Organization``` resources conforming to the [PCA Organization](StructureDefinition-pca-organization.html) profile     &#xA;   * ```Location``` resources conforming to the [PCA Location](StructureDefinition-pca-location.html) profile     &#xA;   * ```Practitioner``` resources conforming to the [PCA Practitioner](StructureDefinition-pca-practitioner.html) profile     &#xA;   * ```Provenance``` resources conforming to the [PCA Provenance](StructureDefinition-pca-provenance.html) profile     &#xA;   * ```Contract``` resources conforming to the [PCA Publication Authorisation Record](StructureDefinition-pca-publication-authorisation-record.html) profile     &#xA;     &#xA;     * ```Contract``` resources will be returned that reference each of the ```HealthcareService``` or ```PractitionerRole``` resources that are included in the ```Bundle``` - these ```Contract``` resources have a *status* of “executed” if the associated PCA Partner Service is active, or a *status* of “cancelled” if the associated PCA Partner Service is inactive).     &#xA;     * ```Contract``` resources will also be returned that reference ```HealthcareService``` or ```PractitionerRole``` resources that are not in the ```Bundle``` but for which authority to publish has been revoked - these ```Contract``` resources will have a *status* of “revoked”).     &#xA;     &#xA;   * ```Task``` resources conforming to the [PCA Match Record](StructureDefinition-pca-match-record.html) profile      &#xA;     &#xA;     &#xA; * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      &#xA;     &#xA; **Required OAuth 2.0 scopes**:     &#xA;     &#xA; The *scope* string **SHALL** contain the following *scoped role*:     &#xA; * ``` Organization/[id]:SS_Receiver```     &#xA;     &#xA; Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Subscriber Agent.     &#xA;     &#xA; **Response Codes**:         &#xA; * Code 200:  Search successfully performed (but may return zero matching results).     &#xA; * Code 400:  The input query could not be parsed, or the [PCA Partner Service](StructureDefinition-pca-partner-service.html) referenced in the ```_filter``` parameter could not be found or is inactive.      &#xA; * Code 403:  Server refused to perform the search.     "/>
    </interaction>
    <searchParam>
      <name value="_lastUpdated"/>
      <definition value="http://hl7.org/fhir/SearchParameter/Resource-lastUpdated"/>
      <type value="date"/>
    </searchParam>
    <searchParam>
      <name value="_type"/>
      <type value="token"/>
    </searchParam>
    <searchParam>
      <name value="_include"/>
      <type value="special"/>
    </searchParam>
    <searchParam>
      <name value="_include:iterate"/>
      <type value="special"/>
    </searchParam>
    <searchParam>
      <name value="_filter"/>
      <type value="special"/>
    </searchParam>
    <searchParam>
      <name value="_page"/>
      <type value="special"/>
    </searchParam>
    <searchParam>
      <name value="_count"/>
      <type value="special"/>
    </searchParam>
    <searchParam>
      <name value="_resultId"/>
      <type value="special"/>
    </searchParam>
  </rest>
</CapabilityStatement>