PackagesCanonicalsLogsProblems
    Packages
    hl7.cda.us.ccda@4.0.0
    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}
                type: code
                index: 16
              inversionInd:
                pattern: {type: boolean, value: true}
                type: boolean
                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}
                type: code
                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}
    type: code
    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}
    type: code
    index: 5
  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}
                type: string
                index: 2
              extension:
                pattern: {type: string, value: '2015-08-01'}
                type: string
                index: 3
            required: [extension, root]
            extensions: {}
  statusCode:
    index: 10
    elements:
      code:
        pattern: {type: code, value: completed}
        type: code
        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: 4.0.0
class: logical
kind: logical
url: http://hl7.org/cda/us/ccda/StructureDefinition/FamilyHistoryObservation
base: http://hl7.org/cda/stds/core/StructureDefinition/Observation
version: 4.0.0
required: [id, statusCode, templateId, value]