Provider Connect Australia (PCA)
24.1.0.0 - active
Provider Connect Australia (PCA) - Local Development build (v24.1.0.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
Official URL: http://pca.digitalhealth.gov.au/fhir/4.0/CapabilityStatement/pca-publisher-agent | Version: 24.1.0.0 | |||
Active as of 2024-05-28 | Computable Name: PCAPublisherAgentCapabilityStatement | |||
Copyright/Legal: 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/. |
This is the Capability statement for a PCA Publisher Agent FHIR server.
Raw OpenAPI-Swagger Definition file | Download
application/fhir+json
, application/fhir+xml
Note to Implementers: FHIR Capabilities
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.
server
A PCA Publisher Agent manages the service offerings for one publisher organisation.
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.
The publisher agent base URL for a particular organisation is available via the PCA portal on the 'Organisation Details' screen of the publisher organisation.
Publication process
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.
The authority to publish is represented using Contract
resources which are also implemented by the PCA Publisher Agent (see the Contract resource endpoint).
Identifier disclosure rules
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.
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.
In the case of HPI-Is these identifier disclosure rules ensure that relevant legal requirements are complied with.
Other identifier disclosure rules are defined by the PCA operator.
The identifier disclosure rules are applied automatically at the time that the resource is retrieved by the target PCA Subscriber Agent.
Authorisation rules
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'.
Resource profiles and extensions
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.
OAuth
This server implements OAuth2
search-system
interaction described as follows:Definition:
This operation is a RESTful search interaction (whole system interaction), across multiple resource types (as described in the FHIR specification).
Behaviour:
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.
The following search parameters are supported:
_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.
_type is used to filter the resources returned by their resource type. The available types are:
HealthcareService
(returns resources conforming to the PCA Healthcare Service profile)PractitionerRole
(returns resources conforming to the PCA Practitioner Role profile)Organization
(returns resources conforming to the PCA Organization profile)Location
(returns resources conforming to the PCA Location profile)Practitioner
(returns resources conforming to the PCA Practitioner profile)Provenance
(returns resources conforming to the PCA Provenance profile)Contract
(returns resources conforming to the PCA Publication Authorisation Record profile)Task
(returns resources conforming to the PCA Match Record profile)_include (and _include:iterate) are used in order that all the resources that match the _lastUpdated and _type filters will be accompanied, in the result Bundle, with all the other resources which they reference (directly or indirectly).
Note that the use of _include (and _include:iterate) means that a resource may be present in the result Bundle
either because it matched the other query parameters or because it was referenced (possibly indirectly) by another resource that matched the other query parameters.
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]:
_lastUpdated=[last_synchronized]
_type=HealthcareService,PractitionerRole,Practitioner,Organization,Location,Provenance,Contract,Task
_include=Location:organization
_include=HealthcareService:organization
_include=HealthcareService:location
_include=PractitionerRole:organization
_include=PractitionerRole:location
_include=PractitionerRole:service
_include=PractitionerRole:practitioner
_include=Provenance:target
_include=Contract:subject
_include:iterate=HealthcareService:organization
_include:iterate=HealthcareService:location
_include:iterate=PractitionerRole:organization
_include:iterate=PractitionerRole:location
_include:iterate=PractitionerRole:service
_include:iterate=PractitionerRole:practitioner
This operation supports 'paging' (see FHIR specification). 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.
HTTP interaction signature:
GET [publisher agent base url]/?[parameters]
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
Request Body:
Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
Response Body:
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:
HealthcareService
resources conforming to the PCA Healthcare Service profilePractitionerRole
resources conforming to the PCA Practitioner Role profileOrganization
resources conforming to the PCA Organization profileLocation
resources conforming to the PCA Location profilePractitioner
resources conforming to the PCA Practitioner profileProvenance
resources conforming to the PCA Provenance profileContract
resources conforming to the PCA Publication Authorisation Record profileTask
resources conforming to the PCA Match Record profileError: OperationOutcome
resource (see FHIR specification).
Required OAuth 2.0 scopes:
The scope string SHALL contain the following scoped role:
Organization/[id]:PS_Read
Where [id] SHALL identify the Organization
associated with the target PCA Publisher Agent.
Response Codes:
The summary table lists the resources that are part of this configuration, and for each resource it lists:
_include
_revinclude
Resource Type | Profile | R | S | U | C | Searches | _include | _revinclude | Operations |
---|---|---|---|---|---|---|---|---|---|
Organization | http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-organization | y | |||||||
Location | http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-location | y | y | y | organization, status, _lastUpdated | ||||
HealthcareService | y | y | y | y | _profile, active, organization, service-catgeory, coverage-area.location.address-postalcode | ||||
PractitionerRole | http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-practitioner-role | y | y | y | _lastUpdated, _id, active, identifier, organization, practitioner, service | ||||
Practitioner | http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-practitioner | y | y | identifier | |||||
Provenance | http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-provenance | y | |||||||
Contract | y | y | y | y | _profile, subject, version | ||||
Task | http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-match-record | y |
read
.This section defines the supported interactions for the PCA Organization profile of the
Organization
resource type.
create
, read
, update
.This section defines the supported interactions for the PCA Location profile of the
Location
resource type.A
Location
resource conforming to the PCA Location profile represents a location at which healthcare services are offered by a PCA publisher.
Conformance | Parameter | Type | Documentation |
---|---|---|---|
SHALL | organization | reference | |
SHALL | status | token | |
SHALL | _lastUpdated | date |
create
, read
, update
, search-type
.This section defines the supported interactions for the PCA Healthcare Service profile and the PCA Partner Service profile of the
HealthcareService
resource type.A
HealthcareService
resource conforming to the PCA Healthcare Service profile describes a healthcare service offered at a location by a PCA publisher.A
HealthcareService
resource conforming to the PCA Partner Service profile describes a partner service offered by a subscriber to which PCA publishers can publish their service offerings.
Conformance | Parameter | Type | Documentation |
---|---|---|---|
SHALL | _profile | uri | |
SHALL | active | token | |
SHALL | organization | reference | |
SHALL | service-catgeory | token | |
SHALL | coverage-area.location.address-postalcode | string |
create
, read
, update
.This section defines the supported interactions for the PCA Practitioner Role profile of the
PractitionerRole
resource type.Each
PractitionerRole
resource conforming to the PCA Practitioner Role profile describes a practitioner in a role at a healthcare service.
Conformance | Parameter | Type | Documentation |
---|---|---|---|
SHALL | _lastUpdated | date | |
SHALL | _id | token | |
SHALL | active | token | |
SHALL | identifier | token | |
SHALL | organization | reference | |
SHALL | practitioner | reference | |
SHALL | service | reference |
read
, search-type
.This section defines the supported interactions for the PCA Practitioner profile of the
Practitioner
resource type.Each
Practitioner
resource conforming the PCA Practitioner profile is a read-only proxy for a correspondingPractitioner
resource managed by the PCA portal.Each 'proxy' has the same id and versionId as the resource within the PCA portal for which it is a proxy.
Conformance | Parameter | Type | Documentation |
---|---|---|---|
SHALL | identifier | token |
read
.This section defines the supported interactions for the PCA Provenance profile of the
Provenance
resource type.Each
Provenance
resource conforming to the PCA Provenance 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.
create
, read
, update
, search-type
.This section defines the supported interactions for the PCA Publication Authorisation Record profile and the PCA Information Use Statement profile of the
Contract
resource type.A
Contract
resource conforming to the PCA Publication Authorisation Record profile records a decision regarding the publication of a specific service offering (either aHealthcareService
or aPractitionerRole
) to a specific partner service. The decision is either to authorise publication or to revoke a previous authority to publish.A
Contract
resource conforming to the PCA Information Use Statement 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.
read
.This section defines the supported interactions for the PCA Match Record profile of the
Task
resource type.A
Task
resource conforming to the PCA Match Record profile indicates the matching status of a service offering to a partner service’s local data store.
A PCA Publisher Agent manages the service offerings for one publisher organisation.
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.
The publisher agent base URL for a particular organisation is available via the PCA portal on the ‘Organisation Details’ screen of the publisher organisation.
Publication process
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.
The authority to publish is represented using Contract
resources which are also implemented by the PCA Publisher Agent (see the Contract resource endpoint).
Identifier disclosure rules
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.
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.
In the case of HPI-Is these identifier disclosure rules ensure that relevant legal requirements are complied with.
Other identifier disclosure rules are defined by the PCA operator.
The identifier disclosure rules are applied automatically at the time that the resource is retrieved by the target PCA Subscriber Agent.
Authorisation rules
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’.
Resource profiles and extensions
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.
Supported search parameters:
Parameter | Type | Definition |
_lastUpdated | date | http://hl7.org/fhir/SearchParameter/Resource-lastUpdated |
_type | token | |
_include | special | |
_include:iterate | special | |
_page | special | |
_count | special | |
_resultId | special |
Definition:
This operation is a RESTful search interaction (whole system interaction), across multiple resource types (as described in the FHIR specification).
Behaviour:
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.
The following search parameters are supported:
gt
and lt
comparison prefixes._type is used to filter the resources returned by their resource type. The available types are:
HealthcareService
(returns resources conforming to the PCA Healthcare Service profile)PractitionerRole
(returns resources conforming to the PCA Practitioner Role profile)Organization
(returns resources conforming to the PCA Organization profile)Location
(returns resources conforming to the PCA Location profile)Practitioner
(returns resources conforming to the PCA Practitioner profile)Provenance
(returns resources conforming to the PCA Provenance profile)Contract
(returns resources conforming to the PCA Publication Authorisation Record profile)Task
(returns resources conforming to the PCA Match Record profile)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.
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]:
_lastUpdated=[last_synchronized]
_type=HealthcareService,PractitionerRole,Practitioner,Organization,Location,Provenance,Contract,Task
_include=Location:organization
_include=HealthcareService:organization
_include=HealthcareService:location
_include=PractitionerRole:organization
_include=PractitionerRole:location
_include=PractitionerRole:service
_include=PractitionerRole:practitioner
_include=Provenance:target
_include=Contract:subject
_include:iterate=HealthcareService:organization
_include:iterate=HealthcareService:location
_include:iterate=PractitionerRole:organization
_include:iterate=PractitionerRole:location
_include:iterate=PractitionerRole:service
_include:iterate=PractitionerRole:practitioner
This operation supports ‘paging’ (see FHIR specification). 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.
HTTP interaction signature:
GET [publisher agent base url]/?[parameters]
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
Request Body:
Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
Response Body:
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:
HealthcareService
resources conforming to the PCA Healthcare Service profilePractitionerRole
resources conforming to the PCA Practitioner Role profileOrganization
resources conforming to the PCA Organization profileLocation
resources conforming to the PCA Location profilePractitioner
resources conforming to the PCA Practitioner profileProvenance
resources conforming to the PCA Provenance profileContract
resources conforming to the PCA Publication Authorisation Record profileTask
resources conforming to the PCA Match Record profileError: OperationOutcome
resource (see FHIR specification).
Required OAuth 2.0 scopes:
The scope string SHALL contain the following scoped role:
Organization/[id]:PS_Read
Where [id] SHALL identify the Organization
associated with the target PCA Publisher Agent.
Response Codes:
This section defines the supported interactions for the PCA Organization profile of the Organization
resource type.
Option | Value |
versioning | versioned |
readHistory | false |
updateCreate | false |
conditionalCreate | false |
conditionalRead | not-supported |
conditionalUpdate | false |
conditionalDelete | not-supported |
referencePolicy | not specified |
searchInclude | _include not supported |
searchRevInclude | _revinclude not supported |
Definition:
This operation is a RESTful read interaction (as described in the FHIR specification) of an Organization
resource.
Behaviour:
This operation retrieves an identified Organization
resource that conforms to the PCA Organization profile.
HTTP interaction signature:
GET [publisher agent base url]/Organization/[id]
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
Request Body:
Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
ETag: [version id]
where [version id] identifies the version of the Organization
resource returned.Response Body:
Organization
resource that conforms to the PCA Organization profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain one or more of the following scoped roles:
Organization/[id]:PCA:Om
Location/[id]:PCA:Hsm
HealthcareService/[id]:PCA:Hsm
Organization/[id]:PS_Read
Location/[id]:PS_Read
HealthcareService/[id]:PS_Read
If a scoped role identifies an Organization
then [id] SHALL identify the target Organization
being read.
if a scoped role identifies a Location
then [id] SHALL identify any Location
where its managingOrganisation references the target Organization
being read.
if a scoped role identifies a HealthcareService
then [id] SHALL identify any HealthcareService
where its providedBy references the target Organization
being read.
Response Codes:
This section defines the supported interactions for the PCA Location profile of the Location
resource type.
A Location
resource conforming to the PCA Location profile represents a location at which healthcare services are offered by a PCA publisher.
Option | Value |
versioning | versioned-update |
readHistory | false |
updateCreate | false |
conditionalCreate | false |
conditionalRead | not-supported |
conditionalUpdate | false |
conditionalDelete | not-supported |
referencePolicy | not specified |
searchInclude | _include not supported |
searchRevInclude | _revinclude not supported |
Definition:
This operation is a RESTful create interaction (as described in the FHIR specification) of a Location
resource conforming to the PCA Location profile.
Behaviour:
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:
Organization
within the scope of the requesting system.HTTP interaction signature:
POST [publisher agent base url]/Location
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
Request Body:
Location
resource that conforms to the PCA Location profile.Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
ETag: [version id]
where [version id] identifies the version of the new Location
resource.Response Body:
Location
resource that conforms to the PCA Location profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain the following scoped role:
Organization/[id]:PCA:Om
Organization/[id]:PCA:Hsm
Organization/[id]:PS_ServicesMgr
Where [id] SHALL identify the Organization
referenced by managingOrganization in the new Location
.
Response Codes:
Definition:
This operation is a RESTful read interaction (as described in the FHIR specification) of a Location
resource.
Behaviour:
This operation retrieves an identified Location
resource that conforms to the PCA Location profile.
HTTP interaction signature:
GET [publisher agent base url]/Location/[id]
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
Request Body:
Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
ETag: [version id]
where [version id] identifies the version of the Location
resource returned.Response Body:
Location
resource that conforms to the PCA Location profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain the following scoped role:
Organization/[id]:PCA:Om
Location/[id]:PCA:Hsm
HealthcareService/[id]:PCA:Hsm
Organization/[id]:PS_Read
Location/[id]:PS_Read
HealthcareService/[id]:PS_Read
If a scoped role identifies an Organization
then [id] SHALL identify the Organization
referenced by managingOrganization in the target Location
being read.
if a scoped role identifies a Location
then [id] SHALL identify the Location
being read.
if a scoped role identifies a HealthcareService
then [id] SHALL identify a HealthcareService
where its location references the target Location
being read.
Response Codes:
Definition:
This operation is a RESTful update interaction (as described in the FHIR specification) of a Location
resource.
Behaviour:
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:
Location
identified in the ‘if-match’ HTTP header.Location
identified in the ‘if-match’ HTTP header.Location
identified in the ‘if-match’ HTTP header.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.
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.
HTTP interaction signature:
PUT [publisher agent base url]/Location/[id]
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
if-match [version id]
where [version id] is the version of the Location
being updated.Request Body:
Location
resource that conforms to the PCA Location profile.Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
ETag: [version id]
where [version id] identifies the version of the Location
resource returned.Response Body:
Location
resource that conforms to the PCA Location profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain one or more of the following scoped roles:
Organization/[id]:PCA:Om
Organization/[id]:PCA:Hsm
Location/[id]:PCA:Hsm
Organization/[id]:PS_ServiceMgr
Location/[id]:PS_ServiceMgr
If a scoped role identifies an Organization
then [id] SHALL identify the Organization
referenced by managingOrganization in the target Location
being updated.
If a scoped role identifies a Location
then [id] SHALL identify the target Location
being updated.
Response Codes:
This section defines the supported interactions for the PCA Healthcare Service profile and the PCA Partner Service profile of the HealthcareService
resource type.
A HealthcareService
resource conforming to the PCA Healthcare Service profile describes a healthcare service offered at a location by a PCA publisher.
A HealthcareService
resource conforming to the PCA Partner Service profile describes a partner service offered by a subscriber to which PCA publishers can publish their service offerings.
Option | Value |
versioning | versioned-update |
readHistory | false |
updateCreate | false |
conditionalCreate | false |
conditionalRead | not-supported |
conditionalUpdate | false |
conditionalDelete | not-supported |
referencePolicy | not specified |
searchInclude | _include not supported |
searchRevInclude | _revinclude not supported |
Definition:
This operation is a RESTful create interaction (as described in the FHIR specification) of a HealthcareService
resource conforming to the PCA Healthcare Service profile.
Behaviour:
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:
Organization
within the scope of the requesting system.Location
within the scope of the requesting system.Location
for which managingOrganization references the same Organization
as is referenced by providedBy.PractitionerRole`` resources that reference this
HealthcareService```.PractitionerRole`` resources that reference this
HealthcareService```.HTTP interaction signature:
POST [publisher agent base url]/HealthcareService
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
Request Body:
HealthcareService
resource that conforms to the PCA Healthcare Service profile.Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
ETag: [version id]
where [version id] identifies the version of the new HealthcareService
resource.Response Body:
HealthcareService
resource that conforms to the PCA Healthcare Service profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain one or more of the following scoped roles:
Organization/[id]:PCA:Om
Organization/[id]:PCA:Hsm
Location/[id]:PCA:Hsm
Organization/[id]:PS_ServicesMgr
Location/[id]:PS_ServicesMgr
If a scoped role identifies an Organization
then [id] SHALL identify the Organization
referenced by providedBy in the new HealthcareService
.
if a scoped role identifies a Location
then [id] SHALL identify the Location
referenced by location in the new HealthcareService
.
Response Codes:
Definition:
This operation is a RESTful read interaction (as described in the FHIR specification) of a HealthcareService
resource.
Behaviour:
This operation is used to retrieve an identified HealthcareService
resource that conforms to one of the following profiles:
Different authorisation rules apply depending on the profile of the HealthcareService
resource being retrieved; see the ‘Required OAuth 2.0 scopes’ section below.
HTTP interaction signature:
GET [publisher agent base url]/HealthcareService/[id]
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
Request Body:
Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
ETag: [version id]
where [version id] identifies the version of the HealthcareService
resource returned.Response Body:
HealthcareService
resource that conforms to either the PCA Healthcare Service or PCA Partner Service profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain one or more of the following scoped roles:
Organization/[id]:PS_Read
Location/[id]:PS_Read
HealthcareService/[id]:PS_Read
When retrieving a HealthcareService
resource that conforms to the PCA Healthcare Service profile:
Organization
then [id] SHALL identify the Organization
referenced by providedBy in the target HealthcareService
being read.Location
then [id] SHALL identify the Location
referenced by location in the target HealthcareService
being read.HealthcareService
then [id] SHALL identify the target HealthcareService
being read.When retrieving a HealthcareService
resource that conforms to the PCA Partner Service profile:
Organization
then [id] SHALL identify the publishing organisation associated with the target PCA Publisher Agent.Location
then [id] SHALL identify any existing Location
within the scope of the requesting system.HealthcareService
then [id] SHALL identify any existing HealthcareService
within the scope of the requesting system.Response Codes:
Definition:
This operation is a RESTful update interaction (as described in the FHIR specification) of a HealthcareService
resource.
Behaviour:
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:
HealthcareService
identified in the ‘if-match’ HTTP header.HealthcareService
identified in the ‘if-match’ HTTP header.HealthcareService
identified in the ‘if-match’ HTTP header.HealthcareService
identified in the ‘if-match’ HTTP header.PractitionerRole`` resources that reference this
HealthcareService```.PractitionerRole`` resources that reference this
HealthcareService```.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.
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.
HTTP interaction signature:
PUT [publisher agent base url]/HealthcareService/[id]
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
if-match [version id]
where [version id] is the version of the HealthcareService
being updated.Request Body:
HealthcareService
resource that conforms to the PCA Healthcare Service profile.
Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
ETag: [version id]
where [version id] identifies the version of the HealthcareService
resource returned.Response Body:
HealthcareService
resource that conforms to the PCA Healthcare Service profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain one or more of the following scoped roles:
Organization/[id]:PCA:Om
Organization/[id]:PCA:Hsm
Location/[id]:PCA:Hsm
HealthcareService/[id]:PCA:Hsm
Organization/[id]:PS_ServiceMgr
Location/[id]:PS_ServiceMgr
HealthcareService/[id]:PS_ServiceMgr
If a scoped role identifies an Organization
then [id] SHALL identify the Organization
referenced by providedBy in the target HealthcareService
being updated.
If a scoped role identifies a Location
then [id] SHALL identify the Location
referenced by location in the target HealthcareService
being updated.
If a scoped role identifies a HealthcareService
then [id] SHALL identify the target HealthcareService
being updated.
Response Codes:
Supported search parameters:
Parameter | Type | Definition |
_profile | uri | http://hl7.org/fhir/SearchParameter/Resource-profile |
active | token | http://hl7.org/fhir/SearchParameter/HealthcareService-active |
organization | reference | http://hl7.org/fhir/SearchParameter/HealthcareService-organization |
service-catgeory | token | http://hl7.org/fhir/SearchParameter/HealthcareService-service-category |
coverage-area.location.address-postalcode | string |
Definition:
This operation is a RESTful search interaction (as described in the FHIR specification) for HealthcareService
resources that conform to the PCA Partner Service profile.
Behaviour:
The operation is used to find HealthcareService
resources that that conform to the PCA Partner Service profile and that match the search parameters.
Note that all PCA Partner Service resources in the PCA service are accessible to all authorised client systems.
HTTP interaction signature:
GET [publisher agent base url]/HealthcareService/{?[parameters]}
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
Request Body:
Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
Response Body:
HealthcareService
resources that conform to the PCA Partner Service profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain one or more of the following scoped roles:
Organization/[id]:PCA:Om
Organization/[id]:PCA:Hsm
Location/[id]:PCA:Hsm
HealthcareService/[id]:PCA:Hsm
Organization/[id]:PS_Read
Location/[id]:PS_Read
HealthcareService/[id]:PS_Read
If a scoped role identifies an Organization
then [id] SHALL identify the publishing organisation associated with the target PCA Publisher Agent.
If a scoped role identifies a Location
then [id] SHALL identify any existing Location
within the scope of the requesting system.
If a scoped role identifies a HealthcareService
then [id] SHALL identify any existing HealthcareService
within the scope of the requesting system.
Response Codes:
This section defines the supported interactions for the PCA Practitioner Role profile of the PractitionerRole
resource type.
Each PractitionerRole
resource conforming to the PCA Practitioner Role profile describes a practitioner in a role at a healthcare service.
Option | Value |
versioning | versioned-update |
readHistory | false |
updateCreate | false |
conditionalCreate | false |
conditionalRead | not-supported |
conditionalUpdate | false |
conditionalDelete | not-supported |
referencePolicy | not specified |
searchInclude | _include not supported |
searchRevInclude | _revinclude not supported |
Definition:
This operation is a RESTful create interaction (as described in the FHIR specification) of a PractitionerRole
resource conforming to the PCA Practitioner Role profile.
Behaviour:
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.
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:
HealthcareService
that exists within the target PCA Publisher Agent.Practitioner
that exists within the PCA service.Organization
associated with the target PCA Publisher Agent SHALL have authorised the Agency as a Contracted Service Provider (CSP).HealthcareService
referenced by the healthcareService element.HealthcareService
referenced by the healthcareService element.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.
HTTP interaction signature:
POST [publisher agent base url]/PractitionerRole
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
Request Body:
PractitionerRole
resource that conforms to the PCA Practitioner Role profile.Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
ETag: [version id]
where [version id] identifies the version of the new PractitionerRole
resource.Response Body:
PractitionerRole
resource that conforms to the PCA Practitioner Role profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain one or more of the following scoped roles:
Organization/[id]:PCA:Om
Organization/[id]:PCA:Hsm
Location/[id]:PCA:Hsm
HealthcareService/[id]:PCA:Hsm
Organization/[id]:PS_ServicesMgr
Location/[id]:PS_ServicesMgr
HealthcareService/[id]:PS_ServicesMgr
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
.
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
.
if a scoped role identifies a HealthcareService
then [id] SHALL identify the HealthcareService
referenced by healthcareService in the new PractitionerRole
.
Response Codes:
Definition:
This operation is a RESTful read interaction (as described in the FHIR specification) of a PractitionerRole
resource.
Behaviour:
This operation retrieves an identified PractitionerRole
resource that conforms to the PCA Practitioner Role profile.
HTTP interaction signature:
GET [publisher agent base url]/PractitionerRole/[id]
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
Request Body:
Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
ETag: [version id]
where [version id] identifies the version of the PractitionerRole
resource returned.Response Body:
PractitionerRole
resource that conforms to the PCA Practitioner Role profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain one or more of the following scoped roles:
Organization/[id]:PCA:Om
Organization/[id]:PCA:Hsm
Location/[id]:PCA:Hsm
HealthcareService/[id]:PCA:Hsm
Organization/[id]:PS_Read
Location/[id]:PS_Read
HealthcareService/[id]:PS_Read
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.
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.
If a scoped role identifies a HealthcareService
then [id] SHALL identify the HealthcareService
referenced by healthcareService in the target PractitionerRole
being read.
Response Codes:
Definition:
This operation is a RESTful update interaction (as described in the FHIR specification) of a PractitionerRole
resource.
Behaviour:
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.
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:
PractitionerRole
identified in the ‘if-match’ HTTP header.PractitionerRole
identified in the ‘if-match’ HTTP header.PractitionerRole
identified in the ‘if-match’ HTTP header.PractitionerRole
identified in the ‘if-match’ HTTP header.PractitionerRole
identified in the ‘if-match’ HTTP header.PractitionerRole
identified in the ‘if-match’ HTTP header.HealthcareService
referenced by the healthcareService element.HealthcareService
referenced by the healthcareService element.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.
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.
HTTP interaction signature:
PUT [publisher agent base url]/PractitionerRole/[id]
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
if-match [version id]
where [version id] is the version of the PractitionerRole being updated.Request Body:
PractitionerRole
resource that conforms to the PCA Practtiioner Role profile.Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
ETag: [version id]
where [version id] identifies the version of the PractitionerRole resource returned.Response Body:
PractitionerRole
resource that conforms to the PCA Practitioner Role profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain one or more of the following scoped roles:
Organization/[id]:PCA:Om
Organization/[id]:PCA:Hsm
Location/[id]:PCA:Hsm
HealthcareService/[id]:PCA:Hsm
Organization/[id]:PS_PractitionerMgr
Location/[id]:PS_PractitionerMgr
HealthcareService/[id]:PS_PractitionerMgr
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.
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.
If a scoped role identifies a HealthcareService
then [id] SHALL identify the HealthcareService
referenced by healthcareService in the target PractitionerRole
being updated.
Response Codes:
This section defines the supported interactions for the PCA Practitioner profile of the Practitioner
resource type.
Each Practitioner
resource conforming the PCA Practitioner profile is a read-only proxy for a corresponding Practitioner
resource managed by the PCA portal.
Each ‘proxy’ has the same id and versionId as the resource within the PCA portal for which it is a proxy.
Option | Value |
versioning | versioned |
readHistory | false |
updateCreate | false |
conditionalCreate | false |
conditionalRead | not-supported |
conditionalUpdate | false |
conditionalDelete | not-supported |
referencePolicy | not specified |
searchInclude | _include not supported |
searchRevInclude | _revinclude not supported |
Definition:
This operation is a RESTful read interaction (as described in the FHIR specification) of a Practitioner
resource.
Behaviour:
This operation retrieves an identified Practitioner
resource that conforms to the PCA Practitioner profile.
The PCA Publisher Agent will include a identifier:hpii in the Practitioner
resource returned if all of the following conditions are met:
Organization
on whose behalf the request is made is a publisher organisation.Organization
on whose behalf the request is made has been approved to participate in the PCA service.Organization
on whose behalf the request is made has authorised the Agency as a Contracted Service Provider (CSP).Practitioner
resource returned and where coding:hiServiceRole has the value ‘ProvidesHealthcareToIndividuals’.HTTP interaction signature:
GET [publisher agent base url]/Practitioner/[id]
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
Request Body:
Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
ETag: [version id]
where [version id] identifies the version of the Practitioner
resource returned.Response Body:
Practitioner
resource that conforms to the PCA Practitioner profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain one or more of the following scoped roles:
Organization/[id]:PCA:Om
Organization/[id]:PCA:Hsm
Location/[id]:PCA:Hsm
HealthcareService/[id]:PCA:Hsm
Organization/[id]:PS_Read
Location/[id]:PS_Read
HealthcareService/[id]:PS_Read
If a scoped role identifies an Organization
then [id] SHALL identify the publishing organisation associated with the requesting system.
If a scoped role identifies a Location
then [id] SHALL identify any existing Location
within the scope of the requesting system.
If a scoped role identifies a HealthcareService
then [id] SHALL identify any existing HealthcareService
within the scope of the requesting system.
Response Codes:
Supported search parameters:
Parameter | Type | Definition |
identifier | token | http://hl7.org/fhir/SearchParameter/Practitioner-identifier |
Definition:
This operation is a RESTful search interaction (as described in the FHIR specification) for a Practitioner
resource for either a given Ahpra registration number or HPI-I identifier that conforms to the PCA Practitioner profile.
Behaviour:
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 profile.
The operation is only available to client systems acting on behalf of publisher organisations (see ‘Required OAuth 2.0 scopes’ below).
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:
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.
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).
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’.
HTTP interaction signature:
GET [publisher agent base url]/Practitioner/{?[parameter]}
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
Request Body:
Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
Response Body:
Practitioner
resources that conforms to the PCA Practitioner profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain one or more of the following scoped roles:
Organization/[id]:PCA:Om
Organization/[id]:PCA:Hsm
Location/[id]:PCA:Hsm
HealthcareService/[id]:PCA:Hsm
Organization/[id]:PS_ServicesMgr
Location/[id]:PS_ServicesMgr
HealthcareService/[id]:PS_ServicesMgr
If a scoped role identifies an Organization
then [id] SHALL identify the publishing organisation associated with the requesting system.
If a scoped role identifies a Location
then [id] SHALL identify any existing Location
within the scope of the requesting system.
If a scoped role identifies a HealthcareService
then [id] SHALL identify any existing HealthcareService
within the scope of the requesting system.
Response Codes:
This section defines the supported interactions for the PCA Provenance profile of the Provenance
resource type.
Each Provenance
resource conforming to the PCA Provenance 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.
Option | Value |
versioning | no-version |
readHistory | false |
updateCreate | false |
conditionalCreate | false |
conditionalRead | not-supported |
conditionalUpdate | false |
conditionalDelete | not-supported |
referencePolicy | not specified |
searchInclude | _include not supported |
searchRevInclude | _revinclude not supported |
Definition:
This operation is a RESTful read interaction (as described in the FHIR specification) of a Provenance
resource.
Behaviour:
This operation retrieves an identified Provenance
resource that conforms to the PCA Provenance profile.
HTTP interaction signature:
GET [publisher agent base url]/Provenance/[id]
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
Request Body:
Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
Response Body:
Provenance
resource that conforms to the PCA Provenance profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain one or more of the following scoped roles:
Organization/[id]:PCA:Om
Organization/[id]:PCA:Hsm
Location/[id]:PCA:Hsm
HealthcareService/[id]:PCA:Hsm
Organization/[id]:PS_Read
Location/[id]:PS_Read
HealthcareService/[id]:PS_Read
If the Provenance
resource being read has a target that references an Organization
, then:
Organization
then [id] SHALL identify the Organization
referenced by target in the Provenance
resource being read.If the Provenance
resource being read has a target that references a Practitioner
, then:
Organization
then [id] SHALL identify the publishing organisation associated with the requesting system.Location
then [id] SHALL identify any existing Location
within the scope of the requesting system.HealthcareService
then [id] SHALL identify any existing HealthcareService
within the scope of the requesting system.Response Codes:
This section defines the supported interactions for the PCA Publication Authorisation Record profile and the PCA Information Use Statement profile of the Contract
resource type.
A Contract
resource conforming to the PCA Publication Authorisation Record 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.
A Contract
resource conforming to the PCA Information Use Statement 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.
Option | Value |
versioning | versioned-update |
readHistory | false |
updateCreate | false |
conditionalCreate | false |
conditionalRead | not-supported |
conditionalUpdate | false |
conditionalDelete | not-supported |
referencePolicy | not specified |
searchInclude | _include not supported |
searchRevInclude | _revinclude not supported |
Definition:
This operation is a RESTful create interaction (as described in the FHIR specification) of a Contract
resource conforming to the PCA Publication Authorisation Record profile.
Please note: This operation will be available in Release 2.1 of PCA.
Behaviour:
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.
Authorisation is implemented using this operation. Revocation is implemented by updating the status of the existing Contract
to ‘revoked’.
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.
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:
HealthcareService
or PractitionerRole
).Organization
, Location
and Practitioner
resources that are referenced directly or indirectly by the target HealthcareService
or PractitionerRole
.Contract
resource.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’.
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.
Contract
resource) from the pca-current-information-use-statement extension in the partner service resourceIf 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:
HealthcareService
or PractitionerRole
implemented by the PCA Publisher Agent (i.e. the target FHIR server)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.HTTP interaction signature:
POST [publisher agent base url]/Contract
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
Request Body:
Contract
resource that conforms to the PCA Publication Authorisation Record profile.Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
Response Body:
Contract
resource that conforms to the PCA Publication Authorisation Record profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain one or more of the following scoped roles:
Organization/[id]:PCA:Om
Organization/[id]:PCA:Hsm
Location/[id]:PCA:Hsm
HealthcareService/[id]:PCA:Hsm
Organization/[id]:PS_PublicationMgr
Location/[id]:PS_PublicationMgr
HealthcareService/[id]:PS_PublicationMgr
If a scoped role identifies an Organization
then:
Contract
being created references a HealthcareService
then [id] SHALL identify the Organization
referenced by providedBy in that HealthcareService
.Contract
being created references a PractitionerRole
then [id] SHALL identify the Organization
referenced by providedBy in the HealthcareService
referenced by healthcareService in that PractitionerRole
.If a scoped role identifies a Location
then:
Contract
being created references a HealthcareService
then [id] SHALL identify the Location
referenced by location in that HealthcareService
.Contract
being created references a PractitionerRole
then [id] SHALL identify the Location
referenced by location in the HealthcareService
referenced by healthcareService in that PractitionerRole
.If a scoped role identifies a HealthcareService
then:
Contract
being created references a HealthcareService
then [id] SHALL identify that HealthcareService
.Contract
being created references a PractitionerRole
then [id] SHALL identify the HealthcareService
referenced by healthcareService in that PractitionerRole
.Response Codes:
Definition:
This operation is a RESTful read interaction (as described in the FHIR specification) of a Contract
resource.
Please note: This operation will be available in Release 2.1 of PCA.
Behaviour:
This operation is used to retrieve an identified Contract
resource that conforms to one of the following profiles:
HTTP interaction signature:
GET [publisher agent base url]/Contract/[id]
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
Request Body:
Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
Response Body:
Contract
resource that conforms to the PCA Publication Authorisation Record profile or the PCA Information Use Statement profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain one or more of the following scoped roles:
Organization/[id]:PCA:Om
Organization/[id]:PCA:Hsm
Location/[id]:PCA:Hsm
HealthcareService/[id]:PCA:Hsm
Organization/[id]:PS_Read
Location/[id]:PS_Read
HealthcareService/[id]:PS_Read
When retrieving a Contract
resource that conforms to the PCA Publication Authorisation Record profile:
If a scoped role identifies an Organization
then:
Contract
being read references a HealthcareService
then [id] SHALL identify the Organization
referenced by providedBy in that HealthcareService
.Contract
being read references a PractitionerRole
then [id] SHALL identify the Organization
referenced by providedBy in the HealthcareService
referenced by healthcareService in that PractitionerRole
.Location
then:
Contract
being read references a HealthcareService
then [id] SHALL identify the Location
referenced by location in that HealthcareService
.Contract
being read references a PractitionerRole
then [id] SHALL identify the Location
referenced by location in the HealthcareService
referenced by healthcareService in that PractitionerRole
.HealthcareService
then:
Contract
being read references a HealthcareService
then [id] SHALL identify that HealthcareService
.Contract
being read references a PractitionerRole
then [id] SHALL identify the HealthcareService
referenced by healthcareService in that PractitionerRole
.When retrieving a Contract
resource that conforms to the PCA Information Use Statement profile:
Organization
then [id] SHALL identify the publishing organisation associated with the target PCA Publisher Agent.Location
then [id] SHALL identify any existing Location
within the scope of the requesting system.HealthcareService
then [id] SHALL identify any existing HealthcareService
within the scope of the requestingResponse Codes:
Definition:
This operation is a RESTful update interaction (as described in the FHIR specification) of a Contract
resource.
Please note: This operation will be available in Release 2.1 of PCA.
Behaviour:
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:
Contract
resource to ‘revoked’.Contract
resource to reference a new information use statement.To re-authorise publication after revoking, create a new Contract
resource.
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:
Contract
identified in the ‘if-match’ HTTP header.Contract
identified in the ‘if-match’ HTTP header.Contract
identified in the ‘if-match’ HTTP header.Contract
identified in the ‘if-match’ HTTP header has a status of ‘executed’, and status is not also being updated.Contract
identified in the ‘if-match’ HTTP header.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.
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.
HTTP interaction signature:
PUT [publisher agent base url]/Contract
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
if-match [version id]
where [version id] is the version of the Contract
being updated.Request Body:
Contract
resource that conforms to the PCA Publication Authorisation Record profile.Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
ETag: [version id]
where [version id] identifies the version of the Contract
resource returned.Response Body:
Contract
resource that conforms to the PCA Publication Authorisation Record profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain one or more of the following scoped roles:
Organization/[id]:PCA:Om
Organization/[id]:PCA:Hsm
Location/[id]:PCA:Hsm
HealthcareService/[id]:PCA:Hsm
Organization/[id]:PS_PublicationMgr
Location/[id]:PS_PublicationMgr
HealthcareService/[id]:PS_PublicationMgr
If a scoped role identifies an Organization
then:
Contract
being created references a HealthcareService
then [id] SHALL identify the Organization
referenced by providedBy in that HealthcareService
.Contract
being created references a PractitionerRole
then [id] SHALL identify the Organization
referenced by providedBy in the HealthcareService
referenced by healthcareService in that PractitionerRole
.If a scoped role identifies a Location
then:
Contract
being created references a HealthcareService
then [id] SHALL identify the Location
referenced by location in that HealthcareService
.Contract
being created references a PractitionerRole
then [id] SHALL identify the Location
referenced by location in the HealthcareService
referenced by healthcareService in that PractitionerRole
.If a scoped role identifies a HealthcareService
then:
Contract
being created references a HealthcareService
then [id] SHALL identify that HealthcareService
.Contract
being created references a PractitionerRole
then [id] SHALL identify the HealthcareService
referenced by healthcareService in that PractitionerRole
.Response Codes:
Supported search parameters:
Parameter | Type | Definition |
_profile | uri | http://hl7.org/fhir/SearchParameter/Resource-profile |
subject | reference | http://hl7.org/fhir/SearchParameter/Contract-subject |
version | string |
Definition:
This operation is a RESTful search interaction (as described in the FHIR specification) for Contract
resources.
Behaviour:
This operation is used to find Contract
resources that conform to the PCA Information Use Statement profile and that match the search parameters.
Note that all PCA Information Use Statement resources in the PCA service are accessible to all authorised client systems.
HTTP interaction signature:
GET [publisher agent base url]/Contract/{?[parameters]}
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
Request Body:
Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
Response Body:
Bundle
containing zero to many Contract
resources that conform to the PCA Information Use Statement profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain one or more of the following scoped roles:
Organization/[id]:PCA:Om
Organization/[id]:PCA:Hsm
Location/[id]:PCA:Hsm
HealthcareService/[id]:PCA:Hsm
Organization/[id]:PS_Read
Location/[id]:PS_Read
HealthcareService/[id]:PS_Read
If a scoped role identifies an Organization
then [id] SHALL identify the publishing organisation associated with the target PCA Publisher Agent.
If a scoped role identifies a Location
then [id] SHALL identify any existing Location
within the scope of the requesting system.
If a scoped role identifies a HealthcareService
then [id] SHALL identify any existing HealthcareService
within the scope of the requesting system.
Response Codes:
This section defines the supported interactions for the PCA Match Record profile of the Task
resource type.
A Task
resource conforming to the PCA Match Record profile indicates the matching status of a service offering to a partner service’s local data store.
Option | Value |
versioning | versioned |
readHistory | false |
updateCreate | false |
conditionalCreate | false |
conditionalRead | not-supported |
conditionalUpdate | false |
conditionalDelete | not-supported |
referencePolicy | not specified |
searchInclude | _include not supported |
searchRevInclude | _revinclude not supported |
Definition:
This operation is a RESTful read interaction (as described in the FHIR specification) of a Task
resource.
Behaviour:
This operation retrieves an identified Task
resource that conforms to the PCA Match Record profile.
HTTP interaction signature:
GET [publisher agent base url]/Task/[id]
Mandatory Request Headers:
Accept: application/fhir+json;charset=utf-8
or Accept: application/fhir+xml;charset=utf-8
Authorization: Bearer [token]
Request Body:
Mandatory Response Headers:
Content-Type: application/fhir+json;charset=utf-8
or Content-Type: application/fhir+xml;charset=utf-8
Response Body:
Task
resource that conforms to the PCA Match Record profile.OperationOutcome
resource (see FHIR specification).Required OAuth 2.0 scopes:
The scope string SHALL contain one or more of the following scoped roles:
Organization/[id]:PCA:Om
Organization/[id]:PCA:Hsm
Location/[id]:PCA:Hsm
HealthcareService/[id]:PCA:Hsm
Organization/[id]:PS_Read
Location/[id]:PS_Read
HealthcareService/[id]:PS_Read
If a scoped role identifies an Organization
then:
Task
being read references an Organization
, then [id] SHALL identify that Organization
.Task
being read references a Location
, then [id] SHALL identify the Organization
referenced by managingOrganization of the Location
.Task
being read references a HealthcareService
, then [id] SHALL identify the Organization
referenced by providedBy of that HealthcareService.Task
being read references a PractitionerRole
, then [id] SHALL identify the Organization
referenced by providedBy of the HealthcareService
referenced by healthcareService of that PractitionerRole
.If a scoped role identifies a Location
then:
Task
being read references a Location
, then [id] SHALL identify that Location
.Task
being read references a HealthcareService
, then [id] SHALL identify the Location
referenced by location of that HealthcareService
.Task
being read references a PractitionerRole
, then [id] SHALL identify the Location
referenced by location of the HealthcareService
referenced by healthcareService of that PractitionerRole.If a scoped role identifies a HealthcareService
then:
Task
being read references a HealthcareService
, then [id] SHALL identify that HealthcareService
.Task
being read references a PractitionerRole
, then [id] SHALL identify the HealthcareService
referenced by healthcareService of that PractitionerRole.Response Codes: