<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-immunizationrecommendation" />
  <url value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-immunizationrecommendation" />
  <version value="0.2.2" />
  <name value="ImmunizationRecommendationProfile" />
  <title value="ImmunizationRecommendation Profile" />
  <status value="draft" />
  <date value="2026-01-09" />
  <publisher value="HL7 Canada - FHIR Implementation Work Group" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="https://infocentral.infoway-inforoute.ca/en/collaboration/wg/fhir-implementations" />
    </telecom>
  </contact>
  <description value="Proposed constraints and extensions on the ImmunizationRecommendation resource.  Generated as a first step toward creating a set of Canadian Baseline FHIR profiles." />
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166" />
      <code value="CA" />
    </coding>
  </jurisdiction>
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="ImmunizationRecommendation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation" />
  <derivation value="constraint" />
  <differential>
    <element id="ImmunizationRecommendation">
      <path value="ImmunizationRecommendation" />
      <short value="ImmunizationRecommendation Profile" />
      <definition value="The ImmunizationRecommendation Profile is based upon the core FHIR ImmunizationRecommendation Resource" />
    </element>
    <element id="ImmunizationRecommendation.patient">
      <path value="ImmunizationRecommendation.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-patient" />
      </type>
    </element>
    <element id="ImmunizationRecommendation.authority">
      <path value="ImmunizationRecommendation.authority" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-organization" />
      </type>
    </element>
    <element id="ImmunizationRecommendation.recommendation.vaccineCode">
      <path value="ImmunizationRecommendation.recommendation.vaccineCode" />
      <comment value="CA Core Usage Notes: the assumption is that ImmunizationRecommendation (forecast) is always on the level of a generic vaccine code and/or target disease. TBD: to confirm that there is no use case when an ImmunizationRecommendation needs to be on the vaccine tradename level (e.g. there is no sitation when a 2nd dose has to be of the same tradename as the 1st dose)." />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://cvc.canimmunize.ca/v3/ValueSet/Generic" />
      </binding>
    </element>
    <element id="ImmunizationRecommendation.recommendation.vaccineCode.coding">
      <path value="ImmunizationRecommendation.recommendation.vaccineCode.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <discriminator>
          <type value="value" />
          <path value="code" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="ImmunizationRecommendation.recommendation.vaccineCode.coding:Generic">
      <path value="ImmunizationRecommendation.recommendation.vaccineCode.coding" />
      <sliceName value="Generic" />
      <comment value="CA Baseline Usage Notes: either a Generic code or a Tradename code or both have to be present." />
      <max value="1" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://cvc.canimmunize.ca/v3/ValueSet/Generic" />
      </binding>
    </element>
    <element id="ImmunizationRecommendation.recommendation.vaccineCode.coding:Tradename">
      <path value="ImmunizationRecommendation.recommendation.vaccineCode.coding" />
      <sliceName value="Tradename" />
      <comment value="CA Baseline Usage Notes: either a Generic code or a Tradename code or both have to be present." />
      <max value="1" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://cvc.canimmunize.ca/v3/ValueSet/Tradename" />
      </binding>
    </element>
    <element id="ImmunizationRecommendation.recommendation.targetDisease">
      <path value="ImmunizationRecommendation.recommendation.targetDisease" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://cvc.canimmunize.ca/v3/ValueSet/Disease" />
      </binding>
    </element>
    <element id="ImmunizationRecommendation.recommendation.forecastStatus">
      <path value="ImmunizationRecommendation.recommendation.forecastStatus" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://cvc.canimmunize.ca/v3/ValueSet/ForecastStatus" />
      </binding>
    </element>
    <element id="ImmunizationRecommendation.recommendation.supportingImmunization">
      <path value="ImmunizationRecommendation.recommendation.supportingImmunization" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-immunization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImmunizationEvaluation" />
      </type>
    </element>
  </differential>
</StructureDefinition>