PackagesCanonicalsLogsProblems
    Packages
    smart.who.int.ips-pilgrimage@1.0.0
    http://smart.who.int/ips-pilgrimage/StructureDefinition/HajjConsent
description: A profile of the consent resource to track consent of a pilgrim to participate\n\nFHIR R5 upgrade notes (need this implemented as a structure map):\n * make cardinality of decision 1.. and should stop using it in lieu of verification.verified\n * use verification.verifiedBy instead of Consent.organization\n * the period extenion should be replaced by Consent.period\n * the Consent.patient should be replaced by Consent.subject\n * Consent.verification.verifiedBy should be used instead of Consent.organization\n
package_name: smart.who.int.ips-pilgrimage
derivation: constraint
name: HajjConsent
type: Consent
elements:
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        period:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://smart.who.int/ips-pilgrimage/StructureDefinition/ConsentPeriod', index: 1}
          min: 1
  category:
    binding: {strength: required, valueSet: 'http://smart.who.int/ips-pilgrimage/ValueSet/IPS.HAJJ.CONSENT'}
    mustSupport: true
    index: 2
  patient: {index: 3}
  organization:
    type: Reference
    refers: ['http://smart.who.int/ips-pilgrimage/StructureDefinition/HajjOrganization']
    index: 4
  verification:
    index: 5
    extensions:
      verifiedBy: {url: 'http://smart.who.int/ips-pilgrimage/StructureDefinition/ConsentVerifiedBy', min: 1, type: Extension, mustSupport: true, index: 7}
    elements:
      extension:
        index: 6
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: 1
          slices:
            verifiedBy:
              match: {url: null}
              schema: {type: Extension, mustSupport: true, url: 'http://smart.who.int/ips-pilgrimage/StructureDefinition/ConsentVerifiedBy', index: 7}
              min: 1
      verifiedWith: {index: 8}
      verificationDate: {index: 9}
    required: [verifiedWith, extension, verificationDate]
package_version: 1.0.0
extensions:
  period: {url: 'http://smart.who.int/ips-pilgrimage/StructureDefinition/ConsentPeriod', min: 1, type: Extension, mustSupport: true, index: 1}
class: profile
kind: resource
url: http://smart.who.int/ips-pilgrimage/StructureDefinition/HajjConsent
base: http://hl7.org/fhir/StructureDefinition/Consent
version: 1.0.0
required: [verification, extension, patient]