PackagesCanonicalsLogsProblems
    Packages
    rapport.endoscopie.quebec@0.9.0-beta
    https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoPatient
description: Informations démograohiques et administratives sur le patient
package_name: rapport.endoscopie.quebec
derivation: constraint
name: EndoPatient
type: Patient
elements:
  meta:
    mustSupport: true
    index: 0
    elements:
      source: {mustSupport: true, index: 1}
      profile: {mustSupport: true, index: 2}
      security:
        mustSupport: true
        index: 3
        elements:
          system: {mustSupport: true, index: 4}
          code: {mustSupport: true, index: 5}
          display: {mustSupport: true, index: 6}
      tag:
        mustSupport: true
        index: 7
        elements:
          system: {mustSupport: true, index: 8}
          code: {mustSupport: true, index: 9}
          display: {mustSupport: true, index: 10}
    required: [source]
  extension:
    index: 11
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        mothersMaidenName:
          match: {url: null}
          schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName', index: 12}
          min: 0
          max: 1
  identifier:
    mustSupport: true
    index: 13
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: type.coding.system, type: value}
      min: 1
      slices:
        PHIN:
          match:
            type:
              coding: {system: 'http://ca.qc.patient.identifierType/PHIN'}
          schema:
            short: Health Insurance Number
            mustSupport: true
            index: 14
            elements:
              use:
                pattern: {type: code, value: official}
                mustSupport: true
                type: code
                index: 15
              type:
                mustSupport: true
                index: 16
                elements:
                  coding:
                    mustSupport: true
                    index: 17
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://ca.qc.patient.identifierType/PHIN'}
                        mustSupport: true
                        type: uri
                        index: 18
                      code:
                        pattern: {type: code, value: JHN}
                        mustSupport: true
                        type: code
                        index: 19
                      display:
                        pattern: {type: string, value: Numéro Assurance maladie du Québec}
                        mustSupport: true
                        type: string
                        index: 20
                    required: [code, system]
                  text:
                    pattern: {type: string, value: RAMQ}
                    type: string
                    index: 21
                required: [coding]
              system:
                pattern: {type: uri, value: 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-qc-patient-healthcare-id'}
                mustSupport: true
                type: uri
                index: 22
              value: {mustSupport: true, index: 23}
              period:
                elements:
                  end: {mustSupport: true, index: 24}
                required: [end]
              assigner:
                elements:
                  display:
                    pattern: {type: string, value: RAMQ}
                    type: string
                    index: 25
            required: [system, type, value]
        PMRN:
          match:
            type:
              coding: {system: 'https://extranet.ti.msss.rtss.qc.ca/FHIR/UCNI/ListesDeValeurs/DossierTypeEndo'}
          schema:
            short: Patient Medical Record Number (PMRN).
            mustSupport: true
            array: true
            min: 1
            _required: true
            index: 26
            elements:
              use:
                pattern: {type: code, value: official}
                mustSupport: true
                type: code
                index: 27
              type:
                mustSupport: true
                index: 28
                elements:
                  coding:
                    binding: {strength: required, valueSet: 'https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/ValueSet/DossierTypeEndo'}
                    mustSupport: true
                    index: 29
                    elements:
                      system:
                        pattern: {type: uri, value: 'https://extranet.ti.msss.rtss.qc.ca/FHIR/UCNI/ListesDeValeurs/DossierTypeEndo'}
                        type: uri
                        index: 30
                      code: {mustSupport: true, index: 31}
                      display: {mustSupport: true, index: 32}
                    required: [code, system]
                  text: {mustSupport: true, index: 33}
                required: [coding]
              system: {mustSupport: true, index: 34}
              value: {mustSupport: true, index: 35}
            required: [system, type, value]
  name:
    mustSupport: true
    index: 36
    elements:
      family: {mustSupport: true, index: 37}
      given: {mustSupport: true, index: 38}
    required: [family, given]
  gender: {mustSupport: true, index: 39}
  birthDate: {mustSupport: true, index: 40}
  address:
    mustSupport: true
    index: 41
    elements:
      use:
        pattern: {type: code, value: home}
        type: code
        index: 42
      type:
        pattern: {type: code, value: postal}
        type: code
        index: 43
      line: {mustSupport: true, index: 44}
      city:
        binding: {strength: extensible, valueSet: 'https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/ValueSet/VilleEndo'}
        mustSupport: true
        index: 45
      postalCode:
        binding: {strength: extensible, valueSet: 'https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/ValueSet/CodePostalEndo'}
        mustSupport: true
        index: 46
    required: [city, line, postalCode]
  link:
    mustSupport: true
    array: true
    min: 1
    max: 2
    index: 47
    elements:
      other:
        type: Reference
        mustSupport: true
        refers: ['http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoRelatedPerson']
        index: 48
        elements:
          identifier:
            mustSupport: true
            index: 49
            elements:
              type:
                binding: {strength: extensible, valueSet: 'https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/ValueSet/LienUsagerEndo'}
                mustSupport: true
                index: 50
                elements:
                  coding:
                    binding: {strength: extensible, valueSet: 'http://terminology.hl7.org/ValueSet/v3-RoleCode'}
                    mustSupport: true
                    index: 51
                    elements:
                      code: {mustSupport: true, index: 52}
                      display: {mustSupport: true, index: 53}
                    required: [code, display]
      type:
        pattern: {type: code, value: refer}
        mustSupport: true
        type: code
        index: 54
package_version: 0.9.0-beta
extensions:
  mothersMaidenName: {url: 'http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName', min: 0, max: 1, type: Extension, index: 12}
class: profile
kind: resource
url: https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoPatient
base: http://hl7.org/fhir/StructureDefinition/Patient
version: 0.9.0
required: [address, birthDate, gender, identifier, link, name]