PackagesCanonicalsLogsProblems
    Packages
    accdr.fhir.ig.pkg@0.9.0-alpha-0.9.4
    http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Patient
description: null
package_name: accdr.fhir.ig.pkg
derivation: constraint
name: CDRPatient
type: Patient
elements:
  address:
    type: Address
    mustSupport: true
    index: 45
    elements:
      period:
        mustSupport: true
        index: 46
        elements:
          start: {mustSupport: true, index: 47}
          end: {mustSupport: true, index: 48}
  meta:
    index: 0
    elements:
      profile:
        pattern: {type: Canonical, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Patient'}
        index: 1
    required: [profile]
  name:
    mustSupport: true
    index: 27
    elements:
      use: {mustSupport: true, index: 28}
      family: {mustSupport: true, index: 29}
      given: {mustSupport: true, index: 30}
      prefix: {mustSupport: true, index: 31}
      suffix: {mustSupport: true, index: 32}
    required: [family]
  birthDate: {mustSupport: true, index: 42}
  deceased:
    mustSupport: true
    choices: []
    index: 44
  communication:
    mustSupport: true
    index: 81
    elements:
      language:
        mustSupport: true
        index: 82
        elements:
          coding:
            mustSupport: true
            index: 83
            elements:
              system:
                pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0296'}
                mustSupport: true
                index: 84
              code: {mustSupport: true, index: 85}
              display: {mustSupport: true, index: 86}
            required: [display, system, code]
          text: {mustSupport: true, index: 87}
  identifier:
    mustSupport: true
    index: 2
    slicing:
      rules: open
      description: "must contain at least one repetition of an identifier type code of MR (MRN).\r\nIf the HSP assigns any local secondary identifiers (such as alternate MRNs, clinic patient numbers, etc.) these should be provided if it is convenient to do so.\r\nIf the HSP collects a provincial health number (e.g. OHIP number or other province health card number) this must be sent.\r\nIf the HSP collects other types of identifiers which might be useful in identifying the patient, these should be sent if it is convenient to do so."
      discriminator:
      - {path: type.coding.code, type: value}
      min: 1
      slices:
        identifier-MR:
          match:
            type:
              coding: {code: MR}
          schema:
            short: patient's MRN
            mustSupport: true
            _required: true
            index: 3
            elements:
              type:
                mustSupport: true
                index: 4
                elements:
                  coding:
                    mustSupport: true
                    index: 5
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        mustSupport: true
                        index: 6
                      code:
                        pattern: {type: Code, value: MR}
                        mustSupport: true
                        index: 7
                    required: [system, code]
                required: [coding]
              system: {mustSupport: true, index: 8}
              value: {mustSupport: true, index: 9}
              period:
                mustSupport: true
                index: 10
                elements:
                  start: {mustSupport: true, index: 11}
                  end: {mustSupport: true, index: 12}
            required: [value, type, system]
        Identifier-JHN:
          match:
            type:
              coding: {code: JHN}
          schema:
            mustSupport: true
            index: 13
            elements:
              type:
                mustSupport: true
                index: 14
                elements:
                  coding:
                    mustSupport: true
                    index: 15
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        mustSupport: true
                        index: 16
                      code:
                        pattern: {type: Code, value: JHN}
                        mustSupport: true
                        index: 17
                    required: [system, code]
                required: [coding]
              system:
                pattern: {type: Uri, value: 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn'}
                mustSupport: true
                index: 18
              value:
                mustSupport: true
                index: 19
                extensions:
                  ext-HealthCardVersionCode:
                    url: http://ehealthontario.ca/fhir/StructureDefinition/ext-id-health-card-version-code
                    type: Extension
                    index: 21
                    elements:
                      value:
                        choices: []
                        index: 23
                elements:
                  extension:
                    index: 20
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: 0
                      slices:
                        ext-HealthCardVersionCode:
                          match: {url: null}
                          schema:
                            type: Extension
                            url: http://ehealthontario.ca/fhir/StructureDefinition/ext-id-health-card-version-code
                            index: 21
                            elements:
                              value:
                                choices: []
                                index: 23
              period:
                mustSupport: true
                index: 24
                elements:
                  start: {mustSupport: true, index: 25}
                  end: {mustSupport: true, index: 26}
            required: [value, type, system]
  telecom:
    mustSupport: true
    index: 33
    extensions:
      ext-telephone-note:
        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-ext-note
        type: Extension
        isModifier: false
        mustSupport: true
        index: 35
        elements:
          value:
            mustSupport: true
            choices: []
            index: 37
    elements:
      extension:
        index: 34
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: 0
          slices:
            ext-telephone-note:
              match: {url: null}
              schema:
                type: Extension
                isModifier: false
                mustSupport: true
                url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-ext-note
                index: 35
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 37
      system: {mustSupport: true, index: 38}
      value: {mustSupport: true, index: 39}
      use: {mustSupport: true, index: 40}
    required: [value]
  generalPractitioner:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-PractitionerRole']
    index: 88
    elements:
      reference: {mustSupport: true, index: 89}
  gender: {mustSupport: true, index: 41}
  contact:
    mustSupport: true
    index: 49
    elements:
      relationship:
        binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/acCDR-patient-contact-relationship'}
        mustSupport: true
        index: 50
        elements:
          coding:
            mustSupport: true
            index: 51
            elements:
              system: {mustSupport: true, index: 52}
              code: {mustSupport: true, index: 53}
              display: {mustSupport: true, index: 54}
            required: [display, system, code]
          text: {mustSupport: true, index: 55}
        required: [coding]
      name:
        mustSupport: true
        index: 56
        elements:
          use: {mustSupport: true, index: 57}
          family: {mustSupport: true, index: 58}
          given: {mustSupport: true, index: 59}
          prefix: {mustSupport: true, index: 60}
          suffix: {mustSupport: true, index: 61}
        required: [family, use]
      telecom:
        mustSupport: true
        index: 62
        extensions:
          ext-contact-phone-note:
            url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-ext-note
            type: Extension
            isModifier: false
            mustSupport: true
            index: 64
            elements:
              value:
                mustSupport: true
                choices: []
                index: 66
        elements:
          extension:
            index: 63
            slicing:
              rules: open
              discriminator:
              - {path: url, type: value}
              min: 0
              slices:
                ext-contact-phone-note:
                  match: {url: null}
                  schema:
                    type: Extension
                    isModifier: false
                    mustSupport: true
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-ext-note
                    index: 64
                    elements:
                      value:
                        mustSupport: true
                        choices: []
                        index: 66
          system: {mustSupport: true, index: 67}
          value: {mustSupport: true, index: 68}
          use: {mustSupport: true, index: 69}
        required: [value]
      address:
        mustSupport: true
        index: 70
        elements:
          use: {mustSupport: true, index: 71}
          text: {mustSupport: true, index: 72}
          line: {mustSupport: true, index: 73}
          city: {mustSupport: true, index: 74}
          state: {mustSupport: true, index: 75}
          postalCode: {mustSupport: true, index: 76}
          country: {mustSupport: true, index: 77}
          period:
            mustSupport: true
            index: 78
            elements:
              start: {mustSupport: true, index: 79}
              end: {mustSupport: true, index: 80}
        required: [use]
    required: [relationship]
package_version: 0.9.0-alpha-0.9.4
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Patient
base: http://hl7.org/fhir/StructureDefinition/Patient
version: null
required: [gender, name, identifier]