PackagesCanonicalsLogsProblems
    Packages
    hl7.cda.us.ccda@4.0.0-ballot
    http://hl7.org/cda/us/ccda/StructureDefinition/GenderIdentityObservation
description: This observation represents the gender identity of the patient. Defined as:\n\nOne's basic sense of being male, female, or other gender (for example, transgender or gender queer). Gender identity can be congruent or incongruent with one's sex assigned at birth based on the appearance of external genitalia. (Advancing Effective Communication, Cultural Competence, and Patient- and Family-Centered Care for the Lesbian, Gay, Bisexual, and Transgender (LGBT) CommunityA Field Guide, The Joint Commission (2011).)\n\nThis template follows the guidelines from the HL7 Gender Harmony project.\n\nThis observation is not appropriate for recording patient gender (administrativeGender) or birth sex.
package_name: hl7.cda.us.ccda
derivation: constraint
name: GenderIdentityObservation
type: http://hl7.org/cda/stds/core/StructureDefinition/Observation
elements:
  value:
    type: http://hl7.org/cda/stds/core/StructureDefinition/CD
    index: 17
    elements:
      nullFlavor: {index: 18}
      code:
        binding: {strength: required, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1021.32'}
        index: 19
    required: [code]
  classCode:
    pattern: {type: Code, value: OBS}
    index: 4
  id: {index: 6}
  code:
    short: Gender Identity
    index: 7
    elements:
      code:
        pattern: {type: Code, value: 76691-5}
        index: 8
      codeSystem:
        short: LOINC
        pattern: {type: String, value: 2.16.840.1.113883.6.1}
        index: 9
    required: [codeSystem, code]
  moodCode:
    pattern: {type: Code, value: EVN}
    index: 5
  effectiveTime:
    short: The effectiveTime represents the relevant time of the observation. A patient's "gender identity" may change and using effectiveTime/low and effectiveTime/high defines the time during which the patient had identified as specified.
    index: 14
    elements:
      low: {index: 15}
      high: {index: 16}
    required: [low]
  templateId:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: root, type: value}
      - {path: extension, type: value}
      min: 1
      slices:
        gender-identity-obs:
          match: {root: 2.16.840.1.113883.10.20.34.3.45, extension: '2023-05-01'}
          schema:
            _required: true
            index: 1
            elements:
              root:
                pattern: {type: String, value: 2.16.840.1.113883.10.20.34.3.45}
                index: 2
              extension:
                pattern: {type: String, value: '2023-05-01'}
                index: 3
            required: [root, extension]
            extensions: {}
  statusCode:
    index: 12
    elements:
      code:
        pattern: {type: Code, value: completed}
        index: 13
    required: [code]
  text:
    short: SHOULD reference the portion of section narrative text corresponding to this entry
    index: 10
    elements:
      reference:
        constraint:
          value-starts-octothorpe: {human: 'If reference/@value is present, it SHALL begin with a ''#'' and SHALL point to its corresponding narrative', source: 'http://hl7.org/cda/us/ccda/StructureDefinition/GenderIdentityObservation', severity: error, expression: value.exists() implies value.startsWith('#')}
        index: 11
package_version: 4.0.0-ballot
class: logical
kind: logical
url: http://hl7.org/cda/us/ccda/StructureDefinition/GenderIdentityObservation
base: http://hl7.org/cda/stds/core/StructureDefinition/Observation
version: 4.0.0-ballot
required: [id, effectiveTime, value, statusCode, templateId]