PackagesCanonicalsLogsProblems
    Packages
    rapportendoscopiequebec.test@0.0.2
    https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/EndoPatient
description: Demographics and other administrative information about patient.
package_name: rapportendoscopiequebec.test
derivation: constraint
name: EndoPatient
type: Patient
elements:
  identifier:
    mustSupport: true
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        PHIN:
          match: {system: 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-qc-patient-healthcare-id'}
          schema:
            short: Health Insurance Number
            mustSupport: true
            index: 1
            elements:
              use:
                pattern: {type: Code, value: official}
                mustSupport: true
                index: 2
              type:
                index: 3
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        index: 4
                      code:
                        pattern: {type: Code, value: JHN}
                        index: 5
                      display:
                        pattern: {type: String, value: Numéro Assurance maladie du Québec}
                        index: 6
                  text:
                    pattern: {type: String, value: RAMQ}
                    index: 7
              system:
                pattern: {type: Uri, value: 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-qc-patient-healthcare-id'}
                index: 8
              value: {mustSupport: true, index: 9}
              period:
                elements:
                  end: {mustSupport: true, index: 10}
                required: [end]
              assigner:
                elements:
                  display:
                    pattern: {type: String, value: RAMQ}
                    index: 11
            required: [value, type, system]
        PMRN:
          match: {system: null}
          schema:
            short: Patient Medical Record Number (PMRN).
            mustSupport: true
            _required: true
            index: 12
            elements:
              use:
                pattern: {type: Code, value: official}
                mustSupport: true
                index: 13
              type:
                binding: {strength: required, valueSet: 'https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/TypeDossier'}
                index: 14
              system: {index: 15}
              value: {mustSupport: true, index: 16}
            required: [value, type, system]
  name:
    mustSupport: true
    index: 17
    elements:
      family: {mustSupport: true, index: 18}
      given: {mustSupport: true, index: 19}
    required: [given, family]
  gender:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/administrative-gender'}
    mustSupport: true
    index: 20
  birthDate: {mustSupport: true, index: 21}
  address:
    index: 22
    elements:
      use:
        pattern: {type: Code, value: home}
        index: 23
      type:
        pattern: {type: Code, value: postal}
        index: 24
      line: {mustSupport: true, index: 25}
      city:
        pattern: {type: String, value: 'https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/Villes'}
        mustSupport: true
        index: 26
      postalCode:
        binding: {strength: required, valueSet: 'https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/CodesPostaux'}
        mustSupport: true
        index: 27
    required: [city, postalCode, line]
  link:
    array: true
    min: 1
    max: 2
    index: 28
    elements:
      other:
        type: Reference
        refers: ['https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/EndoParent']
        index: 29
        elements:
          identifier:
            elements:
              type:
                binding: {strength: required, valueSet: 'https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/LienUsagerEndo'}
                index: 30
                elements:
                  coding:
                    elements:
                      system:
                        binding: {strength: required, valueSet: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'}
                        index: 31
                      code: {index: 32}
                      display: {index: 33}
                    required: [display, code]
      type:
        pattern: {type: Code, value: refer}
        index: 34
package_version: 0.0.2
class: profile
kind: resource
url: https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/EndoPatient
base: http://hl7.org/fhir/StructureDefinition/Patient
version: null
required: [gender, name, address, identifier, link, birthDate]