Provider Connect Australia (PCA) - Local Development build (v24.2.0.1) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

: PCA Publisher Agent Capability Statement - TTL Representation

Active as of 2024-11-25

Raw ttl | Download

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:CapabilityStatement ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "pca-publisher-agent"] ; # 
  fhir:text [
fhir:status [ fhir:v "extensions" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CapabilityStatement pca-publisher-agent</b></p><a name=\"pca-publisher-agent\"> </a><a name=\"hcpca-publisher-agent\"> </a><a name=\"pca-publisher-agent-en-AU\"> </a><h2 id=\"title\">PCA Publisher Agent Capability Statement</h2><ul><li>Implementation Guide Version: 24.2.0.1 </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: 2024-11-25 11:41:59+1000 </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 'SHALL NOT'. 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 Publisher Agent manages the service offerings for one publisher organisation.</p>\n<p>The PCA service instantiates one PCA Publisher Agent for each participating publisher organisation. That is, each publisher organisation interacts with a PCA Publisher Agent located at a <em>publisher agent base URL</em> that is unique to that organisation.</p>\n<p>The <em>publisher agent base URL</em> for a particular organisation is available via the PCA portal on the 'Organisation Details' screen of the publisher organisation.</p>\n<p><strong>Publication process</strong></p>\n<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>\n<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>\n<p><strong>Identifier disclosure rules</strong></p>\n<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>\n<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>\n<p>In the case of HPI-Is these <em>identifier disclosure rules</em> ensure that relevant legal requirements are complied with.</p>\n<p>Other <em>identifier disclosure rules</em> are defined by the PCA operator.</p>\n<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>\n<p><strong>Authorisation rules</strong></p>\n<p>Authorised client systems are only permitted to interact with a PCA Publisher Agent API where the participating organisation associated with the PCA Publisher Agent has a publisher approval status of 'Approved'.</p>\n<p><strong>Resource profiles and extensions</strong></p>\n<p>This API specification defines the required resource profiles for each operation.  In addition, the PCA Publisher 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>\n</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>\n</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/>\nThis 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>\n<p><strong>Behaviour</strong>:<br/>\nThis operation is used by a client system operated by a publisher organisation to get resources that match the specified search parameters and that are within the scope of the publisher organisation.</p>\n<p>The following  search parameters are supported:</p>\n<ul>\n<li>\n<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 Publisher Agent.  This search parameter supports the <code>gt</code> and <code>lt</code> comparison prefixes.</p>\n</li>\n<li>\n<p><em>_type</em> is used to filter the resources returned by their resource type. The available types are:</p>\n<ul>\n<li><code>HealthcareService</code> (returns resources conforming to the <a href=\"StructureDefinition-pca-healthcare-service.html\">PCA Healthcare Service</a> profile)</li>\n<li><code>PractitionerRole</code> (returns resources conforming to the <a href=\"StructureDefinition-pca-practitioner-role.html\">PCA Practitioner Role</a> profile)</li>\n<li><code>Organization</code> (returns resources conforming to the <a href=\"StructureDefinition-pca-organization.html\">PCA Organization</a> profile)</li>\n<li><code>Location</code> (returns resources conforming to the <a href=\"StructureDefinition-pca-location.html\">PCA Location</a> profile)</li>\n<li><code>Practitioner</code> (returns resources conforming to the <a href=\"StructureDefinition-pca-practitioner.html\">PCA Practitioner</a> profile)</li>\n<li><code>Provenance</code> (returns resources conforming to the <a href=\"StructureDefinition-pca-provenance.html\">PCA Provenance</a> profile)</li>\n<li><code>Contract</code> (returns resources conforming to the <a href=\"StructureDefinition-pca-publication-authorisation-record.html\">PCA Publication Authorisation Record</a> profile)</li>\n<li><code>Task</code> (returns resources conforming to the <a href=\"StructureDefinition-pca-match-record.html\">PCA Match Record</a> profile)</li>\n</ul>\n</li>\n<li>\n<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 Bundle, with all the other resources which they reference (directly or indirectly).</p>\n</li>\n</ul>\n<p>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>\n<p>All of the following query parameters are required in order to receive the complete set of resources that have been created or changed since <em>[last_synchronized]</em>:</p>\n<p><code>_lastUpdated=[last_synchronized]</code><br/>\n<code>_type=HealthcareService,PractitionerRole,Practitioner,Organization,Location,Provenance,Contract,Task </code><br/>\n<code>_include=Location:organization </code><br/>\n<code>_include=HealthcareService:organization </code><br/>\n<code>_include=HealthcareService:location </code><br/>\n<code>_include=PractitionerRole:organization </code><br/>\n<code>_include=PractitionerRole:location </code><br/>\n<code>_include=PractitionerRole:service </code><br/>\n<code>_include=PractitionerRole:practitioner </code><br/>\n<code>_include=Provenance:target </code><br/>\n<code>_include=Contract:subject </code><br/>\n<code>_include:iterate=HealthcareService:organization  </code><br/>\n<code>_include:iterate=HealthcareService:location </code><br/>\n<code>_include:iterate=PractitionerRole:organization </code><br/>\n<code>_include:iterate=PractitionerRole:location </code><br/>\n<code>_include:iterate=PractitionerRole:service </code><br/>\n<code>_include:iterate=PractitionerRole:practitioner </code></p>\n<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 Publisher 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 <code>Bundle</code>, then there are no more service offerings available.</p>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>GET [publisher agent base url]/?[parameters]</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li>(No request body)</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>\n<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>\n<ul>\n<li><code>HealthcareService</code> resources conforming to the <a href=\"StructureDefinition-pca-healthcare-service.html\">PCA Healthcare Service</a> profile</li>\n<li><code>PractitionerRole</code> resources conforming to the <a href=\"StructureDefinition-pca-practitioner-role.html\">PCA Practitioner Role</a> profile</li>\n<li><code>Organization</code> resources conforming to the <a href=\"StructureDefinition-pca-organization.html\">PCA Organization</a> profile</li>\n<li><code>Location</code> resources conforming to the <a href=\"StructureDefinition-pca-location.html\">PCA Location</a> profile</li>\n<li><code>Practitioner</code> resources conforming to the <a href=\"StructureDefinition-pca-practitioner.html\">PCA Practitioner</a> profile</li>\n<li><code>Provenance</code> resources conforming to the <a href=\"StructureDefinition-pca-provenance.html\">PCA Provenance</a> profile</li>\n<li><code>Contract</code> resources conforming to the <a href=\"StructureDefinition-pca-publication-authorisation-record.html\">PCA Publication Authorisation Record</a> profile</li>\n<li><code>Task</code> resources conforming to the <a href=\"StructureDefinition-pca-match-record.html\">PCA Match Record</a> profile</li>\n</ul>\n</li>\n<li>\n<p>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</p>\n</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain the following <em>scoped role</em>:</p>\n<ul>\n<li><code>Organization/[id]:PS_Read</code></li>\n</ul>\n<p>Where [id] <strong>SHALL</strong> identify the <code>Organization</code> associated with the target PCA Publisher Agent.</p>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 200:  Search successfully performed (but may return zero matching results).</li>\n<li>Code 403:  Server refused to perform the search.</li>\n</ul>\n</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=\"POST a new resource (create interaction)\">C</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 class=\"text-center\">y</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=\"#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 class=\"text-center\">y</td><td class=\"text-center\"></td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td>organization, status, _lastUpdated</td><td/><td/><td/></tr><tr><td><a href=\"#HealthcareService1-3\">HealthcareService</a></td><td> </td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</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 class=\"text-center\">y</td><td class=\"text-center\"></td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td>_lastUpdated, _id, active, identifier, organization, practitioner, service</td><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 class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\"></td><td class=\"text-center\"></td><td>identifier</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 class=\"text-center\">y</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 class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</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 class=\"text-center\">y</td><td class=\"text-center\"></td><td class=\"text-center\"></td><td class=\"text-center\"></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\">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 <br/><code>read</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>read</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#read\">FHIR specification</a>) of an <code>Organization</code> resource.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>This operation retrieves an identified <code>Organization</code> resource that conforms to the <a href=\"StructureDefinition-pca-organization.html\">PCA Organization</a> profile.</p>\n<p><strong>HTTP interaction signature</strong>:</p>\n<p><code>GET [publisher agent base url]/Organization/[id]</code></p>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li>(No request body)</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>ETag: [version id]</code> where [version id] identifies the version of the <code>Organization</code> resource returned.</li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: <code>Organization</code> resource that conforms to the <a href=\"StructureDefinition-pca-organization.html\">PCA Organization</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain one or more of the following <em>scoped roles</em>:</p>\n<ul>\n<li><code>Organization/[id]:PCA:Om</code></li>\n<li><code>Location/[id]:PCA:Hsm</code></li>\n<li><code>HealthcareService/[id]:PCA:Hsm</code></li>\n<li><code>Organization/[id]:PS_Read</code></li>\n<li><code>Location/[id]:PS_Read</code></li>\n<li><code>HealthcareService/[id]:PS_Read</code></li>\n</ul>\n<p>If a <em>scoped role</em> identifies an <code>Organization</code> then [id] <strong>SHALL</strong> identify the target <code>Organization</code> being read.</p>\n<p>if a <em>scoped role</em> identifies a <code>Location</code> then [id] <strong>SHALL</strong> identify any <code>Location</code> where its <em>managingOrganisation</em> references the target <code>Organization</code> being read.</p>\n<p>if a <em>scoped role</em> identifies a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify any <code>HealthcareService</code> where its <em>providedBy</em> references the target <code>Organization</code> being read.</p>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 200:  The resource was found and returned.</li>\n<li>Code 404:  The resource was not found.</li>\n</ul>\n</div></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>\n</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\">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 <br/><code>create</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>create</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#create\">FHIR specification</a>) of a <code>Location</code> resource conforming to the <a href=\"StructureDefinition-pca-location.html\">PCA Location</a> profile.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>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:</p>\n<ul>\n<li>The resource <strong>SHALL</strong> conform to the <a href=\"StructureDefinition-pca-location.html\">PCA Location</a> profile.</li>\n<li><em>id</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>meta.versionId</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>meta.lastUpdated</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>identifier:pca-li</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>providedBy</em> <strong>SHALL</strong> reference an existing <code>Organization</code> within the scope of the requesting system.</li>\n<li><em>status</em> <strong>SHALL NOT</strong> use the code 'suspended'.</li>\n<li>If <em>type</em> is not present, then <em>address</em> <strong>SHALL</strong> be present.</li>\n</ul>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>POST [publisher agent base url]/Location</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li><code>Location</code> resource that conforms to the <a href=\"StructureDefinition-pca-location.html\">PCA Location</a> profile.</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>ETag: [version id]</code> where [version id] identifies the version of the new <code>Location</code> resource.</li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: <code>Location</code> resource that conforms to the <a href=\"StructureDefinition-pca-location.html\">PCA Location</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain the following <em>scoped role</em>:</p>\n<ul>\n<li><code> Organization/[id]:PCA:Om</code></li>\n<li><code> Organization/[id]:PCA:Hsm</code></li>\n<li><code> Organization/[id]:PS_ServicesMgr</code></li>\n</ul>\n<p>Where [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>managingOrganization</em> in the new <code>Location</code>.</p>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 201:  The resource was successfully created.</li>\n<li>Code 400:  The input resource could not be parsed or failed basic FHIR validation rules.</li>\n<li>Code 404:  The resource type is not supported, or not a FHIR end-point.</li>\n<li>Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.</li>\n</ul>\n</div><code>read</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>read</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#read\">FHIR specification</a>) of a <code>Location</code> resource.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>This operation retrieves an identified <code>Location</code> resource that conforms to the <a href=\"StructureDefinition-pca-location.html\">PCA Location</a> profile.</p>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>GET [publisher agent base url]/Location/[id]</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li>(No request body)</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>ETag: [version id]</code> where [version id] identifies the version of the <code>Location</code> resource returned.</li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: <code>Location</code> resource that conforms to the <a href=\"StructureDefinition-pca-location.html\">PCA Location</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain the following <em>scoped role</em>:</p>\n<ul>\n<li><code>Organization/[id]:PCA:Om</code></li>\n<li><code>Location/[id]:PCA:Hsm</code></li>\n<li><code>HealthcareService/[id]:PCA:Hsm</code></li>\n<li><code>Organization/[id]:PS_Read</code></li>\n<li><code>Location/[id]:PS_Read</code></li>\n<li><code>HealthcareService/[id]:PS_Read</code></li>\n</ul>\n<p>If a <em>scoped role</em> identifies an <code>Organization</code> then [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>managingOrganization</em> in the target <code>Location</code> being read.</p>\n<p>if a <em>scoped role</em> identifies a <code>Location</code> then [id] <strong>SHALL</strong> identify the <code>Location</code> being read.</p>\n<p>if a <em>scoped role</em> identifies a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify a <code>HealthcareService</code> where its <em>location</em> references the target <code>Location</code> being read.</p>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 200:  The resource was found and returned.</li>\n<li>Code 404:  The resource was not found.</li>\n</ul>\n</div><code>update</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>update</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#update\">FHIR specification</a>) of a <code>Location</code> resource.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>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:</p>\n<ul>\n<li>The resource <strong>SHALL</strong> conform to the <a href=\"StructureDefinition-pca-location.html\">PCA Location</a> profile.</li>\n<li><em>id</em> <strong>SHALL</strong>  be identical to the value in the version of the <code>Location</code> identified in the 'if-match' HTTP header.</li>\n<li><em>meta.versionId</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>meta.lastUpdated</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>managingOrganization</em> <strong>SHALL</strong>   be identical to the corresponding value in the version of the <code>Location</code> identified in the 'if-match' HTTP header.</li>\n<li><em>identifier:pca-li</em> <strong>SHALL</strong>  be identical to the corresponding value in the version of the <code>Location</code> identified in the 'if-match' HTTP header.</li>\n<li><em>status</em> <strong>SHALL NOT</strong> use the code 'suspended'.</li>\n<li>If <em>type</em> is not present, then <em>address</em> <strong>SHALL</strong> be present.</li>\n<li>If <em>status</em> is 'inactive', then all healthcare services linked to the location <strong>SHALL</strong> have an <em>active</em> value of 'false'.</li>\n</ul>\n<p>If the 'if-match' HTTP header is not provided in the request, then the PCA Publisher Agent will reject the request and return the error code 400.</p>\n<p>If the 'if-match' HTTP header does not match the current version, then the PCA Publisher Agent will reject the request and return the error code 412.</p>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>PUT [publisher agent base url]/Location/[id]</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n<li><code>if-match [version id]</code> where [version id] is the version of the <code>Location</code> being updated.</li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li><code>Location</code> resource that conforms to the <a href=\"StructureDefinition-pca-location.html\">PCA Location</a> profile.</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>ETag: [version id]</code> where [version id] identifies the version of the <code>Location</code> resource returned.</li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: <code>Location</code> resource that conforms to the <a href=\"StructureDefinition-pca-location.html\">PCA Location</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain one or more of the following <em>scoped roles</em>:</p>\n<ul>\n<li><code> Organization/[id]:PCA:Om</code></li>\n<li><code> Organization/[id]:PCA:Hsm</code></li>\n<li><code> Location/[id]:PCA:Hsm</code></li>\n<li><code> Organization/[id]:PS_ServiceMgr</code></li>\n<li><code> Location/[id]:PS_ServiceMgr</code></li>\n</ul>\n<p>If a <em>scoped role</em> identifies an <code>Organization</code> then [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>managingOrganization</em> in the target <code>Location</code> being updated.</p>\n<p>If a <em>scoped role</em> identifies a <code>Location</code> then [id] <strong>SHALL</strong> identify the target <code>Location</code> being updated.</p>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 200:  The resource was found and returned.</li>\n<li>Code 400:  Client error:  request did not include the <em>if-match</em> HTTP header.</li>\n<li>Code 404:  The resource was not found.</li>\n<li>Code 412:  The version id given in the <em>if-Match</em> HTTP request header does not match the current version.</li>\n<li>Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.</li>\n</ul>\n</div></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>\n<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>\n</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/location.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/location.html#search\">status</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/resource.html#search\">_lastUpdated</a></td><td><code>date</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=\"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 <br/><code>create</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>create</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#create\">FHIR specification</a>) of a <code>HealthcareService</code> resource conforming to the <a href=\"StructureDefinition-pca-healthcare-service.html\">PCA Healthcare Service</a> profile.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>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:</p>\n<ul>\n<li>The resource <strong>SHALL</strong> conform to the <a href=\"StructureDefinition-pca-healthcare-service.html\">PCA Healthcare Service</a> profile.</li>\n<li><em>id</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>meta.versionId</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>meta.lastUpdated</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>identifier:pca-hsi</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>providedBy</em> <strong>SHALL</strong> reference an existing <code>Organization</code> within the scope of the requesting system.</li>\n<li><em>location</em> <strong>SHALL</strong> reference an existing <code>Location</code> within the scope of the requesting system.</li>\n<li><em>location</em> <strong>SHALL</strong> reference a <code>Location</code> for which <em>managingOrganization</em> references the same <code>Organization</code> as is referenced by <em>providedBy</em>.</li>\n<li>One and only one <em>type</em> <strong>SHALL</strong> use the <em>iso21090-preferred</em> extension.</li>\n<li><em>coverageArea</em> <strong>SHALL</strong> only be present if <em>eligibility</em> contains the 'coverage-restrictedResidents' code, and/or if the <em>type</em> element of the referenced <em>location</em> contains either the 'MOBL' (mobile) or 'VI' (virtual) code.</li>\n<li>If present, <em>notAvailable.during</em> <strong>SHALL</strong> contain a complete date and <strong>SHALL NOT</strong> include time or timezone data.</li>\n<li>If present, <em>availableTime.during</em> elements (including <em>availableTime</em> elements using the <em>availableTimeApplicability</em> extension) <strong>SHALL</strong> contain a complete date and <strong>SHALL NOT</strong> include time or timezone data.</li>\n<li>If present, <em>availableTime</em> elements using the <em>availableTimeApplicability</em> extension <strong>SHALL</strong> include both a start and end date for the <em>during</em> element.</li>\n<li>If present, <em>pca-active-period</em> SHALL have at least <em>value[x].start</em> or <em>value[x].end</em>.</li>\n<li>If present, <em>pca-active-period.value[x].start</em> SHALL be later than '1900-01-01'.</li>\n<li>If present, <em>pca-active-period.value[x].start</em> SHALL be equal to, or earlier than, the <em>period.start</em> or <em>period.end</em> values of any <code>PractitionerRole`` resources that reference this </code>HealthcareService```.</li>\n<li>If present, <em>pca-active-period.value[x].end</em> SHALL be no more than 5 years from the current date.</li>\n<li>If present, <em>pca-active-period.value[x].end</em> SHALL be equal to, or later than, the <em>period.start</em> or <em>period.end</em> values of any <code>PractitionerRole`` resources that reference this </code>HealthcareService```.</li>\n<li><em>type</em> <strong>SHALL</strong> use a code that is not already being used by any existing <code>PCA Healthcare Service</code> resources for the same <code>PCA Location</code>.</li>\n</ul>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>POST [publisher agent base url]/HealthcareService</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li><code>HealthcareService</code> resource that conforms to the <a href=\"StructureDefinition-pca-healthcare-service.html\">PCA Healthcare Service</a> profile.</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>ETag: [version id]</code> where [version id] identifies the version of the new <code>HealthcareService</code> resource.</li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: <code>HealthcareService</code> resource that conforms to the <a href=\"StructureDefinition-pca-healthcare-service.html\">PCA Healthcare Service</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain one or more of the following <em>scoped roles</em>:</p>\n<ul>\n<li><code> Organization/[id]:PCA:Om</code></li>\n<li><code> Organization/[id]:PCA:Hsm</code></li>\n<li><code> Location/[id]:PCA:Hsm</code></li>\n<li><code> Organization/[id]:PS_ServicesMgr</code></li>\n<li><code> Location/[id]:PS_ServicesMgr</code></li>\n</ul>\n<p>If a <em>scoped role</em> identifies an <code>Organization</code> then [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>providedBy</em> in the new <code>HealthcareService</code>.</p>\n<p>if a <em>scoped role</em> identifies a <code>Location</code> then [id] <strong>SHALL</strong> identify the <code>Location</code> referenced by <em>location</em> in the new <code>HealthcareService</code>.</p>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 201:  The resource was successfully created.</li>\n<li>Code 400:  The input resource could not be parsed or failed basic FHIR validation rules.</li>\n<li>Code 404:  The resource type is not supported, or not a FHIR end-point.</li>\n<li>Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.</li>\n</ul>\n</div><code>read</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>read</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#read\">FHIR specification</a>) of a <code>HealthcareService</code> resource.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>This operation is used to retrieve an identified <code>HealthcareService</code> resource that conforms to one of the following profiles:</p>\n<ul>\n<li><a href=\"StructureDefinition-pca-healthcare-service.html\">PCA Healthcare Service</a></li>\n<li><a href=\"StructureDefinition-pca-partner-service.html\">PCA Partner Service</a></li>\n</ul>\n<p>Different authorisation rules apply depending on the profile of the <code>HealthcareService</code> resource being retrieved; see the 'Required OAuth 2.0 scopes' section below.</p>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>GET [publisher agent base url]/HealthcareService/[id]</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li>(No request body)</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>ETag: [version id]</code> where [version id] identifies the version of the <code>HealthcareService</code> resource returned.</li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: <code>HealthcareService</code> resource that conforms to either the <a href=\"StructureDefinition-pca-healthcare-service.html\">PCA Healthcare Service</a> or <a href=\"StructureDefinition-pca-partner-service.html\">PCA Partner Service</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain one or more of the following <em>scoped roles</em>:</p>\n<ul>\n<li><code> Organization/[id]:PS_Read</code></li>\n<li><code> Location/[id]:PS_Read</code></li>\n<li><code> HealthcareService/[id]:PS_Read</code></li>\n</ul>\n<p>When retrieving a <code>HealthcareService</code> resource that conforms to the <a href=\"StructureDefinition-pca-healthcare-service.html\">PCA Healthcare Service</a> profile:</p>\n<ul>\n<li>If a <em>scoped role</em> identifies an <code>Organization</code> then [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>providedBy</em> in the target <code>HealthcareService</code> being read.</li>\n<li>If a <em>scoped role</em> identifies a <code>Location</code> then [id] <strong>SHALL</strong> identify the <code>Location</code> referenced by <em>location</em> in the target <code>HealthcareService</code> being read.</li>\n<li>If a <em>scoped role</em> identifies a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify the target <code>HealthcareService</code> being read.</li>\n</ul>\n<p>When retrieving a <code>HealthcareService</code> resource that conforms to the <a href=\"StructureDefinition-pca-partner-service.html\">PCA Partner Service</a> profile:</p>\n<ul>\n<li>If a <em>scoped role</em> identifies an <code>Organization</code> then [id] <strong>SHALL</strong> identify the publishing organisation associated with the target PCA Publisher Agent.</li>\n<li>If a <em>scoped role</em> identifies a <code>Location</code> then [id] <strong>SHALL</strong> identify any existing <code>Location</code> within the scope of the requesting system.</li>\n<li>If a <em>scoped role</em> identifies a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify any existing <code>HealthcareService</code> within the scope of the requesting system.</li>\n</ul>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 200:  The resource was found and returned.</li>\n<li>Code 404:  The resource was not found.</li>\n</ul>\n</div><code>update</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>update</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#update\">FHIR specification</a>) of a <code>HealthcareService</code> resource.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>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:</p>\n<ul>\n<li>The resource <strong>SHALL</strong> conform to the <a href=\"StructureDefinition-pca-healthcare-service.html\">PCA Healthcare Service</a> profile.</li>\n<li><em>id</em> <strong>SHALL</strong>   be identical to the value in the version of the <code>HealthcareService</code> identified in the 'if-match' HTTP header.</li>\n<li><em>meta.versionId</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>meta.lastUpdated</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>providedBy</em> <strong>SHALL</strong>  be identical to the corresponding value in the version of the <code>HealthcareService</code> identified in the 'if-match' HTTP header.</li>\n<li><em>location</em> <strong>SHALL</strong>   be identical to the corresponding value in the version of the <code>HealthcareService</code> identified in the 'if-match' HTTP header.</li>\n<li><em>identifier:pca-hsi</em> <strong>SHALL</strong>  be identical to the corresponding value in the version of the <code>HealthcareService</code> identified in the 'if-match' HTTP header.</li>\n<li>One and only one <em>type</em> <strong>SHALL</strong> use the <em>iso21090-preferred</em> extension.</li>\n<li><em>coverageArea</em> <strong>SHALL</strong> only be present if <em>eligibility</em> contains the 'coverage-restrictedResidents' code, and/or if the <em>type</em> element of the referenced <em>location</em> contains either the 'MOBL' (mobile) or 'VI' (virtual) code.</li>\n<li>If present, <em>notAvailable.during</em> <strong>SHALL</strong> contain a complete date and <strong>SHALL NOT</strong> include time or timezone data.</li>\n<li>If present, <em>availableTime.during</em> elements (including <em>availableTime</em> elements using the <em>availableTimeApplicability</em> extension) <strong>SHALL</strong> contain a complete date and <strong>SHALL NOT</strong> include time or timezone data.</li>\n<li>If present, <em>availableTime</em> elements using the <em>availableTimeApplicability</em> extension <strong>SHALL</strong> include both a start and end date for the <em>during</em> element.</li>\n<li>If present, <em>availableTime</em> elements using the <em>availableTimeApplicability</em> extension <strong>SHALL</strong> include both a start and end date for the <em>during</em> element.</li>\n<li>If present, <em>pca-active-period</em> SHALL have at least <em>value[x].start</em> or <em>value[x].end</em>.</li>\n<li>If present, <em>pca-active-period.value[x].start</em> SHALL be later than '1900-01-01'.</li>\n<li>If present, <em>pca-active-period.value[x].start</em> SHALL be equal to, or earlier than, the <em>period.start</em> or <em>period.end</em> values of any <code>PractitionerRole`` resources that reference this </code>HealthcareService```.</li>\n<li>If present, <em>pca-active-period.value[x].end</em> SHALL be no more than 5 years from the current date.</li>\n<li>If present, <em>pca-active-period.value[x].end</em> SHALL be equal to, or later than, the <em>period.start</em> or <em>period.end</em> values of any <code>PractitionerRole`` resources that reference this </code>HealthcareService```.</li>\n<li><em>type</em> <strong>SHALL</strong> use a code that is not already being used by any existing <code>PCA Healthcare Service</code> resources for the same <code>PCA Location</code>.</li>\n</ul>\n<p>If the 'if-match' HTTP header is not provided in the request, then the PCA Publisher Agent will reject the request and return the error code 400.</p>\n<p>If the 'if-match' HTTP header does not match the current version, then the PCA Publisher Agent will reject the request and return the error code 412.</p>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>PUT [publisher agent base url]/HealthcareService/[id]</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n<li><code>if-match [version id]</code> where [version id] is the version of the <code>HealthcareService</code> being updated.</li>\n</ul>\n<p><strong>Request Body</strong>:<br/>\n<code>HealthcareService</code> resource that conforms to the <a href=\"StructureDefinition-pca-healthcare-service.html\">PCA Healthcare Service</a> profile.</p>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>ETag: [version id]</code> where [version id] identifies the version of the <code>HealthcareService</code> resource returned.</li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: <code>HealthcareService</code> resource that conforms to the <a href=\"StructureDefinition-pca-healthcare-service.html\">PCA Healthcare Service</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain one or more of the following <em>scoped roles</em>:</p>\n<ul>\n<li><code> Organization/[id]:PCA:Om</code></li>\n<li><code> Organization/[id]:PCA:Hsm</code></li>\n<li><code> Location/[id]:PCA:Hsm</code></li>\n<li><code> HealthcareService/[id]:PCA:Hsm</code></li>\n<li><code> Organization/[id]:PS_ServiceMgr</code></li>\n<li><code> Location/[id]:PS_ServiceMgr</code></li>\n<li><code> HealthcareService/[id]:PS_ServiceMgr</code></li>\n</ul>\n<p>If a <em>scoped role</em> identifies an <code>Organization</code> then [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>providedBy</em> in the target <code>HealthcareService</code> being updated.</p>\n<p>If a <em>scoped role</em> identifies a <code>Location</code> then [id] <strong>SHALL</strong> identify the <code>Location</code> referenced by <em>location</em> in the target <code>HealthcareService</code> being updated.</p>\n<p>If a <em>scoped role</em> identifies a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify the target <code>HealthcareService</code> being updated.</p>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 200:  The resource was found and returned.</li>\n<li>Code 400:  Client error:  request did not include the <em>if-match</em> HTTP header.</li>\n<li>Code 404:  The resource was not found.</li>\n<li>Code 412:  The version id given in the <em>if-Match</em> HTTP request header does not match the current version.</li>\n<li>Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.</li>\n</ul>\n</div><code>search-type</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>search</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#search\">FHIR specification</a>) for <code>HealthcareService</code> resources that conform to the <a href=\"StructureDefinition-pca-partner-service.html\">PCA Partner Service</a> profile.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>The operation is used to find <code>HealthcareService</code> resources that that conform to the <a href=\"StructureDefinition-pca-partner-service.html\">PCA Partner Service</a> profile and that match the search parameters.<br/>\nNote that all <a href=\"StructureDefinition-pca-partner-service.html\">PCA Partner Service</a> resources in the PCA service are accessible to all authorised client systems.</p>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>GET [publisher agent base url]/HealthcareService/{?[parameters]}</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li>(No request body)</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: Bundle that contains zero to many <code>HealthcareService</code> resources that conform to the <a href=\"StructureDefinition-pca-partner-service.html\">PCA Partner Service</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain one or more of the following <em>scoped roles</em>:</p>\n<ul>\n<li><code> Organization/[id]:PCA:Om</code></li>\n<li><code> Organization/[id]:PCA:Hsm</code></li>\n<li><code> Location/[id]:PCA:Hsm</code></li>\n<li><code> HealthcareService/[id]:PCA:Hsm</code></li>\n<li><code> Organization/[id]:PS_Read</code></li>\n<li><code> Location/[id]:PS_Read</code></li>\n<li><code> HealthcareService/[id]:PS_Read</code></li>\n</ul>\n<p>If a <em>scoped role</em> identifies an <code>Organization</code> then [id] <strong>SHALL</strong> identify the publishing organisation associated with the target PCA Publisher Agent.</p>\n<p>If a <em>scoped role</em> identifies a <code>Location</code> then [id] <strong>SHALL</strong> identify any existing <code>Location</code> within the scope of the requesting system.</p>\n<p>If a <em>scoped role</em> identifies a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify any existing <code>HealthcareService</code> within the scope of the requesting system.</p>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 200:  Search successfully performed (but may return zero matching results).</li>\n<li>Code 403:  Server refused to perform the search.</li>\n</ul>\n</div></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>\n<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>\n<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>\n</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\">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 <br/><code>create</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>create</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#create\">FHIR specification</a>) of a <code>PractitionerRole</code> resource conforming to the <a href=\"StructureDefinition-pca-practitioner-role.html\">PCA Practitioner Role</a> profile.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>If the <code>Organization</code> associated with the target PCA Publisher Agent has not been approved to participate in the PCA service, then the request will be rejected and the error code 422 will be returned.</p>\n<p>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:</p>\n<ul>\n<li>The resource <strong>SHALL</strong> conform to the profile <a href=\"StructureDefinition-pca-practitioner-role.html\">http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-practitioner-role</a>.</li>\n<li><em>id</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>meta.versionId</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>meta.lastUpdated</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>identifier:pca-pri</em> <strong>SHALL</strong> not be present.</li>\n<li><em>active</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>organization</em> <strong>SHALL</strong> not be present.</li>\n<li><em>location</em> <strong>SHALL</strong> not be present.</li>\n<li><em>healthcareService</em> <strong>SHALL</strong> reference an existing <code>HealthcareService</code> that exists within the target PCA Publisher Agent.</li>\n<li><em>practitioner</em> <strong>SHALL</strong> reference an existing <code>Practitioner</code> that exists within the PCA service.</li>\n<li>if <em>coding:hiServiceRole</em> is present and has the value 'ProvidesHealthcareToIndividuals', then the <code>Organization</code> associated with the target PCA Publisher Agent <strong>SHALL</strong> have authorised the Agency as a Contracted Service Provider (CSP).</li>\n<li>If present, <em>period.start</em> SHALL be later than '1900-01-01'.</li>\n<li>If present, <em>period.start</em> SHALL be equal to, or later than, the <em>pca-active-period.value[x].start</em> value (if present) of the <code>HealthcareService</code> referenced by the <em>healthcareService</em> element.</li>\n<li>If present, <em>period.end</em> SHALL be no more than 5 years from the current date.</li>\n<li>If present, <em>period.end</em> SHALL be equal to, or earlier than, the <em>pca-active-period.value[x].end</em> value (if present) of the <code>HealthcareService</code> referenced by the <em>healthcareService</em> element.</li>\n</ul>\n<p>Note: While the referenced <code>Practitioner</code> resource is managed via the PCA portal, it is also instantiated as a read-only 'proxy' within the PCA Publisher Agent.  This means that the reference to <code>Practitioner</code> contained in the <code>PractitionerRole</code> is a local reference that is resolved within the PCA Publisher Agent.  This 'proxy' has the same id as the resource within the PCA Portal for which it is a proxy.</p>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>POST [publisher agent base url]/PractitionerRole</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li><code>PractitionerRole</code> resource that conforms to the <a href=\"StructureDefinition-pca-practitioner-role.html\">PCA Practitioner Role</a> profile.</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>ETag: [version id]</code> where [version id] identifies the version of the new <code>PractitionerRole</code> resource.</li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: <code>PractitionerRole</code> resource that conforms to the <a href=\"StructureDefinition-pca-practitioner-role.html\">PCA Practitioner Role</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain one or more of the following <em>scoped roles</em>:</p>\n<ul>\n<li><code> Organization/[id]:PCA:Om</code></li>\n<li><code> Organization/[id]:PCA:Hsm</code></li>\n<li><code> Location/[id]:PCA:Hsm</code></li>\n<li><code> HealthcareService/[id]:PCA:Hsm</code></li>\n<li><code> Organization/[id]:PS_ServicesMgr</code></li>\n<li><code> Location/[id]:PS_ServicesMgr</code></li>\n<li><code> HealthcareService/[id]:PS_ServicesMgr</code></li>\n</ul>\n<p>If a <em>scoped role</em> identifies an <code>Organization</code> then [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>providedBy</em> of the <code>HealthcareService</code> referenced by <em>healthcareService</em> in the new <code>PractitionerRole</code>.</p>\n<p>if a <em>scoped role</em> identifies a <code>Location</code> then [id] <strong>SHALL</strong> identify the <code>Location</code> referenced by <em>location</em> of the <code>HealthcareService</code> referenced by <em>healthcareService</em> in the new <code>PractitionerRole</code>.</p>\n<p>if a <em>scoped role</em> identifies a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify the <code>HealthcareService</code> referenced by <em>healthcareService</em> in the new <code>PractitionerRole</code>.</p>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 201:  The resource was successfully created.</li>\n<li>Code 400:  The input resource could not be parsed or failed basic FHIR validation rules.</li>\n<li>Code 404:  The resource type is not supported, or not a FHIR end-point.</li>\n<li>Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.</li>\n</ul>\n</div><code>read</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>read</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#read\">FHIR specification</a>) of a <code>PractitionerRole</code> resource.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>This operation retrieves an identified <code>PractitionerRole</code> resource that conforms to the <a href=\"StructureDefinition-pca-practitioner-role.html\">PCA Practitioner Role</a> profile.</p>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>GET [publisher agent base url]/PractitionerRole/[id]</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li>(No request body)</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>ETag: [version id]</code> where [version id] identifies the version of the <code>PractitionerRole</code> resource returned.</li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: <code>PractitionerRole</code> resource that conforms to the <a href=\"StructureDefinition-pca-practitioner-role.html\">PCA Practitioner Role</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain one or more of the following <em>scoped roles</em>:</p>\n<ul>\n<li><code>Organization/[id]:PCA:Om</code></li>\n<li><code>Organization/[id]:PCA:Hsm</code></li>\n<li><code>Location/[id]:PCA:Hsm</code></li>\n<li><code>HealthcareService/[id]:PCA:Hsm</code></li>\n<li><code>Organization/[id]:PS_Read</code></li>\n<li><code>Location/[id]:PS_Read</code></li>\n<li><code>HealthcareService/[id]:PS_Read</code></li>\n</ul>\n<p>If a <em>scoped role</em> identifies an <code>Organization</code> then [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>providedBy</em> in the <code>HealthcareService</code> referenced by <em>healthcareService</em> in the target <code>PractitionerRole</code> being read.</p>\n<p>If a <em>scoped role</em> identifies a <code>Location</code> then [id] <strong>SHALL</strong> identify the <code>Location</code> referenced by <em>location</em> in the <code>HealthcareService</code> referenced by <em>healthcareService</em> in the target <code>PractitionerRole</code> being read.</p>\n<p>If a <em>scoped role</em> identifies a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify the <code>HealthcareService</code> referenced by <em>healthcareService</em> in the target <code>PractitionerRole</code> being read.</p>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 200:  The resource was found and returned.</li>\n<li>Code 404:  The resource was not found.</li>\n</ul>\n</div><code>update</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>update</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#update\">FHIR specification</a>) of a <code>PractitionerRole</code> resource.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>If the <code>Organization</code> associated with the target PCA Publisher Agent has not been approved to participate in the PCA service, then the request will be rejected and the error code 422 will be returned.</p>\n<p>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:</p>\n<ul>\n<li>The resource <strong>SHALL</strong> conform to the <a href=\"StructureDefinition-pca-practitioner-role.html\">PCA Practitoner Role</a> profile.</li>\n<li><em>id</em> <strong>SHALL</strong>  be identical to the value in the version of the <code>PractitionerRole</code> identified in the 'if-match' HTTP header.</li>\n<li><em>meta.versionId</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>meta.lastUpdated</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>identifier:pca-pri</em> <strong>SHALL</strong> be identical to the corresponding value in the version of the <code>PractitionerRole</code> identified in the 'if-match' HTTP header.</li>\n<li><em>active</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>organization</em> <strong>SHALL</strong> be identical to the corresponding value in the version of the <code>PractitionerRole</code> identified in the 'if-match' HTTP header.</li>\n<li><em>location</em> <strong>SHALL</strong> be identical to the corresponding value in the version of the <code>PractitionerRole</code> identified in the 'if-match' HTTP header.</li>\n<li><em>healthcareService</em> <strong>SHALL</strong> be identical to the corresponding value in the version of the <code>PractitionerRole</code> identified in the 'if-match' HTTP header.</li>\n<li><em>practitioner</em> <strong>SHALL</strong> be identical to the corresponding value in the version of the <code>PractitionerRole</code> identified in the 'if-match' HTTP header.</li>\n<li>if <em>coding:hiServiceRole</em> is present and has the value 'ProvidesHealthcareToIndividuals', then the Organization associated with the target PCA Publisher Agent <strong>SHALL</strong> have authorised the Agency as a Contracted Service Provider (CSP).</li>\n<li>If present, <em>period.start</em> SHALL be later than '1900-01-01'.</li>\n<li>If present, <em>period.start</em> SHALL be equal to, or later than, the <em>pca-active-period.value[x].start</em> value (if present) of the <code>HealthcareService</code> referenced by the <em>healthcareService</em> element.</li>\n<li>If present, <em>period.end</em> SHALL be no more than 5 years from the current date.</li>\n<li>If present, <em>period.end</em> SHALL be equal to, or earlier than, the <em>pca-active-period.value[x].end</em> value (if present) of the <code>HealthcareService</code> referenced by the <em>healthcareService</em> element.</li>\n</ul>\n<p>If the 'if-match' HTTP header is not provided in the request, then the PCA Publisher Agent will reject the request and return the error code 400.</p>\n<p>If the 'if-match' HTTP header does not match the current version, then the PCA Publisher Agent will reject the request and return the error code 412.</p>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>PUT [publisher agent base url]/PractitionerRole/[id]</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n<li><code>if-match [version id]</code> where [version id] is the version of the PractitionerRole being updated.</li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li><code>PractitionerRole</code> resource that conforms to the <a href=\"StructureDefinition-pca-practitioner-role.html\">PCA Practtiioner Role</a> profile.</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>ETag: [version id]</code> where [version id] identifies the version of the PractitionerRole resource returned.</li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: <code>PractitionerRole</code> resource that conforms to the <a href=\"StructureDefinition-pca-practitioner-role.html\">PCA Practitioner Role</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain one or more of the following <em>scoped roles</em>:</p>\n<ul>\n<li><code>Organization/[id]:PCA:Om</code></li>\n<li><code>Organization/[id]:PCA:Hsm</code></li>\n<li><code>Location/[id]:PCA:Hsm</code></li>\n<li><code>HealthcareService/[id]:PCA:Hsm</code></li>\n<li><code>Organization/[id]:PS_PractitionerMgr</code></li>\n<li><code>Location/[id]:PS_PractitionerMgr</code></li>\n<li><code>HealthcareService/[id]:PS_PractitionerMgr</code></li>\n</ul>\n<p>If a <em>scoped role</em> identifies an <code>Organization</code> then [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>providedBy</em> in the <code>HealthcareService</code> referenced by <em>healthcareService</em> in the target <code>PractitionerRole</code> being updated.</p>\n<p>If a <em>scoped role</em> identifies a <code>Location</code> then [id] <strong>SHALL</strong> identify the <code>Location</code> referenced by <em>location</em> in the <code>HealthcareService</code> referenced by <em>healthcareService</em> in the target <code>PractitionerRole</code> being updated.</p>\n<p>If a <em>scoped role</em> identifies a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify the <code>HealthcareService</code> referenced by <em>healthcareService</em> in the target <code>PractitionerRole</code> being updated.</p>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 200:  The resource was found and returned.</li>\n<li>Code 400:  Client error:  request did not include the <em>if-match</em> HTTP header.</li>\n<li>Code 404:  The resource was not found.</li>\n<li>Code 412:  The version id given in the <em>if-Match</em> HTTP request header does not match the current version</li>\n<li>Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.</li>\n</ul>\n</div></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.</p>\n<p>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>\n</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\">_lastUpdated</a></td><td><code>date</code></td><td><div/></td></tr><tr><td><b>SHALL</b></td><td><a href=\"http://hl7.org/fhir/R4/resource.html#search\">_id</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/practitionerrole.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/practitionerrole.html#search\">identifier</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/practitionerrole.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/practitionerrole.html#search\">practitioner</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/practitionerrole.html#search\">service</a></td><td><code>reference</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=\"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\">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 <br/><code>read</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>read</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#read\">FHIR specification</a>) of a <code>Practitioner</code> resource.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>This operation retrieves an identified <code>Practitioner</code> resource that conforms to the <a href=\"StructureDefinition-pca-practitioner.html\">PCA Practitioner</a> profile.</p>\n<p>The PCA Publisher Agent will include a <em>identifier:hpii</em> in the <code>Practitioner</code> resource returned if <strong>all</strong> of the following conditions are met:</p>\n<ul>\n<li>HPI-I and Ahpra number match in the HI service.</li>\n<li>The <code>Organization</code> on whose behalf the request is made is a publisher organisation.</li>\n<li>The <code>Organization</code> on whose behalf the request is made has been approved to participate in the PCA service.</li>\n<li>The <code>Organization</code> on whose behalf the request is made has authorised the Agency as a Contracted Service Provider (CSP).</li>\n<li>The client system is authorised to read an existing PractitionerRole where <em>practitioner</em> references the <code>Practitioner</code> resource returned <strong>and</strong> where <em>coding:hiServiceRole</em> has the value 'ProvidesHealthcareToIndividuals'.</li>\n</ul>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>GET [publisher agent base url]/Practitioner/[id]</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li>(No request body)</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>ETag: [version id]</code> where [version id] identifies the version of the <code>Practitioner</code> resource returned.</li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: <code>Practitioner</code> resource that conforms to the <a href=\"StructureDefinition-pca-practitioner.html\">PCA Practitioner</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain one or more of the following <em>scoped roles</em>:</p>\n<ul>\n<li><code>Organization/[id]:PCA:Om</code></li>\n<li><code>Organization/[id]:PCA:Hsm</code></li>\n<li><code>Location/[id]:PCA:Hsm</code></li>\n<li><code>HealthcareService/[id]:PCA:Hsm</code></li>\n<li><code>Organization/[id]:PS_Read</code></li>\n<li><code>Location/[id]:PS_Read</code></li>\n<li><code>HealthcareService/[id]:PS_Read</code></li>\n</ul>\n<p>If a <em>scoped role</em> identifies an <code>Organization</code> then [id] <strong>SHALL</strong> identify the publishing organisation associated with the requesting system.</p>\n<p>If a <em>scoped role</em> identifies a <code>Location</code> then [id] <strong>SHALL</strong> identify any existing <code>Location</code> within the scope of the requesting system.</p>\n<p>If a <em>scoped role</em> identifies a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify any existing <code>HealthcareService</code> within the scope of the requesting system.</p>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 200:  The resource was found and returned.</li>\n<li>Code 404:  The resource was not found.</li>\n</ul>\n</div><code>search-type</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>search</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#search\">FHIR specification</a>) for a <code>Practitioner</code> resource for either a given Ahpra registration number or HPI-I identifier that conforms to the <a href=\"StructureDefinition-pca-practitioner.html\">PCA Practitioner</a> profile.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>The operation is used to find a <code>Practitioner</code> resource given their Ahpra registration number or HPI-I identifier.  The PCA Publisher Agent will return zero or one <code>Practitioner</code> resource that conforms to the <a href=\"StructureDefinition-pca-partner-service.html\">PCA Practitioner</a> profile.</p>\n<p>The operation is only available to client systems acting on behalf of publisher organisations (see ‘Required OAuth 2.0 scopes’ below).</p>\n<p>The PCA Publisher Agent will reject requests and return the error code 403 if the identifier query string is not present, or if the identifier query string does not qualify the identifier value with one of the following systems:</p>\n<ul>\n<li>http://hl7.org.au/id/ahpra-registration-number (when searching on Ahpra registration number)</li>\n<li>http://ns.electronichealth.net.au/id/hi/hpii/1.0 (when searching on HPI-I)</li>\n</ul>\n<p>The PCA Publisher Agent return a <code>Bundle</code> containing exactly one <code>Practitioner</code> resource if the identifier query string matches the same record in either the Ahpra Register of practitioners or the HI Service, else it will return a <code>Bundle</code> contanining zero results.</p>\n<p>The PCA Publisher Agent will only support searching by HPI-I if the client system’s organisation has has made the PCA a Contracted Service Provider (CSP).</p>\n<p>The PCA Publisher Agent will include the <em>identifier:hpii</em> element in the <code>Practitioner</code> resource returned if the client system’s organisation has has made the PCA a Contracted Service Provider (CSP) and the <code>Practitioner</code> resource's <em>coding:hiServiceRole</em> element has the value ‘ProvidesHealthcareToIndividuals’.</p>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>GET [publisher agent base url]/Practitioner/{?[parameter]}</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li>(No request body)</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: Bundle that contains zero to one <code>Practitioner</code> resources that conforms to the <a href=\"StructureDefinition-pca-practitioner.html\">PCA Practitioner</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain one or more of the following <em>scoped roles</em>:</p>\n<ul>\n<li><code>Organization/[id]:PCA:Om</code></li>\n<li><code>Organization/[id]:PCA:Hsm</code></li>\n<li><code>Location/[id]:PCA:Hsm</code></li>\n<li><code>HealthcareService/[id]:PCA:Hsm</code></li>\n<li><code>Organization/[id]:PS_ServicesMgr</code></li>\n<li><code>Location/[id]:PS_ServicesMgr</code></li>\n<li><code>HealthcareService/[id]:PS_ServicesMgr</code></li>\n</ul>\n<p>If a <em>scoped role</em> identifies an <code>Organization</code> then [id] <strong>SHALL</strong> identify the publishing organisation associated with the requesting system.</p>\n<p>If a <em>scoped role</em> identifies a <code>Location</code> then [id] <strong>SHALL</strong> identify any existing <code>Location</code> within the scope of the requesting system.</p>\n<p>If a <em>scoped role</em> identifies a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify any existing <code>HealthcareService</code> within the scope of the requesting system.</p>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 200:  Search successfully performed (but may return zero matching results).</li>\n<li>Code 403:  Server refused to perform the search.</li>\n</ul>\n</div></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>\n<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>\n<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>\n</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/practitioner.html#search\">identifier</a></td><td><code>token</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=\"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\">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 <br/><code>read</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>read</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#read\">FHIR specification</a>) of a <code>Provenance</code> resource.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>This operation retrieves an identified <code>Provenance</code> resource that conforms to the <a href=\"StructureDefinition-pca-practitioner-role.html\">PCA Provenance</a> profile.</p>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>GET [publisher agent base url]/Provenance/[id]</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li>(No request body)</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: <code>Provenance</code> resource that conforms to the <a href=\"StructureDefinition-pca-provenance.html\">PCA Provenance</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain one or more of the following <em>scoped roles</em>:</p>\n<ul>\n<li><code>Organization/[id]:PCA:Om</code></li>\n<li><code>Organization/[id]:PCA:Hsm</code></li>\n<li><code>Location/[id]:PCA:Hsm</code></li>\n<li><code>HealthcareService/[id]:PCA:Hsm</code></li>\n<li><code>Organization/[id]:PS_Read</code></li>\n<li><code>Location/[id]:PS_Read</code></li>\n<li><code>HealthcareService/[id]:PS_Read</code></li>\n</ul>\n<p>If the <code>Provenance</code> resource being read has a <em>target</em> that references an <code>Organization</code>, then:</p>\n<ul>\n<li>If a <em>scoped role</em> identifies an <code>Organization</code> then [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>target</em> in the <code>Provenance</code> resource being read.</li>\n</ul>\n<p>If the <code>Provenance</code> resource being read has a <em>target</em> that references a <code>Practitioner</code>, then:</p>\n<ul>\n<li>If a <em>scoped role</em> identifies an <code>Organization</code> then [id] <strong>SHALL</strong> identify the publishing organisation associated with the requesting system.</li>\n<li>If a <em>scoped role</em> identifies a <code>Location</code> then [id] <strong>SHALL</strong> identify any existing <code>Location</code> within the scope of the requesting system.</li>\n<li>If a <em>scoped role</em> identifies a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify any existing <code>HealthcareService</code> within the scope of the requesting system.</li>\n</ul>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 200:  The resource was found and returned.</li>\n<li>Code 404:  The resource was not found.</li>\n</ul>\n</div></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>\n<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>\n</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 <br/><code>create</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>create</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#create\">FHIR specification</a>) of a <code>Contract</code> resource conforming to the <a href=\"StructureDefinition-pca-publication-authorisation-record.html\">PCA Publication Authorisation Record</a> profile.</p>\n<p>Please note: This operation will be available in Release 2.1 of PCA.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>This operation records a decision made by an authorised representative of a publisher organisation to authorise the publication of a <code>HealthcareService</code> or <code>PractitionerRole</code> to a partner service.</p>\n<p>Authorisation is implemented using this operation.  Revocation is implemented by updating the <em>status</em> of the existing <code>Contract</code> to 'revoked'.</p>\n<p>A <code>Contract</code> resource cannot be created with a <em>status</em> of 'cancelled' - this status can only by set by the PCA service and is used to indicate that the partner service associated with the publication authorisation is inactive.</p>\n<p>If the invocation of a <code>Contract</code> resource with <em>status</em> of 'executed' is sucessful then the PCA service will make the following resources available to the PCA Subscriber Agent of the organisation referenced by <em>providedBy</em> of the partner service:</p>\n<ul>\n<li><em>target</em> resource (<code>HealthcareService</code> or <code>PractitionerRole</code>).</li>\n<li><code>Organization</code>, <code>Location</code> and <code>Practitioner</code> resources that are referenced directly or indirectly by the target <code>HealthcareService</code> or <code>PractitionerRole</code>.</li>\n<li>The newly created <code>Contract</code> resource.</li>\n</ul>\n<p>The PCA service will also continue to make available any new versions of these resources to the same PCA Subscriber Agent. This process continues until the existing <code>Contract</code> resource is updated with a <em>status</em> of 'revoked'.</p>\n<p>Prior to invoking this operation the following PCA API operations are available to provide the information that is recorded in the <code>Contract</code> resource to be created.</p>\n<ul>\n<li>If not already identified or synchronised locally, then search for the relevant resource(s) using <a href=\"CapabilityStatement-pca-publisher-agent.html#search-system\">search-system</a> (for service offering resources to publish) and <a href=\"CapabilityStatement-pca-publisher-agent.html\">PartnerService search-type</a> (for partner services registered in the PCA service)</li>\n<li>Get the current text of the information use statement for the selected partner service:\n<ul>\n<li>Get the partner service (i.e. a HealthcareService) using <a href=\"CapabilityStatement-pca-publisher-agent.html\">PartnerService read</a></li>\n<li>Get the reference to the latest version of the Information Use Statement (i.e. a <code>Contract</code> resource) from the  <a href=\"StructureDefinition-pca-current-information-use-statement.html\">pca-current-information-use-statement</a> extension in the partner service resource</li>\n<li>Get the text of the information use statement using <a href=\"CapabilityStatement-pca-publisher-agent.html\">Information Use Statement read</a></li>\n</ul>\n</li>\n</ul>\n<p>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:</p>\n<ul>\n<li>The resource <strong>SHALL</strong> conform to the  <a href=\"StructureDefinition-pca-publication-authorisation-record.html\">PCA Publication Authorisation Record</a> profile.</li>\n<li><em>id</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>meta.versionId</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>meta.lastUpdated</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>subject</em> <strong>SHALL</strong>  reference an existing <code>HealthcareService</code> or <code>PractitionerRole</code> implemented by the PCA Publisher Agent (i.e. the target FHIR server)</li>\n<li><em>instantiatesCanonical</em> <strong>SHALL</strong> reference the information use statement (i.e. a <code>Contract</code> resource) whose <em>legal.content[x].data</em> element was viewed by the person responsible for making the publication decision recorded via the new <code>Contract</code> resource.</li>\n<li><em>author</em> <strong>SHALL</strong> be a local reference to a contained resource of type <a href=\"StructureDefinition-pca-publication-approver.html\">PCA Publication Approver</a>.</li>\n<li><em>status</em> <strong>SHALL</strong> use the code 'executed'.</li>\n<li>The partner service referenced by the <em>subject</em> of the information use statement referenced in <em>instantiatesCanonical</em> <strong>SHALL</strong> have an <em>active</em> value of 'true'.</li>\n</ul>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>POST [publisher agent base url]/Contract</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li><code>Contract</code> resource that conforms to the  <a href=\"StructureDefinition-pca-publication-authorisation-record.html\">PCA Publication Authorisation Record</a> profile.</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: <code>Contract</code> resource that conforms to the  <a href=\"StructureDefinition-pca-publication-authorisation-record.html\">PCA Publication Authorisation Record</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain one or more of the following <em>scoped roles</em>:</p>\n<ul>\n<li><code>Organization/[id]:PCA:Om</code></li>\n<li><code>Organization/[id]:PCA:Hsm</code></li>\n<li><code>Location/[id]:PCA:Hsm</code></li>\n<li><code>HealthcareService/[id]:PCA:Hsm</code></li>\n<li><code>Organization/[id]:PS_PublicationMgr</code></li>\n<li><code>Location/[id]:PS_PublicationMgr</code></li>\n<li><code>HealthcareService/[id]:PS_PublicationMgr</code></li>\n</ul>\n<p>If a <em>scoped role</em> identifies an <code>Organization</code> then:</p>\n<ul>\n<li>If the <em>subject</em> of the <code>Contract</code> being created references a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>providedBy</em> in that <code>HealthcareService</code>.</li>\n<li>If the <em>subject</em> of the <code>Contract</code> being created references a <code>PractitionerRole</code> then [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>providedBy</em> in the <code>HealthcareService</code> referenced by <em>healthcareService</em> in that <code>PractitionerRole</code>.</li>\n</ul>\n<p>If a <em>scoped role</em> identifies a <code>Location</code> then:</p>\n<ul>\n<li>If the <em>subject</em> of the <code>Contract</code> being created references a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify  the <code>Location</code> referenced by <em>location</em> in that <code>HealthcareService</code>.</li>\n<li>If the <em>subject</em> of the <code>Contract</code> being created references a <code>PractitionerRole</code> then [id] <strong>SHALL</strong> identify the <code>Location</code> referenced by <em>location</em> in the <code>HealthcareService</code> referenced by <em>healthcareService</em> in that <code>PractitionerRole</code>.</li>\n</ul>\n<p>If a <em>scoped role</em> identifies a <code>HealthcareService</code> then:</p>\n<ul>\n<li>If the <em>subject</em> of the <code>Contract</code> being created references a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify that <code>HealthcareService</code>.</li>\n<li>If the <em>subject</em> of the <code>Contract</code> being created references a <code>PractitionerRole</code> then [id] <strong>SHALL</strong> identify the <code>HealthcareService</code> referenced by <em>healthcareService</em> in that <code>PractitionerRole</code>.</li>\n</ul>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 201:  The resource was successfully created.</li>\n<li>Code 400:  The input resource could not be parsed or failed basic FHIR validation rules.</li>\n<li>Code 404:  The resource type is not supported, or not a FHIR end-point.</li>\n<li>Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.</li>\n</ul>\n</div><code>read</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>read</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#read\">FHIR specification</a>) of a <code>Contract</code> resource.</p>\n<p>Please note: This operation will be available in Release 2.1 of PCA.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>This operation is used to retrieve an identified <code>Contract</code> resource that conforms to one of the following profiles:</p>\n<ul>\n<li><a href=\"StructureDefinition-pca-publication-authorisation-record.html\">PCA Publication Authorisation Record</a></li>\n<li><a href=\"StructureDefinition-pca-information-use-statement.html\">PCA Information Use Statement</a></li>\n</ul>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>GET [publisher agent base url]/Contract/[id]</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li>(No request body)</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: <code>Contract</code> resource that conforms to the <a href=\"StructureDefinition-pca-publication-authorisation-record.html\">PCA Publication Authorisation Record</a> profile or the <a href=\"StructureDefinition-pca-information-use-statement.html\">PCA Information Use Statement</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain one or more of the following <em>scoped roles</em>:</p>\n<ul>\n<li><code>Organization/[id]:PCA:Om</code></li>\n<li><code>Organization/[id]:PCA:Hsm</code></li>\n<li><code>Location/[id]:PCA:Hsm</code></li>\n<li><code>HealthcareService/[id]:PCA:Hsm</code></li>\n<li><code>Organization/[id]:PS_Read</code></li>\n<li><code>Location/[id]:PS_Read</code></li>\n<li><code>HealthcareService/[id]:PS_Read</code></li>\n</ul>\n<p>When retrieving a <code>Contract</code> resource that conforms to the <a href=\"StructureDefinition-pca-publication-authorisation-record.html\">PCA Publication Authorisation Record</a> profile:</p>\n<ul>\n<li>\n<p>If a <em>scoped role</em> identifies an <code>Organization</code> then:</p>\n<ul>\n<li>If the <em>subject</em> of the <code>Contract</code> being read references a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>providedBy</em> in that <code>HealthcareService</code>.</li>\n<li>If the <em>subject</em> of the <code>Contract</code> being read references a <code>PractitionerRole</code> then [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>providedBy</em> in the <code>HealthcareService</code> referenced by <em>healthcareService</em> in that <code>PractitionerRole</code>.</li>\n</ul>\n</li>\n<li>\n<p>If a <em>scoped role</em> identifies a <code>Location</code> then:</p>\n<ul>\n<li>If the <em>subject</em> of the <code>Contract</code> being read references a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify  the <code>Location</code> referenced by <em>location</em> in that <code>HealthcareService</code>.</li>\n<li>If the <em>subject</em> of the <code>Contract</code> being read references a <code>PractitionerRole</code> then [id] <strong>SHALL</strong> identify the <code>Location</code> referenced by <em>location</em> in the <code>HealthcareService</code> referenced by <em>healthcareService</em> in that <code>PractitionerRole</code>.</li>\n</ul>\n</li>\n<li>\n<p>If a <em>scoped role</em> identifies a <code>HealthcareService</code> then:</p>\n<ul>\n<li>If the <em>subject</em> of the <code>Contract</code> being read references a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify that <code>HealthcareService</code>.</li>\n<li>If the <em>subject</em> of the <code>Contract</code> being read references a <code>PractitionerRole</code> then [id] <strong>SHALL</strong> identify the <code>HealthcareService</code> referenced by <em>healthcareService</em> in that <code>PractitionerRole</code>.</li>\n</ul>\n</li>\n</ul>\n<p>When retrieving a <code>Contract</code> resource that conforms to the <a href=\"StructureDefinition-pca-information-use-statement.html\">PCA Information Use Statement</a> profile:</p>\n<ul>\n<li>If a <em>scoped role</em> identifies an <code>Organization</code> then [id] <strong>SHALL</strong> identify the publishing organisation associated with the target PCA Publisher Agent.</li>\n<li>If a <em>scoped role</em> identifies a <code>Location</code> then [id] <strong>SHALL</strong> identify any existing <code>Location</code> within the scope of the requesting system.</li>\n<li>If a <em>scoped role</em> identifies a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify any existing <code>HealthcareService</code> within the scope of the requesting</li>\n</ul>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 200:  The resource was found and returned.</li>\n<li>Code 404:  The resource was not found.</li>\n</ul>\n</div><code>update</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>update</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#create\">FHIR specification</a>) of a <code>Contract</code> resource.</p>\n<p>Please note: This operation will be available in Release 2.1 of PCA.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>This operation can be used to record a decision made by an authorised representative of a publisher organisation to revoke an existing authorisation to publish, or to record that a new version of a partner service's information use statement has been accepted:</p>\n<ul>\n<li>Revocation is implemented using this operation by updating the <em>status</em> of an existing <code>Contract</code> resource to 'revoked'.</li>\n<li>Accepting a new version of a partner service's information use statement is implemented using this operation by updating the <em>instantiatesCanonical</em> of an existing <code>Contract</code> resource to reference a new information use statement.</li>\n</ul>\n<p>To re-authorise publication after revoking, create a new <code>Contract</code> resource.</p>\n<p>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:</p>\n<ul>\n<li>The resource <strong>SHALL</strong> conform to the <a href=\"StructureDefinition-pca-publication-authorisation-record.html\">PCA Publication Authorisation Record</a> profile.</li>\n<li><em>id</em> <strong>SHALL</strong> be identical to the corresponding value in the version of the <code>Contract</code> identified in the 'if-match' HTTP header.</li>\n<li><em>meta.versionId</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>meta.lastUpdated</em> <strong>SHALL NOT</strong> be present.</li>\n<li><em>subject</em> <strong>SHALL</strong> be identical to the corresponding value in the version of the <code>Contract</code> identified in the 'if-match' HTTP header.</li>\n<li><em>author</em> <strong>SHALL</strong> be identical to the corresponding value in the version of the <code>Contract</code> identified in the 'if-match' HTTP header.</li>\n<li>Updates to <em>instantiatesCanonical</em> <strong>SHALL</strong> only be permitted where the version of the <code>Contract</code> identified in the 'if-match' HTTP header has a <em>status</em> of 'executed', and <em>status</em> is not also being updated.</li>\n<li>Updates to <em>status</em> <strong>SHALL</strong> only be permitted where the <em>status</em> is being updated to <em>revoked</em>, and <em>instantiatesCanonical</em> is not also being updated.</li>\n<li>If <em>instantiatesCanonical</em> is being updated, the partner service referenced by the <em>subject</em> of the information use statement referenced in <em>instantiatesCanonical</em> <strong>SHALL</strong> have an <em>active</em> value of 'true'.</li>\n<li>If <em>instantiatesCanonical</em> is being updated, the partner service referenced by the <em>subject</em> of the information use statement referenced in <em>instantiatesCanonical</em> <strong>SHALL</strong> be identical to the previous <em>subject</em> of the information use statement referenced in <em>instantiatesCanonical</em> in the version of the <code>Contract</code> identified in the 'if-match' HTTP header.</li>\n</ul>\n<p>If the 'if-match' HTTP header is not provided in the request, then the PCA Publisher Agent will reject the request and return the error code 400.</p>\n<p>If the 'if-match' HTTP header does not match the current version, then the PCA Publisher Agent will reject the request and return the error code 412.</p>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>PUT [publisher agent base url]/Contract</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n<li><code>if-match [version id]</code> where [version id] is the version of the <code>Contract</code> being updated.</li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li><code>Contract</code> resource that conforms to the  <a href=\"StructureDefinition-pca-publication-authorisation-record.html\">PCA Publication Authorisation Record</a> profile.</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n<li><code>ETag: [version id]</code> where [version id] identifies the version of the <code>Contract</code> resource returned.</li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: <code>Contract</code> resource that conforms to the  <a href=\"StructureDefinition-pca-publication-authorisation-record.html\">PCA Publication Authorisation Record</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain one or more of the following <em>scoped roles</em>:</p>\n<ul>\n<li><code>Organization/[id]:PCA:Om</code></li>\n<li><code>Organization/[id]:PCA:Hsm</code></li>\n<li><code>Location/[id]:PCA:Hsm</code></li>\n<li><code>HealthcareService/[id]:PCA:Hsm</code></li>\n<li><code>Organization/[id]:PS_PublicationMgr</code></li>\n<li><code>Location/[id]:PS_PublicationMgr</code></li>\n<li><code>HealthcareService/[id]:PS_PublicationMgr</code></li>\n</ul>\n<p>If a <em>scoped role</em> identifies an <code>Organization</code> then:</p>\n<ul>\n<li>If the <em>subject</em> of the <code>Contract</code> being created references a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>providedBy</em> in that <code>HealthcareService</code>.</li>\n<li>If the <em>subject</em> of the <code>Contract</code> being created references a <code>PractitionerRole</code> then [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>providedBy</em> in the <code>HealthcareService</code> referenced by <em>healthcareService</em> in that <code>PractitionerRole</code>.</li>\n</ul>\n<p>If a <em>scoped role</em> identifies a <code>Location</code> then:</p>\n<ul>\n<li>If the <em>subject</em> of the <code>Contract</code> being created references a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify  the <code>Location</code> referenced by <em>location</em> in that <code>HealthcareService</code>.</li>\n<li>If the <em>subject</em> of the <code>Contract</code> being created references a <code>PractitionerRole</code> then [id] <strong>SHALL</strong> identify the <code>Location</code> referenced by <em>location</em> in the <code>HealthcareService</code> referenced by <em>healthcareService</em> in that <code>PractitionerRole</code>.</li>\n</ul>\n<p>If a <em>scoped role</em> identifies a <code>HealthcareService</code> then:</p>\n<ul>\n<li>If the <em>subject</em> of the <code>Contract</code> being created references a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify that <code>HealthcareService</code>.</li>\n<li>If the <em>subject</em> of the <code>Contract</code> being created references a <code>PractitionerRole</code> then [id] <strong>SHALL</strong> identify the <code>HealthcareService</code> referenced by <em>healthcareService</em> in that <code>PractitionerRole</code>.</li>\n</ul>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 200:  The resource was found and returned.</li>\n<li>Code 400:  Client error:  request did not include the <em>if-match</em> HTTP header.</li>\n<li>Code 404:  The resource was not found.</li>\n<li>Code 412:  The version id given in the <em>if-Match</em> HTTP request header does not match the current version</li>\n<li>Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.</li>\n</ul>\n</div><code>search-type</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>search</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#search\">FHIR specification</a>) for <code>Contract</code> resources.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>This operation is used to find <code>Contract</code> resources that conform to the <a href=\"StructureDefinition-pca-information-use-statement.html\">PCA Information Use Statement</a> profile and that match the search parameters.</p>\n<p>Note that all <a href=\"StructureDefinition-pca-information-use-statement.html\">PCA Information Use Statement</a> resources in the PCA service are accessible to all authorised client systems.</p>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>GET [publisher agent base url]/Contract/{?[parameters]}</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li>(No request body)</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: <code>Bundle</code> containing zero to many <code>Contract</code> resources that conform to the <a href=\"StructureDefinition-pca-information-use-statement.html\">PCA Information Use Statement</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain one or more of the following <em>scoped roles</em>:</p>\n<ul>\n<li><code>Organization/[id]:PCA:Om</code></li>\n<li><code>Organization/[id]:PCA:Hsm</code></li>\n<li><code>Location/[id]:PCA:Hsm</code></li>\n<li><code>HealthcareService/[id]:PCA:Hsm</code></li>\n<li><code>Organization/[id]:PS_Read</code></li>\n<li><code>Location/[id]:PS_Read</code></li>\n<li><code>HealthcareService/[id]:PS_Read</code></li>\n</ul>\n<p>If a <em>scoped role</em> identifies an <code>Organization</code> then [id] <strong>SHALL</strong> identify the publishing organisation associated with the target PCA Publisher Agent.</p>\n<p>If a <em>scoped role</em> identifies a <code>Location</code> then [id] <strong>SHALL</strong> identify any existing <code>Location</code> within the scope of the requesting system.</p>\n<p>If a <em>scoped role</em> identifies a <code>HealthcareService</code> then [id] <strong>SHALL</strong> identify any existing <code>HealthcareService</code> within the scope of the requesting system.</p>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 200:  Search successfully performed (but may return zero matching results).</li>\n<li>Code 403:  Server refused to perform the search.</li>\n</ul>\n</div></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>\n<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>\n<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>\n</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\">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 <br/><code>read</code><div><p><strong>Definition</strong>:</p>\n<p>This operation is a RESTful <strong>read</strong> interaction (as described in the <a href=\"https://www.hl7.org/fhir/http.html#read\">FHIR specification</a>) of a <code>Task</code> resource.</p>\n<p><strong>Behaviour</strong>:</p>\n<p>This operation retrieves an identified <code>Task</code> resource that conforms to the <a href=\"StructureDefinition-pca-match-record.html\">PCA Match Record</a> profile.</p>\n<p><strong>HTTP interaction signature</strong>:</p>\n<ul>\n<li><code>GET [publisher agent base url]/Task/[id]</code></li>\n</ul>\n<p><strong>Mandatory Request Headers</strong>:</p>\n<ul>\n<li><code>Accept: application/fhir+json;charset=utf-8</code> or <code>Accept: application/fhir+xml;charset=utf-8</code></li>\n<li><code>Authorization: Bearer [token]</code></li>\n</ul>\n<p><strong>Request Body</strong>:</p>\n<ul>\n<li>(No request body)</li>\n</ul>\n<p><strong>Mandatory Response Headers</strong>:</p>\n<ul>\n<li><code>Content-Type: application/fhir+json;charset=utf-8</code> or <code>Content-Type: application/fhir+xml;charset=utf-8</code></li>\n</ul>\n<p><strong>Response Body</strong>:</p>\n<ul>\n<li>Success: <code>Task</code> resource that conforms to the <a href=\"StructureDefinition-pca-match-record.html\">PCA Match Record</a> profile.</li>\n<li>Error: <code>OperationOutcome</code> resource (see <a href=\"https://www.hl7.org/fhir/operationoutcome.html\">FHIR specification</a>).</li>\n</ul>\n<p><strong>Required OAuth 2.0 scopes</strong>:</p>\n<p>The <em>scope</em> string <strong>SHALL</strong> contain one or more of the following <em>scoped roles</em>:</p>\n<ul>\n<li><code>Organization/[id]:PCA:Om</code></li>\n<li><code>Organization/[id]:PCA:Hsm</code></li>\n<li><code>Location/[id]:PCA:Hsm</code></li>\n<li><code>HealthcareService/[id]:PCA:Hsm</code></li>\n<li><code>Organization/[id]:PS_Read</code></li>\n<li><code>Location/[id]:PS_Read</code></li>\n<li><code>HealthcareService/[id]:PS_Read</code></li>\n</ul>\n<p>If a <em>scoped role</em> identifies an <code>Organization</code> then:</p>\n<ul>\n<li>If the <em>focus</em> of the <code>Task</code> being read references an <code>Organization</code>, then [id] <strong>SHALL</strong> identify that <code>Organization</code>.</li>\n<li>If the <em>focus</em> of the <code>Task</code> being read references a <code>Location</code>, then [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>managingOrganization</em> of the <code>Location</code>.</li>\n<li>If the <em>focus</em> of the <code>Task</code> being read references a <code>HealthcareService</code>, then [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>providedBy</em> of that HealthcareService.</li>\n<li>If the <em>focus</em> of the <code>Task</code> being read references a <code>PractitionerRole</code>, then [id] <strong>SHALL</strong> identify the <code>Organization</code> referenced by <em>providedBy</em> of the <code>HealthcareService</code> referenced by <em>healthcareService</em> of that <code>PractitionerRole</code>.</li>\n</ul>\n<p>If a <em>scoped role</em> identifies a <code>Location</code> then:</p>\n<ul>\n<li>If the <em>focus</em> of the <code>Task</code> being read references a <code>Location</code>, then [id] <strong>SHALL</strong> identify that <code>Location</code>.</li>\n<li>If the <em>focus</em> of the <code>Task</code> being read references a <code>HealthcareService</code>, then [id] <strong>SHALL</strong> identify the <code>Location</code> referenced by <em>location</em> of that <code>HealthcareService</code>.</li>\n<li>If the <em>focus</em> of the <code>Task</code> being read references a <code>PractitionerRole</code>, then [id] <strong>SHALL</strong> identify the <code>Location</code> referenced by <em>location</em> of the <code>HealthcareService</code> referenced by <em>healthcareService</em> of that PractitionerRole.</li>\n</ul>\n<p>If a <em>scoped role</em> identifies a <code>HealthcareService</code> then:</p>\n<ul>\n<li>If the <em>focus</em> of the <code>Task</code> being read references a <code>HealthcareService</code>, then [id] <strong>SHALL</strong> identify that <code>HealthcareService</code>.</li>\n<li>If the <em>focus</em> of the <code>Task</code> being read references a <code>PractitionerRole</code>, then [id] <strong>SHALL</strong> identify the <code>HealthcareService</code> referenced by <em>healthcareService</em> of that PractitionerRole.</li>\n</ul>\n<p><strong>Response Codes</strong>:</p>\n<ul>\n<li>Code 200:  The resource was found and returned.</li>\n<li>Code 404:  The resource was not found.</li>\n</ul>\n</div></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>\n<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>\n</div></blockquote></div></div></div></div></div></div>"
  ] ; # 
  fhir:url [ fhir:v "http://pca.digitalhealth.gov.au/fhir/4.0/CapabilityStatement/pca-publisher-agent"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "24.2.0.1"] ; # 
  fhir:name [ fhir:v "PCAPublisherAgentCapabilityStatement"] ; # 
  fhir:title [ fhir:v "PCA Publisher Agent Capability Statement"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v "false"^^xsd:boolean] ; # 
  fhir:date [ fhir:v "2024-11-25T11:41:59+10:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "Australian Digital Health Agency"] ; # 
  fhir:contact ( [
    ( fhir:telecom [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "mailto:[email protected]" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "This is the Capability statement for a PCA Publisher Agent FHIR server."] ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
fhir:code [ fhir:v "AU" ]     ] )
  ] ) ; # 
  fhir:copyright [ fhir:v "Copyright © 2024 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/."] ; # 
  fhir:kind [ fhir:v "requirements"] ; # 
  fhir:fhirVersion [ fhir:v "4.0.1"] ; # 
  fhir:format ( [ fhir:v "application/fhir+json"] [ fhir:v "application/fhir+xml"] ) ; # 
  fhir:rest ( [
fhir:mode [ fhir:v "server" ] ;
fhir:documentation [ fhir:v "A PCA Publisher Agent manages the service offerings for one publisher organisation.      \n    \n The PCA service instantiates one PCA Publisher Agent for each participating publisher organisation. That is, each publisher organisation interacts with a PCA Publisher Agent located at a *publisher agent base URL* that is unique to that organisation.    \n    \n The *publisher agent base URL* for a particular organisation is available via the PCA portal on the 'Organisation Details' screen of the publisher organisation.     \n    \n **Publication process**    \n    \n 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.    \n    \n 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)).    \n    \n **Identifier disclosure rules**    \n    \n 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.     \n    \n 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.    \n    \n In the case of HPI-Is these *identifier disclosure rules* ensure that relevant legal requirements are complied with.    \n    \n Other *identifier disclosure rules* are defined by the PCA operator.     \n    \n The *identifier disclosure rules* are applied automatically at the time that the resource is retrieved by the target PCA Subscriber Agent.    \n    \n **Authorisation rules**    \n    \nAuthorised client systems are only permitted to interact with a PCA Publisher Agent API where the participating organisation associated with the PCA Publisher Agent has a publisher approval status of 'Approved'.    \n    \n **Resource profiles and extensions**    \n    \nThis API specification defines the required resource profiles for each operation.  In addition, the PCA Publisher 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.    \n    \n       " ] ;
fhir:security [
fhir:cors [ fhir:v "true"^^xsd:boolean ] ;
      ( fhir:service [
        ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/restful-security-service"^^xsd:anyURI ] ;
fhir:code [ fhir:v "OAuth" ] ;
fhir:display [ fhir:v "OAuth" ]         ] )       ] ) ;
fhir:description [ fhir:v "This server implements OAuth2" ]     ] ;
    ( fhir:resource [
fhir:type [ fhir:v "Organization" ] ;
fhir:profile [
fhir:v "http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-organization"^^xsd:anyURI ;
fhir:link <http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-organization>       ] ;
fhir:documentation [ fhir:v "     \n     \n This section defines the supported interactions for the [PCA Organization](StructureDefinition-pca-organization.html) profile of the ```Organization``` resource type.     \n     " ] ;
      ( fhir:interaction [
fhir:code [ fhir:v "read" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n      \n 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.       \n      \n **Behaviour**:      \n      \n This operation retrieves an identified ```Organization``` resource that conforms to the [PCA Organization](StructureDefinition-pca-organization.html) profile.       \n      \n **HTTP interaction signature**:      \n      \n ```GET [publisher agent base url]/Organization/[id]```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n      \n **Request Body**:      \n * (No request body)      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```ETag: [version id]``` where [version id] identifies the version of the ```Organization``` resource returned.        \n      \n **Response Body**:      \n * Success: ```Organization``` resource that conforms to the [PCA Organization](StructureDefinition-pca-organization.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n      \n The *scope* string **SHALL** contain one or more of the following *scoped roles*:      \n * ```Organization/[id]:PCA:Om```      \n * ```Location/[id]:PCA:Hsm```      \n * ```HealthcareService/[id]:PCA:Hsm```      \n * ```Organization/[id]:PS_Read```      \n * ```Location/[id]:PS_Read```      \n * ```HealthcareService/[id]:PS_Read```      \n      \n If a *scoped role* identifies an ```Organization``` then [id] **SHALL** identify the target ```Organization``` being read.      \n      \n if a *scoped role* identifies a ```Location``` then [id] **SHALL** identify any ```Location``` where its *managingOrganisation* references the target ```Organization``` being read.      \n      \n if a *scoped role* identifies a ```HealthcareService``` then [id] **SHALL** identify any ```HealthcareService``` where its *providedBy* references the target ```Organization``` being read.      \n      \n **Response Codes**:          \n *  Code 200:  The resource was found and returned.      \n *  Code 404:  The resource was not found.      " ]       ] ) ;
fhir:versioning [ fhir:v "versioned" ] ;
fhir:readHistory [ fhir:v "false"^^xsd:boolean ] ;
fhir:updateCreate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalCreate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalRead [ fhir:v "not-supported" ] ;
fhir:conditionalUpdate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalDelete [ fhir:v "not-supported" ]     ] [
fhir:type [ fhir:v "Location" ] ;
fhir:profile [
fhir:v "http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-location"^^xsd:anyURI ;
fhir:link <http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-location>       ] ;
fhir:documentation [ fhir:v "       \n     \nThis section defines the supported interactions for the [PCA Location](StructureDefinition-pca-location.html) profile of the ```Location``` resource type.     \n     \nA ```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.       " ] ;
      ( fhir:interaction [
fhir:code [ fhir:v "create" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n      \n This operation is a RESTful **create** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#create)) of a ```Location``` resource conforming to the [PCA Location](StructureDefinition-pca-location.html) profile.       \n      \n **Behaviour**:      \n      \n 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:      \n      \n * The resource **SHALL** conform to the [PCA Location](StructureDefinition-pca-location.html) profile.      \n * *id* **SHALL NOT** be present.         \n * *meta.versionId* **SHALL NOT** be present.         \n * *meta.lastUpdated* **SHALL NOT** be present.         \n * *identifier:pca-li* **SHALL NOT** be present.         \n * *providedBy* **SHALL** reference an existing ```Organization``` within the scope of the requesting system.      \n * *status* **SHALL NOT** use the code 'suspended'.         \n * If *type* is not present, then *address* **SHALL** be present.          \n      \n **HTTP interaction signature**:      \n * ```POST [publisher agent base url]/Location```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n      \n **Request Body**:      \n * ```Location``` resource that conforms to the [PCA Location](StructureDefinition-pca-location.html) profile.      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```ETag: [version id]``` where [version id] identifies the version of the new ```Location``` resource.        \n      \n **Response Body**:      \n * Success: ```Location``` resource that conforms to the [PCA Location](StructureDefinition-pca-location.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n       \n The *scope* string **SHALL** contain the following *scoped role*:      \n * ``` Organization/[id]:PCA:Om```      \n * ``` Organization/[id]:PCA:Hsm```      \n * ``` Organization/[id]:PS_ServicesMgr```      \n      \n Where [id] **SHALL** identify the ```Organization``` referenced by *managingOrganization* in the new ```Location```.      \n      \n      \n **Response Codes**:          \n * Code 201:  The resource was successfully created.      \n * Code 400:  The input resource could not be parsed or failed basic FHIR validation rules.      \n * Code 404:  The resource type is not supported, or not a FHIR end-point.      \n * Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.      " ]       ] [
fhir:code [ fhir:v "read" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n      \n 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.       \n      \n **Behaviour**:      \n      \n This operation retrieves an identified ```Location``` resource that conforms to the [PCA Location](StructureDefinition-pca-location.html) profile.       \n      \n **HTTP interaction signature**:      \n * ```GET [publisher agent base url]/Location/[id]```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n      \n **Request Body**:      \n * (No request body)      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```ETag: [version id]``` where [version id] identifies the version of the ```Location``` resource returned.        \n      \n **Response Body**:      \n * Success: ```Location``` resource that conforms to the [PCA Location](StructureDefinition-pca-location.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n      \n The *scope* string **SHALL** contain the following *scoped role*:      \n * ```Organization/[id]:PCA:Om```      \n * ```Location/[id]:PCA:Hsm```      \n * ```HealthcareService/[id]:PCA:Hsm```      \n * ```Organization/[id]:PS_Read```      \n * ```Location/[id]:PS_Read```      \n * ```HealthcareService/[id]:PS_Read```      \n      \n If a *scoped role* identifies an ```Organization``` then [id] **SHALL** identify the ```Organization``` referenced by *managingOrganization* in the target ```Location``` being read.      \n      \n if a *scoped role* identifies a ```Location``` then [id] **SHALL** identify the ```Location``` being read.      \n      \n if a *scoped role* identifies a ```HealthcareService``` then [id] **SHALL** identify a ```HealthcareService``` where its *location* references the target ```Location``` being read.      \n      \n **Response Codes**:          \n *  Code 200:  The resource was found and returned.      \n *  Code 404:  The resource was not found.      " ]       ] [
fhir:code [ fhir:v "update" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n\n  This operation is a RESTful **update** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#update)) of a ```Location``` resource.       \n      \n **Behaviour**:      \n      \n 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:      \n      \n * The resource **SHALL** conform to the [PCA Location](StructureDefinition-pca-location.html) profile.      \n * *id* **SHALL**  be identical to the value in the version of the ```Location``` identified in the 'if-match' HTTP header.      \n * *meta.versionId* **SHALL NOT** be present.         \n * *meta.lastUpdated* **SHALL NOT** be present.         \n * *managingOrganization* **SHALL**   be identical to the corresponding value in the version of the ```Location``` identified in the 'if-match' HTTP header.      \n * *identifier:pca-li* **SHALL**  be identical to the corresponding value in the version of the ```Location``` identified in the 'if-match' HTTP header.      \n * *status* **SHALL NOT** use the code 'suspended'.         \n * If *type* is not present, then *address* **SHALL** be present.          \n * If *status* is 'inactive', then all healthcare services linked to the location **SHALL** have an *active* value of 'false'.      \n      \n If the 'if-match' HTTP header is not provided in the request, then the PCA Publisher Agent will reject the request and return the error code 400.        \n      \n If the 'if-match' HTTP header does not match the current version, then the PCA Publisher Agent will reject the request and return the error code 412.            \n      \n **HTTP interaction signature**:      \n * ```PUT [publisher agent base url]/Location/[id]```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n * ```if-match [version id]``` where [version id] is the version of the ```Location``` being updated.      \n      \n **Request Body**:      \n * ```Location``` resource that conforms to the [PCA Location](StructureDefinition-pca-location.html) profile.      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```ETag: [version id]``` where [version id] identifies the version of the ```Location``` resource returned.        \n      \n **Response Body**:      \n * Success: ```Location``` resource that conforms to the [PCA Location](StructureDefinition-pca-location.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n      \n The *scope* string **SHALL** contain one or more of the following *scoped roles*:      \n * ``` Organization/[id]:PCA:Om```      \n * ``` Organization/[id]:PCA:Hsm```      \n * ``` Location/[id]:PCA:Hsm```      \n * ``` Organization/[id]:PS_ServiceMgr```      \n * ``` Location/[id]:PS_ServiceMgr```      \n      \n If a *scoped role* identifies an ```Organization``` then [id] **SHALL** identify the ```Organization``` referenced by *managingOrganization* in the target ```Location``` being updated.      \n      \n If a *scoped role* identifies a ```Location``` then [id] **SHALL** identify the target ```Location``` being updated.      \n      \n **Response Codes**:          \n * Code 200:  The resource was found and returned.      \n * Code 400:  Client error:  request did not include the *if-match* HTTP header.      \n * Code 404:  The resource was not found.      \n * Code 412:  The version id given in the *if-Match* HTTP request header does not match the current version.      \n*  Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.      " ]       ] ) ;
fhir:versioning [ fhir:v "versioned-update" ] ;
fhir:readHistory [ fhir:v "false"^^xsd:boolean ] ;
fhir:updateCreate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalCreate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalRead [ fhir:v "not-supported" ] ;
fhir:conditionalUpdate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalDelete [ fhir:v "not-supported" ] ;
      ( fhir:searchParam [
fhir:name [ fhir:v "organization" ] ;
fhir:definition [
fhir:v "http://hl7.org/fhir/SearchParameter/Location-organization"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/SearchParameter/Location-organization>         ] ;
fhir:type [ fhir:v "reference" ]       ] [
fhir:name [ fhir:v "status" ] ;
fhir:definition [
fhir:v "http://hl7.org/fhir/SearchParameter/Location-status"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/SearchParameter/Location-status>         ] ;
fhir:type [ fhir:v "token" ]       ] [
fhir:name [ fhir:v "_lastUpdated" ] ;
fhir:definition [
fhir:v "http://hl7.org/fhir/SearchParameter/Resource-lastUpdated"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/SearchParameter/Resource-lastUpdated>         ] ;
fhir:type [ fhir:v "date" ]       ] )     ] [
fhir:type [ fhir:v "HealthcareService" ] ;
fhir:documentation [ fhir:v "       \n     \n 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.     \n     \n 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.     \n     \n 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.     " ] ;
      ( fhir:interaction [
fhir:code [ fhir:v "create" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n      \n This operation is a RESTful **create** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#create)) of a ```HealthcareService``` resource conforming to the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) profile.      \n      \n **Behaviour**:      \n      \n 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:      \n      \n * The resource **SHALL** conform to the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) profile.      \n * *id* **SHALL NOT** be present.         \n * *meta.versionId* **SHALL NOT** be present.         \n * *meta.lastUpdated* **SHALL NOT** be present.         \n * *identifier:pca-hsi* **SHALL NOT** be present.         \n * *providedBy* **SHALL** reference an existing ```Organization``` within the scope of the requesting system.      \n * *location* **SHALL** reference an existing ```Location``` within the scope of the requesting system.       \n*  *location* **SHALL** reference a ```Location``` for which *managingOrganization* references the same ```Organization``` as is referenced by *providedBy*.      \n * One and only one *type* **SHALL** use the *iso21090-preferred* extension.        \n * *coverageArea* **SHALL** only be present if *eligibility* contains the 'coverage-restrictedResidents' code, and/or if the *type* element of the referenced *location* contains either the 'MOBL' (mobile) or 'VI' (virtual) code.      \n * If present, *notAvailable.during* **SHALL** contain a complete date and **SHALL NOT** include time or timezone data.        \n * If present, *availableTime.during* elements (including *availableTime* elements using the *availableTimeApplicability* extension) **SHALL** contain a complete date and **SHALL NOT** include time or timezone data.      \n * If present, *availableTime* elements using the *availableTimeApplicability* extension **SHALL** include both a start and end date for the *during* element.          \n * If present, *pca-active-period* SHALL have at least *value[x].start* or *value[x].end*.       \n * If present, *pca-active-period.value[x].start* SHALL be later than '1900-01-01'.      \n * If present, *pca-active-period.value[x].start* SHALL be equal to, or earlier than, the *period.start* or *period.end* values of any ```PractitionerRole`` resources that reference this ```HealthcareService```.      \n * If present, *pca-active-period.value[x].end* SHALL be no more than 5 years from the current date.      \n * If present, *pca-active-period.value[x].end* SHALL be equal to, or later than, the *period.start* or *period.end* values of any ```PractitionerRole`` resources that reference this ```HealthcareService```.      \n * *type* **SHALL** use a code that is not already being used by any existing ```PCA Healthcare Service``` resources for the same ```PCA Location```.      \n      \n **HTTP interaction signature**:      \n * ```POST [publisher agent base url]/HealthcareService```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n      \n **Request Body**:      \n * ```HealthcareService``` resource that conforms to the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) profile.      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```ETag: [version id]``` where [version id] identifies the version of the new ```HealthcareService``` resource.        \n      \n **Response Body**:      \n * Success: ```HealthcareService``` resource that conforms to the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n       \n The *scope* string **SHALL** contain one or more of the following *scoped roles*:      \n * ``` Organization/[id]:PCA:Om```      \n * ``` Organization/[id]:PCA:Hsm```      \n * ``` Location/[id]:PCA:Hsm```      \n * ``` Organization/[id]:PS_ServicesMgr```      \n * ``` Location/[id]:PS_ServicesMgr```      \n      \n If a *scoped role* identifies an ```Organization``` then [id] **SHALL** identify the ```Organization``` referenced by *providedBy* in the new ```HealthcareService```.      \n      \n if a *scoped role* identifies a ```Location``` then [id] **SHALL** identify the ```Location``` referenced by *location* in the new ```HealthcareService```.      \n      \n **Response Codes**:          \n * Code 201:  The resource was successfully created.      \n * Code 400:  The input resource could not be parsed or failed basic FHIR validation rules.      \n * Code 404:  The resource type is not supported, or not a FHIR end-point.      \n * Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.      " ]       ] [
fhir:code [ fhir:v "read" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n      \n 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.       \n      \n **Behaviour**:      \n      \n This operation is used to retrieve an identified ```HealthcareService``` resource that conforms to one of the following profiles:      \n * [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html)      \n * [PCA Partner Service](StructureDefinition-pca-partner-service.html)      \n      \n Different authorisation rules apply depending on the profile of the ```HealthcareService``` resource being retrieved; see the 'Required OAuth 2.0 scopes' section below.      \n      \n **HTTP interaction signature**:      \n * ```GET [publisher agent base url]/HealthcareService/[id]```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n      \n **Request Body**:      \n * (No request body)      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```ETag: [version id]``` where [version id] identifies the version of the ```HealthcareService``` resource returned.        \n      \n **Response Body**:      \n * Success: ```HealthcareService``` resource that conforms to either the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) or [PCA Partner Service](StructureDefinition-pca-partner-service.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n      \n The *scope* string **SHALL** contain one or more of the following *scoped roles*:      \n *  ``` Organization/[id]:PS_Read```      \n *  ``` Location/[id]:PS_Read```      \n *  ``` HealthcareService/[id]:PS_Read```          \n       \n When retrieving a ```HealthcareService``` resource that conforms to the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) profile:      \n * If a *scoped role* identifies an ```Organization``` then [id] **SHALL** identify the ```Organization``` referenced by *providedBy* in the target ```HealthcareService``` being read.      \n * If a *scoped role* identifies a ```Location``` then [id] **SHALL** identify the ```Location``` referenced by *location* in the target ```HealthcareService``` being read.      \n * If a *scoped role* identifies a ```HealthcareService``` then [id] **SHALL** identify the target ```HealthcareService``` being read.      \n      \n When retrieving a ```HealthcareService``` resource that conforms to the [PCA Partner Service](StructureDefinition-pca-partner-service.html) profile:      \n * If a *scoped role* identifies an ```Organization``` then [id] **SHALL** identify the publishing organisation associated with the target PCA Publisher Agent.      \n * If a *scoped role* identifies a ```Location``` then [id] **SHALL** identify any existing ```Location``` within the scope of the requesting system.      \n * If a *scoped role* identifies a ```HealthcareService``` then [id] **SHALL** identify any existing ```HealthcareService``` within the scope of the requesting system.             \n      \n **Response Codes**:          \n * Code 200:  The resource was found and returned.      \n * Code 404:  The resource was not found.      " ]       ] [
fhir:code [ fhir:v "update" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n\n  This operation is a RESTful **update** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#update)) of a ```HealthcareService``` resource.       \n      \n **Behaviour**:      \n      \n 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:      \n      \n * The resource **SHALL** conform to the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) profile.      \n * *id* **SHALL**   be identical to the value in the version of the ```HealthcareService``` identified in the 'if-match' HTTP header.      \n * *meta.versionId* **SHALL NOT** be present.         \n * *meta.lastUpdated* **SHALL NOT** be present.         \n * *providedBy* **SHALL**  be identical to the corresponding value in the version of the ```HealthcareService``` identified in the 'if-match' HTTP header.      \n * *location* **SHALL**   be identical to the corresponding value in the version of the ```HealthcareService``` identified in the 'if-match' HTTP header.      \n * *identifier:pca-hsi* **SHALL**  be identical to the corresponding value in the version of the ```HealthcareService``` identified in the 'if-match' HTTP header.      \n * One and only one *type* **SHALL** use the *iso21090-preferred* extension.        \n * *coverageArea* **SHALL** only be present if *eligibility* contains the 'coverage-restrictedResidents' code, and/or if the *type* element of the referenced *location* contains either the 'MOBL' (mobile) or 'VI' (virtual) code.      \n * If present, *notAvailable.during* **SHALL** contain a complete date and **SHALL NOT** include time or timezone data.        \n * If present, *availableTime.during* elements (including *availableTime* elements using the *availableTimeApplicability* extension) **SHALL** contain a complete date and **SHALL NOT** include time or timezone data.      \n * If present, *availableTime* elements using the *availableTimeApplicability* extension **SHALL** include both a start and end date for the *during* element.          \n * If present, *availableTime* elements using the *availableTimeApplicability* extension **SHALL** include both a start and end date for the *during* element.          \n * If present, *pca-active-period* SHALL have at least *value[x].start* or *value[x].end*.       \n * If present, *pca-active-period.value[x].start* SHALL be later than '1900-01-01'.      \n * If present, *pca-active-period.value[x].start* SHALL be equal to, or earlier than, the *period.start* or *period.end* values of any ```PractitionerRole`` resources that reference this ```HealthcareService```.      \n * If present, *pca-active-period.value[x].end* SHALL be no more than 5 years from the current date.      \n * If present, *pca-active-period.value[x].end* SHALL be equal to, or later than, the *period.start* or *period.end* values of any ```PractitionerRole`` resources that reference this ```HealthcareService```.      \n * *type* **SHALL** use a code that is not already being used by any existing ```PCA Healthcare Service``` resources for the same ```PCA Location```.      \n      \n If the 'if-match' HTTP header is not provided in the request, then the PCA Publisher Agent will reject the request and return the error code 400.        \n      \n If the 'if-match' HTTP header does not match the current version, then the PCA Publisher Agent will reject the request and return the error code 412.            \n      \n **HTTP interaction signature**:      \n * ```PUT [publisher agent base url]/HealthcareService/[id]```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n * ```if-match [version id]``` where [version id] is the version of the ```HealthcareService``` being updated.      \n      \n **Request Body**:      \n ```HealthcareService``` resource that conforms to the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) profile.      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```ETag: [version id]``` where [version id] identifies the version of the ```HealthcareService``` resource returned.        \n      \n **Response Body**:      \n * Success: ```HealthcareService``` resource that conforms to the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n      \n The *scope* string **SHALL** contain one or more of the following *scoped roles*:      \n * ``` Organization/[id]:PCA:Om```      \n * ``` Organization/[id]:PCA:Hsm```      \n * ``` Location/[id]:PCA:Hsm```      \n * ``` HealthcareService/[id]:PCA:Hsm```      \n * ``` Organization/[id]:PS_ServiceMgr```      \n * ``` Location/[id]:PS_ServiceMgr```      \n * ``` HealthcareService/[id]:PS_ServiceMgr```             \n      \n If a *scoped role* identifies an ```Organization``` then [id] **SHALL** identify the ```Organization``` referenced by *providedBy* in the target ```HealthcareService``` being updated.      \n      \n If a *scoped role* identifies a ```Location``` then [id] **SHALL** identify the ```Location``` referenced by *location* in the target ```HealthcareService``` being updated.      \n      \n If a *scoped role* identifies a ```HealthcareService``` then [id] **SHALL** identify the target ```HealthcareService``` being updated.      \n      \n **Response Codes**:          \n * Code 200:  The resource was found and returned.      \n * Code 400:  Client error:  request did not include the *if-match* HTTP header.      \n * Code 404:  The resource was not found.      \n * Code 412:  The version id given in the *if-Match* HTTP request header does not match the current version.      \n*  Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.      " ]       ] [
fhir:code [ fhir:v "search-type" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n      \n 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.       \n      \n **Behaviour**:      \n      \n The operation is used to find ```HealthcareService``` resources that that conform to the [PCA Partner Service](StructureDefinition-pca-partner-service.html) profile and that match the search parameters.      \n Note that all [PCA Partner Service](StructureDefinition-pca-partner-service.html) resources in the PCA service are accessible to all authorised client systems.      \n      \n **HTTP interaction signature**:      \n * ```GET [publisher agent base url]/HealthcareService/{?[parameters]}```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n      \n **Request Body**:      \n * (No request body)      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n      \n **Response Body**:      \n * Success: Bundle that contains zero to many ```HealthcareService``` resources that conform to the [PCA Partner Service](StructureDefinition-pca-partner-service.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n      \n The *scope* string **SHALL** contain one or more of the following *scoped roles*:      \n * ``` Organization/[id]:PCA:Om```      \n * ``` Organization/[id]:PCA:Hsm```      \n * ``` Location/[id]:PCA:Hsm```      \n * ``` HealthcareService/[id]:PCA:Hsm```      \n * ``` Organization/[id]:PS_Read```      \n * ``` Location/[id]:PS_Read```      \n * ``` HealthcareService/[id]:PS_Read```          \n      \n If a *scoped role* identifies an ```Organization``` then [id] **SHALL** identify the publishing organisation associated with the target PCA Publisher Agent.      \n      \n If a *scoped role* identifies a ```Location``` then [id] **SHALL** identify any existing ```Location``` within the scope of the requesting system.      \n      \n If a *scoped role* identifies a ```HealthcareService``` then [id] **SHALL** identify any existing ```HealthcareService``` within the scope of the requesting system.      \n      \n **Response Codes**:          \n * Code 200:  Search successfully performed (but may return zero matching results).      \n * Code 403:  Server refused to perform the search.      " ]       ] ) ;
fhir:versioning [ fhir:v "versioned-update" ] ;
fhir:readHistory [ fhir:v "false"^^xsd:boolean ] ;
fhir:updateCreate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalCreate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalRead [ fhir:v "not-supported" ] ;
fhir:conditionalUpdate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalDelete [ fhir:v "not-supported" ] ;
      ( fhir:searchParam [
fhir:name [ fhir:v "_profile" ] ;
fhir:definition [
fhir:v "http://hl7.org/fhir/SearchParameter/Resource-profile"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/SearchParameter/Resource-profile>         ] ;
fhir:type [ fhir:v "uri" ]       ] [
fhir:name [ fhir:v "active" ] ;
fhir:definition [
fhir:v "http://hl7.org/fhir/SearchParameter/HealthcareService-active"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/SearchParameter/HealthcareService-active>         ] ;
fhir:type [ fhir:v "token" ]       ] [
fhir:name [ fhir:v "organization" ] ;
fhir:definition [
fhir:v "http://hl7.org/fhir/SearchParameter/HealthcareService-organization"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/SearchParameter/HealthcareService-organization>         ] ;
fhir:type [ fhir:v "reference" ]       ] [
fhir:name [ fhir:v "service-catgeory" ] ;
fhir:definition [
fhir:v "http://hl7.org/fhir/SearchParameter/HealthcareService-service-category"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/SearchParameter/HealthcareService-service-category>         ] ;
fhir:type [ fhir:v "token" ]       ] [
fhir:name [ fhir:v "coverage-area.location.address-postalcode" ] ;
fhir:type [ fhir:v "string" ]       ] )     ] [
fhir:type [ fhir:v "PractitionerRole" ] ;
fhir:profile [
fhir:v "http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-practitioner-role"^^xsd:anyURI ;
fhir:link <http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-practitioner-role>       ] ;
fhir:documentation [ fhir:v "       \n     \nThis section defines the supported interactions for the [PCA Practitioner Role](StructureDefinition-pca-practitioner-role.html) profile of the ```PractitionerRole``` resource type.     \n     \nEach ```PractitionerRole``` resource conforming to the [PCA Practitioner Role](StructureDefinition-pca-practitioner-role.html) profile describes a practitioner in a role at a healthcare service.     " ] ;
      ( fhir:interaction [
fhir:code [ fhir:v "create" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n      \n This operation is a RESTful **create** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#create)) of a ```PractitionerRole``` resource conforming to the [PCA Practitioner Role](StructureDefinition-pca-practitioner-role.html) profile.       \n      \n **Behaviour**:      \n      \n If the ```Organization``` associated with the target PCA Publisher Agent has not been approved to participate in the PCA service, then the request will be rejected and the error code 422 will be returned.      \n      \n 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:      \n * The resource **SHALL** conform to the profile [http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-practitioner-role](StructureDefinition-pca-practitioner-role.html).      \n * *id* **SHALL NOT** be present.         \n * *meta.versionId* **SHALL NOT** be present.         \n * *meta.lastUpdated* **SHALL NOT** be present.         \n * *identifier:pca-pri* **SHALL** not be present.         \n * *active* **SHALL NOT** be present.      \n * *organization* **SHALL** not be present.         \n * *location* **SHALL** not be present.         \n * *healthcareService* **SHALL** reference an existing ```HealthcareService``` that exists within the target PCA Publisher Agent.      \n * *practitioner* **SHALL** reference an existing ```Practitioner``` that exists within the PCA service.      \n * if *coding:hiServiceRole* is present and has the value 'ProvidesHealthcareToIndividuals', then the ```Organization``` associated with the target PCA Publisher Agent **SHALL** have authorised the Agency as a Contracted Service Provider (CSP).      \n * If present, *period.start* SHALL be later than '1900-01-01'.      \n * If present, *period.start* SHALL be equal to, or later than, the *pca-active-period.value[x].start* value (if present) of the ```HealthcareService``` referenced by the *healthcareService* element.          \n * If present, *period.end* SHALL be no more than 5 years from the current date.      \n * If present, *period.end* SHALL be equal to, or earlier than, the *pca-active-period.value[x].end* value (if present) of the ```HealthcareService``` referenced by the *healthcareService* element.          \n      \n Note: While the referenced ```Practitioner``` resource is managed via the PCA portal, it is also instantiated as a read-only 'proxy' within the PCA Publisher Agent.  This means that the reference to ```Practitioner``` contained in the ```PractitionerRole``` is a local reference that is resolved within the PCA Publisher Agent.  This 'proxy' has the same id as the resource within the PCA Portal for which it is a proxy.       \n      \n **HTTP interaction signature**:      \n * ```POST [publisher agent base url]/PractitionerRole```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n      \n **Request Body**:      \n * ```PractitionerRole``` resource that conforms to the [PCA Practitioner Role](StructureDefinition-pca-practitioner-role.html) profile.      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```ETag: [version id]``` where [version id] identifies the version of the new ```PractitionerRole``` resource.        \n      \n **Response Body**:      \n * Success: ```PractitionerRole``` resource that conforms to the [PCA Practitioner Role](StructureDefinition-pca-practitioner-role.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n      \n The *scope* string **SHALL** contain one or more of the following *scoped roles*:      \n * ``` Organization/[id]:PCA:Om```      \n * ``` Organization/[id]:PCA:Hsm```      \n * ``` Location/[id]:PCA:Hsm```      \n * ``` HealthcareService/[id]:PCA:Hsm```      \n * ``` Organization/[id]:PS_ServicesMgr```      \n * ``` Location/[id]:PS_ServicesMgr```      \n * ``` HealthcareService/[id]:PS_ServicesMgr```      \n      \n If a *scoped role* identifies an ```Organization``` then [id] **SHALL** identify the ```Organization``` referenced by *providedBy* of the ```HealthcareService``` referenced by *healthcareService* in the new ```PractitionerRole```.      \n      \n if a *scoped role* identifies a ```Location``` then [id] **SHALL** identify the ```Location``` referenced by *location* of the ```HealthcareService``` referenced by *healthcareService* in the new ```PractitionerRole```.      \n      \n if a *scoped role* identifies a ```HealthcareService``` then [id] **SHALL** identify the ```HealthcareService``` referenced by *healthcareService* in the new ```PractitionerRole```.      \n      \n **Response Codes**:          \n * Code 201:  The resource was successfully created.      \n * Code 400:  The input resource could not be parsed or failed basic FHIR validation rules.      \n * Code 404:  The resource type is not supported, or not a FHIR end-point.      \n * Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.      " ]       ] [
fhir:code [ fhir:v "read" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n      \n 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.       \n      \n **Behaviour**:      \n      \n This operation retrieves an identified ```PractitionerRole``` resource that conforms to the [PCA Practitioner Role](StructureDefinition-pca-practitioner-role.html) profile.      \n      \n **HTTP interaction signature**:      \n      \n * ```GET [publisher agent base url]/PractitionerRole/[id]```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n      \n **Request Body**:      \n * (No request body)      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```ETag: [version id]``` where [version id] identifies the version of the ```PractitionerRole``` resource returned.        \n      \n **Response Body**:      \n * Success: ```PractitionerRole``` resource that conforms to the [PCA Practitioner Role](StructureDefinition-pca-practitioner-role.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n      \n The *scope* string **SHALL** contain one or more of the following *scoped roles*:      \n * ```Organization/[id]:PCA:Om```      \n * ```Organization/[id]:PCA:Hsm```      \n * ```Location/[id]:PCA:Hsm```      \n * ```HealthcareService/[id]:PCA:Hsm```      \n * ```Organization/[id]:PS_Read```      \n * ```Location/[id]:PS_Read```        \n * ```HealthcareService/[id]:PS_Read```        \n      \n If a *scoped role* identifies an ```Organization``` then [id] **SHALL** identify the ```Organization``` referenced by *providedBy* in the ```HealthcareService``` referenced by *healthcareService* in the target ```PractitionerRole``` being read.      \n      \n If a *scoped role* identifies a ```Location``` then [id] **SHALL** identify the ```Location``` referenced by *location* in the ```HealthcareService``` referenced by *healthcareService* in the target ```PractitionerRole``` being read.      \n      \n If a *scoped role* identifies a ```HealthcareService``` then [id] **SHALL** identify the ```HealthcareService``` referenced by *healthcareService* in the target ```PractitionerRole``` being read.      \n      \n **Response Codes**:          \n*  Code 200:  The resource was found and returned.      \n*  Code 404:  The resource was not found.      " ]       ] [
fhir:code [ fhir:v "update" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n      \n This operation is a RESTful **update** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#update)) of a ```PractitionerRole``` resource.       \n      \n **Behaviour**:      \n      \n If the ```Organization``` associated with the target PCA Publisher Agent has not been approved to participate in the PCA service, then the request will be rejected and the error code 422 will be returned.      \n      \n 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:      \n * The resource **SHALL** conform to the [PCA Practitoner Role](StructureDefinition-pca-practitioner-role.html) profile.      \n * *id* **SHALL**  be identical to the value in the version of the ```PractitionerRole``` identified in the 'if-match' HTTP header.      \n * *meta.versionId* **SHALL NOT** be present.         \n * *meta.lastUpdated* **SHALL NOT** be present.         \n * *identifier:pca-pri* **SHALL** be identical to the corresponding value in the version of the ```PractitionerRole``` identified in the 'if-match' HTTP header.      \n * *active* **SHALL NOT** be present.      \n * *organization* **SHALL** be identical to the corresponding value in the version of the ```PractitionerRole``` identified in the 'if-match' HTTP header.         \n * *location* **SHALL** be identical to the corresponding value in the version of the ```PractitionerRole``` identified in the 'if-match' HTTP header.            \n * *healthcareService* **SHALL** be identical to the corresponding value in the version of the ```PractitionerRole``` identified in the 'if-match' HTTP header.      \n * *practitioner* **SHALL** be identical to the corresponding value in the version of the ```PractitionerRole``` identified in the 'if-match' HTTP header.      \n * if *coding:hiServiceRole* is present and has the value 'ProvidesHealthcareToIndividuals', then the Organization associated with the target PCA Publisher Agent **SHALL** have authorised the Agency as a Contracted Service Provider (CSP).      \n * If present, *period.start* SHALL be later than '1900-01-01'.      \n * If present, *period.start* SHALL be equal to, or later than, the *pca-active-period.value[x].start* value (if present) of the ```HealthcareService``` referenced by the *healthcareService* element.          \n * If present, *period.end* SHALL be no more than 5 years from the current date.      \n * If present, *period.end* SHALL be equal to, or earlier than, the *pca-active-period.value[x].end* value (if present) of the ```HealthcareService``` referenced by the *healthcareService* element.          \n      \n If the 'if-match' HTTP header is not provided in the request, then the PCA Publisher Agent will reject the request and return the error code 400.        \n      \n If the 'if-match' HTTP header does not match the current version, then the PCA Publisher Agent will reject the request and return the error code 412.            \n      \n **HTTP interaction signature**:      \n * ```PUT [publisher agent base url]/PractitionerRole/[id]```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n * ```if-match [version id]``` where [version id] is the version of the PractitionerRole being updated.      \n      \n **Request Body**:      \n * ```PractitionerRole``` resource that conforms to the [PCA Practtiioner Role](StructureDefinition-pca-practitioner-role.html) profile.      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```ETag: [version id]``` where [version id] identifies the version of the PractitionerRole resource returned.        \n      \n **Response Body**:      \n * Success: ```PractitionerRole``` resource that conforms to the [PCA Practitioner Role](StructureDefinition-pca-practitioner-role.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n      \n The *scope* string **SHALL** contain one or more of the following *scoped roles*:      \n * ```Organization/[id]:PCA:Om```      \n * ```Organization/[id]:PCA:Hsm```      \n * ```Location/[id]:PCA:Hsm```      \n * ```HealthcareService/[id]:PCA:Hsm```      \n * ```Organization/[id]:PS_PractitionerMgr```      \n * ```Location/[id]:PS_PractitionerMgr```      \n * ```HealthcareService/[id]:PS_PractitionerMgr```      \n      \n If a *scoped role* identifies an ```Organization``` then [id] **SHALL** identify the ```Organization``` referenced by *providedBy* in the ```HealthcareService``` referenced by *healthcareService* in the target ```PractitionerRole``` being updated.      \n      \n If a *scoped role* identifies a ```Location``` then [id] **SHALL** identify the ```Location``` referenced by *location* in the ```HealthcareService``` referenced by *healthcareService* in the target ```PractitionerRole``` being updated.      \n      \n If a *scoped role* identifies a ```HealthcareService``` then [id] **SHALL** identify the ```HealthcareService``` referenced by *healthcareService* in the target ```PractitionerRole``` being updated.      \n      \n **Response Codes**:          \n * Code 200:  The resource was found and returned.      \n * Code 400:  Client error:  request did not include the *if-match* HTTP header.      \n * Code 404:  The resource was not found.      \n * Code 412:  The version id given in the *if-Match* HTTP request header does not match the current version      \n * Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.      " ]       ] ) ;
fhir:versioning [ fhir:v "versioned-update" ] ;
fhir:readHistory [ fhir:v "false"^^xsd:boolean ] ;
fhir:updateCreate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalCreate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalRead [ fhir:v "not-supported" ] ;
fhir:conditionalUpdate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalDelete [ fhir:v "not-supported" ] ;
      ( fhir:searchParam [
fhir:name [ fhir:v "_lastUpdated" ] ;
fhir:definition [
fhir:v "http://hl7.org/fhir/SearchParameter/Resource-lastUpdated"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/SearchParameter/Resource-lastUpdated>         ] ;
fhir:type [ fhir:v "date" ]       ] [
fhir:name [ fhir:v "_id" ] ;
fhir:definition [
fhir:v "http://hl7.org/fhir/SearchParameter/Resource-id"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/SearchParameter/Resource-id>         ] ;
fhir:type [ fhir:v "token" ]       ] [
fhir:name [ fhir:v "active" ] ;
fhir:definition [
fhir:v "http://hl7.org/fhir/SearchParameter/PractitionerRole-active"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/SearchParameter/PractitionerRole-active>         ] ;
fhir:type [ fhir:v "token" ]       ] [
fhir:name [ fhir:v "identifier" ] ;
fhir:definition [
fhir:v "http://hl7.org/fhir/SearchParameter/PractitionerRole-identifier"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/SearchParameter/PractitionerRole-identifier>         ] ;
fhir:type [ fhir:v "token" ]       ] [
fhir:name [ fhir:v "organization" ] ;
fhir:definition [
fhir:v "http://hl7.org/fhir/SearchParameter/PractitionerRole-organization"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/SearchParameter/PractitionerRole-organization>         ] ;
fhir:type [ fhir:v "reference" ]       ] [
fhir:name [ fhir:v "practitioner" ] ;
fhir:definition [
fhir:v "http://hl7.org/fhir/SearchParameter/PractitionerRole-practitioner"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/SearchParameter/PractitionerRole-practitioner>         ] ;
fhir:type [ fhir:v "reference" ]       ] [
fhir:name [ fhir:v "service" ] ;
fhir:definition [
fhir:v "http://hl7.org/fhir/SearchParameter/PractitionerRole-service"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/SearchParameter/PractitionerRole-service>         ] ;
fhir:type [ fhir:v "reference" ]       ] )     ] [
fhir:type [ fhir:v "Practitioner" ] ;
fhir:profile [
fhir:v "http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-practitioner"^^xsd:anyURI ;
fhir:link <http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-practitioner>       ] ;
fhir:documentation [ fhir:v "     \n     \nThis section defines the supported interactions for the [PCA Practitioner](StructureDefinition-pca-practitioner.html) profile of the ```Practitioner``` resource type.     \n     \nEach ```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.     \n     \nEach 'proxy' has the same *id* and *versionId* as the resource within the PCA portal for which it is a proxy.       " ] ;
      ( fhir:interaction [
fhir:code [ fhir:v "read" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n      \n 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.       \n      \n **Behaviour**:      \n      \n This operation retrieves an identified ```Practitioner``` resource that conforms to the [PCA Practitioner](StructureDefinition-pca-practitioner.html) profile.       \n      \n The PCA Publisher Agent will include a *identifier:hpii* in the ```Practitioner``` resource returned if **all** of the following conditions are met:      \n * HPI-I and Ahpra number match in the HI service.       \n * The ```Organization``` on whose behalf the request is made is a publisher organisation.       \n * The ```Organization``` on whose behalf the request is made has been approved to participate in the PCA service.      \n * The ```Organization``` on whose behalf the request is made has authorised the Agency as a Contracted Service Provider (CSP).      \n * The client system is authorised to read an existing PractitionerRole where *practitioner* references the ```Practitioner``` resource returned **and** where *coding:hiServiceRole* has the value 'ProvidesHealthcareToIndividuals'.      \n      \n **HTTP interaction signature**:      \n * ```GET [publisher agent base url]/Practitioner/[id]```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n      \n **Request Body**:      \n * (No request body)      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```ETag: [version id]``` where [version id] identifies the version of the ```Practitioner``` resource returned.        \n      \n **Response Body**:      \n * Success: ```Practitioner``` resource that conforms to the [PCA Practitioner](StructureDefinition-pca-practitioner.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n      \n The *scope* string **SHALL** contain one or more of the following *scoped roles*:      \n * ```Organization/[id]:PCA:Om```      \n * ```Organization/[id]:PCA:Hsm```      \n * ```Location/[id]:PCA:Hsm```      \n * ```HealthcareService/[id]:PCA:Hsm```      \n * ```Organization/[id]:PS_Read```      \n * ```Location/[id]:PS_Read```      \n * ```HealthcareService/[id]:PS_Read```      \n      \n If a *scoped role* identifies an ```Organization``` then [id] **SHALL** identify the publishing organisation associated with the requesting system.      \n      \n If a *scoped role* identifies a ```Location``` then [id] **SHALL** identify any existing ```Location``` within the scope of the requesting system.      \n      \n If a *scoped role* identifies a ```HealthcareService``` then [id] **SHALL** identify any existing ```HealthcareService``` within the scope of the requesting system.      \n      \n **Response Codes**:          \n * Code 200:  The resource was found and returned.      \n * Code 404:  The resource was not found.      " ]       ] [
fhir:code [ fhir:v "search-type" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n      \n This operation is a RESTful **search** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#search)) for a ```Practitioner``` resource for either a given Ahpra registration number or HPI-I identifier that conforms to the [PCA Practitioner](StructureDefinition-pca-practitioner.html) profile.       \n      \n **Behaviour**:      \n      \n The operation is used to find a ```Practitioner``` resource given their Ahpra registration number or HPI-I identifier.  The PCA Publisher Agent will return zero or one ```Practitioner``` resource that conforms to the [PCA Practitioner](StructureDefinition-pca-partner-service.html) profile.      \n       \n The operation is only available to client systems acting on behalf of publisher organisations (see ‘Required OAuth 2.0 scopes’ below).      \n       \n The PCA Publisher Agent will reject requests and return the error code 403 if the identifier query string is not present, or if the identifier query string does not qualify the identifier value with one of the following systems:      \n * http://hl7.org.au/id/ahpra-registration-number (when searching on Ahpra registration number)      \n * http://ns.electronichealth.net.au/id/hi/hpii/1.0 (when searching on HPI-I)      \n       \n The PCA Publisher Agent return a ```Bundle``` containing exactly one ```Practitioner``` resource if the identifier query string matches the same record in either the Ahpra Register of practitioners or the HI Service, else it will return a ```Bundle``` contanining zero results.      \n       \n The PCA Publisher Agent will only support searching by HPI-I if the client system’s organisation has has made the PCA a Contracted Service Provider (CSP).      \n      \n The PCA Publisher Agent will include the *identifier:hpii* element in the ```Practitioner``` resource returned if the client system’s organisation has has made the PCA a Contracted Service Provider (CSP) and the ```Practitioner``` resource's *coding:hiServiceRole* element has the value ‘ProvidesHealthcareToIndividuals’.      \n      \n **HTTP interaction signature**:      \n * ```GET [publisher agent base url]/Practitioner/{?[parameter]}```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n      \n **Request Body**:      \n * (No request body)      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n      \n **Response Body**:      \n * Success: Bundle that contains zero to one ```Practitioner``` resources that conforms to the [PCA Practitioner](StructureDefinition-pca-practitioner.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n      \n The *scope* string **SHALL** contain one or more of the following *scoped roles*:      \n * ```Organization/[id]:PCA:Om```      \n * ```Organization/[id]:PCA:Hsm```      \n * ```Location/[id]:PCA:Hsm```      \n * ```HealthcareService/[id]:PCA:Hsm```      \n * ```Organization/[id]:PS_ServicesMgr```      \n * ```Location/[id]:PS_ServicesMgr```      \n * ```HealthcareService/[id]:PS_ServicesMgr```      \n      \n If a *scoped role* identifies an ```Organization``` then [id] **SHALL** identify the publishing organisation associated with the requesting system.      \n      \n If a *scoped role* identifies a ```Location``` then [id] **SHALL** identify any existing ```Location``` within the scope of the requesting system.      \n      \n If a *scoped role* identifies a ```HealthcareService``` then [id] **SHALL** identify any existing ```HealthcareService``` within the scope of the requesting system.      \n      \n **Response Codes**:          \n * Code 200:  Search successfully performed (but may return zero matching results).      \n * Code 403:  Server refused to perform the search.      " ]       ] ) ;
fhir:versioning [ fhir:v "versioned" ] ;
fhir:readHistory [ fhir:v "false"^^xsd:boolean ] ;
fhir:updateCreate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalCreate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalRead [ fhir:v "not-supported" ] ;
fhir:conditionalUpdate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalDelete [ fhir:v "not-supported" ] ;
      ( fhir:searchParam [
fhir:name [ fhir:v "identifier" ] ;
fhir:definition [
fhir:v "http://hl7.org/fhir/SearchParameter/Practitioner-identifier"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/SearchParameter/Practitioner-identifier>         ] ;
fhir:type [ fhir:v "token" ]       ] )     ] [
fhir:type [ fhir:v "Provenance" ] ;
fhir:profile [
fhir:v "http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-provenance"^^xsd:anyURI ;
fhir:link <http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-provenance>       ] ;
fhir:documentation [ fhir:v "     \n     \n This section defines the supported interactions for the [PCA Provenance](StructureDefinition-pca-provenance.html) profile of the ```Provenance``` resource type.     \n     \n 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.   " ] ;
      ( fhir:interaction [
fhir:code [ fhir:v "read" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n      \n 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.       \n      \n **Behaviour**:      \n      \n This operation retrieves an identified ```Provenance``` resource that conforms to the [PCA Provenance](StructureDefinition-pca-practitioner-role.html) profile.      \n      \n **HTTP interaction signature**:      \n * ```GET [publisher agent base url]/Provenance/[id]```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n      \n **Request Body**:      \n * (No request body)      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n      \n **Response Body**:      \n * Success: ```Provenance``` resource that conforms to the [PCA Provenance](StructureDefinition-pca-provenance.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n      \n The *scope* string **SHALL** contain one or more of the following *scoped roles*:      \n * ```Organization/[id]:PCA:Om```      \n * ```Organization/[id]:PCA:Hsm```      \n * ```Location/[id]:PCA:Hsm```      \n * ```HealthcareService/[id]:PCA:Hsm```      \n * ```Organization/[id]:PS_Read```      \n * ```Location/[id]:PS_Read```      \n * ```HealthcareService/[id]:PS_Read```      \n      \n If the ```Provenance``` resource being read has a *target* that references an ```Organization```, then:      \n * If a *scoped role* identifies an ```Organization``` then [id] **SHALL** identify the ```Organization``` referenced by *target* in the ```Provenance``` resource being read.      \n      \n If the ```Provenance``` resource being read has a *target* that references a ```Practitioner```, then:      \n * If a *scoped role* identifies an ```Organization``` then [id] **SHALL** identify the publishing organisation associated with the requesting system.      \n * If a *scoped role* identifies a ```Location``` then [id] **SHALL** identify any existing ```Location``` within the scope of the requesting system.      \n * If a *scoped role* identifies a ```HealthcareService``` then [id] **SHALL** identify any existing ```HealthcareService``` within the scope of the requesting system.      \n      \n **Response Codes**:          \n * Code 200:  The resource was found and returned.      \n * Code 404:  The resource was not found.      " ]       ] ) ;
fhir:versioning [ fhir:v "no-version" ] ;
fhir:readHistory [ fhir:v "false"^^xsd:boolean ] ;
fhir:updateCreate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalCreate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalRead [ fhir:v "not-supported" ] ;
fhir:conditionalUpdate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalDelete [ fhir:v "not-supported" ]     ] [
fhir:type [ fhir:v "Contract" ] ;
fhir:documentation [ fhir:v "       \n     \n 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.     \n     \n     \n 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.     \n     \n 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.          " ] ;
      ( fhir:interaction [
fhir:code [ fhir:v "create" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n      \n This operation is a RESTful **create** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#create)) of a ```Contract``` resource conforming to the [PCA Publication Authorisation Record](StructureDefinition-pca-publication-authorisation-record.html) profile.       \n      \n Please note: This operation will be available in Release 2.1 of PCA.      \n      \n **Behaviour**:      \n      \n This operation records a decision made by an authorised representative of a publisher organisation to authorise the publication of a ```HealthcareService``` or ```PractitionerRole``` to a partner service.      \n      \n Authorisation is implemented using this operation.  Revocation is implemented by updating the *status* of the existing ```Contract``` to 'revoked'.      \n      \n A ```Contract``` resource cannot be created with a *status* of 'cancelled' - this status can only by set by the PCA service and is used to indicate that the partner service associated with the publication authorisation is inactive.      \n      \n If the invocation of a ```Contract``` resource with *status* of 'executed' is sucessful then the PCA service will make the following resources available to the PCA Subscriber Agent of the organisation referenced by *providedBy* of the partner service:      \n      \n * *target* resource (```HealthcareService``` or ```PractitionerRole```).       \n * ```Organization```, ```Location``` and ```Practitioner``` resources that are referenced directly or indirectly by the target ```HealthcareService``` or ```PractitionerRole```.      \n * The newly created ```Contract``` resource.      \n      \n The PCA service will also continue to make available any new versions of these resources to the same PCA Subscriber Agent. This process continues until the existing ```Contract``` resource is updated with a *status* of 'revoked'.      \n      \n Prior to invoking this operation the following PCA API operations are available to provide the information that is recorded in the ```Contract``` resource to be created.      \n      \n * If not already identified or synchronised locally, then search for the relevant resource(s) using [search-system](CapabilityStatement-pca-publisher-agent.html#search-system) (for service offering resources to publish) and [PartnerService search-type](CapabilityStatement-pca-publisher-agent.html) (for partner services registered in the PCA service)      \n * Get the current text of the information use statement for the selected partner service:      \n   * Get the partner service (i.e. a HealthcareService) using [PartnerService read](CapabilityStatement-pca-publisher-agent.html)      \n   * Get the reference to the latest version of the Information Use Statement (i.e. a ```Contract``` resource) from the  [pca-current-information-use-statement](StructureDefinition-pca-current-information-use-statement.html) extension in the partner service resource      \n   * Get the text of the information use statement using [Information Use Statement read](CapabilityStatement-pca-publisher-agent.html)      \n      \n 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:      \n      \n * The resource **SHALL** conform to the  [PCA Publication Authorisation Record](StructureDefinition-pca-publication-authorisation-record.html) profile.      \n * *id* **SHALL NOT** be present.         \n * *meta.versionId* **SHALL NOT** be present.         \n * *meta.lastUpdated* **SHALL NOT** be present.         \n * *subject* **SHALL**  reference an existing ```HealthcareService``` or ```PractitionerRole``` implemented by the PCA Publisher Agent (i.e. the target FHIR server)      \n * *instantiatesCanonical* **SHALL** reference the information use statement (i.e. a ```Contract``` resource) whose *legal.content[x].data* element was viewed by the person responsible for making the publication decision recorded via the new ```Contract``` resource.        \n * *author* **SHALL** be a local reference to a contained resource of type [PCA Publication Approver](StructureDefinition-pca-publication-approver.html).      \n * *status* **SHALL** use the code 'executed'.      \n * The partner service referenced by the *subject* of the information use statement referenced in *instantiatesCanonical* **SHALL** have an *active* value of 'true'.      \n      \n **HTTP interaction signature**:      \n * ```POST [publisher agent base url]/Contract```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n      \n **Request Body**:      \n * ```Contract``` resource that conforms to the  [PCA Publication Authorisation Record](StructureDefinition-pca-publication-authorisation-record.html) profile.      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n      \n **Response Body**:      \n * Success: ```Contract``` resource that conforms to the  [PCA Publication Authorisation Record](StructureDefinition-pca-publication-authorisation-record.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n      \n The *scope* string **SHALL** contain one or more of the following *scoped roles*:      \n * ```Organization/[id]:PCA:Om```      \n * ```Organization/[id]:PCA:Hsm```      \n * ```Location/[id]:PCA:Hsm```      \n * ```HealthcareService/[id]:PCA:Hsm```      \n * ```Organization/[id]:PS_PublicationMgr```      \n * ```Location/[id]:PS_PublicationMgr```      \n * ```HealthcareService/[id]:PS_PublicationMgr```      \n      \n If a *scoped role* identifies an ```Organization``` then:      \n      \n * If the *subject* of the ```Contract``` being created references a ```HealthcareService``` then [id] **SHALL** identify the ```Organization``` referenced by *providedBy* in that ```HealthcareService```.      \n * If the *subject* of the ```Contract``` being created references a ```PractitionerRole``` then [id] **SHALL** identify the ```Organization``` referenced by *providedBy* in the ```HealthcareService``` referenced by *healthcareService* in that ```PractitionerRole```.      \n      \n If a *scoped role* identifies a ```Location``` then:       \n * If the *subject* of the ```Contract``` being created references a ```HealthcareService``` then [id] **SHALL** identify  the ```Location``` referenced by *location* in that ```HealthcareService```.      \n * If the *subject* of the ```Contract``` being created references a ```PractitionerRole``` then [id] **SHALL** identify the ```Location``` referenced by *location* in the ```HealthcareService``` referenced by *healthcareService* in that ```PractitionerRole```.      \n      \n If a *scoped role* identifies a ```HealthcareService``` then:       \n * If the *subject* of the ```Contract``` being created references a ```HealthcareService``` then [id] **SHALL** identify that ```HealthcareService```.      \n * If the *subject* of the ```Contract``` being created references a ```PractitionerRole``` then [id] **SHALL** identify the ```HealthcareService``` referenced by *healthcareService* in that ```PractitionerRole```.      \n      \n **Response Codes**:          \n * Code 201:  The resource was successfully created.      \n * Code 400:  The input resource could not be parsed or failed basic FHIR validation rules.      \n * Code 404:  The resource type is not supported, or not a FHIR end-point.      \n * Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.      " ]       ] [
fhir:code [ fhir:v "read" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n      \n 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.       \n      \n Please note: This operation will be available in Release 2.1 of PCA.      \n      \n **Behaviour**:      \n      \n This operation is used to retrieve an identified ```Contract``` resource that conforms to one of the following profiles:      \n * [PCA Publication Authorisation Record](StructureDefinition-pca-publication-authorisation-record.html)      \n * [PCA Information Use Statement](StructureDefinition-pca-information-use-statement.html)      \n      \n **HTTP interaction signature**:      \n * ```GET [publisher agent base url]/Contract/[id]```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n      \n **Request Body**:      \n * (No request body)      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n      \n **Response Body**:      \n * Success: ```Contract``` resource that conforms to the [PCA Publication Authorisation Record](StructureDefinition-pca-publication-authorisation-record.html) profile or the [PCA Information Use Statement](StructureDefinition-pca-information-use-statement.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n      \n\n  The *scope* string **SHALL** contain one or more of the following *scoped roles*:      \n * ```Organization/[id]:PCA:Om```      \n * ```Organization/[id]:PCA:Hsm```      \n * ```Location/[id]:PCA:Hsm```      \n * ```HealthcareService/[id]:PCA:Hsm```      \n * ```Organization/[id]:PS_Read```      \n * ```Location/[id]:PS_Read```      \n * ```HealthcareService/[id]:PS_Read```      \n      \n When retrieving a ```Contract``` resource that conforms to the [PCA Publication Authorisation Record](StructureDefinition-pca-publication-authorisation-record.html) profile:      \n * If a *scoped role* identifies an ```Organization``` then:      \n      \n   * If the *subject* of the ```Contract``` being read references a ```HealthcareService``` then [id] **SHALL** identify the ```Organization``` referenced by *providedBy* in that ```HealthcareService```.      \n   * If the *subject* of the ```Contract``` being read references a ```PractitionerRole``` then [id] **SHALL** identify the ```Organization``` referenced by *providedBy* in the ```HealthcareService``` referenced by *healthcareService* in that ```PractitionerRole```.      \n * If a *scoped role* identifies a ```Location``` then:       \n   * If the *subject* of the ```Contract``` being read references a ```HealthcareService``` then [id] **SHALL** identify  the ```Location``` referenced by *location* in that ```HealthcareService```.      \n   * If the *subject* of the ```Contract``` being read references a ```PractitionerRole``` then [id] **SHALL** identify the ```Location``` referenced by *location* in the ```HealthcareService``` referenced by *healthcareService* in that ```PractitionerRole```.      \n * If a *scoped role* identifies a ```HealthcareService``` then:       \n   * If the *subject* of the ```Contract``` being read references a ```HealthcareService``` then [id] **SHALL** identify that ```HealthcareService```.      \n   * If the *subject* of the ```Contract``` being read references a ```PractitionerRole``` then [id] **SHALL** identify the ```HealthcareService``` referenced by *healthcareService* in that ```PractitionerRole```.      \n      \n When retrieving a ```Contract``` resource that conforms to the [PCA Information Use Statement](StructureDefinition-pca-information-use-statement.html) profile:      \n * If a *scoped role* identifies an ```Organization``` then [id] **SHALL** identify the publishing organisation associated with the target PCA Publisher Agent.      \n * If a *scoped role* identifies a ```Location``` then [id] **SHALL** identify any existing ```Location``` within the scope of the requesting system.      \n * If a *scoped role* identifies a ```HealthcareService``` then [id] **SHALL** identify any existing ```HealthcareService``` within the scope of the requesting      \n      \n      \n **Response Codes**:          \n * Code 200:  The resource was found and returned.      \n * Code 404:  The resource was not found.      " ]       ] [
fhir:code [ fhir:v "update" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n      \n This operation is a RESTful **update** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#create)) of a ```Contract``` resource.       \n      \n Please note: This operation will be available in Release 2.1 of PCA.      \n      \n **Behaviour**:      \n      \n This operation can be used to record a decision made by an authorised representative of a publisher organisation to revoke an existing authorisation to publish, or to record that a new version of a partner service's information use statement has been accepted:      \n      \n * Revocation is implemented using this operation by updating the *status* of an existing ```Contract``` resource to 'revoked'.      \n * Accepting a new version of a partner service's information use statement is implemented using this operation by updating the *instantiatesCanonical* of an existing ```Contract``` resource to reference a new information use statement.      \n      \n To re-authorise publication after revoking, create a new ```Contract``` resource.        \n      \n 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:      \n * The resource **SHALL** conform to the [PCA Publication Authorisation Record](StructureDefinition-pca-publication-authorisation-record.html) profile.      \n * *id* **SHALL** be identical to the corresponding value in the version of the ```Contract``` identified in the 'if-match' HTTP header.       \n * *meta.versionId* **SHALL NOT** be present.         \n * *meta.lastUpdated* **SHALL NOT** be present.         \n * *subject* **SHALL** be identical to the corresponding value in the version of the ```Contract``` identified in the 'if-match' HTTP header.       \n * *author* **SHALL** be identical to the corresponding value in the version of the ```Contract``` identified in the 'if-match' HTTP header.       \n * Updates to *instantiatesCanonical* **SHALL** only be permitted where the version of the ```Contract``` identified in the 'if-match' HTTP header has a *status* of 'executed', and *status* is not also being updated.      \n * Updates to *status* **SHALL** only be permitted where the *status* is being updated to *revoked*, and *instantiatesCanonical* is not also being updated.      \n * If *instantiatesCanonical* is being updated, the partner service referenced by the *subject* of the information use statement referenced in *instantiatesCanonical* **SHALL** have an *active* value of 'true'.      \n * If *instantiatesCanonical* is being updated, the partner service referenced by the *subject* of the information use statement referenced in *instantiatesCanonical* **SHALL** be identical to the previous *subject* of the information use statement referenced in *instantiatesCanonical* in the version of the ```Contract``` identified in the 'if-match' HTTP header.      \n      \n If the 'if-match' HTTP header is not provided in the request, then the PCA Publisher Agent will reject the request and return the error code 400.        \n      \n If the 'if-match' HTTP header does not match the current version, then the PCA Publisher Agent will reject the request and return the error code 412.        \n      \n **HTTP interaction signature**:      \n * ```PUT [publisher agent base url]/Contract```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n * ```if-match [version id]``` where [version id] is the version of the ```Contract``` being updated.      \n      \n **Request Body**:      \n * ```Contract``` resource that conforms to the  [PCA Publication Authorisation Record](StructureDefinition-pca-publication-authorisation-record.html) profile.      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n * ```ETag: [version id]``` where [version id] identifies the version of the ```Contract``` resource returned.        \n      \n **Response Body**:      \n * Success: ```Contract``` resource that conforms to the  [PCA Publication Authorisation Record](StructureDefinition-pca-publication-authorisation-record.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n      \n The *scope* string **SHALL** contain one or more of the following *scoped roles*:      \n * ```Organization/[id]:PCA:Om```      \n * ```Organization/[id]:PCA:Hsm```      \n * ```Location/[id]:PCA:Hsm```      \n * ```HealthcareService/[id]:PCA:Hsm```      \n * ```Organization/[id]:PS_PublicationMgr```      \n * ```Location/[id]:PS_PublicationMgr```      \n * ```HealthcareService/[id]:PS_PublicationMgr```      \n      \n If a *scoped role* identifies an ```Organization``` then:      \n      \n * If the *subject* of the ```Contract``` being created references a ```HealthcareService``` then [id] **SHALL** identify the ```Organization``` referenced by *providedBy* in that ```HealthcareService```.      \n * If the *subject* of the ```Contract``` being created references a ```PractitionerRole``` then [id] **SHALL** identify the ```Organization``` referenced by *providedBy* in the ```HealthcareService``` referenced by *healthcareService* in that ```PractitionerRole```.      \n      \n If a *scoped role* identifies a ```Location``` then:       \n * If the *subject* of the ```Contract``` being created references a ```HealthcareService``` then [id] **SHALL** identify  the ```Location``` referenced by *location* in that ```HealthcareService```.      \n * If the *subject* of the ```Contract``` being created references a ```PractitionerRole``` then [id] **SHALL** identify the ```Location``` referenced by *location* in the ```HealthcareService``` referenced by *healthcareService* in that ```PractitionerRole```.      \n      \n If a *scoped role* identifies a ```HealthcareService``` then:       \n * If the *subject* of the ```Contract``` being created references a ```HealthcareService``` then [id] **SHALL** identify that ```HealthcareService```.      \n * If the *subject* of the ```Contract``` being created references a ```PractitionerRole``` then [id] **SHALL** identify the ```HealthcareService``` referenced by *healthcareService* in that ```PractitionerRole```.      \n      \n **Response Codes**:          \n * Code 200:  The resource was found and returned.      \n * Code 400:  Client error:  request did not include the *if-match* HTTP header.      \n * Code 404:  The resource was not found.      \n * Code 412:  The version id given in the *if-Match* HTTP request header does not match the current version      \n * Code 422:  The input resource violated applicable FHIR profiles or server data validation rules.      " ]       ] [
fhir:code [ fhir:v "search-type" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n      \n This operation is a RESTful **search** interaction (as described in the [FHIR specification](https://www.hl7.org/fhir/http.html#search)) for ```Contract``` resources.       \n      \n **Behaviour**:      \n      \n This operation is used to find ```Contract``` resources that conform to the [PCA Information Use Statement](StructureDefinition-pca-information-use-statement.html) profile and that match the search parameters.       \n      \n 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.      \n      \n **HTTP interaction signature**:      \n * ```GET [publisher agent base url]/Contract/{?[parameters]}```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n      \n **Request Body**:      \n * (No request body)      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n      \n **Response Body**:      \n* Success: ```Bundle``` containing zero to many ```Contract``` resources that conform to the [PCA Information Use Statement](StructureDefinition-pca-information-use-statement.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n      \n The *scope* string **SHALL** contain one or more of the following *scoped roles*:      \n * ```Organization/[id]:PCA:Om```      \n * ```Organization/[id]:PCA:Hsm```      \n * ```Location/[id]:PCA:Hsm```      \n * ```HealthcareService/[id]:PCA:Hsm```      \n * ```Organization/[id]:PS_Read```      \n * ```Location/[id]:PS_Read```      \n * ```HealthcareService/[id]:PS_Read```          \n       \n If a *scoped role* identifies an ```Organization``` then [id] **SHALL** identify the publishing organisation associated with the target PCA Publisher Agent.      \n      \n If a *scoped role* identifies a ```Location``` then [id] **SHALL** identify any existing ```Location``` within the scope of the requesting system.      \n      \n If a *scoped role* identifies a ```HealthcareService``` then [id] **SHALL** identify any existing ```HealthcareService``` within the scope of the requesting system.      \n      \n **Response Codes**:          \n * Code 200:  Search successfully performed (but may return zero matching results).      \n * Code 403:  Server refused to perform the search.      " ]       ] ) ;
fhir:versioning [ fhir:v "versioned-update" ] ;
fhir:readHistory [ fhir:v "false"^^xsd:boolean ] ;
fhir:updateCreate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalCreate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalRead [ fhir:v "not-supported" ] ;
fhir:conditionalUpdate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalDelete [ fhir:v "not-supported" ] ;
      ( fhir:searchParam [
fhir:name [ fhir:v "_profile" ] ;
fhir:definition [
fhir:v "http://hl7.org/fhir/SearchParameter/Resource-profile"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/SearchParameter/Resource-profile>         ] ;
fhir:type [ fhir:v "uri" ]       ] [
fhir:name [ fhir:v "subject" ] ;
fhir:definition [
fhir:v "http://hl7.org/fhir/SearchParameter/Contract-subject"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/SearchParameter/Contract-subject>         ] ;
fhir:type [ fhir:v "reference" ]       ] [
fhir:name [ fhir:v "version" ] ;
fhir:type [ fhir:v "string" ]       ] )     ] [
fhir:type [ fhir:v "Task" ] ;
fhir:profile [
fhir:v "http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-match-record"^^xsd:anyURI ;
fhir:link <http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-match-record>       ] ;
fhir:documentation [ fhir:v "     \n     \n This section defines the supported interactions for the [PCA Match Record](StructureDefinition-pca-match-record.html) profile of the ```Task``` resource type.     \n     \n 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.       " ] ;
      ( fhir:interaction [
fhir:code [ fhir:v "read" ] ;
fhir:documentation [ fhir:v "**Definition**:      \n      \n 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.       \n      \n **Behaviour**:      \n      \n This operation retrieves an identified ```Task``` resource that conforms to the [PCA Match Record](StructureDefinition-pca-match-record.html) profile.       \n       \n **HTTP interaction signature**:      \n * ```GET [publisher agent base url]/Task/[id]```      \n      \n **Mandatory Request Headers**:      \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```      \n * ```Authorization: Bearer [token]```      \n      \n **Request Body**:      \n * (No request body)      \n      \n **Mandatory Response Headers**:      \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```      \n      \n **Response Body**:      \n * Success: ```Task``` resource that conforms to the [PCA Match Record](StructureDefinition-pca-match-record.html) profile.      \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n      \n **Required OAuth 2.0 scopes**:      \n      \n The *scope* string **SHALL** contain one or more of the following *scoped roles*:      \n * ```Organization/[id]:PCA:Om```      \n * ```Organization/[id]:PCA:Hsm```      \n * ```Location/[id]:PCA:Hsm```      \n * ```HealthcareService/[id]:PCA:Hsm```      \n * ```Organization/[id]:PS_Read```      \n * ```Location/[id]:PS_Read```      \n * ```HealthcareService/[id]:PS_Read```      \n      \n If a *scoped role* identifies an ```Organization``` then:      \n * If the *focus* of the ```Task``` being read references an ```Organization```, then [id] **SHALL** identify that ```Organization```.       \n * If the *focus* of the ```Task``` being read references a ```Location```, then [id] **SHALL** identify the ```Organization``` referenced by *managingOrganization* of the ```Location```.       \n * If the *focus* of the ```Task``` being read references a ```HealthcareService```, then [id] **SHALL** identify the ```Organization``` referenced by *providedBy* of that HealthcareService.      \n * If the *focus* of the ```Task``` being read references a ```PractitionerRole```, then [id] **SHALL** identify the ```Organization``` referenced by *providedBy* of the ```HealthcareService``` referenced by *healthcareService* of that ```PractitionerRole```.      \n       \n If a *scoped role* identifies a ```Location``` then:      \n * If the *focus* of the ```Task``` being read references a ```Location```, then [id] **SHALL** identify that ```Location```.       \n * If the *focus* of the ```Task``` being read references a ```HealthcareService```, then [id] **SHALL** identify the ```Location``` referenced by *location* of that ```HealthcareService```.      \n * If the *focus* of the ```Task``` being read references a ```PractitionerRole```, then [id] **SHALL** identify the ```Location``` referenced by *location* of the ```HealthcareService``` referenced by *healthcareService* of that PractitionerRole.      \n       \n If a *scoped role* identifies a ```HealthcareService``` then:      \n * If the *focus* of the ```Task``` being read references a ```HealthcareService```, then [id] **SHALL** identify that ```HealthcareService```.      \n * If the *focus* of the ```Task``` being read references a ```PractitionerRole```, then [id] **SHALL** identify the ```HealthcareService``` referenced by *healthcareService* of that PractitionerRole.      \n      \n **Response Codes**:          \n * Code 200:  The resource was found and returned.      \n * Code 404:  The resource was not found.      " ]       ] ) ;
fhir:versioning [ fhir:v "versioned" ] ;
fhir:readHistory [ fhir:v "false"^^xsd:boolean ] ;
fhir:updateCreate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalCreate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalRead [ fhir:v "not-supported" ] ;
fhir:conditionalUpdate [ fhir:v "false"^^xsd:boolean ] ;
fhir:conditionalDelete [ fhir:v "not-supported" ]     ] ) ;
    ( fhir:interaction [
fhir:code [ fhir:v "search-system" ] ;
fhir:documentation [ fhir:v "**Definition**:     \n 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)).      \n     \n **Behaviour**:     \n This operation is used by a client system operated by a publisher organisation to get resources that match the specified search parameters and that are within the scope of the publisher organisation.     \n     \n The following  search parameters are supported:     \n * *_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 Publisher Agent.  This search parameter supports the ```gt``` and ```lt``` comparison prefixes.     \n * *_type* is used to filter the resources returned by their resource type. The available types are:      \n     \n   * ```HealthcareService``` (returns resources conforming to the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) profile)     \n   * ```PractitionerRole``` (returns resources conforming to the [PCA Practitioner Role](StructureDefinition-pca-practitioner-role.html) profile)     \n   * ```Organization``` (returns resources conforming to the [PCA Organization](StructureDefinition-pca-organization.html) profile)     \n   * ```Location``` (returns resources conforming to the [PCA Location](StructureDefinition-pca-location.html) profile)     \n   * ```Practitioner``` (returns resources conforming to the [PCA Practitioner](StructureDefinition-pca-practitioner.html) profile)     \n   * ```Provenance``` (returns resources conforming to the [PCA Provenance](StructureDefinition-pca-provenance.html) profile)     \n   * ```Contract``` (returns resources conforming to the [PCA Publication Authorisation Record](StructureDefinition-pca-publication-authorisation-record.html) profile)      \n   * ```Task``` (returns resources conforming to the [PCA Match Record](StructureDefinition-pca-match-record.html) profile)      \n     \n     \n * *_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).     \n     \n 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.     \n      \n All of the following query parameters are required in order to receive the complete set of resources that have been created or changed since *[last_synchronized]*:     \n     \n ``` _lastUpdated=[last_synchronized] ```     \n ```_type=HealthcareService,PractitionerRole,Practitioner,Organization,Location,Provenance,Contract,Task ```     \n ```_include=Location:organization ```     \n ```_include=HealthcareService:organization ```     \n ```_include=HealthcareService:location ```     \n ```_include=PractitionerRole:organization ```     \n ```_include=PractitionerRole:location ```       \n ```_include=PractitionerRole:service ```     \n ```_include=PractitionerRole:practitioner ```      \n ```_include=Provenance:target ```        \n ```_include=Contract:subject ```        \n ```_include:iterate=HealthcareService:organization  ```       \n ```_include:iterate=HealthcareService:location ```     \n ```_include:iterate=PractitionerRole:organization ```     \n ```_include:iterate=PractitionerRole:location ```     \n ```_include:iterate=PractitionerRole:service ```     \n ```_include:iterate=PractitionerRole:practitioner ```     \n      \n 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 <lastSync> in the request query expression and less than or equal to <lastInBundle> where <lastInBundle> is the greatest *lastUpdated* value of all resources included in the result ```Bundle```. The Publisher Agent FHIR server sets the *next* link to the filter expression that was used in the original request except that <lastSync> is replaced with <lastInBundle>. If the *next* link is not present in the ```Bundle```, then there are no more service offerings available.     \n     \n **HTTP interaction signature**:     \n * ```GET [publisher agent base url]/?[parameters]```     \n     \n **Mandatory Request Headers**:     \n * ```Accept: application/fhir+json;charset=utf-8``` or ```Accept: application/fhir+xml;charset=utf-8```     \n * ```Authorization: Bearer [token]```     \n     \n **Request Body**:     \n * (No request body)     \n     \n **Mandatory Response Headers**:     \n * ```Content-Type: application/fhir+json;charset=utf-8``` or ```Content-Type: application/fhir+xml;charset=utf-8```     \n     \n **Response Body**:     \n * 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):      \n     \n   * ```HealthcareService``` resources conforming to the [PCA Healthcare Service](StructureDefinition-pca-healthcare-service.html) profile     \n   * ```PractitionerRole``` resources conforming to the [PCA Practitioner Role](StructureDefinition-pca-practitioner-role.html) profile     \n   * ```Organization``` resources conforming to the [PCA Organization](StructureDefinition-pca-organization.html) profile     \n   * ```Location``` resources conforming to the [PCA Location](StructureDefinition-pca-location.html) profile     \n   * ```Practitioner``` resources conforming to the [PCA Practitioner](StructureDefinition-pca-practitioner.html) profile     \n   * ```Provenance``` resources conforming to the [PCA Provenance](StructureDefinition-pca-provenance.html) profile     \n   * ```Contract``` resources conforming to the [PCA Publication Authorisation Record](StructureDefinition-pca-publication-authorisation-record.html) profile     \n   * ```Task``` resources conforming to the [PCA Match Record](StructureDefinition-pca-match-record.html) profile      \n     \n     \n * Error: ```OperationOutcome``` resource (see [FHIR specification](https://www.hl7.org/fhir/operationoutcome.html)).      \n     \n **Required OAuth 2.0 scopes**:     \n     \n The *scope* string **SHALL** contain the following *scoped role*:     \n * ```Organization/[id]:PS_Read```     \n     \n Where [id] **SHALL** identify the ```Organization``` associated with the target PCA Publisher Agent.     \n     \n **Response Codes**:         \n * Code 200:  Search successfully performed (but may return zero matching results).     \n * Code 403:  Server refused to perform the search.     " ]     ] ) ;
    ( fhir:searchParam [
fhir:name [ fhir:v "_lastUpdated" ] ;
fhir:definition [
fhir:v "http://hl7.org/fhir/SearchParameter/Resource-lastUpdated"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/SearchParameter/Resource-lastUpdated>       ] ;
fhir:type [ fhir:v "date" ]     ] [
fhir:name [ fhir:v "_type" ] ;
fhir:type [ fhir:v "token" ]     ] [
fhir:name [ fhir:v "_include" ] ;
fhir:type [ fhir:v "special" ]     ] [
fhir:name [ fhir:v "_include:iterate" ] ;
fhir:type [ fhir:v "special" ]     ] [
fhir:name [ fhir:v "_page" ] ;
fhir:type [ fhir:v "special" ]     ] [
fhir:name [ fhir:v "_count" ] ;
fhir:type [ fhir:v "special" ]     ] [
fhir:name [ fhir:v "_resultId" ] ;
fhir:type [ fhir:v "special" ]     ] )
  ] ) . #