PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.mcode@1.16.0
    http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-secondary-cancer-condition
description: 'Records the history of secondary neoplasms, including location(s) and the date of onset of metastases. A secondary cancer results from the spread (metastasization) of cancer from its original site (Definition from: NCI Dictionary of Cancer Terms).'
package_name: hl7.fhir.us.mcode
derivation: constraint
name: SecondaryCancerCondition
type: Condition
elements:
  extension:
    mustSupport: true
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        assertedDate:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/StructureDefinition/condition-assertedDate', index: 1}
          min: 0
          max: 1
        histologyMorphologyBehavior:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-histology-morphology-behavior', index: 2}
          min: 0
          max: 1
        relatedPrimaryCancerCondition:
          match: {url: null}
          schema:
            short: Related Primary Cancer Condition
            type: Extension
            mustSupport: true
            url: http://hl7.org/fhir/StructureDefinition/condition-related
            index: 3
            elements:
              value:
                choices: [valueReference]
                index: 5
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-primary-cancer-condition']
                index: 6
  code:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/mcode/ValueSet/mcode-secondary-cancer-disorder-vs'}
    constraint:
      secondary-cancer-condition-code-invariant: {human: 'If the code representing ''Other secondary cancer condition, specify'' is used, a second code from outside the original value set must be present. The second code MUST NOT represent a concept in or subsumed by any concept in the original value set.', source: 'http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-secondary-cancer-condition', severity: error, expression: 'coding.where(code = ''SCC-OTHER'').exists() implies coding.where(code != ''SCC-OTHER'' and $this.memberOf(''http://hl7.org/fhir/us/mcode/ValueSet/mcode-secondary-cancer-disorder-vs'').not()).exists()'}
    index: 7
  bodySite:
    binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/us/mcode/ValueSet/mcode-cancer-body-location-vs'}
    mustSupport: true
    index: 8
    extensions:
      locationQualifier: {url: 'http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-location-qualifier', min: 0, type: Extension, mustSupport: true, index: 9}
    elements:
      extension:
        type: Extension
        mustSupport: true
        url: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-location-qualifier
        index: 9
        slicing:
          slices:
            locationQualifier:
              match: {}
              schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-location-qualifier', index: 9}
              min: 0
  stage: {short: Not used in this profile, index: 10}
package_version: 1.16.0
extensions:
  assertedDate: {url: 'http://hl7.org/fhir/StructureDefinition/condition-assertedDate', min: 0, max: 1, type: Extension, mustSupport: true, index: 1}
  histologyMorphologyBehavior: {url: 'http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-histology-morphology-behavior', min: 0, max: 1, type: Extension, mustSupport: true, index: 2}
  relatedPrimaryCancerCondition:
    url: http://hl7.org/fhir/StructureDefinition/condition-related
    short: Related Primary Cancer Condition
    type: Extension
    mustSupport: true
    index: 3
    elements:
      value:
        choices: [valueReference]
        index: 5
      valueReference:
        type: Reference
        choiceOf: value
        refers: ['http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-primary-cancer-condition']
        index: 6
class: profile
kind: resource
url: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-secondary-cancer-condition
base: http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition
version: 1.16.0