PackagesCanonicalsLogsProblems
    Packages
    hl7.cda.us.ccda@5.0.0-ballot
    http://hl7.org/cda/us/ccda/StructureDefinition/FamilyHistoryObservation
description: 'Family History Observations related to a particular family member are contained within a Family History Organizer. The effectiveTime in the Family History Observation is the biologically or clinically relevant time of the observation. The biologically or clinically relevant time is the time at which the observation holds (is effective) for the family member (the subject of the observation).\n\n#### Templates Used\nAlthough open templates may contain any valid CDA content, the following templates are specifically called out by this template:\n\n**Optional EntryRelationships**: [AgeObservation](StructureDefinition-AgeObservation.html), [FamilyHistoryDeathObservation](StructureDefinition-FamilyHistoryDeathObservation.html)'
package_name: hl7.cda.us.ccda
derivation: constraint
name: FamilyHistoryObservation
type: http://hl7.org/cda/stds/core/StructureDefinition/Observation
elements:
  entryRelationship:
    index: 14
    slicing:
      rules: open
      discriminator:
      - {path: observation, type: profile}
      - {path: typeCode, type: value}
      min: null
      slices:
        ageObservation:
          match: {typeCode: SUBJ}
          schema:
            index: 15
            elements:
              typeCode:
                pattern: {type: Code, value: SUBJ}
                index: 16
              inversionInd:
                pattern: {type: Boolean, value: true}
                index: 17
              observation: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Observation', index: 18}
            required: [inversionInd, observation]
        deathObservation:
          match: {typeCode: CAUS}
          schema:
            index: 19
            elements:
              typeCode:
                pattern: {type: Code, value: CAUS}
                index: 20
              observation: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Observation', index: 21}
            required: [observation]
  value:
    type: http://hl7.org/cda/stds/core/StructureDefinition/CD
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/core/ValueSet/us-core-condition-code'}
    index: 13
  classCode:
    pattern: {type: Code, value: OBS}
    index: 4
  id: {index: 6}
  code:
    binding: {strength: preferred, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1267.1'}
    index: 7
  moodCode:
    pattern: {type: Code, value: EVN}
    index: 5
  effectiveTime: {short: SHOULD contain effectiveTime, index: 12}
  templateId:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: root, type: value}
      - {path: extension, type: value}
      min: 1
      slices:
        family-history-obs:
          match: {root: 2.16.840.1.113883.10.20.22.4.46, extension: '2015-08-01'}
          schema:
            _required: true
            index: 1
            elements:
              root:
                pattern: {type: String, value: 2.16.840.1.113883.10.20.22.4.46}
                index: 2
              extension:
                pattern: {type: String, value: '2015-08-01'}
                index: 3
            required: [root, extension]
            extensions: {}
  statusCode:
    index: 10
    elements:
      code:
        pattern: {type: Code, value: completed}
        index: 11
    required: [code]
  text:
    short: SHOULD reference the portion of section narrative text corresponding to this entry
    index: 8
    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/FamilyHistoryObservation', severity: error, expression: value.exists() implies value.startsWith('#')}
        index: 9
package_version: 5.0.0-ballot
class: logical
kind: logical
url: http://hl7.org/cda/us/ccda/StructureDefinition/FamilyHistoryObservation
base: http://hl7.org/cda/stds/core/StructureDefinition/Observation
version: 5.0.0-ballot
required: [id, value, statusCode, templateId]