PackagesCanonicalsLogsProblems
    Packages
    fhir.ca-bc.client@1.0.1-beta
    http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-merge-patient
description: General constraints on the Patient resource for use in the BC Client Registry project Merge Operation.
package_name: fhir.ca-bc.client
derivation: constraint
name: PatientMerge
type: Patient
elements:
  address:
    mustSupport: true
    index: 18
    extensions:
      validationStatus: {url: 'http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-validation-status-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 19}
    elements:
      extension:
        type: Extension
        mustSupport: true
        url: http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-validation-status-extension
        index: 19
        slicing:
          slices:
            validationStatus:
              match: {}
              schema: {type: Extension, mustSupport: true, url: 'http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-validation-status-extension', index: 19}
              min: 0
              max: 1
      type: {short: postal | physical, index: 20}
    required: [type]
  deceasedDateTime: {type: dateTime, mustSupport: true, choiceOf: deceased, index: 14}
  name:
    elements:
      use:
        short: usual | official | nickname
        binding: {strength: required, valueSet: 'https://terminology.hlth.gov.bc.ca/ClientRegistry/ValueSet/bc-name-use-value-set'}
        index: 3
  birthDate:
    extensions:
      birthDateEffectiveDates: {url: 'http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-business-period-extension', min: 0, max: 1, type: Extension, index: 11}
    elements:
      extension:
        index: 10
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            birthDateEffectiveDates:
              match: {url: null}
              schema: {type: Extension, url: 'http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-business-period-extension', index: 11}
              min: 0
              max: 1
  deceased:
    mustSupport: true
    choices: [deceasedDateTime]
    index: 13
  extension:
    type: Extension
    mustSupport: true
    url: http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-business-period-extension
    index: 0
    slicing:
      slices:
        patientEffectiveDates:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-business-period-extension', index: 0}
          min: 0
          max: 1
  deceased[x]:
    extensions:
      deathDateEffectiveDates: {url: 'http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-business-period-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 16}
      verifiedDeathFlag: {url: 'http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-death-verified-flag-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 17}
    elements:
      extension:
        index: 15
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            deathDateEffectiveDates:
              match: {url: null}
              schema: {type: Extension, mustSupport: true, url: 'http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-business-period-extension', index: 16}
              min: 0
              max: 1
            verifiedDeathFlag:
              match: {url: null}
              schema: {type: Extension, mustSupport: true, url: 'http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-death-verified-flag-extension', index: 17}
              min: 0
              max: 1
  link:
    mustSupport: true
    index: 22
    extensions:
      mergeStatus: {url: 'http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-merge-status-extension', min: 0, type: Extension, mustSupport: true, index: 23}
    elements:
      extension:
        type: Extension
        mustSupport: true
        url: http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-merge-status-extension
        index: 23
        slicing:
          slices:
            mergeStatus:
              match: {}
              schema: {type: Extension, mustSupport: true, url: 'http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-merge-status-extension', index: 23}
              min: 0
  identifier:
    mustSupport: true
    index: 1
    slicing:
      slices:
        JHN:
          match: {}
          schema: {type: Identifier, index: 2}
  telecom:
    mustSupport: true
    index: 4
    elements:
      system:
        short: phone | email
        binding: {strength: required, valueSet: 'https://terminology.hlth.gov.bc.ca/ClientRegistry/ValueSet/bc-contact-point-system-value-set'}
        index: 5
      use:
        short: home | work | mobile
        binding: {strength: required, valueSet: 'https://terminology.hlth.gov.bc.ca/ClientRegistry/ValueSet/bc-contact-point-use-value-set'}
        index: 6
    required: [use]
  gender:
    mustSupport: true
    index: 7
    extensions:
      genderEffectiveDates: {url: 'http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-business-period-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 9}
    elements:
      extension:
        index: 8
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            genderEffectiveDates:
              match: {url: null}
              schema: {type: Extension, mustSupport: true, url: 'http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-business-period-extension', index: 9}
              min: 0
              max: 1
  multipleBirth[x]:
    extensions:
      multipleBirthEffectiveDates: {url: 'http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-business-period-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 21}
    elements:
      extension:
        type: Extension
        mustSupport: true
        url: http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-business-period-extension
        index: 21
        slicing:
          slices:
            multipleBirthEffectiveDates:
              match: {}
              schema: {type: Extension, mustSupport: true, url: 'http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-business-period-extension', index: 21}
              min: 0
              max: 1
package_version: 1.0.1-beta
extensions:
  patientEffectiveDates: {url: 'http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-business-period-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 0}
class: profile
kind: resource
url: http://hlth.gov.bc.ca/fhir/client/StructureDefinition/bc-merge-patient
base: http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-patient
version: 1.0.0
required: [identifier]