visit the hl7 website
Ontario Provincial Consent Override Interface HL7® FHIR® Implementation Guide v1.0.0-draft1
fhir-logo
  • Index
  • Home
    • Home
    • Introduction
    • Relationship to Other Specifications
    • Scope
    • Glossary
  • Business Context
    • Business Context
    • Business Model
    • Business Data
    • Use Cases
    • Business Rules
  • Technical Context
    • Technical Context
    • Implementer Responsibility
    • Conformance Rules
    • Connectivity Summary
  • FHIR Artifacts
    • FHIR Artifacts
    • Interactions
    • Profiles
    • Extensions
    • Terminology
    • System URIs
    • Examples
    • Capability Statement
    • Response Handling
    • Downloads
  • Change Log
    • Change Log
    • Known Issues & Future Developments
    • Revision History
    1. Index
    2. FHIR Artifacts
    3. Interactions
    4. Interaction: Create Consent

For a full list of available versions, see the Directory of published versions

4.1.1. Interaction: Create Consent

Consent Create is the RESTful interaction used to perform a temporary consent override, as prescribed by Ontario legislation and regulations (PHIPA and HIPA). It aligns with the generic RESTful create operation defined in the FHIR core specification (https://hl7.org/fhir/R4/http.html#create).

4.1.1.1. Scope

This transaction involves sending a FHIR Consent resource to the PCOI microservice, to perform a temporary consent override for provincial EHR assets that are integrated with PCOI. The request is recieved by the PCOI microservice, and routed to the respective provincial EHR assets (called "Lines of Business" i.e. LOBs). The PCOI microservice will provide a response indicating which LOBs successfully perform consent overrides, and relay issues preventing LOBs from performing consent overrides.


4.1.1.2. Storyboard

4.1.1.2.1. Interaction Diagrams

The following diagram illustrates the high level interaction between a FHIR PCOI Client and FHIR PCOI microservice. The transaction will use the following pair of query and response:

  • Request PCOI Consent Override / PCOI Response

Actor: FHIR PCOI RESTful Client

Role: Requests a temporary consent override for select provincial EHR assets, in accordance with Ontario legislation and regulations, providing identity information for the patient subject, practitioner and practitioner organization requesting the override, the reason for the override, and the lines of business for which override is requested. The FHIR PCOI RESTful Client processes the PCOI microservice response, identifying which provincial EHR assets have successfully applied a temporary consent override.

Actor: FHIR PCOI Microservice

Role: Processes the PCOI request message, and perform consent override for each of the requested provincial EHR assets. Returns the result of the consent override request for each requested provincial EHR asset, as well as any error messages from those assets.


4.1.1.3. Specification

This FHIR spec makes use of the following resource profiles:

PCOI Request

  • on-ca-consent-pcoi-profile-Consent

  • on-ca-consent-pcoi-profile-Patient

  • on-ca-consent-pcoi-profile-Practitioner

  • on-ca-consent-pcoi-profile-Organization

  • on-ca-consent-pcoi-profile-RelatedPerson

PCOI_Resources

PCOI Response

  • on-ca-consent-pcoi-profile-OperationOutcome

4.1.1.4. Summary of Supported Operations

The table below shows the allowed transactions for each profile and how they support FHIR endpoints, resources and their corresponding HTTP operations:

Resource Transaction HTTP Operations URL Request Body Resource Response Body Resource
Consent Create POST [base]/Consent/ Consent resource with contained Patient, Practitioner, Organization, RelatedPerson resources OperationOutcome resource

The interaction summary table below lists the HTTP status codes that may be returned for the query.

Interaction Content-Type Body Location Versioning Status Codes Comments
create R R: Consent N/A N/A 201,400,404,406,415,500

4.1.1.5. Examples

Examples of PCOI requests can be found below:

  • Request Example 1 - Patient-initiated Consent Override

  • Request Example 2 - SDM-initiated Consent Override

  • Request Example 3 - Practitioner-initiated Consent Override, Risk to patient safety


4.1.1.6. Expected Behaviour

Case Scenario Description HTTP Status Code Response Payload
1 A valid Consent request is submitted and accepted by the PCOI service HTTP 201 Created. Returns the created resource.
2 POST operation contains incorrect header value for "Content-Type" - should be "application/fhir+json" HTTP 400 Bad Request. Returns an OperationOutcome resource indicating an issue.
3 Invalid Message Content HTTP 422 Unprocessable Entity. Returns an OperationOutcome resource indicating an issue.
4 PCOI Service validates the request but cannot return a valid response due to internal issues. HTTP 500 Internal Server Error. Returns an OperationOutcome resource indicating an issue.
5 Downstream system(s) did not return timely response. HTTP 504 Gateway Timeout. Return a comma-separated list of LOBs that did not return a response within the specified PCOI microservice timeout parameter.

For additional Response Handling guidance, please see Response Handling

Version: 1.0.0 FHIR Version: R4.0.1

Powered by SIMPLIFIER.NET

HL7® and FHIR® are the registered trademarks of Health Level Seven International