PackagesCanonicalsLogsProblems
    Packages
    hl7.cda.us.ccda@3.0.0
    http://hl7.org/cda/us/ccda/StructureDefinition/AllergyConcernAct
description: This template reflects an ongoing concern on behalf of the provider that placed the allergy on a patient's allergy list. As long as the underlying condition is of concern to the provider (i.e., as long as the allergy, whether active or resolved, is of ongoing concern and interest to the provider), the statusCode is \"active\". Only when the underlying allergy is no longer of concern is the statusCode set to \"completed\". The effectiveTime reflects the time that the underlying allergy was felt to be a concern.\n\nThe statusCode of the Allergy Concern Act is the definitive indication of the status of the concern, whereas the effectiveTime of the nested Allergy - Intolerance Observation is the definitive indication of whether or not the underlying allergy is resolved. \n\nThe effectiveTime/low of the Allergy Concern Act asserts when the concern became active. This equates to the time the concern was authored in the patient's chart. The effectiveTime/high asserts when the concern was completed (e.g., when the clinician deemed there is no longer any need to track the underlying condition).
package_name: hl7.cda.us.ccda
derivation: constraint
name: AllergyConcernAct
type: http://hl7.org/cda/stds/core/StructureDefinition/Act
elements:
  entryRelationship:
    index: 19
    slicing:
      rules: open
      discriminator:
      - {path: observation, type: profile}
      min: 1
      slices:
        allergyObs:
          match: {}
          schema:
            _required: true
            index: 20
            elements:
              typeCode:
                pattern: {type: Code, value: SUBJ}
                index: 21
              observation: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Observation', index: 22}
            required: [observation]
  classCode:
    pattern: {type: Code, value: ACT}
    index: 4
  author: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Author', index: 18}
  id: {index: 6}
  code:
    index: 7
    elements:
      code:
        pattern: {type: Code, value: CONC}
        index: 8
      codeSystem:
        pattern: {type: String, value: 2.16.840.1.113883.5.6}
        index: 9
    required: [codeSystem, code]
  moodCode:
    pattern: {type: Code, value: EVN}
    index: 5
  effectiveTime:
    index: 15
    elements:
      low: {short: Required if statusCode = 'active', index: 16}
      high: {short: Required if statusCode = 'completed', index: 17}
  templateId:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: root, type: value}
      - {path: extension, type: value}
      min: 1
      slices:
        allergy-concern-act:
          match: {root: 2.16.840.1.113883.10.20.22.4.30, extension: '2015-08-01'}
          schema:
            _required: true
            index: 1
            elements:
              root:
                pattern: {type: String, value: 2.16.840.1.113883.10.20.22.4.30}
                index: 2
              extension:
                pattern: {type: String, value: '2015-08-01'}
                index: 3
            required: [root, extension]
            extensions: {}
  statusCode:
    index: 12
    elements:
      nullFlavor: {index: 13}
      code:
        binding: {strength: required, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.11.20.9.19'}
        index: 14
    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/AllergyConcernAct', severity: error, expression: value.exists() implies value.startsWith('#')}
        index: 11
package_version: 3.0.0
class: logical
kind: logical
url: http://hl7.org/cda/us/ccda/StructureDefinition/AllergyConcernAct
base: http://hl7.org/cda/stds/core/StructureDefinition/Act
version: 3.0.0
required: [id, effectiveTime, statusCode, templateId, entryRelationship]