Visit the HL7 website
Visit the FHIR website

Pan-Canadian FHIR Exchange (CA:FeX) IGuide

2.2.0-DFT   Canada flag
  • Home
  • Business Context
    • Project Background
    • Scope
    • Relationship to Other Specifications
    • Use Cases
  • Technical Context
    • Overview
    • FHIR Exchange Paradigms
    • Data Exchange
    • 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. Home
    2. FHIR Artifacts
    3. Capability Statements
    4. CA:FeX CapabilityStatement - Data Consumer - Option B (Metadata Option)

DFT Ballot - This specification is currently in ballot review and 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

CA:FeX CapabilityStatement - Data Consumer - Option B (Metadata Option)

  • Overview
  • Tree view
  • XML
  • JSON

REST Capabilities Client

ModeClient
Documentation

This client supports CA:FeX-2B and CA:FeX-3B. The client initiates a $docref operation against a DocumentReference endpoint and retrieves documents using the attachment.url found in the response. The client SHALL support reading both Bundle and Binary resources. Bundle search is only mandated for systems implementing Transaction CA:FeX 2A; other systems MAY omit it

Security

Description
  1. See the security section of the CA:FeX guide for security requirements and recommendations.
  2. A server SHALL reject any unauthorized requests by returning an HTTP 401 "Unauthorized", HTTP 403 "Forbidden", or HTTP 404 "Not Found"

Resource Interactions

Resource TypeSupported ProfilesReadSearchTypeVreadHistoryInstanceHistoryType
DocumentReferenceSHALLSHALLMAYMAYMAY
BundleSHALLMAYMAYMAYMAY
BinarySHALLMAYMAYMAYMAY

Global Operations

OperationReferenceLevel
$docref??SHALL

Search Parameters per resource type

DocumentReference

NameTypeLevel
patientreferenceSHALL
typetokenMAY
categorytokenMAY
datedateMAY
authorreferenceMAY

Bundle

No search parameters are stated for this resource type

Binary

No search parameters are stated for this resource type

CapabilityStatement
id : CaFeX-DataConsumer-Option-B
url : http://fhir.infoway-inforoute.ca/io/cafex/CapabilityStatement/CaFeX-DataConsumer-Option-B
title : CA:FeX CapabilityStatement - Data Consumer - Option B (Metadata Option)
description : CA:FeX-2B and CA:FeX-3B – Conformance expectations for a CA:FeX Data Consumer implementing the Metadata Option (B). This system must support the use of the $docref operation to retrieve DocumentReference metadata, and subsequent retrieval of referenced documents via the attachment.url. Only /Bundle and /Binary endpoints are expected in CA:FeX for document retrieval.
status : draft
version : 2.2.0
name : CAFEX_DataConsumer_Option_B
date : 2025-04-02
kind : requirements
experimental : False
fhirVersion : 4.0.1
format : json
format : xml
jurisdiction
coding
code : CA
system : urn:iso:std:iso:3166
publisher : Canada Health Infoway
contact
name : National Standards Release Centre
telecom
system : url
value : http://www.infoway-inforoute.ca
telecom
system : email
value : standards@infoway-inforoute.ca
copyright : Copyright © 2021–2025+ Canada Health Infoway. All rights reserved. [Terms of Use and License Agreements](https://ic.infoway-inforoute.ca/en/about/tou). [Privacy Policy](https://www.infoway-inforoute.ca/en/legal/privacy-policy).
rest
mode : client
documentation : This client supports CA:FeX-2B and CA:FeX-3B. The client initiates a $docref operation against a DocumentReference endpoint and retrieves documents using the attachment.url found in the response. The client SHALL support reading both Bundle and Binary resources. Bundle search is only mandated for systems implementing Transaction CA:FeX 2A; other systems MAY omit it
security
description : 1. See the security section of the CA:FeX guide for security requirements and recommendations. 2. A server **SHALL** reject any unauthorized requests by returning an `HTTP 401` "Unauthorized", `HTTP 403` "Forbidden", or `HTTP 404` "Not Found"
operation
name : $docref
definition : http://fhir.infoway-inforoute.ca/io/cafex/OperationDefinition/docref
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : SHALL
resource
type : DocumentReference
interaction
code : read
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : SHALL
interaction
code : search-type
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : SHALL
interaction
code : vread
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : MAY
interaction
code : history-instance
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : MAY
interaction
code : history-type
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : MAY
searchParam
name : patient
type : reference
definition : http://hl7.org/fhir/SearchParameter/clinical-patient
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : SHALL
searchParam
name : type
type : token
definition : http://hl7.org/fhir/SearchParameter/clinical-type
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : MAY
searchParam
name : category
type : token
definition : http://hl7.org/fhir/SearchParameter/DocumentReference-category
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : MAY
searchParam
name : date
type : date
definition : http://hl7.org/fhir/SearchParameter/clinical-date
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : MAY
searchParam
name : author
type : reference
definition : http://hl7.org/fhir/SearchParameter/DocumentReference-author
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : MAY
resource
type : Bundle
interaction
code : read
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : SHALL
interaction
code : search-type
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : MAY
interaction
code : vread
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : MAY
interaction
code : history-instance
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : MAY
interaction
code : history-type
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : MAY
documentation : This client retrieves Bundle resources as referenced from DocumentReference.attachment.url. These are used when the document is submitted as a FHIR document.
resource
type : Binary
interaction
code : read
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : SHALL
interaction
code : search-type
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : MAY
interaction
code : vread
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : MAY
interaction
code : history-instance
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : MAY
interaction
code : history-type
extension
url : http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation
value : MAY
documentation : This client retrieves Binary resources as referenced from DocumentReference.attachment.url. These are typically used to return non-structured documents (PDF, CDA).
<CapabilityStatement xmlns="http://hl7.org/fhir">
<id value="CaFeX-DataConsumer-Option-B" />
<url value="http://fhir.infoway-inforoute.ca/io/cafex/CapabilityStatement/CaFeX-DataConsumer-Option-B" />
<version value="2.2.0" />
<name value="CAFEX_DataConsumer_Option_B" />
<title value="CA:FeX CapabilityStatement - Data Consumer - Option B (Metadata Option)" />
<status value="draft" />
<experimental value="false" />
<date value="2025-04-02" />
<publisher value="Canada Health Infoway" />
<contact>
<name value="National Standards Release Centre" />
<telecom>
<system value="url" />
<value value="http://www.infoway-inforoute.ca" />
</telecom>
<telecom>
<system value="email" />
<value value="standards@infoway-inforoute.ca" />
</telecom>
</contact>
<description value="CA:FeX-2B and CA:FeX-3B – Conformance expectations for a CA:FeX Data Consumer implementing the Metadata Option (B).\nThis system must support the use of the $docref operation to retrieve DocumentReference metadata,\nand subsequent retrieval of referenced documents via the attachment.url.\nOnly /Bundle and /Binary endpoints are expected in CA:FeX for document retrieval." />
<jurisdiction>
<coding>
<system value="urn:iso:std:iso:3166" />
<code value="CA" />
</coding>
</jurisdiction>
<copyright value="Copyright © 2021–2025+ Canada Health Infoway. All rights reserved. [Terms of Use and License Agreements](https://ic.infoway-inforoute.ca/en/about/tou). [Privacy Policy](https://www.infoway-inforoute.ca/en/legal/privacy-policy)." />
<kind value="requirements" />
<fhirVersion value="4.0.1" />
<format value="json" />
<format value="xml" />
<rest>
<mode value="client" />
<documentation value="This client supports CA:FeX-2B and CA:FeX-3B. The client initiates a $docref operation against a DocumentReference endpoint\nand retrieves documents using the attachment.url found in the response.\nThe client SHALL support reading both Bundle and Binary resources. Bundle search is only mandated for systems implementing Transaction CA:FeX 2A; other systems MAY omit it" />
<security>
<description value="1. See the security section of the CA:FeX guide for security requirements and recommendations.\n2. A server **SHALL** reject any unauthorized requests by returning an `HTTP 401` "Unauthorized", `HTTP 403` "Forbidden", or `HTTP 404` "Not Found"" />
</security>
<resource>
<type value="DocumentReference" />
<interaction>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="SHALL" />
</extension>
<code value="read" />
</interaction>
<interaction>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="SHALL" />
</extension>
<code value="search-type" />
</interaction>
<interaction>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="MAY" />
</extension>
<code value="vread" />
</interaction>
<interaction>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="MAY" />
</extension>
<code value="history-instance" />
</interaction>
<interaction>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="MAY" />
</extension>
<code value="history-type" />
</interaction>
<searchParam>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="SHALL" />
</extension>
<name value="patient" />
<definition value="http://hl7.org/fhir/SearchParameter/clinical-patient" />
<type value="reference" />
</searchParam>
<searchParam>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="MAY" />
</extension>
<name value="type" />
<definition value="http://hl7.org/fhir/SearchParameter/clinical-type" />
<type value="token" />
</searchParam>
<searchParam>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="MAY" />
</extension>
<name value="category" />
<definition value="http://hl7.org/fhir/SearchParameter/DocumentReference-category" />
<type value="token" />
</searchParam>
<searchParam>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="MAY" />
</extension>
<name value="date" />
<definition value="http://hl7.org/fhir/SearchParameter/clinical-date" />
<type value="date" />
</searchParam>
<searchParam>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="MAY" />
</extension>
<name value="author" />
<definition value="http://hl7.org/fhir/SearchParameter/DocumentReference-author" />
<type value="reference" />
</searchParam>
</resource>
<resource>
<type value="Bundle" />
<documentation value="This client retrieves Bundle resources as referenced from DocumentReference.attachment.url. These are used when the document is submitted as a FHIR document." />
<interaction>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="SHALL" />
</extension>
<code value="read" />
</interaction>
<interaction>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="MAY" />
</extension>
<code value="search-type" />
</interaction>
<interaction>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="MAY" />
</extension>
<code value="vread" />
</interaction>
<interaction>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="MAY" />
</extension>
<code value="history-instance" />
</interaction>
<interaction>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="MAY" />
</extension>
<code value="history-type" />
</interaction>
</resource>
<resource>
<type value="Binary" />
<documentation value="This client retrieves Binary resources as referenced from DocumentReference.attachment.url. These are typically used to return non-structured documents (PDF, CDA)." />
<interaction>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="SHALL" />
</extension>
<code value="read" />
</interaction>
<interaction>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="MAY" />
</extension>
<code value="search-type" />
</interaction>
<interaction>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="MAY" />
</extension>
<code value="vread" />
</interaction>
<interaction>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="MAY" />
</extension>
<code value="history-instance" />
</interaction>
<interaction>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="MAY" />
</extension>
<code value="history-type" />
</interaction>
</resource>
<operation>
<extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
<valueCode value="SHALL" />
</extension>
<name value="$docref" />
<definition value="http://fhir.infoway-inforoute.ca/io/cafex/OperationDefinition/docref" />
</operation>
</rest>
</CapabilityStatement>
{
"resourceType": "CapabilityStatement",
"id": "CaFeX-DataConsumer-Option-B",
"url": "http://fhir.infoway-inforoute.ca/io/cafex/CapabilityStatement/CaFeX-DataConsumer-Option-B",
"title": "CA:FeX CapabilityStatement - Data Consumer - Option B (Metadata Option)",
"description": "CA:FeX-2B and CA:FeX-3B – Conformance expectations for a CA:FeX Data Consumer implementing the Metadata Option (B).\nThis system must support the use of the $docref operation to retrieve DocumentReference metadata,\nand subsequent retrieval of referenced documents via the attachment.url.\nOnly /Bundle and /Binary endpoints are expected in CA:FeX for document retrieval.",
"status": "draft",
"version": "2.2.0",
"name": "CAFEX_DataConsumer_Option_B",
"date": "2025-04-02",
"kind": "requirements",
"experimental": false,
"fhirVersion": "4.0.1",
"format": [
"json",
"xml"
],
"jurisdiction": [
{
"coding": [
{
"code": "CA",
"system": "urn:iso:std:iso:3166"
}
]
}
],
"publisher": "Canada Health Infoway",
"contact": [
{
"name": "National Standards Release Centre",
"telecom": [
{
"system": "url",
"value": "http://www.infoway-inforoute.ca"
},
{
"system": "email",
"value": "standards@infoway-inforoute.ca"
}
]
}
],
"copyright": "Copyright © 2021–2025+ Canada Health Infoway. All rights reserved. [Terms of Use and License Agreements](https://ic.infoway-inforoute.ca/en/about/tou). [Privacy Policy](https://www.infoway-inforoute.ca/en/legal/privacy-policy).",
"rest": [
{
"mode": "client",
"documentation": "This client supports CA:FeX-2B and CA:FeX-3B. The client initiates a $docref operation against a DocumentReference endpoint\nand retrieves documents using the attachment.url found in the response.\nThe client SHALL support reading both Bundle and Binary resources. Bundle search is only mandated for systems implementing Transaction CA:FeX 2A; other systems MAY omit it",
"security": {
"description": "1. See the security section of the CA:FeX guide for security requirements and recommendations.\n2. A server **SHALL** reject any unauthorized requests by returning an `HTTP 401` \"Unauthorized\", `HTTP 403` \"Forbidden\", or `HTTP 404` \"Not Found\""
},
"operation": [
{
"name": "$docref",
"definition": "http://fhir.infoway-inforoute.ca/io/cafex/OperationDefinition/docref",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "SHALL"
}
]
}
],
"resource": [
{
"type": "DocumentReference",
"interaction": [
{
"code": "read",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "SHALL"
}
]
},
{
"code": "search-type",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "SHALL"
}
]
},
{
"code": "vread",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "MAY"
}
]
},
{
"code": "history-instance",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "MAY"
}
]
},
{
"code": "history-type",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "MAY"
}
]
}
],
"searchParam": [
{
"name": "patient",
"type": "reference",
"definition": "http://hl7.org/fhir/SearchParameter/clinical-patient",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "SHALL"
}
]
},
{
"name": "type",
"type": "token",
"definition": "http://hl7.org/fhir/SearchParameter/clinical-type",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "MAY"
}
]
},
{
"name": "category",
"type": "token",
"definition": "http://hl7.org/fhir/SearchParameter/DocumentReference-category",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "MAY"
}
]
},
{
"name": "date",
"type": "date",
"definition": "http://hl7.org/fhir/SearchParameter/clinical-date",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "MAY"
}
]
},
{
"name": "author",
"type": "reference",
"definition": "http://hl7.org/fhir/SearchParameter/DocumentReference-author",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "MAY"
}
]
}
]
},
{
"type": "Bundle",
"interaction": [
{
"code": "read",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "SHALL"
}
]
},
{
"code": "search-type",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "MAY"
}
]
},
{
"code": "vread",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "MAY"
}
]
},
{
"code": "history-instance",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "MAY"
}
]
},
{
"code": "history-type",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "MAY"
}
]
}
],
"documentation": "This client retrieves Bundle resources as referenced from DocumentReference.attachment.url. These are used when the document is submitted as a FHIR document."
},
{
"type": "Binary",
"interaction": [
{
"code": "read",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "SHALL"
}
]
},
{
"code": "search-type",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "MAY"
}
]
},
{
"code": "vread",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "MAY"
}
]
},
{
"code": "history-instance",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "MAY"
}
]
},
{
"code": "history-type",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
"valueCode": "MAY"
}
]
}
],
"documentation": "This client retrieves Binary resources as referenced from DocumentReference.attachment.url. These are typically used to return non-structured documents (PDF, CDA)."
}
]
}
]
}

IG © based on FHIR R4 | Package package:ca.infoway.io.cafex@2.2.0-DFT
HL7® and FHIR® are the registered trademarks of Health Level Seven International