PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.dapl@1.0.0-ballot
    http://hl7.org/fhir/us/dapl/StructureDefinition/dapl-deidentified-patient
description: This Patient profile represents a deidentified Patient
package_name: hl7.fhir.us.dapl
derivation: constraint
name: DAPLDeIdentifiedPatient
type: Patient
elements:
  address:
    short: Included only to support zip code
    mustSupport: true
    index: 15
    elements:
      text: {short: Text cannot be included in the profile, mustSupport: false, index: 16}
      line: {short: Street names cannot be included in the profile, mustSupport: false, index: 17}
      postalCode:
        short: ZipCode must be included in the profile
        constraint:
          dapl-potalCode-1: {human: 'De-identified Zipcodes can contain first 3 digits followed by 00 in the last two digits or have to be masked with 00000. If the extended ZipCode format is used the resulting format should be #####-####.', severity: error, expression: '$this.matches(''^[0-9]{3}[0]{2}(-[0-9]{4})?$'')'}
        mustSupport: true
        index: 18
        extensions:
          dataAbsentReason:
            url: http://hl7.org/fhir/StructureDefinition/data-absent-reason|5.2.0
            type: Extension
            short: Reason why the data is not present
            mustSupport: true
            index: 19
            elements:
              value:
                mustSupport: true
                choices: [valueCode]
                index: 21
              valueCode: {type: code, mustSupport: true, choiceOf: value, index: 22}
            required: [valueCode, value]
        elements:
          extension:
            type: Extension
            short: Reason why the data is not present
            mustSupport: true
            url: http://hl7.org/fhir/StructureDefinition/data-absent-reason|5.2.0
            index: 19
            slicing:
              slices:
                dataAbsentReason:
                  match: {}
                  schema:
                    type: Extension
                    short: Reason why the data is not present
                    mustSupport: true
                    url: http://hl7.org/fhir/StructureDefinition/data-absent-reason|5.2.0
                    index: 19
                    elements:
                      value:
                        mustSupport: true
                        choices: [valueCode]
                        index: 21
                      valueCode: {type: code, mustSupport: true, choiceOf: value, index: 22}
                    required: [valueCode, value]
    required: [postalCode]
  deceasedDateTime:
    constraint:
      dapl-date-1: {human: All dateTime data elements should be truncated to a year only for de-identified resources., severity: error, expression: $this is dateTime implies $this.toString().length() = 4}
      dapl-date-1a: {human: All dateTime data elements should have valid year > 1900, severity: error, expression: $this is dateTime implies $this.toString() >= '1900'}
    short: Indicates if the Patient is deceased, it can be either a Boolean or a Date with a precision of year only.
    type: dateTime
    mustSupport: true
    choiceOf: deceased
    index: 13
  managingOrganization: {short: Cannot include information in deidentified resources, mustSupport: false, index: 30}
  deceasedBoolean:
    constraint:
      dapl-date-1: {human: All dateTime data elements should be truncated to a year only for de-identified resources., severity: error, expression: $this is dateTime implies $this.toString().length() = 4}
      dapl-date-1a: {human: All dateTime data elements should have valid year > 1900, severity: error, expression: $this is dateTime implies $this.toString() >= '1900'}
    short: Indicates if the Patient is deceased, it can be either a Boolean or a Date with a precision of year only.
    type: boolean
    mustSupport: true
    choiceOf: deceased
    index: 14
  name: {short: Cannot include any name in the resource as part of the deidentified data., mustSupport: false, index: 8}
  birthDate: {short: Cannot include any date of birth information in the resource as part of the deidentified data., mustSupport: false, index: 10}
  multipleBirth:
    short: Cannot include information in deidentified resources
    mustSupport: false
    choices: []
    index: 25
  deceased:
    short: Indicates if the Patient is deceased, it can be either a Boolean or a Date with a precision of year only.
    constraint:
      dapl-date-1: {human: All dateTime data elements should be truncated to a year only for de-identified resources., severity: error, expression: $this is dateTime implies $this.toString().length() = 4}
      dapl-date-1a: {human: All dateTime data elements should have valid year > 1900, severity: error, expression: $this is dateTime implies $this.toString() >= '1900'}
    mustSupport: true
    choices: [deceasedDateTime, deceasedBoolean]
    index: 12
  extension:
    type: Extension
    mustSupport: true
    url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-race
    index: 3
    slicing:
      slices:
        us-core-race:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race', index: 3}
          min: 0
          max: 1
        dapl-ethnicty:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/us/dapl/StructureDefinition/dapl-ethnicity-extension', index: 4}
          min: 0
          max: 1
        dapl-sex:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/us/dapl/StructureDefinition/dapl-sex-extension', index: 5}
          min: 0
          max: 1
        dapl-age-extension:
          match: {}
          schema: {type: Extension, short: Age of the Patient computed using birthDate and the reporting period reference, mustSupport: true, url: 'http://hl7.org/fhir/us/dapl/StructureDefinition/dapl-age-extension', index: 6}
          min: 1
          max: 1
  contained: {short: Cannot include any contained resources in the resource as part of the deidentified data., mustSupport: false, index: 2}
  photo: {short: Cannot include information in deidentified resources, mustSupport: false, index: 26}
  link: {short: Cannot include information in deidentified resources, mustSupport: false, index: 31}
  communication:
    elements:
      language:
        short: Language must be included in the profile
        binding: {strength: extensible, valueSet: 'http://terminology.hl7.org/ValueSet/Languages'}
        mustSupport: true
        index: 28
    required: [language]
  id: {short: The patient identifier generated by DARTS deidentification service, mustSupport: true, index: 0}
  identifier: {short: Cannot include any identifier in the resource as part of the deidentified data., mustSupport: false, index: 7}
  telecom: {short: Cannot include any telecom information in the resource as part of the deidentified data., mustSupport: false, index: 9}
  generalPractitioner: {short: Cannot include information in deidentified resources, mustSupport: false, index: 29}
  maritalStatus: {short: Cannot include information in deidentified resources, mustSupport: false, index: 23}
  contact: {short: Cannot include information in deidentified resources, mustSupport: false, index: 27}
  text: {short: Cannot include any text in the resource as part of the deidentified data., mustSupport: false, index: 1}
package_version: 1.0.0-ballot
extensions:
  us-core-race: {url: 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race', min: 0, max: 1, type: Extension, mustSupport: true, index: 3}
  dapl-ethnicty: {url: 'http://hl7.org/fhir/us/dapl/StructureDefinition/dapl-ethnicity-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 4}
  dapl-sex: {url: 'http://hl7.org/fhir/us/dapl/StructureDefinition/dapl-sex-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 5}
  dapl-age-extension: {url: 'http://hl7.org/fhir/us/dapl/StructureDefinition/dapl-age-extension', min: 1, max: 1, type: Extension, short: Age of the Patient computed using birthDate and the reporting period reference, mustSupport: true, index: 6}
class: profile
kind: resource
url: http://hl7.org/fhir/us/dapl/StructureDefinition/dapl-deidentified-patient
base: http://hl7.org/fhir/StructureDefinition/Patient
version: 1.0.0-ballot
required: [address]