Skip to main content

CompartmentDefinition

ResourceFoundation · ConformanceTrial useMaturity 1

A compartment definition that defines how resources are accessed on a server.

Tested supportFull test results →
Backends
PostgreSQLElasticsearch
Interactions
CreateReadUpdatePatchDelete
Search
12 of 14 parameters tested

Structure​

ElementCard.TypeDescription
urlRequiredΣ
1..1uriCanonical identifier for this compartment definition, represented as a URI (globally unique)
versionΣ
0..1stringBusiness version of the compartment definition
nameRequiredΣ
1..1stringName for this compartment definition (computer friendly)
statusRequired?!Σ
1..1codedraft | active | retired | unknownBinding (required): publication-status
experimentalΣ
0..1booleanFor testing purposes, not real usage
dateΣ
0..1dateTimeDate last changed
publisherΣ
0..1stringName of the publisher (organization or individual)
contactΣ
0..*ContactDetailContact details for the publisher
description
0..1markdownNatural language description of the compartment definition
useContextΣ
0..*UsageContextThe context that the content is intended to support
purpose
0..1markdownWhy this compartment definition is defined
codeRequiredΣ
1..1codePatient | Encounter | RelatedPerson | Practitioner | DeviceBinding (required): compartment-type
searchRequiredΣ
1..1booleanWhether the search syntax is supported
resourceΣ
0..*BackboneElementHow a resource is related to the compartment
codeRequiredΣ
1..1codeName of resource typeBinding (required): resource-types
paramΣ
0..*stringSearch Parameter Name, or chained parameters
documentation
0..1stringAdditional documentation about the resource and compartment

Σ in _summary results · ?! modifier element · 1.. required · inherited elements in grey

Search parameters​

Query with GET [base]/CompartmentDefinition?[parameter]=[value]. Type decides which modifiers and prefixes apply, see search features.

ParameterTypeDescriptionPGES
codetoken

Patient | Encounter | RelatedPerson | Practitioner | Device

CompartmentDefinition.code
contexttoken

A use context assigned to the compartment definition

(CompartmentDefinition.useContext.value.ofType(CodeableConcept))
context-quantityquantity

A quantity- or range-valued use context assigned to the compartment definition

(CompartmentDefinition.useContext.value.ofType(Quantity)) | (CompartmentDefinition.useContext.value.ofType(Range))
context-typetoken

A type of use context assigned to the compartment definition

CompartmentDefinition.useContext.code
context-type-quantitycomposite

A use context type and quantity- or range-based value assigned to the compartment definition

CompartmentDefinition.useContext
context-type-valuecomposite

A use context type and value assigned to the compartment definition

CompartmentDefinition.useContext
datedate

The compartment definition publication date

CompartmentDefinition.date
descriptionstring

The description of the compartment definition

CompartmentDefinition.description
namestring

Computationally friendly name of the compartment definition

CompartmentDefinition.name
publisherstring

Name of the publisher of the compartment definition

CompartmentDefinition.publisher
resourcetoken

Name of resource type

CompartmentDefinition.resource.code
statustoken

The current status of the compartment definition

CompartmentDefinition.status
urluri

The uri that identifies the compartment definition

CompartmentDefinition.url
versiontoken

The business version of the compartment definition

CompartmentDefinition.version

PG: PostgreSQL, ES: Elasticsearch. passes its TestScript checks, fails, not tested yet.

Common parameters on every resource (8)
_haste-health-authorreference

The author of the resource

_idtoken

Logical id of this artifact

_lastUpdateddate

When the resource version last changed

_profileuri

Profiles this resource claims to conform to

_securitytoken

Security Labels applied to this resource

_sourceuri

Identifies where the resource comes from

_tagtoken

Tags applied to this resource

_typetoken

Derived from the R4B Definition