ConsentExtension

The FHIR extension is for Immunization Consent Directive Category and Sub-Category, Directive Type, Directive Doses, Directive Form and Comments purposes.

id0..1string
id0..0string
extensionI0..*Extension
url1..1uriFixed Value
valueStringstring
id0..0string
extensionI0..*Extension
url1..1uriFixed Value
valueStringstring
id0..0string
extensionI0..*Extension
url1..1uriFixed Value
valueStringstring
id0..0string
extensionI0..*Extension
url1..1uriFixed Value
valueStringstring
id0..0string
extensionI0..*Extension
url1..1uriFixed Value
valueStringstring
id0..0string
extensionI0..*Extension
url1..1uriFixed Value
id0..0string
extensionI0..*Extension
timeΣ0..1dateTime
textΣ1..1markdown
url1..1uriFixed Value
Extension
DefinitionOptional Extension Element - found in all resources.
Cardinality0...*
Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Extension.id
DefinitionUnique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Cardinality0...1
Typestring
Mappings
  • rim: n/a
Extension.extension
DefinitionMay be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
Cardinality3...*
TypeExtension
Aliasextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

SlicingUnordered, Open, by url(Value)
Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
Extension.extension:PIRconsentDirectiveCategory
DefinitionPIR Consent Directive Cateogry
Cardinality1...1
TypeExtension
Aliasextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
Extension.extension:PIRconsentDirectiveCategory.id
DefinitionUnique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Cardinality0...0
Typestring
Mappings
  • rim: n/a
Extension.extension:PIRconsentDirectiveCategory.extension
DefinitionMay be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
Cardinality0...*
TypeExtension
Aliasextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

SlicingUnordered, Open, by url(Value)
Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
Extension.extension:PIRconsentDirectiveCategory.url
DefinitionSource of the definition for the extension code - a logical name or a URL.
Cardinality1...1
Typeuri
Comments

The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.

Fixed Value

PIRconsentDirectiveCategory

Mappings
  • rim: N/A
Extension.extension:PIRconsentDirectiveCategory.value[x]
DefinitionValue of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).
Cardinality0...1
Typestring
Comments

See Mappings

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
  • source-PIR: CONSENT.CONSENT_DIRECTIVE_TYPE.CATEGORY_CNCPT_ID
Extension.extension:PIRconsentDirectiveSubCategory
DefinitionPIR Consent Directive Sub-Category
Cardinality1...1
TypeExtension
Aliasextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
Extension.extension:PIRconsentDirectiveSubCategory.id
DefinitionUnique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Cardinality0...0
Typestring
Mappings
  • rim: n/a
Extension.extension:PIRconsentDirectiveSubCategory.extension
DefinitionMay be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
Cardinality0...*
TypeExtension
Aliasextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

SlicingUnordered, Open, by url(Value)
Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
Extension.extension:PIRconsentDirectiveSubCategory.url
DefinitionSource of the definition for the extension code - a logical name or a URL.
Cardinality1...1
Typeuri
Comments

The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.

Fixed Value

PIRconsentDirectiveSubCategory

Mappings
  • rim: N/A
Extension.extension:PIRconsentDirectiveSubCategory.value[x]
DefinitionValue of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).
Cardinality0...1
Typestring
Comments

See Mappings

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
  • source-PIR: CONSENT.CONSENT_DIRECTIVE_TYPE.SUB_CATEGORY_CNCPT_ID
Extension.extension:PIRconsentDirectiveType
DefinitionPIR Consent Directive Type
Cardinality1...1
TypeExtension
Aliasextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
Extension.extension:PIRconsentDirectiveType.id
DefinitionUnique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Cardinality0...0
Typestring
Mappings
  • rim: n/a
Extension.extension:PIRconsentDirectiveType.extension
DefinitionMay be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
Cardinality0...*
TypeExtension
Aliasextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

SlicingUnordered, Open, by url(Value)
Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
Extension.extension:PIRconsentDirectiveType.url
DefinitionSource of the definition for the extension code - a logical name or a URL.
Cardinality1...1
Typeuri
Comments

The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.

Fixed Value

PIRconsentDirectiveType

Mappings
  • rim: N/A
Extension.extension:PIRconsentDirectiveType.value[x]
DefinitionValue of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).
Cardinality0...1
Typestring
Comments

See Mappings

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
  • source-PIR: CONSENT.CONSENT_DIRECTIVE_TYPE.CONSENT_DIRECTIVE_TYPE_NAME
Extension.extension:consentDirectiveDoses
DefinitionConsent for No. of Doses
Cardinality0...1
TypeExtension
Aliasextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
Extension.extension:consentDirectiveDoses.id
DefinitionUnique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Cardinality0...0
Typestring
Mappings
  • rim: n/a
Extension.extension:consentDirectiveDoses.extension
DefinitionMay be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
Cardinality0...*
TypeExtension
Aliasextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

SlicingUnordered, Open, by url(Value)
Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
Extension.extension:consentDirectiveDoses.url
DefinitionSource of the definition for the extension code - a logical name or a URL.
Cardinality1...1
Typeuri
Comments

The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.

Fixed Value

consentDirectiveDoses

Mappings
  • rim: N/A
Extension.extension:consentDirectiveDoses.value[x]
DefinitionValue of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).
Cardinality0...1
Typestring
Comments

See Mappings

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
  • source-PIR: CONSENT.CONSENT_DIRECTIVE.DOSAGE
Extension.extension:consentDirectiveForm
DefinitionPIR Directive Form of Consent
Cardinality0...1
TypeExtension
Aliasextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
Extension.extension:consentDirectiveForm.id
DefinitionUnique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Cardinality0...0
Typestring
Mappings
  • rim: n/a
Extension.extension:consentDirectiveForm.extension
DefinitionMay be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
Cardinality0...*
TypeExtension
Aliasextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

SlicingUnordered, Open, by url(Value)
Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
Extension.extension:consentDirectiveForm.url
DefinitionSource of the definition for the extension code - a logical name or a URL.
Cardinality1...1
Typeuri
Comments

The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.

Fixed Value

consentDirectiveForm

Mappings
  • rim: N/A
Extension.extension:consentDirectiveForm.value[x]
DefinitionValue of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).
Cardinality0...1
Typestring
Comments

In Person | Telephone | Written. See Mappings

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
  • source-PIR: CONSENT.CONSENT_DIRECTIVE.CONSENT_METHOD_CODE_CNCPT_ID
Extension.extension:consentDirectiveComments
DefinitionConsent Directive Comments
Cardinality0...*
TypeExtension
Aliasextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
Extension.extension:consentDirectiveComments.id
DefinitionUnique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Cardinality0...0
Typestring
Mappings
  • rim: n/a
Extension.extension:consentDirectiveComments.extension
DefinitionMay be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
Cardinality0...*
TypeExtension
Aliasextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

SlicingUnordered, Open, by url(Value)
Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
Extension.extension:consentDirectiveComments.url
DefinitionSource of the definition for the extension code - a logical name or a URL.
Cardinality1...1
Typeuri
Comments

The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.

Fixed Value

consentDirectiveComments

Mappings
  • rim: N/A
Extension.extension:consentDirectiveComments.value[x]
DefinitionValue of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).
Cardinality0...1
TypeAnnotation
Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
Extension.extension:consentDirectiveComments.value[x].id
DefinitionUnique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Cardinality0...0
Typestring
Mappings
  • rim: n/a
Extension.extension:consentDirectiveComments.value[x].extension
DefinitionMay be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
Cardinality0...*
TypeExtension
Aliasextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

SlicingUnordered, Open, by url(Value)
Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
Extension.extension:consentDirectiveComments.value[x].author[x]
DefinitionThe individual responsible for making the annotation.
Cardinality0...0
TypeReference(Practitioner | Patient | RelatedPerson | Organization)
SummaryTrue
Comments

Organization is used when there's no need for specific attribution as to who made the comment.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: N/A
  • rim: Act.participant[typeCode=AUT].role
Extension.extension:consentDirectiveComments.value[x].time
DefinitionIndicates when this particular annotation was made.
Cardinality0...1
TypedateTime
SummaryTrue
Comments

List Comments Creation DateTime by descending order.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: N/A
  • rim: Act.effectiveTime
Extension.extension:consentDirectiveComments.value[x].text
DefinitionThe text of the annotation in markdown format.
Cardinality1...1
Typemarkdown
SummaryTrue
Comments

See Mappings

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: N/A
  • rim: Act.text
  • source-PIR: CONSENT.CONSENT_DIRECTIVE_COMMENT.CONSENT_DIRECTIVE_COMMENT
Extension.url
DefinitionSource of the definition for the extension code - a logical name or a URL.
Cardinality1...1
Typeuri
Comments

The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.

Fixed Value

http://ehealth.bc.ca/fhir/StructureDefinition/bc-bcyimmunizationdistribution/consent-type-form-doses-comments

Mappings
  • rim: N/A
Extension.value[x]
DefinitionValue of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).
Cardinality0...0
Typebase64Binary
Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
<StructureDefinition xmlns="http://hl7.org/fhir">
    <url value="http://ehealth.bc.ca/fhir/StructureDefinition/bc-bcyimmunizationdistribution/consent-type-form-doses-comments" />
    <name value="ConsentExtension" />
    <status value="draft" />
    <fhirVersion value="4.0.1" />
    <kind value="complex-type" />
    <abstract value="false" />
    <context>
        <type value="extension" />
        <expression value="Consent" />
    </context>
    <type value="Extension" />
    <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
    <derivation value="constraint" />
    <differential>
        <element id="Extension.extension">
            <path value="Extension.extension" />
            <min value="3" />
        </element>
        <element id="Extension.extension:PIRconsentDirectiveCategory">
            <path value="Extension.extension" />
            <sliceName value="PIRconsentDirectiveCategory" />
            <short value="PIR Consent Directive Cateogry" />
            <definition value="PIR Consent Directive Cateogry" />
            <min value="1" />
            <max value="1" />
        </element>
        <element id="Extension.extension:PIRconsentDirectiveCategory.id">
            <path value="Extension.extension.id" />
            <max value="0" />
        </element>
        <element id="Extension.extension:PIRconsentDirectiveCategory.url">
            <path value="Extension.extension.url" />
            <fixedUri value="PIRconsentDirectiveCategory" />
        </element>
        <element id="Extension.extension:PIRconsentDirectiveCategory.value[x]">
            <path value="Extension.extension.value[x]" />
            <comment value="See Mappings" />
            <type>
                <code value="string" />
            </type>
            <mapping>
                <identity value="source-PIR" />
                <map value="CONSENT.CONSENT_DIRECTIVE_TYPE.CATEGORY_CNCPT_ID" />
            </mapping>
        </element>
        <element id="Extension.extension:PIRconsentDirectiveSubCategory">
            <path value="Extension.extension" />
            <sliceName value="PIRconsentDirectiveSubCategory" />
            <short value="PIR Consent Directive Sub-Category" />
            <definition value="PIR Consent Directive Sub-Category" />
            <min value="1" />
            <max value="1" />
        </element>
        <element id="Extension.extension:PIRconsentDirectiveSubCategory.id">
            <path value="Extension.extension.id" />
            <max value="0" />
        </element>
        <element id="Extension.extension:PIRconsentDirectiveSubCategory.url">
            <path value="Extension.extension.url" />
            <fixedUri value="PIRconsentDirectiveSubCategory" />
        </element>
        <element id="Extension.extension:PIRconsentDirectiveSubCategory.value[x]">
            <path value="Extension.extension.value[x]" />
            <comment value="See Mappings" />
            <type>
                <code value="string" />
            </type>
            <mapping>
                <identity value="source-PIR" />
                <map value="CONSENT.CONSENT_DIRECTIVE_TYPE.SUB_CATEGORY_CNCPT_ID" />
            </mapping>
        </element>
        <element id="Extension.extension:PIRconsentDirectiveType">
            <path value="Extension.extension" />
            <sliceName value="PIRconsentDirectiveType" />
            <short value="PIR Consent Directive Type" />
            <definition value="PIR Consent Directive Type" />
            <min value="1" />
            <max value="1" />
        </element>
        <element id="Extension.extension:PIRconsentDirectiveType.id">
            <path value="Extension.extension.id" />
            <max value="0" />
        </element>
        <element id="Extension.extension:PIRconsentDirectiveType.url">
            <path value="Extension.extension.url" />
            <fixedUri value="PIRconsentDirectiveType" />
        </element>
        <element id="Extension.extension:PIRconsentDirectiveType.value[x]">
            <path value="Extension.extension.value[x]" />
            <comment value="See Mappings" />
            <type>
                <code value="string" />
            </type>
            <mapping>
                <identity value="source-PIR" />
                <map value="CONSENT.CONSENT_DIRECTIVE_TYPE.CONSENT_DIRECTIVE_TYPE_NAME" />
            </mapping>
        </element>
        <element id="Extension.extension:consentDirectiveDoses">
            <path value="Extension.extension" />
            <sliceName value="consentDirectiveDoses" />
            <short value="Consent for No. of Doses" />
            <definition value="Consent for No. of Doses" />
            <max value="1" />
        </element>
        <element id="Extension.extension:consentDirectiveDoses.id">
            <path value="Extension.extension.id" />
            <max value="0" />
        </element>
        <element id="Extension.extension:consentDirectiveDoses.url">
            <path value="Extension.extension.url" />
            <fixedUri value="consentDirectiveDoses" />
        </element>
        <element id="Extension.extension:consentDirectiveDoses.value[x]">
            <path value="Extension.extension.value[x]" />
            <comment value="See Mappings" />
            <type>
                <code value="string" />
            </type>
            <mapping>
                <identity value="source-PIR" />
                <map value="CONSENT.CONSENT_DIRECTIVE.DOSAGE" />
            </mapping>
        </element>
        <element id="Extension.extension:consentDirectiveForm">
            <path value="Extension.extension" />
            <sliceName value="consentDirectiveForm" />
            <short value="PIR Directive Form of Consent" />
            <definition value="PIR Directive Form of Consent" />
            <max value="1" />
        </element>
        <element id="Extension.extension:consentDirectiveForm.id">
            <path value="Extension.extension.id" />
            <max value="0" />
        </element>
        <element id="Extension.extension:consentDirectiveForm.url">
            <path value="Extension.extension.url" />
            <fixedUri value="consentDirectiveForm" />
        </element>
        <element id="Extension.extension:consentDirectiveForm.value[x]">
            <path value="Extension.extension.value[x]" />
            <comment value="In Person | Telephone | Written. See Mappings" />
            <type>
                <code value="string" />
            </type>
            <mapping>
                <identity value="source-PIR" />
                <map value="CONSENT.CONSENT_DIRECTIVE.CONSENT_METHOD_CODE_CNCPT_ID" />
            </mapping>
        </element>
        <element id="Extension.extension:consentDirectiveComments">
            <path value="Extension.extension" />
            <sliceName value="consentDirectiveComments" />
            <short value="Consent Directive Comments" />
            <definition value="Consent Directive Comments" />
        </element>
        <element id="Extension.extension:consentDirectiveComments.id">
            <path value="Extension.extension.id" />
            <max value="0" />
        </element>
        <element id="Extension.extension:consentDirectiveComments.url">
            <path value="Extension.extension.url" />
            <fixedUri value="consentDirectiveComments" />
        </element>
        <element id="Extension.extension:consentDirectiveComments.value[x]">
            <path value="Extension.extension.value[x]" />
            <type>
                <code value="Annotation" />
            </type>
        </element>
        <element id="Extension.extension:consentDirectiveComments.value[x].id">
            <path value="Extension.extension.value[x].id" />
            <max value="0" />
        </element>
        <element id="Extension.extension:consentDirectiveComments.value[x].author[x]">
            <path value="Extension.extension.value[x].author[x]" />
            <max value="0" />
        </element>
        <element id="Extension.extension:consentDirectiveComments.value[x].time">
            <path value="Extension.extension.value[x].time" />
            <comment value="List Comments Creation DateTime by descending order." />
        </element>
        <element id="Extension.extension:consentDirectiveComments.value[x].text">
            <path value="Extension.extension.value[x].text" />
            <comment value="See Mappings" />
            <mapping>
                <identity value="source-PIR" />
                <map value="CONSENT.CONSENT_DIRECTIVE_COMMENT.CONSENT_DIRECTIVE_COMMENT" />
            </mapping>
        </element>
        <element id="Extension.url">
            <path value="Extension.url" />
            <fixedUri value="http://ehealth.bc.ca/fhir/StructureDefinition/bc-bcyimmunizationdistribution/consent-type-form-doses-comments" />
        </element>
        <element id="Extension.value[x]">
            <path value="Extension.value[x]" />
            <max value="0" />
        </element>
    </differential>
</StructureDefinition>
{
    "resourceType": "StructureDefinition",
    "url": "http://ehealth.bc.ca/fhir/StructureDefinition/bc-bcyimmunizationdistribution/consent-type-form-doses-comments",
    "name": "ConsentExtension",
    "status": "draft",
    "fhirVersion": "4.0.1",
    "kind": "complex-type",
    "abstract": false,
    "context":  [
        {
            "type": "extension",
            "expression": "Consent"
        }
    ],
    "type": "Extension",
    "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
    "derivation": "constraint",
    "differential": {
        "element":  [
            {
                "id": "Extension.extension",
                "path": "Extension.extension",
                "min": 3
            },
            {
                "id": "Extension.extension:PIRconsentDirectiveCategory",
                "path": "Extension.extension",
                "sliceName": "PIRconsentDirectiveCategory",
                "short": "PIR Consent Directive Cateogry",
                "definition": "PIR Consent Directive Cateogry",
                "min": 1,
                "max": "1"
            },
            {
                "id": "Extension.extension:PIRconsentDirectiveCategory.id",
                "path": "Extension.extension.id",
                "max": "0"
            },
            {
                "id": "Extension.extension:PIRconsentDirectiveCategory.url",
                "path": "Extension.extension.url",
                "fixedUri": "PIRconsentDirectiveCategory"
            },
            {
                "id": "Extension.extension:PIRconsentDirectiveCategory.value[x]",
                "path": "Extension.extension.value[x]",
                "comment": "See Mappings",
                "type":  [
                    {
                        "code": "string"
                    }
                ],
                "mapping":  [
                    {
                        "identity": "source-PIR",
                        "map": "CONSENT.CONSENT_DIRECTIVE_TYPE.CATEGORY_CNCPT_ID"
                    }
                ]
            },
            {
                "id": "Extension.extension:PIRconsentDirectiveSubCategory",
                "path": "Extension.extension",
                "sliceName": "PIRconsentDirectiveSubCategory",
                "short": "PIR Consent Directive Sub-Category",
                "definition": "PIR Consent Directive Sub-Category",
                "min": 1,
                "max": "1"
            },
            {
                "id": "Extension.extension:PIRconsentDirectiveSubCategory.id",
                "path": "Extension.extension.id",
                "max": "0"
            },
            {
                "id": "Extension.extension:PIRconsentDirectiveSubCategory.url",
                "path": "Extension.extension.url",
                "fixedUri": "PIRconsentDirectiveSubCategory"
            },
            {
                "id": "Extension.extension:PIRconsentDirectiveSubCategory.value[x]",
                "path": "Extension.extension.value[x]",
                "comment": "See Mappings",
                "type":  [
                    {
                        "code": "string"
                    }
                ],
                "mapping":  [
                    {
                        "identity": "source-PIR",
                        "map": "CONSENT.CONSENT_DIRECTIVE_TYPE.SUB_CATEGORY_CNCPT_ID"
                    }
                ]
            },
            {
                "id": "Extension.extension:PIRconsentDirectiveType",
                "path": "Extension.extension",
                "sliceName": "PIRconsentDirectiveType",
                "short": "PIR Consent Directive Type",
                "definition": "PIR Consent Directive Type",
                "min": 1,
                "max": "1"
            },
            {
                "id": "Extension.extension:PIRconsentDirectiveType.id",
                "path": "Extension.extension.id",
                "max": "0"
            },
            {
                "id": "Extension.extension:PIRconsentDirectiveType.url",
                "path": "Extension.extension.url",
                "fixedUri": "PIRconsentDirectiveType"
            },
            {
                "id": "Extension.extension:PIRconsentDirectiveType.value[x]",
                "path": "Extension.extension.value[x]",
                "comment": "See Mappings",
                "type":  [
                    {
                        "code": "string"
                    }
                ],
                "mapping":  [
                    {
                        "identity": "source-PIR",
                        "map": "CONSENT.CONSENT_DIRECTIVE_TYPE.CONSENT_DIRECTIVE_TYPE_NAME"
                    }
                ]
            },
            {
                "id": "Extension.extension:consentDirectiveDoses",
                "path": "Extension.extension",
                "sliceName": "consentDirectiveDoses",
                "short": "Consent for No. of Doses",
                "definition": "Consent for No. of Doses",
                "max": "1"
            },
            {
                "id": "Extension.extension:consentDirectiveDoses.id",
                "path": "Extension.extension.id",
                "max": "0"
            },
            {
                "id": "Extension.extension:consentDirectiveDoses.url",
                "path": "Extension.extension.url",
                "fixedUri": "consentDirectiveDoses"
            },
            {
                "id": "Extension.extension:consentDirectiveDoses.value[x]",
                "path": "Extension.extension.value[x]",
                "comment": "See Mappings",
                "type":  [
                    {
                        "code": "string"
                    }
                ],
                "mapping":  [
                    {
                        "identity": "source-PIR",
                        "map": "CONSENT.CONSENT_DIRECTIVE.DOSAGE"
                    }
                ]
            },
            {
                "id": "Extension.extension:consentDirectiveForm",
                "path": "Extension.extension",
                "sliceName": "consentDirectiveForm",
                "short": "PIR Directive Form of Consent",
                "definition": "PIR Directive Form of Consent",
                "max": "1"
            },
            {
                "id": "Extension.extension:consentDirectiveForm.id",
                "path": "Extension.extension.id",
                "max": "0"
            },
            {
                "id": "Extension.extension:consentDirectiveForm.url",
                "path": "Extension.extension.url",
                "fixedUri": "consentDirectiveForm"
            },
            {
                "id": "Extension.extension:consentDirectiveForm.value[x]",
                "path": "Extension.extension.value[x]",
                "comment": "In Person | Telephone | Written. See Mappings",
                "type":  [
                    {
                        "code": "string"
                    }
                ],
                "mapping":  [
                    {
                        "identity": "source-PIR",
                        "map": "CONSENT.CONSENT_DIRECTIVE.CONSENT_METHOD_CODE_CNCPT_ID"
                    }
                ]
            },
            {
                "id": "Extension.extension:consentDirectiveComments",
                "path": "Extension.extension",
                "sliceName": "consentDirectiveComments",
                "short": "Consent Directive Comments",
                "definition": "Consent Directive Comments"
            },
            {
                "id": "Extension.extension:consentDirectiveComments.id",
                "path": "Extension.extension.id",
                "max": "0"
            },
            {
                "id": "Extension.extension:consentDirectiveComments.url",
                "path": "Extension.extension.url",
                "fixedUri": "consentDirectiveComments"
            },
            {
                "id": "Extension.extension:consentDirectiveComments.value[x]",
                "path": "Extension.extension.value[x]",
                "type":  [
                    {
                        "code": "Annotation"
                    }
                ]
            },
            {
                "id": "Extension.extension:consentDirectiveComments.value[x].id",
                "path": "Extension.extension.value[x].id",
                "max": "0"
            },
            {
                "id": "Extension.extension:consentDirectiveComments.value[x].author[x]",
                "path": "Extension.extension.value[x].author[x]",
                "max": "0"
            },
            {
                "id": "Extension.extension:consentDirectiveComments.value[x].time",
                "path": "Extension.extension.value[x].time",
                "comment": "List Comments Creation DateTime by descending order."
            },
            {
                "id": "Extension.extension:consentDirectiveComments.value[x].text",
                "path": "Extension.extension.value[x].text",
                "comment": "See Mappings",
                "mapping":  [
                    {
                        "identity": "source-PIR",
                        "map": "CONSENT.CONSENT_DIRECTIVE_COMMENT.CONSENT_DIRECTIVE_COMMENT"
                    }
                ]
            },
            {
                "id": "Extension.url",
                "path": "Extension.url",
                "fixedUri": "http://ehealth.bc.ca/fhir/StructureDefinition/bc-bcyimmunizationdistribution/consent-type-form-doses-comments"
            },
            {
                "id": "Extension.value[x]",
                "path": "Extension.value[x]",
                "max": "0"
            }
        ]
    }
}