PackagesCanonicalsLogsProblems
    Packages
    fhir.ph.core@0.2.1
    https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-patient
description: Captures key demographic and administrative information about individuals receiving care or other health-related services.
package_name: fhir.ph.core
derivation: constraint
name: PHCorePatient
type: Patient
elements:
  address: {type: Address, mustSupport: true, index: 28}
  managingOrganization:
    type: Reference
    refers: ['https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-organization']
    index: 33
  name:
    constraint:
      ph-pat-001: {human: 'A supplied name SHALL contain a family, given or text value, or a Data Absent Reason for the whole name, but not both.', source: 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-patient', severity: error, expression: '(family.where(hasValue()).exists() or given.where(hasValue()).exists() or text.where(hasValue()).exists()) xor extension.where(url=''http://hl7.org/fhir/StructureDefinition/data-absent-reason'').exists()'}
    mustSupport: true
    index: 21
    extensions:
      dataAbsentReason: {url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason|5.3.0', min: 0, max: 1, type: Extension, index: 22}
    elements:
      extension:
        type: Extension
        url: http://hl7.org/fhir/StructureDefinition/data-absent-reason|5.3.0
        index: 22
        slicing:
          slices:
            dataAbsentReason:
              match: {}
              schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason|5.3.0', index: 22}
              min: 0
              max: 1
      family: {mustSupport: true, index: 23}
      given: {short: 'First name (given[0]) and Middle Name (given[1]).', mustSupport: true, index: 24}
  birthDate: {mustSupport: true, index: 27}
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        religion:
          match: {url: null}
          schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/patient-religion|5.3.0', index: 2}
          min: 0
        sex:
          match: {url: null}
          schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender|5.3.0', index: 10}
          min: 0
        mothersMaidenName:
          match: {url: null}
          schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName|5.3.0', index: 3}
          min: 0
          max: 1
        race:
          match: {url: null}
          schema: {type: Extension, url: 'https://fhir.doh.gov.ph/phcore/StructureDefinition/race', index: 8}
          min: 0
          max: 1
        occupation:
          match: {url: null}
          schema: {type: Extension, url: 'https://fhir.doh.gov.ph/phcore/StructureDefinition/occupation', index: 7}
          min: 0
        nationality:
          match: {url: null}
          schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/patient-nationality|5.3.0', index: 1}
          min: 0
        educationalAttainment:
          match: {url: null}
          schema: {type: Extension, url: 'https://fhir.doh.gov.ph/phcore/StructureDefinition/educational-attainment', index: 9}
          min: 0
          max: 1
        individualPronouns:
          match: {url: null}
          schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/individual-pronouns|5.3.0', index: 5}
          min: 0
        indigenousStatus:
          match: {url: null}
          schema: {type: Extension, url: 'https://fhir.doh.gov.ph/phcore/StructureDefinition/indigenous-status', index: 6}
          min: 0
        genderIdentity:
          match: {url: null}
          schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/individual-genderIdentity|5.3.0', index: 4}
          min: 0
        pwdDisability:
          match: {url: null}
          schema: {type: Extension, url: 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-pwd-disability', index: 11}
          min: 0
          max: 1
  link:
    elements:
      other:
        type: Reference
        refers: ['https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-patient', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-relatedperson']
        index: 34
  identifier:
    index: 12
    slicing:
      rules: open
      ordered: false
      description: Slicing based on identifier system
      discriminator:
      - {path: system, type: value}
      min: null
      slices:
        PHCorePhilHealthID:
          match: {system: 'http://philhealth.gov.ph/fhir/Identifier/philhealth-id'}
          schema:
            short: PhilHealth ID
            mustSupport: true
            array: true
            index: 13
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: NH, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                index: 14
              system:
                pattern: {type: Uri, value: 'http://philhealth.gov.ph/fhir/Identifier/philhealth-id'}
                index: 15
              value: {index: 16}
            required: [system]
        PHCorePhilSysID:
          match: {system: 'http://philsys.gov.ph/fhir/Identifier/philsys-id'}
          schema:
            short: PhilSys ID
            mustSupport: true
            array: true
            index: 17
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: NI, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                index: 18
              system:
                pattern: {type: Uri, value: 'http://philsys.gov.ph/fhir/Identifier/philsys-id'}
                index: 19
              value: {index: 20}
            required: [system]
  telecom: {mustSupport: true, index: 25}
  generalPractitioner:
    type: Reference
    refers: ['https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-organization', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-practitioner', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-practitionerrole']
    index: 32
  gender: {short: Administrative Gender - for backward compatibility with existing implementations, mustSupport: true, index: 26}
  contact:
    elements:
      name:
        elements:
          given: {short: 'First name (given[0]) and Middle Name (given[1]).', index: 29}
      address: {type: Address, index: 30}
      organization:
        type: Reference
        refers: ['https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-organization']
        index: 31
package_version: 0.2.1
extensions:
  religion: {url: 'http://hl7.org/fhir/StructureDefinition/patient-religion|5.3.0', min: 0, type: Extension, index: 2}
  sex: {url: 'http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender|5.3.0', min: 0, type: Extension, index: 10}
  mothersMaidenName: {url: 'http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName|5.3.0', min: 0, max: 1, type: Extension, index: 3}
  race: {url: 'https://fhir.doh.gov.ph/phcore/StructureDefinition/race', min: 0, max: 1, type: Extension, index: 8}
  occupation: {url: 'https://fhir.doh.gov.ph/phcore/StructureDefinition/occupation', min: 0, type: Extension, index: 7}
  nationality: {url: 'http://hl7.org/fhir/StructureDefinition/patient-nationality|5.3.0', min: 0, type: Extension, index: 1}
  educationalAttainment: {url: 'https://fhir.doh.gov.ph/phcore/StructureDefinition/educational-attainment', min: 0, max: 1, type: Extension, index: 9}
  individualPronouns: {url: 'http://hl7.org/fhir/StructureDefinition/individual-pronouns|5.3.0', min: 0, type: Extension, index: 5}
  indigenousStatus: {url: 'https://fhir.doh.gov.ph/phcore/StructureDefinition/indigenous-status', min: 0, type: Extension, index: 6}
  genderIdentity: {url: 'http://hl7.org/fhir/StructureDefinition/individual-genderIdentity|5.3.0', min: 0, type: Extension, index: 4}
  pwdDisability: {url: 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-pwd-disability', min: 0, max: 1, type: Extension, index: 11}
class: profile
kind: resource
url: https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-patient
base: http://hl7.org/fhir/StructureDefinition/Patient
version: 0.2.1