Clinical Document Architecture - Local Development build (v2.0.1-sd-202510-matchbox-patch) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Official URL: http://hl7.org/cda/stds/core/StructureDefinition/Precondition2 | Version: 2.0.1-sd-202510-matchbox-patch | |||
| Active as of 2025-10-29 | Computable Name: Precondition2 | |||
The sdtc:precondition2 extension allows a more flexible set of skip conditions on a set of criteria. Without this extension the skip condition is restricted to all criteria true. The extension allows a choice of the following logical operation extensions sdtc:allTrue, sdtc:allFalse, sdtc:atLeastOneTrue, sdtc:atLeastOneFalse, sdtc:onlyOneFalse, and sdtc:onlyOneTrue to be placed upon the encapsulated criteria or a criterion. The logical operation extensions nest a [0 .. *] sdtc:precondition2 extension allowing for a complex specification of nested skip conditions if needed.
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Template, Differentials, Snapshots and how the different presentations work.
This structure is derived from InfrastructureRoot
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
C | 1..1 | InfrastructureRoot | XML Namespace: urn:hl7-org:sdtc Base for all types and resources Elements defined in Ancestors:@nullFlavor, realmCode, typeId, templateId Instance of this type are validated by templateId Logical Container: ClinicalDocument (CDA Class) Constraints: precondition2-only-one  | 
![]() ![]()  | 
0..1 | cs | Binding: CDAActRelationshipType (required) Fixed Value: PRCN  | |
![]() ![]()  | 
0..1 | bl | ||
![]() ![]()  | 
1..1 | CS | XML Namespace: urn:hl7-org:sdtc Binding: RelationshipConjunction (2.0.0) (required)  | |
![]() ![]()  | 
1..1 | |||
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | Criterion | XML Namespace: urn:hl7-org:sdtc | |
  Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source | 
| Precondition2.typeCode | Base | required | CDAActRelationshipType | 📦2.0.1-sd-202510-matchbox-patch | This IG | 
| Precondition2.conjunctionCode | Base | required | RelationshipConjunction | 📍2.0.0 | THO v5.3 | 
| Id | Grade | Path(s) | Description | Expression | 
| precondition2-only-one | error | Precondition2 | SHALL have only one of allTrue, allFalse, atLeastOneTrue, atLeastOneFalse, onlyOneTrue, onlyOneFalse, or criterion | 
      (allTrue | allFalse | atLeastOneTrue | atLeastOneFalse | onlyOneTrue | onlyOneFalse | criterion).count() = 1
     | 
  
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
C | 1..1 | InfrastructureRoot | XML Namespace: urn:hl7-org:sdtc Base for all types and resources Elements defined in Ancestors:@nullFlavor, realmCode, typeId, templateId Instance of this type are validated by templateId Logical Container: ClinicalDocument (CDA Class) Constraints: precondition2-only-one  | 
![]() ![]()  | 
0..1 | cs | Binding: CDANullFlavor (required) | |
![]() ![]()  | 
0..* | CS | ||
![]() ![]()  | 
C | 0..1 | II | Constraints: II-1 | 
![]() ![]() ![]()  | 
0..1 | cs | Binding: CDANullFlavor (required) | |
![]() ![]() ![]()  | 
0..1 | st | ||
![]() ![]() ![]()  | 
0..1 | bl | ||
![]() ![]() ![]()  | 
1..1 | oid, uuid, ruid | Fixed Value: 2.16.840.1.113883.1.3 | |
![]() ![]() ![]()  | 
1..1 | st | ||
![]() ![]()  | 
0..* | II | ||
![]() ![]()  | 
0..1 | cs | Binding: CDAActRelationshipType (required) Fixed Value: PRCN  | |
![]() ![]()  | 
0..1 | bl | ||
![]() ![]()  | 
1..1 | CS | XML Namespace: urn:hl7-org:sdtc Binding: RelationshipConjunction (2.0.0) (required)  | |
![]() ![]()  | 
1..1 | |||
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | Criterion | XML Namespace: urn:hl7-org:sdtc | |
  Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source | 
| Precondition2.nullFlavor | Base | required | CDANullFlavor | 📦2.0.1-sd-202510-matchbox-patch | This IG | 
| Precondition2.typeId.nullFlavor | Base | required | CDANullFlavor | 📦2.0.1-sd-202510-matchbox-patch | This IG | 
| Precondition2.typeCode | Base | required | CDAActRelationshipType | 📦2.0.1-sd-202510-matchbox-patch | This IG | 
| Precondition2.conjunctionCode | Base | required | RelationshipConjunction | 📍2.0.0 | THO v5.3 | 
| Id | Grade | Path(s) | Description | Expression | 
| II-1 | error | Precondition2.typeId | An II instance must have either a root or an nullFlavor. | 
      root.exists() or nullFlavor.exists()
     | 
  
| precondition2-only-one | error | Precondition2 | SHALL have only one of allTrue, allFalse, atLeastOneTrue, atLeastOneFalse, onlyOneTrue, onlyOneFalse, or criterion | 
      (allTrue | allFalse | atLeastOneTrue | atLeastOneFalse | onlyOneTrue | onlyOneFalse | criterion).count() = 1
     | 
  
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
C | 1..1 | InfrastructureRoot | XML Namespace: urn:hl7-org:sdtc Base for all types and resources Elements defined in Ancestors:@nullFlavor, realmCode, typeId, templateId Instance of this type are validated by templateId Logical Container: ClinicalDocument (CDA Class) Constraints: precondition2-only-one  | 
![]() ![]()  | 
0..1 | cs | Binding: CDANullFlavor (required) | |
![]() ![]()  | 
0..* | CS | ||
![]() ![]()  | 
C | 0..1 | II | Constraints: II-1 | 
![]() ![]() ![]()  | 
0..1 | cs | Binding: CDANullFlavor (required) | |
![]() ![]() ![]()  | 
0..1 | st | ||
![]() ![]() ![]()  | 
0..1 | bl | ||
![]() ![]() ![]()  | 
1..1 | oid, uuid, ruid | Fixed Value: 2.16.840.1.113883.1.3 | |
![]() ![]() ![]()  | 
1..1 | st | ||
![]() ![]()  | 
0..* | II | ||
![]() ![]()  | 
0..1 | cs | Binding: CDAActRelationshipType (required) Fixed Value: PRCN  | |
![]() ![]()  | 
0..1 | bl | ||
![]() ![]()  | 
1..1 | CS | XML Namespace: urn:hl7-org:sdtc Binding: RelationshipConjunction (2.0.0) (required)  | |
![]() ![]()  | 
1..1 | |||
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | Criterion | XML Namespace: urn:hl7-org:sdtc | |
  Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source | 
| Precondition2.nullFlavor | Base | required | CDANullFlavor | 📦2.0.1-sd-202510-matchbox-patch | This IG | 
| Precondition2.typeId.nullFlavor | Base | required | CDANullFlavor | 📦2.0.1-sd-202510-matchbox-patch | This IG | 
| Precondition2.typeCode | Base | required | CDAActRelationshipType | 📦2.0.1-sd-202510-matchbox-patch | This IG | 
| Precondition2.conjunctionCode | Base | required | RelationshipConjunction | 📍2.0.0 | THO v5.3 | 
| Id | Grade | Path(s) | Description | Expression | 
| II-1 | error | Precondition2.typeId | An II instance must have either a root or an nullFlavor. | 
      root.exists() or nullFlavor.exists()
     | 
  
| precondition2-only-one | error | Precondition2 | SHALL have only one of allTrue, allFalse, atLeastOneTrue, atLeastOneFalse, onlyOneTrue, onlyOneFalse, or criterion | 
      (allTrue | allFalse | atLeastOneTrue | atLeastOneFalse | onlyOneTrue | onlyOneFalse | criterion).count() = 1
     | 
  
This structure is derived from InfrastructureRoot
Differential View
This structure is derived from InfrastructureRoot
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
C | 1..1 | InfrastructureRoot | XML Namespace: urn:hl7-org:sdtc Base for all types and resources Elements defined in Ancestors:@nullFlavor, realmCode, typeId, templateId Instance of this type are validated by templateId Logical Container: ClinicalDocument (CDA Class) Constraints: precondition2-only-one  | 
![]() ![]()  | 
0..1 | cs | Binding: CDAActRelationshipType (required) Fixed Value: PRCN  | |
![]() ![]()  | 
0..1 | bl | ||
![]() ![]()  | 
1..1 | CS | XML Namespace: urn:hl7-org:sdtc Binding: RelationshipConjunction (2.0.0) (required)  | |
![]() ![]()  | 
1..1 | |||
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | Criterion | XML Namespace: urn:hl7-org:sdtc | |
  Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source | 
| Precondition2.typeCode | Base | required | CDAActRelationshipType | 📦2.0.1-sd-202510-matchbox-patch | This IG | 
| Precondition2.conjunctionCode | Base | required | RelationshipConjunction | 📍2.0.0 | THO v5.3 | 
| Id | Grade | Path(s) | Description | Expression | 
| precondition2-only-one | error | Precondition2 | SHALL have only one of allTrue, allFalse, atLeastOneTrue, atLeastOneFalse, onlyOneTrue, onlyOneFalse, or criterion | 
      (allTrue | allFalse | atLeastOneTrue | atLeastOneFalse | onlyOneTrue | onlyOneFalse | criterion).count() = 1
     | 
  
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
C | 1..1 | InfrastructureRoot | XML Namespace: urn:hl7-org:sdtc Base for all types and resources Elements defined in Ancestors:@nullFlavor, realmCode, typeId, templateId Instance of this type are validated by templateId Logical Container: ClinicalDocument (CDA Class) Constraints: precondition2-only-one  | 
![]() ![]()  | 
0..1 | cs | Binding: CDANullFlavor (required) | |
![]() ![]()  | 
0..* | CS | ||
![]() ![]()  | 
C | 0..1 | II | Constraints: II-1 | 
![]() ![]() ![]()  | 
0..1 | cs | Binding: CDANullFlavor (required) | |
![]() ![]() ![]()  | 
0..1 | st | ||
![]() ![]() ![]()  | 
0..1 | bl | ||
![]() ![]() ![]()  | 
1..1 | oid, uuid, ruid | Fixed Value: 2.16.840.1.113883.1.3 | |
![]() ![]() ![]()  | 
1..1 | st | ||
![]() ![]()  | 
0..* | II | ||
![]() ![]()  | 
0..1 | cs | Binding: CDAActRelationshipType (required) Fixed Value: PRCN  | |
![]() ![]()  | 
0..1 | bl | ||
![]() ![]()  | 
1..1 | CS | XML Namespace: urn:hl7-org:sdtc Binding: RelationshipConjunction (2.0.0) (required)  | |
![]() ![]()  | 
1..1 | |||
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | Criterion | XML Namespace: urn:hl7-org:sdtc | |
  Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source | 
| Precondition2.nullFlavor | Base | required | CDANullFlavor | 📦2.0.1-sd-202510-matchbox-patch | This IG | 
| Precondition2.typeId.nullFlavor | Base | required | CDANullFlavor | 📦2.0.1-sd-202510-matchbox-patch | This IG | 
| Precondition2.typeCode | Base | required | CDAActRelationshipType | 📦2.0.1-sd-202510-matchbox-patch | This IG | 
| Precondition2.conjunctionCode | Base | required | RelationshipConjunction | 📍2.0.0 | THO v5.3 | 
| Id | Grade | Path(s) | Description | Expression | 
| II-1 | error | Precondition2.typeId | An II instance must have either a root or an nullFlavor. | 
      root.exists() or nullFlavor.exists()
     | 
  
| precondition2-only-one | error | Precondition2 | SHALL have only one of allTrue, allFalse, atLeastOneTrue, atLeastOneFalse, onlyOneTrue, onlyOneFalse, or criterion | 
      (allTrue | allFalse | atLeastOneTrue | atLeastOneFalse | onlyOneTrue | onlyOneFalse | criterion).count() = 1
     | 
  
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints    Filter:  ![]() ![]()  | 
|---|---|---|---|---|
![]()  | 
C | 1..1 | InfrastructureRoot | XML Namespace: urn:hl7-org:sdtc Base for all types and resources Elements defined in Ancestors:@nullFlavor, realmCode, typeId, templateId Instance of this type are validated by templateId Logical Container: ClinicalDocument (CDA Class) Constraints: precondition2-only-one  | 
![]() ![]()  | 
0..1 | cs | Binding: CDANullFlavor (required) | |
![]() ![]()  | 
0..* | CS | ||
![]() ![]()  | 
C | 0..1 | II | Constraints: II-1 | 
![]() ![]() ![]()  | 
0..1 | cs | Binding: CDANullFlavor (required) | |
![]() ![]() ![]()  | 
0..1 | st | ||
![]() ![]() ![]()  | 
0..1 | bl | ||
![]() ![]() ![]()  | 
1..1 | oid, uuid, ruid | Fixed Value: 2.16.840.1.113883.1.3 | |
![]() ![]() ![]()  | 
1..1 | st | ||
![]() ![]()  | 
0..* | II | ||
![]() ![]()  | 
0..1 | cs | Binding: CDAActRelationshipType (required) Fixed Value: PRCN  | |
![]() ![]()  | 
0..1 | bl | ||
![]() ![]()  | 
1..1 | CS | XML Namespace: urn:hl7-org:sdtc Binding: RelationshipConjunction (2.0.0) (required)  | |
![]() ![]()  | 
1..1 | |||
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | PreconditionBase | XML Namespace: urn:hl7-org:sdtc | |
![]() ![]() ![]()  | 
0..1 | Criterion | XML Namespace: urn:hl7-org:sdtc | |
  Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source | 
| Precondition2.nullFlavor | Base | required | CDANullFlavor | 📦2.0.1-sd-202510-matchbox-patch | This IG | 
| Precondition2.typeId.nullFlavor | Base | required | CDANullFlavor | 📦2.0.1-sd-202510-matchbox-patch | This IG | 
| Precondition2.typeCode | Base | required | CDAActRelationshipType | 📦2.0.1-sd-202510-matchbox-patch | This IG | 
| Precondition2.conjunctionCode | Base | required | RelationshipConjunction | 📍2.0.0 | THO v5.3 | 
| Id | Grade | Path(s) | Description | Expression | 
| II-1 | error | Precondition2.typeId | An II instance must have either a root or an nullFlavor. | 
      root.exists() or nullFlavor.exists()
     | 
  
| precondition2-only-one | error | Precondition2 | SHALL have only one of allTrue, allFalse, atLeastOneTrue, atLeastOneFalse, onlyOneTrue, onlyOneFalse, or criterion | 
      (allTrue | allFalse | atLeastOneTrue | atLeastOneFalse | onlyOneTrue | onlyOneFalse | criterion).count() = 1
     | 
  
This structure is derived from InfrastructureRoot