Skip to main content

CompartmentDefinition

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

These interaction paths describe standard FHIR R4 patterns. Availability can depend on the API capabilities enabled for your Ovok project.

InteractionMethodPath
ReadGET/fhir/R4/CompartmentDefinition/[id]
VreadGET/fhir/R4/CompartmentDefinition/[id]/_history/[vid]
UpdatePUT/fhir/R4/CompartmentDefinition/[id]
PatchPATCH/fhir/R4/CompartmentDefinition/[id]
DeleteDELETE/fhir/R4/CompartmentDefinition/[id]
CreatePOST/fhir/R4/CompartmentDefinition
SearchGET/fhir/R4/CompartmentDefinition
HistoryGET/fhir/R4/CompartmentDefinition/[id]/_history

Top-level elements​

ElementTypeCardinalityDescription
idstring0..1Logical id of this artifact
metaMeta0..1Metadata about the resource
implicitRulesuri0..1A set of rules under which this content was created
languagecode0..1Language of the resource content
textNarrative0..1Text summary of the resource, for human interpretation
containedResource0..*Contained, inline Resources
extensionExtension0..*Additional content defined by implementations
modifierExtensionExtension0..*Extensions that cannot be ignored
urluri1..1Canonical identifier for this compartment definition, represented as a URI (globally unique)
versionstring0..1Business version of the compartment definition
namestring1..1Name for this compartment definition (computer friendly)
statuscode1..1draft | active | retired | unknown
experimentalboolean0..1For testing purposes, not real usage
datedateTime0..1Date last changed
publisherstring0..1Name of the publisher (organization or individual)
contactContactDetail0..*Contact details for the publisher
descriptionmarkdown0..1Natural language description of the compartment definition
useContextUsageContext0..*The context that the content is intended to support
purposemarkdown0..1Why this compartment definition is defined
codecode1..1Patient | Encounter | RelatedPerson | Practitioner | Device
searchboolean1..1Whether the search syntax is supported
resourceBackboneElement0..*How a resource is related to the compartment

Resource-specific search parameters​

ParameterTypeDescription
codetokenPatient | Encounter | RelatedPerson | Practitioner | Device
contexttokenMultiple Resources: CapabilityStatement: A use context assigned to the capability statement ; CodeSystem: A use context assigned to the code system ; CompartmentDefinition: A use context assigned to the compartment definition ; ConceptMap: A use context assigned to the concept map ; GraphDefinition: A use context assigned to the graph definition ; ImplementationGuide: A use context assigned to the implementation guide ; MessageDefinition: A use context assigned to the message definition ; NamingSystem: A use context assigned to the naming system ; OperationDefinition: A use context assigned to the operation definition ; SearchParameter: A use context assigned to the search parameter ; StructureDefinition: A use context assigned to the structure definition ; StructureMap: A use context assigned to the structure map ; TerminologyCapabilities: A use context assigned to the terminology capabilities ; ValueSet: A use context assigned to the value set
context-quantityquantityMultiple Resources: CapabilityStatement: A quantity- or range-valued use context assigned to the capability statement ; CodeSystem: A quantity- or range-valued use context assigned to the code system ; CompartmentDefinition: A quantity- or range-valued use context assigned to the compartment definition ; ConceptMap: A quantity- or range-valued use context assigned to the concept map ; GraphDefinition: A quantity- or range-valued use context assigned to the graph definition ; ImplementationGuide: A quantity- or range-valued use context assigned to the implementation guide ; MessageDefinition: A quantity- or range-valued use context assigned to the message definition ; NamingSystem: A quantity- or range-valued use context assigned to the naming system ; OperationDefinition: A quantity- or range-valued use context assigned to the operation definition ; SearchParameter: A quantity- or range-valued use context assigned to the search parameter ; StructureDefinition: A quantity- or range-valued use context assigned to the structure definition ; StructureMap: A quantity- or range-valued use context assigned to the structure map ; TerminologyCapabilities: A quantity- or range-valued use context assigned to the terminology capabilities ; ValueSet: A quantity- or range-valued use context assigned to the value set
context-typetokenMultiple Resources: CapabilityStatement: A type of use context assigned to the capability statement ; CodeSystem: A type of use context assigned to the code system ; CompartmentDefinition: A type of use context assigned to the compartment definition ; ConceptMap: A type of use context assigned to the concept map ; GraphDefinition: A type of use context assigned to the graph definition ; ImplementationGuide: A type of use context assigned to the implementation guide ; MessageDefinition: A type of use context assigned to the message definition ; NamingSystem: A type of use context assigned to the naming system ; OperationDefinition: A type of use context assigned to the operation definition ; SearchParameter: A type of use context assigned to the search parameter ; StructureDefinition: A type of use context assigned to the structure definition ; StructureMap: A type of use context assigned to the structure map ; TerminologyCapabilities: A type of use context assigned to the terminology capabilities ; ValueSet: A type of use context assigned to the value set
context-type-quantitycompositeMultiple Resources: CapabilityStatement: A use context type and quantity- or range-based value assigned to the capability statement ; CodeSystem: A use context type and quantity- or range-based value assigned to the code system ; CompartmentDefinition: A use context type and quantity- or range-based value assigned to the compartment definition ; ConceptMap: A use context type and quantity- or range-based value assigned to the concept map ; GraphDefinition: A use context type and quantity- or range-based value assigned to the graph definition ; ImplementationGuide: A use context type and quantity- or range-based value assigned to the implementation guide ; MessageDefinition: A use context type and quantity- or range-based value assigned to the message definition ; NamingSystem: A use context type and quantity- or range-based value assigned to the naming system ; OperationDefinition: A use context type and quantity- or range-based value assigned to the operation definition ; SearchParameter: A use context type and quantity- or range-based value assigned to the search parameter ; StructureDefinition: A use context type and quantity- or range-based value assigned to the structure definition ; StructureMap: A use context type and quantity- or range-based value assigned to the structure map ; TerminologyCapabilities: A use context type and quantity- or range-based value assigned to the terminology capabilities ; ValueSet: A use context type and quantity- or range-based value assigned to the value set
context-type-valuecompositeMultiple Resources: CapabilityStatement: A use context type and value assigned to the capability statement ; CodeSystem: A use context type and value assigned to the code system ; CompartmentDefinition: A use context type and value assigned to the compartment definition ; ConceptMap: A use context type and value assigned to the concept map ; GraphDefinition: A use context type and value assigned to the graph definition ; ImplementationGuide: A use context type and value assigned to the implementation guide ; MessageDefinition: A use context type and value assigned to the message definition ; NamingSystem: A use context type and value assigned to the naming system ; OperationDefinition: A use context type and value assigned to the operation definition ; SearchParameter: A use context type and value assigned to the search parameter ; StructureDefinition: A use context type and value assigned to the structure definition ; StructureMap: A use context type and value assigned to the structure map ; TerminologyCapabilities: A use context type and value assigned to the terminology capabilities ; ValueSet: A use context type and value assigned to the value set
datedateMultiple Resources: CapabilityStatement: The capability statement publication date ; CodeSystem: The code system publication date ; CompartmentDefinition: The compartment definition publication date ; ConceptMap: The concept map publication date ; GraphDefinition: The graph definition publication date ; ImplementationGuide: The implementation guide publication date ; MessageDefinition: The message definition publication date ; NamingSystem: The naming system publication date ; OperationDefinition: The operation definition publication date ; SearchParameter: The search parameter publication date ; StructureDefinition: The structure definition publication date ; StructureMap: The structure map publication date ; TerminologyCapabilities: The terminology capabilities publication date ; ValueSet: The value set publication date
descriptionstringMultiple Resources: CapabilityStatement: The description of the capability statement ; CodeSystem: The description of the code system ; CompartmentDefinition: The description of the compartment definition ; ConceptMap: The description of the concept map ; GraphDefinition: The description of the graph definition ; ImplementationGuide: The description of the implementation guide ; MessageDefinition: The description of the message definition ; NamingSystem: The description of the naming system ; OperationDefinition: The description of the operation definition ; SearchParameter: The description of the search parameter ; StructureDefinition: The description of the structure definition ; StructureMap: The description of the structure map ; TerminologyCapabilities: The description of the terminology capabilities ; ValueSet: The description of the value set
namestringMultiple Resources: CapabilityStatement: Computationally friendly name of the capability statement ; CodeSystem: Computationally friendly name of the code system ; CompartmentDefinition: Computationally friendly name of the compartment definition ; ConceptMap: Computationally friendly name of the concept map ; GraphDefinition: Computationally friendly name of the graph definition ; ImplementationGuide: Computationally friendly name of the implementation guide ; MessageDefinition: Computationally friendly name of the message definition ; NamingSystem: Computationally friendly name of the naming system ; OperationDefinition: Computationally friendly name of the operation definition ; SearchParameter: Computationally friendly name of the search parameter ; StructureDefinition: Computationally friendly name of the structure definition ; StructureMap: Computationally friendly name of the structure map ; TerminologyCapabilities: Computationally friendly name of the terminology capabilities ; ValueSet: Computationally friendly name of the value set
publisherstringMultiple Resources: CapabilityStatement: Name of the publisher of the capability statement ; CodeSystem: Name of the publisher of the code system ; CompartmentDefinition: Name of the publisher of the compartment definition ; ConceptMap: Name of the publisher of the concept map ; GraphDefinition: Name of the publisher of the graph definition ; ImplementationGuide: Name of the publisher of the implementation guide ; MessageDefinition: Name of the publisher of the message definition ; NamingSystem: Name of the publisher of the naming system ; OperationDefinition: Name of the publisher of the operation definition ; SearchParameter: Name of the publisher of the search parameter ; StructureDefinition: Name of the publisher of the structure definition ; StructureMap: Name of the publisher of the structure map ; TerminologyCapabilities: Name of the publisher of the terminology capabilities ; ValueSet: Name of the publisher of the value set
resourcetokenName of resource type
statustokenMultiple Resources: CapabilityStatement: The current status of the capability statement ; CodeSystem: The current status of the code system ; CompartmentDefinition: The current status of the compartment definition ; ConceptMap: The current status of the concept map ; GraphDefinition: The current status of the graph definition ; ImplementationGuide: The current status of the implementation guide ; MessageDefinition: The current status of the message definition ; NamingSystem: The current status of the naming system ; OperationDefinition: The current status of the operation definition ; SearchParameter: The current status of the search parameter ; StructureDefinition: The current status of the structure definition ; StructureMap: The current status of the structure map ; TerminologyCapabilities: The current status of the terminology capabilities ; ValueSet: The current status of the value set
urluriMultiple Resources: CapabilityStatement: The uri that identifies the capability statement ; CodeSystem: The uri that identifies the code system ; CompartmentDefinition: The uri that identifies the compartment definition ; ConceptMap: The uri that identifies the concept map ; GraphDefinition: The uri that identifies the graph definition ; ImplementationGuide: The uri that identifies the implementation guide ; MessageDefinition: The uri that identifies the message definition ; OperationDefinition: The uri that identifies the operation definition ; SearchParameter: The uri that identifies the search parameter ; StructureDefinition: The uri that identifies the structure definition ; StructureMap: The uri that identifies the structure map ; TerminologyCapabilities: The uri that identifies the terminology capabilities ; ValueSet: The uri that identifies the value set
versiontokenMultiple Resources: CapabilityStatement: The business version of the capability statement ; CodeSystem: The business version of the code system ; CompartmentDefinition: The business version of the compartment definition ; ConceptMap: The business version of the concept map ; GraphDefinition: The business version of the graph definition ; ImplementationGuide: The business version of the implementation guide ; MessageDefinition: The business version of the message definition ; OperationDefinition: The business version of the operation definition ; SearchParameter: The business version of the search parameter ; StructureDefinition: The business version of the structure definition ; StructureMap: The business version of the structure map ; TerminologyCapabilities: The business version of the terminology capabilities ; ValueSet: The business version of the value set

Reference​

Official FHIR R4 spec: CompartmentDefinition.
Maturity: Trial Use 1 (FMM 1).