QI-Core Implementation Guide
4.1.0 - release

Publication Build: This will be filled in by the publication tooling

## Resource Profile: QICoreBodyStructure

Defining URL: | http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-bodystructure
Version: | 4.1.0
Name: | QICoreBodyStructure
Status: | Draft as of 8/22/18
Definition: | Profile of BodyStructure for decision support/quality metrics. Defines the core set of elements and extensions for quality rule and measure authors.
Publisher: | http://www.hl7.org/Special/committees/cqi/index.cfm
Source Resource: | XML / JSON / Turtle

The official URL for this profile is:

    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-bodystructure

Usage

See the patterns page for implementation and usage patterns.

### Examples

This example demonstrates using the bodysite resource to identify a specific tumor or lesion that will have multiple observations and/or procedures performed on it over time

### Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

- Text Summary
- Differential Table
- Snapshot Table
- Snapshot Table (Must Support)
- All

This structure is derived from BodyStructure

Summary

Mandatory: 2 elements
Must-Support: 4 elements

Structures

This structure refers to these other structures:

- QICorePatient (http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient)

This structure is derived from BodyStructure

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
BodyStructure |  | 0..* | BodyStructure | Specific and identified anatomical structure
active | S | 1..1 | boolean | Whether this record is in active use
location | S | 1..1 | CodeableConcept | Body site Binding: Precoordinated Body Structures (preferred): Precoordinated body sites such as 'left ear'
locationQualifier | S | 0..* | CodeableConcept | Body site modifier
patient | S | 1..1 | Reference(QICorePatient) | Who this is about
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
BodyStructure |  | 0..* | BodyStructure | Specific and identified anatomical structure
id | Σ | 0..1 | string | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred) Max Binding: AllLanguages: A human language.
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | Bodystructure identifier
active | ?!S Σ | 1..1 | boolean | Whether this record is in active use
morphology | Σ | 0..1 | CodeableConcept | Kind of Structure Binding: SNOMEDCTMorphologicAbnormalities (example): Codes describing anatomic morphology.
location | S Σ | 1..1 | CodeableConcept | Body site Binding: Precoordinated Body Structures (preferred): Precoordinated body sites such as 'left ear'
locationQualifier | S | 0..* | CodeableConcept | Body site modifier Binding: BodystructureLocationQualifier (example): Concepts modifying the anatomic location.
description | Σ | 0..1 | string | Text description
image |  | 0..* | Attachment | Attached images
patient | S Σ | 1..1 | Reference(QICorePatient) | Who this is about
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
BodyStructure |  | 0..* | BodyStructure | Specific and identified anatomical structure
active | ?!Σ | 1..1 | boolean | Whether this record is in active use
location | Σ | 1..1 | CodeableConcept | Body site Binding: Precoordinated Body Structures (preferred): Precoordinated body sites such as 'left ear'
locationQualifier |  | 0..* | CodeableConcept | Body site modifier Binding: BodystructureLocationQualifier (example): Concepts modifying the anatomic location.
patient | Σ | 1..1 | Reference(QICorePatient) | Who this is about
Documentation for this format

This structure is derived from BodyStructure

Summary

Mandatory: 2 elements
Must-Support: 4 elements

Structures

This structure refers to these other structures:

- QICorePatient (http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient)

Differential View

This structure is derived from BodyStructure

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
BodyStructure |  | 0..* | BodyStructure | Specific and identified anatomical structure
active | S | 1..1 | boolean | Whether this record is in active use
location | S | 1..1 | CodeableConcept | Body site Binding: Precoordinated Body Structures (preferred): Precoordinated body sites such as 'left ear'
locationQualifier | S | 0..* | CodeableConcept | Body site modifier
patient | S | 1..1 | Reference(QICorePatient) | Who this is about
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
BodyStructure |  | 0..* | BodyStructure | Specific and identified anatomical structure
id | Σ | 0..1 | string | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred) Max Binding: AllLanguages: A human language.
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | Bodystructure identifier
active | ?!S Σ | 1..1 | boolean | Whether this record is in active use
morphology | Σ | 0..1 | CodeableConcept | Kind of Structure Binding: SNOMEDCTMorphologicAbnormalities (example): Codes describing anatomic morphology.
location | S Σ | 1..1 | CodeableConcept | Body site Binding: Precoordinated Body Structures (preferred): Precoordinated body sites such as 'left ear'
locationQualifier | S | 0..* | CodeableConcept | Body site modifier Binding: BodystructureLocationQualifier (example): Concepts modifying the anatomic location.
description | Σ | 0..1 | string | Text description
image |  | 0..* | Attachment | Attached images
patient | S Σ | 1..1 | Reference(QICorePatient) | Who this is about
Documentation for this format

Other representations of profile: CSV, Excel, Schematron

#### Terminology Bindings

Path | Conformance | ValueSet
BodyStructure.language | preferred | CommonLanguages Max Binding: AllLanguages
BodyStructure.morphology | example | SNOMEDCTMorphologicAbnormalities
BodyStructure.location | preferred | QICoreBodyStructurePreCoordinated
BodyStructure.locationQualifier | example | BodystructureLocationQualifier

#### Constraints

Id | Grade | Path | Details | Requirements
dom-2 | error | BodyStructure | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | BodyStructure | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty() |
dom-4 | error | BodyStructure | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | BodyStructure | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | Best Practice | BodyStructure | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | BodyStructure.meta | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | BodyStructure.implicitRules | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | BodyStructure.language | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | BodyStructure.text | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | BodyStructure.extension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | BodyStructure.extension | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
ele-1 | error | BodyStructure.modifierExtension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | BodyStructure.modifierExtension | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
ele-1 | error | BodyStructure.identifier | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | BodyStructure.active | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | BodyStructure.morphology | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | BodyStructure.location | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | BodyStructure.locationQualifier | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | BodyStructure.description | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | BodyStructure.image | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | BodyStructure.patient | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |