Extensions for Using Data Elements from FHIR R5 in FHIR R4 - Downloaded Version null See the Directory of published versions
| Official URL: http://hl7.org/fhir/5.0/StructureDefinition/profile-CompartmentDefinition | Version: 0.1.0 | |||
| Standards status: Trial-use | Maturity Level: 0 | Computable Name: Profile_R5_CompartmentDefinition_R4 | ||
This cross-version profile allows R5 CompartmentDefinition content to be represented via FHIR R4 CompartmentDefinition resources.
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | CompartmentDefinition(4.0.1) | Compartment Definition for a resource Constraints: cpd-0 |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |
![]() ![]() ![]() |
0..1 | Coding | R5: How to compare versions (new) URL: http://hl7.org/fhir/StructureDefinition/artifact-versionAlgorithm Binding: version-algorithm (??) (extensible) Constraints: ext-1 | |
![]() ![]() ![]() |
0..1 | string | R5: Name for this compartment definition (human friendly) (new) URL: http://hl7.org/fhir/StructureDefinition/artifact-title Constraints: ext-1 | |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1 |
![]() ![]() |
Σ | 1..1 | uri | Canonical identifier for this compartment definition, represented as a URI (globally unique) |
![]() ![]() |
ΣC | 1..1 | string | Name for this compartment definition (computer friendly) |
![]() ![]() |
?!Σ | 1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of an artifact. |
![]() ![]() |
Σ | 1..1 | code | Patient | Encounter | RelatedPerson | Practitioner | Device Binding: CompartmentType (required): Which type a compartment definition describes. |
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |
![]() ![]() ![]() ![]() |
0..1 | code | R5: Patient | Encounter | RelatedPerson | Practitioner | Device | EpisodeOfCare URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-CompartmentDefinition.code Binding: R5CompartmentTypeForR4 (0.1.0) (required): Which type a compartment definition describes. Constraints: ext-1 | |
![]() ![]() |
Σ | 1..1 | boolean | Whether the search syntax is supported |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| CompartmentDefinition.status | Base | required | PublicationStatus | 📍4.0.1 | FHIR Std. |
| CompartmentDefinition.code | Base | required |
CompartmentType
|
📍4.0.1 | tx.fhir.org |
| Id | Grade | Path(s) | Description | Expression |
| cpd-0 | warning | CompartmentDefinition | Name should be usable as an identifier for the module by machine processing applications such as code generation |
name.matches('[A-Z]([A-Za-z0-9_]){0,254}')
|
| dom-2 | error | CompartmentDefinition | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | CompartmentDefinition | 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 | CompartmentDefinition | 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 | CompartmentDefinition | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | CompartmentDefinition | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | CompartmentDefinition.implicitRules, CompartmentDefinition.extension, CompartmentDefinition.extension:versionAlgorithm, CompartmentDefinition.extension:title, CompartmentDefinition.modifierExtension, CompartmentDefinition.url, CompartmentDefinition.name, CompartmentDefinition.status, CompartmentDefinition.code, CompartmentDefinition.code.extension, CompartmentDefinition.code.extension:code, CompartmentDefinition.search | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | CompartmentDefinition.extension, CompartmentDefinition.extension:versionAlgorithm, CompartmentDefinition.extension:title, CompartmentDefinition.modifierExtension, CompartmentDefinition.code.extension, CompartmentDefinition.code.extension:code | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
This structure is derived from CompartmentDefinition
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | CompartmentDefinition(4.0.1) | Compartment Definition for a resource Constraints: cpd-0 | ||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
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 | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..1 | Coding | R5: How to compare versions (new) URL: http://hl7.org/fhir/StructureDefinition/artifact-versionAlgorithm Binding: version-algorithm (??) (extensible) Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..1 | string | R5: Name for this compartment definition (human friendly) (new) URL: http://hl7.org/fhir/StructureDefinition/artifact-title Constraints: ext-1 | |||||
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1 | ||||
![]() ![]() |
Σ | 1..1 | uri | Canonical identifier for this compartment definition, represented as a URI (globally unique) | ||||
![]() ![]() |
Σ | 0..1 | string | Business version of the compartment definition | ||||
![]() ![]() |
ΣC | 1..1 | string | Name for this compartment definition (computer friendly) | ||||
![]() ![]() |
?!Σ | 1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of an artifact. | ||||
![]() ![]() |
Σ | 0..1 | boolean | For testing purposes, not real usage | ||||
![]() ![]() |
Σ | 0..1 | dateTime | Date last changed | ||||
![]() ![]() |
Σ | 0..1 | string | Name of the publisher (organization or individual) | ||||
![]() ![]() |
Σ | 0..* | ContactDetail | Contact details for the publisher | ||||
![]() ![]() |
0..1 | markdown | Natural language description of the compartment definition | |||||
![]() ![]() |
Σ | 0..* | UsageContext | The context that the content is intended to support | ||||
![]() ![]() |
0..1 | markdown | Why this compartment definition is defined | |||||
![]() ![]() |
Σ | 1..1 | code | Patient | Encounter | RelatedPerson | Practitioner | Device Binding: CompartmentType (required): Which type a compartment definition describes. | ||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | code | R5: Patient | Encounter | RelatedPerson | Practitioner | Device | EpisodeOfCare URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-CompartmentDefinition.code Binding: R5CompartmentTypeForR4 (0.1.0) (required): Which type a compartment definition describes. Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..1 | string | Primitive value for code | |||||
![]() ![]() |
Σ | 1..1 | boolean | Whether the search syntax is supported | ||||
![]() ![]() |
Σ | 0..* | BackboneElement | How a resource is related to the compartment | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | uri | R5: Search Param for interpreting $everything.start (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-CompartmentDefinition.resource.startParam Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | uri | R5: Search Param for interpreting $everything.end (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-CompartmentDefinition.resource.endParam Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() |
Σ | 1..1 | code | Name of resource type Binding: ResourceType (required): One of the resource types defined as part of this version of FHIR. | ||||
![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: code additional codes URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-CompartmentDefinition.resource.code Binding: R5ResourceTypesForR4 (0.1.0) (required): One of the resource types defined as part of this version of FHIR. Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Primitive value for code | |||||
![]() ![]() ![]() |
Σ | 0..* | string | Search Parameter Name, or chained parameters | ||||
![]() ![]() ![]() |
0..1 | string | Additional documentation about the resource and compartment | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| CompartmentDefinition.language | Base | preferred |
Common Languages
|
📍4.0.1 | tx.fhir.org |
| CompartmentDefinition.status | Base | required | PublicationStatus | 📍4.0.1 | FHIR Std. |
| CompartmentDefinition.code | Base | required |
CompartmentType
|
📍4.0.1 | tx.fhir.org |
| CompartmentDefinition.resource.code | Base | required |
ResourceType
|
📍4.0.1 | tx.fhir.org |
| Id | Grade | Path(s) | Description | Expression |
| cpd-0 | warning | CompartmentDefinition | Name should be usable as an identifier for the module by machine processing applications such as code generation |
name.matches('[A-Z]([A-Za-z0-9_]){0,254}')
|
| dom-2 | error | CompartmentDefinition | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | CompartmentDefinition | 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 | CompartmentDefinition | 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 | CompartmentDefinition | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | CompartmentDefinition | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | CompartmentDefinition.meta, CompartmentDefinition.implicitRules, CompartmentDefinition.language, CompartmentDefinition.text, CompartmentDefinition.extension, CompartmentDefinition.extension:versionAlgorithm, CompartmentDefinition.extension:title, CompartmentDefinition.modifierExtension, CompartmentDefinition.url, CompartmentDefinition.version, CompartmentDefinition.name, CompartmentDefinition.status, CompartmentDefinition.experimental, CompartmentDefinition.date, CompartmentDefinition.publisher, CompartmentDefinition.contact, CompartmentDefinition.description, CompartmentDefinition.useContext, CompartmentDefinition.purpose, CompartmentDefinition.code, CompartmentDefinition.code.extension, CompartmentDefinition.code.extension:code, CompartmentDefinition.search, CompartmentDefinition.resource, CompartmentDefinition.resource.extension, CompartmentDefinition.resource.extension:startParam, CompartmentDefinition.resource.extension:endParam, CompartmentDefinition.resource.modifierExtension, CompartmentDefinition.resource.code, CompartmentDefinition.resource.code.extension, CompartmentDefinition.resource.code.extension:code, CompartmentDefinition.resource.param, CompartmentDefinition.resource.documentation | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | CompartmentDefinition.extension, CompartmentDefinition.extension:versionAlgorithm, CompartmentDefinition.extension:title, CompartmentDefinition.modifierExtension, CompartmentDefinition.code.extension, CompartmentDefinition.code.extension:code, CompartmentDefinition.resource.extension, CompartmentDefinition.resource.extension:startParam, CompartmentDefinition.resource.extension:endParam, CompartmentDefinition.resource.modifierExtension, CompartmentDefinition.resource.code.extension, CompartmentDefinition.resource.code.extension:code | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
This structure is derived from CompartmentDefinition
Summary
Extensions
This structure refers to these extensions:
Maturity: 0
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | CompartmentDefinition(4.0.1) | Compartment Definition for a resource Constraints: cpd-0 |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |
![]() ![]() ![]() |
0..1 | Coding | R5: How to compare versions (new) URL: http://hl7.org/fhir/StructureDefinition/artifact-versionAlgorithm Binding: version-algorithm (??) (extensible) Constraints: ext-1 | |
![]() ![]() ![]() |
0..1 | string | R5: Name for this compartment definition (human friendly) (new) URL: http://hl7.org/fhir/StructureDefinition/artifact-title Constraints: ext-1 | |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1 |
![]() ![]() |
Σ | 1..1 | uri | Canonical identifier for this compartment definition, represented as a URI (globally unique) |
![]() ![]() |
ΣC | 1..1 | string | Name for this compartment definition (computer friendly) |
![]() ![]() |
?!Σ | 1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of an artifact. |
![]() ![]() |
Σ | 1..1 | code | Patient | Encounter | RelatedPerson | Practitioner | Device Binding: CompartmentType (required): Which type a compartment definition describes. |
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |
![]() ![]() ![]() ![]() |
0..1 | code | R5: Patient | Encounter | RelatedPerson | Practitioner | Device | EpisodeOfCare URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-CompartmentDefinition.code Binding: R5CompartmentTypeForR4 (0.1.0) (required): Which type a compartment definition describes. Constraints: ext-1 | |
![]() ![]() |
Σ | 1..1 | boolean | Whether the search syntax is supported |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| CompartmentDefinition.status | Base | required | PublicationStatus | 📍4.0.1 | FHIR Std. |
| CompartmentDefinition.code | Base | required |
CompartmentType
|
📍4.0.1 | tx.fhir.org |
| Id | Grade | Path(s) | Description | Expression |
| cpd-0 | warning | CompartmentDefinition | Name should be usable as an identifier for the module by machine processing applications such as code generation |
name.matches('[A-Z]([A-Za-z0-9_]){0,254}')
|
| dom-2 | error | CompartmentDefinition | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | CompartmentDefinition | 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 | CompartmentDefinition | 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 | CompartmentDefinition | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | CompartmentDefinition | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | CompartmentDefinition.implicitRules, CompartmentDefinition.extension, CompartmentDefinition.extension:versionAlgorithm, CompartmentDefinition.extension:title, CompartmentDefinition.modifierExtension, CompartmentDefinition.url, CompartmentDefinition.name, CompartmentDefinition.status, CompartmentDefinition.code, CompartmentDefinition.code.extension, CompartmentDefinition.code.extension:code, CompartmentDefinition.search | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | CompartmentDefinition.extension, CompartmentDefinition.extension:versionAlgorithm, CompartmentDefinition.extension:title, CompartmentDefinition.modifierExtension, CompartmentDefinition.code.extension, CompartmentDefinition.code.extension:code | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Differential View
This structure is derived from CompartmentDefinition
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | CompartmentDefinition(4.0.1) | Compartment Definition for a resource Constraints: cpd-0 | ||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
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 | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..1 | Coding | R5: How to compare versions (new) URL: http://hl7.org/fhir/StructureDefinition/artifact-versionAlgorithm Binding: version-algorithm (??) (extensible) Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..1 | string | R5: Name for this compartment definition (human friendly) (new) URL: http://hl7.org/fhir/StructureDefinition/artifact-title Constraints: ext-1 | |||||
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1 | ||||
![]() ![]() |
Σ | 1..1 | uri | Canonical identifier for this compartment definition, represented as a URI (globally unique) | ||||
![]() ![]() |
Σ | 0..1 | string | Business version of the compartment definition | ||||
![]() ![]() |
ΣC | 1..1 | string | Name for this compartment definition (computer friendly) | ||||
![]() ![]() |
?!Σ | 1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of an artifact. | ||||
![]() ![]() |
Σ | 0..1 | boolean | For testing purposes, not real usage | ||||
![]() ![]() |
Σ | 0..1 | dateTime | Date last changed | ||||
![]() ![]() |
Σ | 0..1 | string | Name of the publisher (organization or individual) | ||||
![]() ![]() |
Σ | 0..* | ContactDetail | Contact details for the publisher | ||||
![]() ![]() |
0..1 | markdown | Natural language description of the compartment definition | |||||
![]() ![]() |
Σ | 0..* | UsageContext | The context that the content is intended to support | ||||
![]() ![]() |
0..1 | markdown | Why this compartment definition is defined | |||||
![]() ![]() |
Σ | 1..1 | code | Patient | Encounter | RelatedPerson | Practitioner | Device Binding: CompartmentType (required): Which type a compartment definition describes. | ||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | code | R5: Patient | Encounter | RelatedPerson | Practitioner | Device | EpisodeOfCare URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-CompartmentDefinition.code Binding: R5CompartmentTypeForR4 (0.1.0) (required): Which type a compartment definition describes. Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..1 | string | Primitive value for code | |||||
![]() ![]() |
Σ | 1..1 | boolean | Whether the search syntax is supported | ||||
![]() ![]() |
Σ | 0..* | BackboneElement | How a resource is related to the compartment | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | uri | R5: Search Param for interpreting $everything.start (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-CompartmentDefinition.resource.startParam Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | uri | R5: Search Param for interpreting $everything.end (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-CompartmentDefinition.resource.endParam Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() |
Σ | 1..1 | code | Name of resource type Binding: ResourceType (required): One of the resource types defined as part of this version of FHIR. | ||||
![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: code additional codes URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-CompartmentDefinition.resource.code Binding: R5ResourceTypesForR4 (0.1.0) (required): One of the resource types defined as part of this version of FHIR. Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Primitive value for code | |||||
![]() ![]() ![]() |
Σ | 0..* | string | Search Parameter Name, or chained parameters | ||||
![]() ![]() ![]() |
0..1 | string | Additional documentation about the resource and compartment | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| CompartmentDefinition.language | Base | preferred |
Common Languages
|
📍4.0.1 | tx.fhir.org |
| CompartmentDefinition.status | Base | required | PublicationStatus | 📍4.0.1 | FHIR Std. |
| CompartmentDefinition.code | Base | required |
CompartmentType
|
📍4.0.1 | tx.fhir.org |
| CompartmentDefinition.resource.code | Base | required |
ResourceType
|
📍4.0.1 | tx.fhir.org |
| Id | Grade | Path(s) | Description | Expression |
| cpd-0 | warning | CompartmentDefinition | Name should be usable as an identifier for the module by machine processing applications such as code generation |
name.matches('[A-Z]([A-Za-z0-9_]){0,254}')
|
| dom-2 | error | CompartmentDefinition | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | CompartmentDefinition | 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 | CompartmentDefinition | 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 | CompartmentDefinition | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | CompartmentDefinition | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | CompartmentDefinition.meta, CompartmentDefinition.implicitRules, CompartmentDefinition.language, CompartmentDefinition.text, CompartmentDefinition.extension, CompartmentDefinition.extension:versionAlgorithm, CompartmentDefinition.extension:title, CompartmentDefinition.modifierExtension, CompartmentDefinition.url, CompartmentDefinition.version, CompartmentDefinition.name, CompartmentDefinition.status, CompartmentDefinition.experimental, CompartmentDefinition.date, CompartmentDefinition.publisher, CompartmentDefinition.contact, CompartmentDefinition.description, CompartmentDefinition.useContext, CompartmentDefinition.purpose, CompartmentDefinition.code, CompartmentDefinition.code.extension, CompartmentDefinition.code.extension:code, CompartmentDefinition.search, CompartmentDefinition.resource, CompartmentDefinition.resource.extension, CompartmentDefinition.resource.extension:startParam, CompartmentDefinition.resource.extension:endParam, CompartmentDefinition.resource.modifierExtension, CompartmentDefinition.resource.code, CompartmentDefinition.resource.code.extension, CompartmentDefinition.resource.code.extension:code, CompartmentDefinition.resource.param, CompartmentDefinition.resource.documentation | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | CompartmentDefinition.extension, CompartmentDefinition.extension:versionAlgorithm, CompartmentDefinition.extension:title, CompartmentDefinition.modifierExtension, CompartmentDefinition.code.extension, CompartmentDefinition.code.extension:code, CompartmentDefinition.resource.extension, CompartmentDefinition.resource.extension:startParam, CompartmentDefinition.resource.extension:endParam, CompartmentDefinition.resource.modifierExtension, CompartmentDefinition.resource.code.extension, CompartmentDefinition.resource.code.extension:code | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
This structure is derived from CompartmentDefinition
Summary
Extensions
This structure refers to these extensions:
Maturity: 0
Other representations of profile: CSV, Excel, Schematron