Order Catalog Implementation Guide
1.0.0 - STU 1

Order Catalog Implementation Guide, published by HL7 International / Orders and Observations. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-order-catalog/ and changes regularly. See the Directory of published versions

## Resource Profile: IndicationDefinition Profile

Official URL: http://hl7.org/fhir/uv/order-catalog/StructureDefinition/IndicationDefinition | Version: 1.0.0
Standards status: Trial-use | Maturity Level: 2 | Computable Name: IndicationDefinition
Other Identifiers: OID:2.16.840.1.113883.4.642.40.55.42.10

This profile constrains the base resource ClinicalUseDefinition to represent an indication associated with a healthcare item (medication, device, test, service …) described in a catalog

Usages:

- Examples for this Profile: ClinicalUseDefinition/example-acute-otitis-media-indication, ClinicalUseDefinition/example-bacterial-pharyngitis-indication and ClinicalUseDefinition/example-bacterial-sinusitis-indication

You can also check for usages in the FHIR IG Statistics

### Formal Views of Profile Content

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

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
ClinicalUseDefinition | C | 0..* | ClinicalUseDefinition | A single issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure Constraints: cud-1
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
contained |  | 0..* | Resource | Contained, inline Resources
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
type | Σ | 1..1 | code | indication | contraindication | interaction | undesirable-effect | warning Binding: ClinicalUseDefinitionType (required): Overall defining type of this clinical use definition. Required Pattern: indication
indication | Σ C | 1..1 | BackboneElement | Specifics for when this is an indication
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
ClinicalUseDefinition.​type | Base | required | Clinical Use Definition Type | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
cud-1 | error | ClinicalUseDefinition | Indication, Contraindication, Interaction, UndesirableEffect and Warning cannot be used in the same instance | `(ClinicalUseDefinition.indication.count() + ClinicalUseDefinition.contraindication.count() + ClinicalUseDefinition.interaction.count() + ClinicalUseDefinition.undesirableEffect.count() + ClinicalUseDefinition.warning.count()) < 2`
dom-2 | error | ClinicalUseDefinition | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | ClinicalUseDefinition | 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | ClinicalUseDefinition | 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 | ClinicalUseDefinition | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | ClinicalUseDefinition | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from ClinicalUseDefinition

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
ClinicalUseDefinition |  | 0..* | ClinicalUseDefinition | A single issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure
type |  | 1..1 | code | indication | contraindication | interaction | undesirable-effect | warning Required Pattern: indication
contraindication |  | 0..0 |  | Specifics for when this is a contraindication
indication |  | 1..1 | BackboneElement | Specifics for when this is an indication
interaction |  | 0..0 |  | Specifics for when this is an interaction
undesirableEffect |  | 0..0 |  | A possible negative outcome from the use of this treatment
warning |  | 0..0 |  | Critical environmental, health or physical risks or hazards. For example 'Do not operate heavy machinery', 'May cause drowsiness'
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
ClinicalUseDefinition | C | 0..* | ClinicalUseDefinition | A single issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure Constraints: cud-1
id | Σ | 0..1 | id | 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: AllLanguages (required): IETF language tag for a human language
Additional Bindings | Purpose
CommonLanguages | Starter
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
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 | Business identifier for this issue
type | Σ | 1..1 | code | indication | contraindication | interaction | undesirable-effect | warning Binding: ClinicalUseDefinitionType (required): Overall defining type of this clinical use definition. Required Pattern: indication
category | Σ | 0..* | CodeableConcept | A categorisation of the issue, primarily for dividing warnings into subject heading areas such as "Pregnancy", "Overdose" Binding: ClinicalUseDefinitionCategory (preferred): A categorisation for a clinical use information item.
subject | Σ | 0..* | Reference(MedicinalProductDefinition | Medication | ActivityDefinition | PlanDefinition | Device | DeviceDefinition | Substance | NutritionProduct | BiologicallyDerivedProduct) | The medication, product, substance, device, procedure etc. for which this is an indication
status | Σ | 0..1 | CodeableConcept | Whether this is a current issue or one that has been retired etc Binding: PublicationStatus (preferred): The lifecycle status of an artifact.
indication | Σ C | 1..1 | BackboneElement | Specifics for when this is an indication
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
diseaseSymptomProcedure | Σ | 0..1 | CodeableReference(ObservationDefinition) | The situation that is being documented as an indicaton for this item Binding: DiseaseSymptomProcedure (example): A symptom, disease or procedure.
diseaseStatus | Σ | 0..1 | CodeableReference(ObservationDefinition) | The status of the disease or symptom for the indication Binding: DiseaseStatus (example): The status of a disease or symptom.
comorbidity | Σ | 0..* | CodeableReference(ObservationDefinition) | A comorbidity or coinfection as part of the indication Binding: DiseaseSymptomProcedure (example): A symptom, disease or procedure.
intendedEffect | Σ | 0..1 | CodeableReference(ObservationDefinition) | The intended effect, aim or strategy to be achieved Binding: ProductIntendedUse (preferred): The overall intended use of a product.
duration[x] | Σ | 0..1 |  | Timing or duration information
durationRange |  |  | Range |
durationString |  |  | string |
undesirableEffect | Σ | 0..* | Reference(ClinicalUseDefinition) | An unwanted side effect or negative outcome of the subject of this resource when being used for this indication
applicability |  | 0..1 | Expression | An expression that returns true or false, indicating whether the indication is applicable or not, after having applied its other elements
otherTherapy | Σ | 0..* | See otherTherapy (ClinicalUseDefinition) | The use of the medicinal product in relation to other therapies described as part of the indication
population | Σ | 0..* | Reference(Group) | The population group to which this applies
library | Σ | 0..* | canonical(Library) | Logic used by the clinical use definition
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
ClinicalUseDefinition.​language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​type | Base | required | Clinical Use Definition Type | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​category | Base | preferred | Clinical Use Definition Category | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​status | Base | preferred | PublicationStatus | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​contraindication.diseaseSymptomProcedure | Base | example | Disease Symptom Procedure | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​contraindication.diseaseStatus | Base | example | Disease Status | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​contraindication.comorbidity | Base | example | Disease Symptom Procedure | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​contraindication.otherTherapy.​relationshipType | Base | preferred | Therapy Relationship Type | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​contraindication.otherTherapy.​treatment | Base | example | Therapy | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​indication.diseaseSymptomProcedure | Base | example | Disease Symptom Procedure | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​indication.diseaseStatus | Base | example | Disease Status | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​indication.comorbidity | Base | example | Disease Symptom Procedure | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​indication.intendedEffect | Base | preferred | Product Intended Use | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​interaction.interactant.​item[x] | Base | example | Interactant | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​interaction.type | Base | example | Interaction Type | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​interaction.effect | Base | example | Interaction Effect | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​interaction.incidence | Base | example | Interaction Incidence | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​interaction.management | Base | example | Interaction Management | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​undesirableEffect.symptomConditionEffect | Base | example | Undesirable Effect Symptom | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​undesirableEffect.classification | Base | example | Undesirable Effect Classification | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​undesirableEffect.frequencyOfOccurrence | Base | example | Undesirabl Effect Frequency | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​warning.code | Base | example | Warning Type | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
cud-1 | error | ClinicalUseDefinition | Indication, Contraindication, Interaction, UndesirableEffect and Warning cannot be used in the same instance | `(ClinicalUseDefinition.indication.count() + ClinicalUseDefinition.contraindication.count() + ClinicalUseDefinition.interaction.count() + ClinicalUseDefinition.undesirableEffect.count() + ClinicalUseDefinition.warning.count()) < 2`
dom-2 | error | ClinicalUseDefinition | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | ClinicalUseDefinition | 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | ClinicalUseDefinition | 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 | ClinicalUseDefinition | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | ClinicalUseDefinition | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from ClinicalUseDefinition

Summary

Mandatory: 1 element
Prohibited: 4 elements

Maturity: 2

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
ClinicalUseDefinition | C | 0..* | ClinicalUseDefinition | A single issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure Constraints: cud-1
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
contained |  | 0..* | Resource | Contained, inline Resources
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
type | Σ | 1..1 | code | indication | contraindication | interaction | undesirable-effect | warning Binding: ClinicalUseDefinitionType (required): Overall defining type of this clinical use definition. Required Pattern: indication
indication | Σ C | 1..1 | BackboneElement | Specifics for when this is an indication
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
ClinicalUseDefinition.​type | Base | required | Clinical Use Definition Type | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
cud-1 | error | ClinicalUseDefinition | Indication, Contraindication, Interaction, UndesirableEffect and Warning cannot be used in the same instance | `(ClinicalUseDefinition.indication.count() + ClinicalUseDefinition.contraindication.count() + ClinicalUseDefinition.interaction.count() + ClinicalUseDefinition.undesirableEffect.count() + ClinicalUseDefinition.warning.count()) < 2`
dom-2 | error | ClinicalUseDefinition | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | ClinicalUseDefinition | 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | ClinicalUseDefinition | 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 | ClinicalUseDefinition | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | ClinicalUseDefinition | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

Differential View

This structure is derived from ClinicalUseDefinition

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
ClinicalUseDefinition |  | 0..* | ClinicalUseDefinition | A single issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure
type |  | 1..1 | code | indication | contraindication | interaction | undesirable-effect | warning Required Pattern: indication
contraindication |  | 0..0 |  | Specifics for when this is a contraindication
indication |  | 1..1 | BackboneElement | Specifics for when this is an indication
interaction |  | 0..0 |  | Specifics for when this is an interaction
undesirableEffect |  | 0..0 |  | A possible negative outcome from the use of this treatment
warning |  | 0..0 |  | Critical environmental, health or physical risks or hazards. For example 'Do not operate heavy machinery', 'May cause drowsiness'
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
ClinicalUseDefinition | C | 0..* | ClinicalUseDefinition | A single issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure Constraints: cud-1
id | Σ | 0..1 | id | 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: AllLanguages (required): IETF language tag for a human language
Additional Bindings | Purpose
CommonLanguages | Starter
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
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 | Business identifier for this issue
type | Σ | 1..1 | code | indication | contraindication | interaction | undesirable-effect | warning Binding: ClinicalUseDefinitionType (required): Overall defining type of this clinical use definition. Required Pattern: indication
category | Σ | 0..* | CodeableConcept | A categorisation of the issue, primarily for dividing warnings into subject heading areas such as "Pregnancy", "Overdose" Binding: ClinicalUseDefinitionCategory (preferred): A categorisation for a clinical use information item.
subject | Σ | 0..* | Reference(MedicinalProductDefinition | Medication | ActivityDefinition | PlanDefinition | Device | DeviceDefinition | Substance | NutritionProduct | BiologicallyDerivedProduct) | The medication, product, substance, device, procedure etc. for which this is an indication
status | Σ | 0..1 | CodeableConcept | Whether this is a current issue or one that has been retired etc Binding: PublicationStatus (preferred): The lifecycle status of an artifact.
indication | Σ C | 1..1 | BackboneElement | Specifics for when this is an indication
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
diseaseSymptomProcedure | Σ | 0..1 | CodeableReference(ObservationDefinition) | The situation that is being documented as an indicaton for this item Binding: DiseaseSymptomProcedure (example): A symptom, disease or procedure.
diseaseStatus | Σ | 0..1 | CodeableReference(ObservationDefinition) | The status of the disease or symptom for the indication Binding: DiseaseStatus (example): The status of a disease or symptom.
comorbidity | Σ | 0..* | CodeableReference(ObservationDefinition) | A comorbidity or coinfection as part of the indication Binding: DiseaseSymptomProcedure (example): A symptom, disease or procedure.
intendedEffect | Σ | 0..1 | CodeableReference(ObservationDefinition) | The intended effect, aim or strategy to be achieved Binding: ProductIntendedUse (preferred): The overall intended use of a product.
duration[x] | Σ | 0..1 |  | Timing or duration information
durationRange |  |  | Range |
durationString |  |  | string |
undesirableEffect | Σ | 0..* | Reference(ClinicalUseDefinition) | An unwanted side effect or negative outcome of the subject of this resource when being used for this indication
applicability |  | 0..1 | Expression | An expression that returns true or false, indicating whether the indication is applicable or not, after having applied its other elements
otherTherapy | Σ | 0..* | See otherTherapy (ClinicalUseDefinition) | The use of the medicinal product in relation to other therapies described as part of the indication
population | Σ | 0..* | Reference(Group) | The population group to which this applies
library | Σ | 0..* | canonical(Library) | Logic used by the clinical use definition
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
ClinicalUseDefinition.​language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​type | Base | required | Clinical Use Definition Type | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​category | Base | preferred | Clinical Use Definition Category | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​status | Base | preferred | PublicationStatus | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​contraindication.diseaseSymptomProcedure | Base | example | Disease Symptom Procedure | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​contraindication.diseaseStatus | Base | example | Disease Status | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​contraindication.comorbidity | Base | example | Disease Symptom Procedure | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​contraindication.otherTherapy.​relationshipType | Base | preferred | Therapy Relationship Type | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​contraindication.otherTherapy.​treatment | Base | example | Therapy | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​indication.diseaseSymptomProcedure | Base | example | Disease Symptom Procedure | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​indication.diseaseStatus | Base | example | Disease Status | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​indication.comorbidity | Base | example | Disease Symptom Procedure | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​indication.intendedEffect | Base | preferred | Product Intended Use | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​interaction.interactant.​item[x] | Base | example | Interactant | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​interaction.type | Base | example | Interaction Type | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​interaction.effect | Base | example | Interaction Effect | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​interaction.incidence | Base | example | Interaction Incidence | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​interaction.management | Base | example | Interaction Management | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​undesirableEffect.symptomConditionEffect | Base | example | Undesirable Effect Symptom | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​undesirableEffect.classification | Base | example | Undesirable Effect Classification | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​undesirableEffect.frequencyOfOccurrence | Base | example | Undesirabl Effect Frequency | 📍5.0.0 | FHIR Std.
ClinicalUseDefinition.​warning.code | Base | example | Warning Type | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
cud-1 | error | ClinicalUseDefinition | Indication, Contraindication, Interaction, UndesirableEffect and Warning cannot be used in the same instance | `(ClinicalUseDefinition.indication.count() + ClinicalUseDefinition.contraindication.count() + ClinicalUseDefinition.interaction.count() + ClinicalUseDefinition.undesirableEffect.count() + ClinicalUseDefinition.warning.count()) < 2`
dom-2 | error | ClinicalUseDefinition | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | ClinicalUseDefinition | 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | ClinicalUseDefinition | 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 | ClinicalUseDefinition | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | ClinicalUseDefinition | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from ClinicalUseDefinition

Summary

Mandatory: 1 element
Prohibited: 4 elements

Maturity: 2

Other representations of profile: CSV, Excel, Schematron