PackagesCanonicalsLogsProblems
    Packages
    ca.bc.bcy@ids-1.0.0
    http://ehealth.bc.ca/fhir/StructureDefinition/bc-bcyimmunizationdistribution/Consent
description: null
package_name: ca.bc.bcy
derivation: constraint
name: Consent
type: Consent
elements:
  patient:
    elements:
      reference: {index: 21}
    required: [reference]
  category:
    elements:
      coding:
        elements:
          system:
            code:
            - {system: 'http://loinc.org'}
            index: 19
          code: {index: 20}
        required: [system, code]
  provision:
    index: 31
    elements:
      provision: {index: 59}
      purpose: {index: 51}
      class: {index: 52}
      code:
        index: 53
        elements:
          coding:
            index: 54
            elements:
              system: {index: 55}
              code: {index: 56}
              display: {index: 57}
            required: [display, system, code]
        required: [coding]
      action:
        short: Consent or Refusal
        index: 39
        elements:
          coding:
            index: 40
            slicing:
              rules: open
              discriminator:
              - {path: code, type: value}
              min: 1
              slices:
                sliceConsentInstruction:
                  match: {code: null}
                  schema:
                    _required: true
                    index: 41
                    elements:
                      system:
                        code:
                        - {system: 'http://hl7.org/fhir/sid/icd9'}
                        index: 42
                      code: {index: 43}
                      display: {index: 44}
                    required: [display, system, code]
                sliceConsentRefusalReaason:
                  match: {code: null}
                  schema:
                    _required: true
                    index: 45
                    elements:
                      system:
                        code:
                        - {system: 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-bc-panorama-consent-refusal-reason'}
                        index: 46
                      code: {index: 47}
                      display: {index: 48}
                    required: [display, system, code]
          text: {index: 49}
        required: [coding]
      period:
        index: 32
        elements:
          start: {index: 33}
          end: {index: 34}
        required: [start]
      securityLabel: {index: 50}
      actor:
        elements:
          role:
            elements:
              coding:
                index: 35
                elements:
                  system:
                    code:
                    - {system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'}
                    index: 36
                  code: {index: 37}
                required: [system, code]
            required: [coding]
          reference:
            elements:
              reference: {index: 38}
            required: [reference]
      data: {index: 58}
    required: [action, period, code]
  meta:
    index: 1
    elements:
      versionId: {index: 2}
      lastUpdated: {index: 3}
      profile: {index: 4}
      security: {index: 5}
      tag: {index: 6}
    required: [profile]
  organization: {index: 24}
  verification: {index: 30}
  scope:
    elements:
      coding:
        index: 16
        elements:
          system:
            code:
            - {system: 'http://terminology.hl7.org/CodeSystem/consentscope'}
            index: 17
          code: {index: 18}
        required: [system, code]
    required: [coding]
  policy: {index: 25}
  extension:
    type: Extension
    url: http://ehealth.bc.ca/fhir/StructureDefinition/bc-bcyimmunizationdistribution/consent-type-form-doses-comments
    index: 8
    slicing:
      slices:
        consentExtension:
          match: {}
          schema: {type: Extension, url: 'http://ehealth.bc.ca/fhir/StructureDefinition/bc-bcyimmunizationdistribution/consent-type-form-doses-comments', index: 8}
  contained: {type: Resource, index: 7}
  status:
    code:
    - {code: active, system: 'http://hl7.org/fhir/ValueSet/consent-state-codes'}
    index: 15
  id: {index: 0}
  policyRule:
    index: 26
    elements:
      coding:
        index: 27
        elements:
          system:
            code:
            - {system: 'http://terminology.hl7.org/CodeSystem/consentpolicycodes'}
            index: 28
          code: {index: 29}
        required: [system, code]
    required: [coding]
  identifier:
    index: 9
    elements:
      type:
        index: 10
        elements:
          coding: {index: 11}
          text: {index: 12}
        required: [text]
      system: {index: 13}
      value: {index: 14}
    required: [value, type, system]
  performer:
    index: 22
    elements:
      reference: {index: 23}
    required: [reference]
package_version: ids-1.0.0
extensions:
  consentExtension: {url: 'http://ehealth.bc.ca/fhir/StructureDefinition/bc-bcyimmunizationdistribution/consent-type-form-doses-comments', type: Extension, index: 8}
class: profile
kind: resource
url: http://ehealth.bc.ca/fhir/StructureDefinition/bc-bcyimmunizationdistribution/Consent
base: http://hl7.org/fhir/StructureDefinition/Consent
version: null
required: [policyRule, id, identifier, provision, contained]