PackagesCanonicalsLogsProblems
    Packages
    hl7.cda.us.ccda@4.0.0-ballot
    http://hl7.org/cda/us/ccda/StructureDefinition/SexParameterForClinicalUseObservation
description: The Sex Parameter for Clinical Use (SPCU) observation is a clinical classification indicating which sex-related information is needed to evaluate how a patient's body may respond or has responded to treatments or diagnostic tests. Rather than relying solely on a patient's gender identity or assigned sex at birth, SPCU considers observable physiological characteristics (such as hormone levels, organ inventories, or genetic data) or medical interventions (such as hormone therapy). This template may be included in, referenced by, or contain a reference to, the relevant template.
package_name: hl7.cda.us.ccda
derivation: constraint
name: SexParameterForClinicalUseObservation
type: http://hl7.org/cda/stds/core/StructureDefinition/Observation
elements:
  entryRelationship:
    short: This Entry Reference links the Sex Parameter for Clinical Use Observation to the template containing the relevant clinical data, such as Observations, Procedures, Substance Administrations, or Orders (Planned Procedures).
    index: 20
    elements:
      typeCode:
        pattern: {type: Code, value: SPRT}
        index: 21
      act: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Act', index: 22}
    required: [act]
  value:
    type: http://hl7.org/cda/stds/core/StructureDefinition/CD
    index: 16
    elements:
      nullFlavor: {index: 17}
      code:
        binding: {strength: required, valueSet: 'http://terminology.hl7.org/ValueSet/sex-parameter-for-clinical-use'}
        index: 18
    required: [code]
  classCode:
    pattern: {type: Code, value: OBS}
    index: 4
  author: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Author', index: 19}
  id: {index: 6}
  code:
    short: Sex parameter for clinical use
    index: 7
    elements:
      code:
        pattern: {type: Code, value: 99501-9}
        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: 'Note: This template represents a "snapshot in time" observation. As a result, the effectiveTime is constrained to just a time stamp.'
    constraint:
      value-only: {human: Interval fields SHALL NOT be present, source: 'http://hl7.org/cda/us/ccda/StructureDefinition/SexParameterForClinicalUseObservation', severity: error, expression: (low | high | width | center).empty()}
    index: 14
    elements:
      value: {short: value should be used instead of low/high, index: 15}
  templateId:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: root, type: value}
      - {path: extension, type: value}
      min: 1
      slices:
        sex-parameter-clinical-use-obs:
          match: {root: 2.16.840.1.113883.10.20.22.4.513, extension: '2025-05-01'}
          schema:
            _required: true
            index: 1
            elements:
              root:
                pattern: {type: String, value: 2.16.840.1.113883.10.20.22.4.513}
                index: 2
              extension:
                pattern: {type: String, value: '2025-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/SexParameterForClinicalUseObservation', 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/SexParameterForClinicalUseObservation
base: http://hl7.org/cda/stds/core/StructureDefinition/Observation
version: 4.0.0-ballot
required: [author, id, effectiveTime, value, statusCode, templateId]