visit the hl7 website
Ontario Provincial Client Registry (PCR) HL7® FHIR® Contribution Implementation Guide v1.0.0-ballot1
fhir-logo
  • Index
  • Home
    • Home
    • Introduction
    • Relationship to other Specifications
    • Scope
    • Glossary
  • Business Context
    • Business Context
    • Business Model
    • Business Data
    • Use Cases
    • Business Rules
    • Contribution Models
  • Technical Context
    • Technical Context
    • Implementer Responsibility
    • Conformance Rules
    • Connectivity Summary
  • FHIR Artifacts
    • FHIR Artifacts
    • Interactions
    • Operations
    • Profiles
    • Terminology
    • System URIs
    • Examples
    • Capability Statement
    • Response Handling
    • Downloads
  • Change Log
    • Change Log
    • Known Issues & Future Developments
    • Revision History
    1. Index
    2. Technical Context
    3. Conformance Rules

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

3.2. Conformance Rules

FHIR is a general-purpose specification and does not require implementers to support specific resources, operations, search parameters, or capabilities unless those requirements are defined by an implementation guide. To achieve consistent PCR contribution interoperability, implementers must make aligned decisions about the FHIR capabilities, contribution operations, resource profiles, and message behaviours their systems will support. FHIR uses the CapabilityStatement resource to define the actual or expected capabilities of a system.

PCR FHIR contribution resources, data types, and message representations shall conform to the HL7 FHIR R4 conformance rules and to the additional contribution-specific constraints defined in this implementation guide. Data elements defined in resources and data types include conformance properties such as cardinality, Is-Modifier, and MustSupport, which together define implementation obligations for submitting, validating, and processing PCR contribution transactions.


3.2.1. MustSupport Flag

To maximize interoperability for PCR contribution, this implementation guide uses the MustSupport flag to identify elements that contributing systems must understand and, where required by the applicable profile and business rules, populate in the request.

Elements marked MustSupport in a contribution request must be submitted when the data is available and required for the operation. If a request does not contain sufficient data to satisfy PCR minimum contribution requirements, PCR may reject the request and return an error or OperationOutcome.

Elements that are not marked MustSupport in a PCR FHIR contribution request may be ignored by PCR unless otherwise specified by the applicable profile or business rule.

Elements marked MustSupport in PCR responses, including acknowledgement and error response content, must be handled meaningfully by the contributing application, such as by storing response identifiers, recording operational outcomes, and triggering remediation workflows when errors are returned.


3.2.2. Data-In Obligations

Describes the submission and receipt of information between a Data Producer and a Data Receiver. Obligations supplement cardinality and Must Support requirements by defining what each actor is expected to do with an element.

3.2.2.1. Data Producer

The Data Producer obligations define when an element is expected to be populated in a submission:

  • SHALL:populate – The Data Producer SHALL support the element and populate it when submitting the resource in accordance with the requirements of the implementation.
  • SHALL:populate-if-known – The Data Producer SHALL populate the element when the information is known and available to the Data Producer. The Data Producer is not required to collect the information solely for the purpose of populating the element.

In general, elements that are required by the profile are assigned SHALL:populate, while optional elements that are expected to be submitted when known are assigned SHALL:populate-if-known.

An element does not need to have a cardinality of 1..1 to be assigned SHALL:populate. An element with an optional or repeating cardinality may be assigned SHALL:populate when the information is considered sufficiently important to the implementation that SHALL:populate-if-known would not express a strong enough conformance requirement. Cardinality and obligation therefore represent separate requirements: cardinality defines whether an element may or must occur in a conformant resource, while the obligation defines what a particular actor is required to do with that element.

3.2.2.2. Data Receiver

For elements identified as part of the Data-In requirements, the Data Receiver has the following obligations:

  • SHALL:no-error – The Data Receiver SHALL support the element and SHALL not reject an otherwise valid resource solely because the element is present.
  • SHALL:handle – The Data Receiver SHALL account for the meaning of the element when performing the processing required by the implementation.

The Provincial Client Registry contribution profiles do not use SHALL:persist as a Data Receiver obligation. The absence of SHALL:persist does not prohibit a receiving implementation from storing information; it means that persistence is not imposed as a conformance requirement by these profiles.

3.2.2.3. Relationship to Cardinality and Must Support

Cardinality, Must Support, and obligations address different aspects of conformance and should be interpreted together:

  • Cardinality defines whether an element is permitted or required to occur in a resource.
  • Must Support identifies elements for which implementations are expected to provide the support described by the implementation guide.
  • Obligations define the specific behaviour required of an identified actor, such as populating, accepting, or handling an element.

As a result, an optional element such as 0..1 or 0..* may still carry a strong actor obligation. Implementers SHALL evaluate the cardinality, Must Support designation, and applicable actor obligations together when determining conformance.


3.2.3. Content Type and Encodings

The formal MIME types for FHIR resources are application/fhir+json and application/fhir+xml.

For PCR FHIR contribution, JSON is preferred unless otherwise agreed through onboarding or environment-specific implementation guidance. Clients and servers shall use the correct MIME type for contribution request and response bodies.

  • JSON preferred: application/fhir+json
  • XML: application/fhir+xml

FHIR uses UTF-8 for request and response bodies.

PCR contribution requests and responses shall explicitly set the character encoding to UTF-8 using the charset parameter of the Content-Type header. Requests may also specify the charset parameter in the Accept header and may use the Accept-Charset header where supported.


3.2.4. HTTP Header Fields

The following HTTP header fields should be defined on the request if the client system is capable of doing so:

Header Field Purpose Expected Values Notes
Accept Indicates the response format expected by the contributing client. application/fhir+json or application/fhir+xml If both header and format parameters are available, onboarding guidance should define precedence.
Content-Type Indicates the format of the PCR contribution request body. application/fhir+json; charset=UTF-8 or application/fhir+xml; charset=UTF-8 Required for contribution operations with a request body.

3.2.5. Data Formatting

3.2.5.1. Letter Case

PCR preserves submitted demographic information in the format provided by the contributing source, including upper case, mixed case, or mixed formatting.

Contributing systems should apply local data quality rules before submission where standardization is required by the organization.

3.2.5.2. Extended Character Set and French Characters

PCR contribution messages shall use UTF-8 encoding to support extended characters beyond the standard ASCII character set, including French characters and other characters submitted by source systems.

3.2.5.3. Leading and Trailing White Spaces

Contributing systems shall not include leading or trailing white spaces in identifier fields or other structured fields where spacing may affect validation, matching, or downstream processing.


3.2.6. Identifier Policy

The PCR FHIR contribution interface uses Uniform Resource Identifiers (URIs) as the primary mechanism for representing identifier systems and implementation-specific namespaces.

URIs support globally unique identification for patient identifiers, profiles, extensions, value sets, code systems, and local naming systems.

All PCR FHIR URIs shall conform to Ontario Health URI management expectations and shall be implemented in a configurable manner to support environment-specific and future governance changes.

Variable Value
[base] PST: https://xxxx.pst.xxxx/PCR
PROD: https://xxxx.prod.xxxx/PCR
[base-structure] http://ehealthontario.ca/fhir/StructureDefinition
[id-system-global-base] https://fhir.infoway-inforoute.ca/NamingSystem
[id-system-local-base] http://ehealthontario.ca/fhir/NamingSystem
[code-system-local-base] http://ehealthontario.ca/fhir/CodeSystem
Version: 1.0.0-ballot1 FHIR Version: R4.0.1

Powered by SIMPLIFIER.NET

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