Visit the HL7 website
Visit the FHIR website

Pan-Canadian FHIR Exchange (CA:FeX) IGuide CI Build

CIBuild   Canada flag
  • Index
  • Home
  • Business Context
    • Scope
    • Development Approach and Rationale
    • Relationship to Other Specifications
    • Use Cases
  • Technical Context
    • Overview
    • FHIR Exchange Paradigms
    • Document Exchange
    • RESTful API Interactions
    • Sequence Diagrams
    • Actor Mapping to Interoperability Specification
    • Security
  • Actor and Conformance Options
    • Technical Actors
    • Actor Options
    • Conformance Requirements
  • FHIR Artifacts
    • Profiles and Extensions
    • Search Parameters
    • Operations
    • Capability Statements
    • Capability Statements - Server
  • Change Log
    • Change Log
    1. Index
    2. FHIR Artifacts
    3. Operations

CI Build - This specification is a draft continuous integration build and is subject to change. It is not ready for limited roll-out or production level use. For a full list of available versions, see the Directory of published versions

Operations

FHIR defines a class of RPC‑style interactions called operations (formally “Execute Operations”). An operation invocation is identified by a name prefixed with $ (e.g., $docref) and is submitted to a server, a resource type endpoint, or a specific resource instance. Input and output are conveyed in a Parameters resource.

Approach toward operations

CA:FeX retains $docref for generic document discovery and $summary for patient summaries, with PS-CA providing the Canadian patient-summary context. Their placement in CA:FeX is retained by the realignment decision.

Support expectations depend on the claimed actor and option: Option B uses $generate-metadata and $docref, and Option D uses $summary. See Document Exchange for the transactions and Capability Statements for the actor-option requirements. The generic server's SHOULD expectation for $docref does not replace those requirements.

$docref

Implementations such as US Core and International Patient Access (IPA) promote $docref to fetch or generate a DocumentReference “shell” on‑demand when matching FHIR documents exist but lack metadata.
A server MAY generate the document when it returns the DocumentReference (eager) or defer generation until a client accesses the DocumentReference.content.attachment.url (lazy). Server developers should balance the cost of creating unused documents against response‑time requirements (consistent with US Core and IPA direction).

The $docref operation retrieves references to documents together with metadata such as identifier, type, status, author and custodian. The document itself can then be obtained via the URL in DocumentReference.content.attachment.url, which MAY point to a FHIR Binary endpoint or an external repository.

Specification: IPA $docref
CA:FeX mapping: see Document Exchange for CA:FeX-2B.

Invocation

  • GET [base]/DocumentReference/$docref?{parameters}
    (only if no composite parameters are needed)
  • POST [base]/DocumentReference/$docref with a Parameters body

Input parameters

Name Cardinality Notes
patient 1..1 Patient logical ID of interest; name-based lookup, if needed, is an upstream workflow
start 0..1 Start of date range
end 0..1 End of date range
type 0..* One or more document types
category 0..* One or more document categories
on-demand 0..1 true → only “on‑demand” docs; omit/false → both
profile 0..* Document profile(s) requested

Output

If at least one document matches, the server returns a Bundle of type searchset containing one or more matching DocumentReference resources.


$summary

$summary obtains the latest patient summary under Option D. Its Canadian use-case context is PS-CA; it does not replace $docref for generic document discovery. The retained invocation forms, inputs and outputs below are unchanged by the realignment.

Specification: IPS $summary. The operation remains patient-summary-specific in this guidance.

Invocation

  • GET [base]/Patient/$summary?{parameters}
  • GET [base]/Patient/[id]/$summary
  • POST [base]/Patient/$summary (body = Parameters)
  • POST [base]/Patient/[id]/$summary

Input parameters

Name Cardinality Notes
identifier 0..1 Patient MRN when invoked at system level
profile 0..* Document profile(s) requested

(Graph parameter has been removed from the IPS draft and is therefore omitted.)

Output

A Bundle of type document containing the generated or pre‑existing patient summary.


Other operations

The following operations are broader FHIR context, outside the retained CA:FeX document-exchange transactions. Their inclusion here creates no additional CA:FeX conformance requirement:

Operation Use‑case
$everything Retrieve the complete clinical record for one or more patients.
$lastn Get the most recent n observations for a subject.
$expand Return an expanded ValueSet for data entry/validation.
$validate-code Validate a code against a CodeSystem.
$translate Translate a code from one value set to another using a ConceptMap.

Feedback welcome — especially on performance guidelines for on‑demand documents and the applicability of each optional operation in typical EMR deployments.

IG © based on FHIR R4 | Package project:CA-FeX-Canadian-FHIR-Exchange
Copyright © 2026 Canada Health Infoway. All rights reserved. Terms of Use & License Agreements. Privacy Policy.
HL7® and FHIR® are the registered trademarks of Health Level Seven International