PackagesCanonicalsLogsProblems
    Packages
    hl7.cda.us.ccda@3.0.0
    http://hl7.org/cda/us/ccda/StructureDefinition/SpecimenCollectionProcedure
description: This template represents clinical information about the specimen including when it was collected, the type and source of specimen, as well as related observations regarding the specimen.
package_name: hl7.cda.us.ccda
derivation: constraint
name: SpecimenCollectionProcedure
type: http://hl7.org/cda/stds/core/StructureDefinition/Procedure
elements:
  templateId:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: root, type: value}
      - {path: extension, type: value}
      min: 1
      slices:
        specimen-collection-proc:
          match: {root: 2.16.840.1.113883.10.20.22.4.415, extension: '2018-09-01'}
          schema:
            _required: true
            index: 1
            elements:
              root:
                pattern: {type: String, value: 2.16.840.1.113883.10.20.22.4.415}
                index: 2
              extension:
                pattern: {type: String, value: '2018-09-01'}
                index: 3
            required: [root, extension]
            extensions: {}
  moodCode:
    pattern: {type: Code, value: EVN}
    index: 4
  code:
    short: Specimen collection (procedure)
    index: 5
    elements:
      code:
        pattern: {type: Code, value: '17636008'}
        index: 6
      codeSystem:
        short: SNOMED CT
        pattern: {type: String, value: 2.16.840.1.113883.6.96}
        index: 7
    required: [codeSystem, 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/SpecimenCollectionProcedure', severity: error, expression: value.exists() implies value.startsWith('#')}
        index: 9
  targetSiteCode:
    short: (USCDI) Specimen Source Site
    binding: {strength: required, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.88.12.3221.8.9'}
    index: 10
  entryRelationship:
    index: 11
    slicing:
      rules: open
      discriminator:
      - {path: act, type: profile}
      - {path: observation, type: profile}
      min: 1
      slices:
        specimenRef:
          match: {}
          schema:
            short: References the specimen that is the subject of this procedure
            _required: true
            index: 12
            elements:
              typeCode:
                pattern: {type: Code, value: SUBJ}
                index: 13
              act: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Act', index: 14}
            required: [act]
        condition:
          match: {}
          schema:
            array: true
            index: 15
            elements:
              typeCode:
                pattern: {type: Code, value: COMP}
                index: 16
              observation: {type: 'http://hl7.org/cda/stds/core/StructureDefinition/Observation', short: (USCDI) Specimen Condition Acceptability, index: 17}
package_version: 3.0.0
class: logical
kind: logical
url: http://hl7.org/cda/us/ccda/StructureDefinition/SpecimenCollectionProcedure
base: http://hl7.org/cda/stds/core/StructureDefinition/Procedure
version: 3.0.0
required: [templateId, entryRelationship, code]