PackagesCanonicalsLogsProblems
    Packages
    rs/hl7.cda.us.ccda@3.0.0-ballot
    http://hl7.org/cda/us/ccda/StructureDefinition/BirthSexObservation
description: This observation represents the sex of the patient at birth. It is the sex that is entered on the person's birth certificate at time of birth.\n\nThis observation is not appropriate for recording patient gender (administrativeGender).\n\nThis observation is not appropriate for recording Gender Identity (GI).\n\nIt is recommended systems include the Birth Sex observation in the Social History section.
package_name: rs/hl7.cda.us.ccda
derivation: constraint
name: BirthSexObservation
type: http://hl7.org/cda/stds/core/StructureDefinition/Observation
elements:
  templateId:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: root, type: value}
      - {path: extension, type: value}
      min: 1
      slices:
        birth-sex-obs:
          match: {root: 2.16.840.1.113883.10.20.22.4.200, extension: '2024-05-01'}
          schema:
            _required: true
            index: 1
            elements:
              root:
                pattern: {type: string, value: 2.16.840.1.113883.10.20.22.4.200}
                type: string
                index: 2
              extension:
                pattern: {type: string, value: '2024-05-01'}
                type: string
                index: 3
            required: [extension, root]
            extensions: {}
  classCode:
    pattern: {type: code, value: OBS}
    type: code
    index: 4
  moodCode:
    pattern: {type: code, value: EVN}
    type: code
    index: 5
  code:
    short: Sex Assigned At Birth
    index: 6
    elements:
      code:
        pattern: {type: code, value: 76689-9}
        type: code
        index: 7
      codeSystem:
        short: LOINC
        pattern: {type: string, value: 2.16.840.1.113883.6.1}
        type: string
        index: 8
    required: [code, codeSystem]
  text:
    short: SHOULD reference the portion of section narrative text corresponding to this entry
    index: 9
    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/BirthSexObservation', severity: error, expression: value.exists() implies value.startsWith('#')}
        index: 10
  statusCode:
    index: 11
    elements:
      code:
        pattern: {type: code, value: completed}
        type: code
        index: 12
    required: [code]
  effectiveTime:
    short: 'Note: This template represents a "snapshot in time" observation, simply reflecting the patient''s sex at the time of the observation. As a result, the effectiveTime is constrained to just a time stamp. Since this represents Birth Sex it SHALL match the birthTime.'
    index: 13
    elements:
      low: {index: 14}
      center: {index: 15}
      width: {index: 16}
      high: {index: 17}
  value:
    type: http://hl7.org/cda/stds/core/StructureDefinition/CD
    binding: {strength: required, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1021.24'}
    index: 18
package_version: 3.0.0-ballot
class: logical
kind: logical
url: http://hl7.org/cda/us/ccda/StructureDefinition/BirthSexObservation
base: http://hl7.org/cda/stds/core/StructureDefinition/Observation
version: 3.0.0-ballot
required: [effectiveTime, statusCode, templateId, value]