FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packageopenehr.base
Resource TypeStructureDefinition
IdStructureDefinition-COMPOSITION.json
FHIR VersionR5
Sourcehttp://fhir.org/guides/openehr/base/0.1.0-snapshot/StructureDefinition-COMPOSITION.html
URLhttp://openehr.org/fhir/StructureDefinition/COMPOSITION
Version0.1.0-snapshot
Statusactive
Date2025-09-06T15:35:39+10:00
NameCOMPOSITION
TitleCOMPOSITION
Realmuv
Authorityhl7
DescriptionContent of one version in a `VERSIONED_COMPOSITION`. A Composition is considered the unit of modification of the record, the unit of transmission in record Extracts, and the unit of attestation by authorising clinicians. In this latter sense, it may be considered equivalent to a signed document. NOTE: It is strongly recommended that the inherited attribute `_uid_` be populated in Compositions, using the UID copied from the `_object_id()_` of the `_uid_` field of the enclosing `VERSION` object. + For example, the `ORIGINAL_VERSION.uid` `87284370-2D4B-4e3d-A3F3-F303D2F4F34B::uk.nhs.ehr1::2` would be copied to the `_uid_` field of the Composition.
Typehttp://openehr.org/fhir/StructureDefinition/COMPOSITION
Kindlogical

Resources that use this resource

No resources found


Resources that this resource uses

StructureDefinition
openehr.base#0.1.0-snapshotCODE-PHRASECODE_PHRASE
openehr.base#0.1.0-snapshotCONTENT-ITEMCONTENT_ITEM
openehr.base#0.1.0-snapshotDV-CODED-TEXTDV_CODED_TEXT
openehr.base#0.1.0-snapshotEVENT-CONTEXTEVENT_CONTEXT
openehr.base#0.1.0-snapshotLOCATABLELOCATABLE
openehr.base#0.1.0-snapshotPARTY-PROXYPARTY_PROXY

Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureDefinition COMPOSITION

NameFlagsCard.TypeDescription & Constraintsdoco
.. COMPOSITION C0..*LOCATABLEContent of one version in a `VERSIONED_COMPOSITION`.

Elements defined in Ancestors:name, archetype_node_id, uid, links, archetype_details, feeder_audit
Binding: https://specifications.openehr.org/fhir/valueset-languages (required)
Constraints: Setting_valid, unnamed2, unnamed3, Category_validity, Is_persistent_validity, Content_valid, Is_archetype_root
... language 1..1CODE_PHRASEMandatory indicator of the localised language in which this Composition is written.
... territory 1..1CODE_PHRASEName of territory in which this Composition was written.
... category 1..1DV_CODED_TEXTTemporal category of this Composition, i.
... context 0..1EVENT_CONTEXTThe clinical session context of this Composition, i.
... composer 1..1PARTY_PROXYThe person primarily responsible for the content of the Composition (but not necessarily its committal into the EHR system).
... content 0..*CONTENT_ITEMThe content of this Composition.

doco Documentation for this format

Source1

{
  "resourceType": "StructureDefinition",
  "id": "COMPOSITION",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "contained": [
    {
      "resourceType": "OperationDefinition",
      "id": "is_persistent",
      "name": "is_persistent",
      "title": "is_persistent",
      "status": "active",
      "kind": "operation",
      "description": "True if category is `431|persistent|`, False otherwise. Useful for finding Compositions in an EHR which are guaranteed to be of interest to most users. ",
      "code": "is_persistent",
      "system": false,
      "instance": true,
      "parameter": [
        {
          "name": "return",
          "use": "out",
          "min": 1,
          "max": "1",
          "type": "boolean"
        }
      ]
    }
  ],
  "extension": [
    {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/web-source",
      "valueUrl": "https://specifications.openehr.org/releases/RM/development/ehr.html#_composition_class"
    },
    {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/type-operation",
      "valueCanonical": "#is_persistent"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "fhir"
    },
    {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/view-hint",
      "valueCode": "element-view-replace-cardinality"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 3,
      "_valueInteger": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://openehr.org/fhir/ImplementationGuide/openehr.base"
          }
        ]
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "informative",
      "_valueCode": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://openehr.org/fhir/ImplementationGuide/openehr.base"
          }
        ]
      }
    }
  ],
  "url": "http://openehr.org/fhir/StructureDefinition/COMPOSITION",
  "version": "0.1.0-snapshot",
  "name": "COMPOSITION",
  "title": "COMPOSITION",
  "status": "active",
  "experimental": false,
  "date": "2025-09-06T15:35:39+10:00",
  "publisher": "openEHR + HL7",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.openehr.org"
        }
      ]
    }
  ],
  "description": "Content of one version in a `VERSIONED_COMPOSITION`. A Composition is considered the unit of modification of the record, the unit of transmission in record Extracts, and the unit of attestation by authorising clinicians. In this latter sense, it may be considered equivalent to a signed document.\n\nNOTE: It is strongly recommended that the inherited attribute `_uid_` be populated in Compositions, using the UID copied from the `_object_id()_` of the `_uid_` field of the enclosing `VERSION` object. +\nFor example, the `ORIGINAL_VERSION.uid` `87284370-2D4B-4e3d-A3F3-F303D2F4F34B::uk.nhs.ehr1::2` would be copied to the `_uid_` field of the Composition.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001"
        }
      ]
    }
  ],
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "http://openehr.org/fhir/StructureDefinition/COMPOSITION",
  "baseDefinition": "http://openehr.org/fhir/StructureDefinition/LOCATABLE",
  "derivation": "specialization",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "0.1.0-snapshot"
      }
    ],
    "element": [
      {
        "id": "COMPOSITION",
        "path": "COMPOSITION",
        "short": "Content of one version in a `VERSIONED_COMPOSITION`.",
        "definition": "Content of one version in a `VERSIONED_COMPOSITION`. A Composition is considered the unit of modification of the record, the unit of transmission in record Extracts, and the unit of attestation by authorising clinicians. In this latter sense, it may be considered equivalent to a signed document.\n\nNOTE: It is strongly recommended that the inherited attribute `_uid_` be populated in Compositions, using the UID copied from the `_object_id()_` of the `_uid_` field of the enclosing `VERSION` object. +\nFor example, the `ORIGINAL_VERSION.uid` `87284370-2D4B-4e3d-A3F3-F303D2F4F34B::uk.nhs.ehr1::2` would be copied to the `_uid_` field of the Composition.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Base",
          "min": 0,
          "max": "*"
        },
        "constraint": [
          {
            "key": "Links_valid",
            "severity": "error",
            "human": "Links valid must be present",
            "expression": "links.exists() implies links.empty().not()",
            "source": "http://openehr.org/fhir/StructureDefinition/LOCATABLE"
          },
          {
            "key": "Archetyped_valid",
            "severity": "error",
            "human": "Archetyped valid must satisfy exclusive conditions",
            "expression": "is_archetype_root() xor archetype_details .empty()",
            "source": "http://openehr.org/fhir/StructureDefinition/LOCATABLE"
          },
          {
            "key": "Archetype_node_id_valid",
            "severity": "error",
            "human": "Archetype node id valid must not be empty",
            "expression": "archetype_node_id.empty().not()",
            "source": "http://openehr.org/fhir/StructureDefinition/LOCATABLE"
          },
          {
            "key": "Setting_valid",
            "severity": "error",
            "human": "Setting valid",
            "expression": "null # TODO: manual translation needed"
          },
          {
            "key": "unnamed2",
            "severity": "error",
            "human": "unnamed2",
            "expression": "null # TODO: manual translation needed"
          },
          {
            "key": "unnamed3",
            "severity": "error",
            "human": "unnamed3",
            "expression": "null # TODO: manual translation needed"
          },
          {
            "key": "Category_validity",
            "severity": "error",
            "human": "Category validity",
            "expression": "null # TODO: manual translation needed"
          },
          {
            "key": "Is_persistent_validity",
            "severity": "error",
            "human": "Is persistent validity must satisfy conditional constraints",
            "expression": "is_persistent() implies context .empty()"
          },
          {
            "key": "Content_valid",
            "severity": "error",
            "human": "Content valid must be present",
            "expression": "content.exists() implies content.empty().not()"
          },
          {
            "key": "Is_archetype_root",
            "severity": "error",
            "human": "Is archetype root",
            "expression": "is_archetype_root()"
          }
        ],
        "isModifier": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "COMPOSITION.name",
        "path": "COMPOSITION.name",
        "short": "Runtime name of this fragment, used to build runtime paths.",
        "definition": "Runtime name of this fragment, used to build runtime paths. This is the term provided via a clinical application or batch process to name this EHR construct: its retention in the EHR faithfully preserves the original label by which this entry was known to end users.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "LOCATABLE.name",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "http://openehr.org/fhir/StructureDefinition/DV-TEXT"
          }
        ],
        "isModifier": false
      },
      {
        "id": "COMPOSITION.archetype-node-id",
        "path": "COMPOSITION.archetype_node_id",
        "short": "Design-time archetype identifier of this node taken from its generating archetype; used to build archetype paths.",
        "definition": "Design-time archetype identifier of this node taken from its generating archetype; used to build archetype paths. Always in the form of an at-code, e.g.  `at0005`. This value enables a 'standardised' name for this node to be generated, by referring to the generating archetype local terminology. \n\nAt an archetype root point, the value of this attribute is always the stringified form of the `_archetype_id_` found in the `_archetype_details_` object.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "LOCATABLE.archetype_node_id",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "isModifier": false
      },
      {
        "id": "COMPOSITION.uid",
        "path": "COMPOSITION.uid",
        "short": "Optional globally unique object identifier for root points of archetyped structures.",
        "definition": "Optional globally unique object identifier for root points of archetyped structures.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "LOCATABLE.uid",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://openehr.org/fhir/StructureDefinition/UID-BASED-ID"
          }
        ],
        "isModifier": false
      },
      {
        "id": "COMPOSITION.links",
        "path": "COMPOSITION.links",
        "short": "Links to other archetyped structures (data whose root object inherits from `ARCHETYPED`, such as `ENTRY`, `SECTION` and so on).",
        "definition": "Links to other archetyped structures (data whose root object inherits from `ARCHETYPED`, such as `ENTRY`, `SECTION` and so on). Links may be to structures in other compositions.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "LOCATABLE.links",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://openehr.org/fhir/StructureDefinition/LINK"
          }
        ],
        "isModifier": false
      },
      {
        "id": "COMPOSITION.archetype-details",
        "path": "COMPOSITION.archetype_details",
        "short": "Details of archetyping used on this node.",
        "definition": "Details of archetyping used on this node.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "LOCATABLE.archetype_details",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://openehr.org/fhir/StructureDefinition/ARCHETYPED"
          }
        ],
        "isModifier": false
      },
      {
        "id": "COMPOSITION.feeder-audit",
        "path": "COMPOSITION.feeder_audit",
        "short": "Audit trail from non-openEHR system of original commit of information forming the content of this node, or from a conversion gateway which has synthesised this node.",
        "definition": "Audit trail from non-openEHR system of original commit of information forming the content of this node, or from a conversion gateway which has synthesised this node.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "LOCATABLE.feeder_audit",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://openehr.org/fhir/StructureDefinition/FEEDER-AUDIT"
          }
        ],
        "isModifier": false
      },
      {
        "id": "COMPOSITION.language",
        "path": "COMPOSITION.language",
        "short": "Mandatory indicator of the localised language in which this Composition is written.",
        "definition": "Mandatory indicator of the localised language in which this Composition is written. Coded from openEHR Code Set  `languages`. The language of an Entry if different from the Composition is indicated in `ENTRY._language_`.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "COMPOSITION.language",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "http://openehr.org/fhir/StructureDefinition/CODE-PHRASE"
          }
        ],
        "isModifier": false
      },
      {
        "id": "COMPOSITION.territory",
        "path": "COMPOSITION.territory",
        "short": "Name of territory in which this Composition was written.",
        "definition": "Name of territory in which this Composition was written. Coded from openEHR  countries  code set, which is an expression of the ISO 3166 standard.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "COMPOSITION.territory",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "http://openehr.org/fhir/StructureDefinition/CODE-PHRASE"
          }
        ],
        "isModifier": false
      },
      {
        "id": "COMPOSITION.category",
        "path": "COMPOSITION.category",
        "short": "Temporal category of this Composition, i.",
        "definition": "Temporal category of this Composition, i.e. \n\n* `431|persistent|` - of potential life-time validity;\n* `451|episodic|` - valid over the life of a care episode;\n* `433|event|` - valid at the time of recording (long-term validity requires subsequent clinical assessment).\n\nor any other code defined in the openEHR terminology group 'category'.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "COMPOSITION.category",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "http://openehr.org/fhir/StructureDefinition/DV-CODED-TEXT"
          }
        ],
        "isModifier": false
      },
      {
        "id": "COMPOSITION.context",
        "path": "COMPOSITION.context",
        "short": "The clinical session context of this Composition, i.",
        "definition": "The clinical session context of this Composition, i.e. the contextual attributes of the clinical session.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "COMPOSITION.context",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://openehr.org/fhir/StructureDefinition/EVENT-CONTEXT"
          }
        ],
        "isModifier": false
      },
      {
        "id": "COMPOSITION.composer",
        "path": "COMPOSITION.composer",
        "short": "The person primarily responsible for the content of the Composition (but not necessarily its committal into the EHR system).",
        "definition": "The person primarily responsible for the content of the Composition (but not necessarily its committal into the EHR system). This is the identifier which should appear on the screen. It may or may not be the person who entered the data. When it is the patient, the special self  instance of `PARTY_PROXY` will be used.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "COMPOSITION.composer",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "http://openehr.org/fhir/StructureDefinition/PARTY-PROXY"
          }
        ],
        "isModifier": false
      },
      {
        "id": "COMPOSITION.content",
        "path": "COMPOSITION.content",
        "short": "The content of this Composition.",
        "definition": "The content of this Composition.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "COMPOSITION.content",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://openehr.org/fhir/StructureDefinition/CONTENT-ITEM"
          }
        ],
        "isModifier": false
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "COMPOSITION",
        "path": "COMPOSITION",
        "short": "Content of one version in a `VERSIONED_COMPOSITION`.",
        "definition": "Content of one version in a `VERSIONED_COMPOSITION`. A Composition is considered the unit of modification of the record, the unit of transmission in record Extracts, and the unit of attestation by authorising clinicians. In this latter sense, it may be considered equivalent to a signed document.\n\nNOTE: It is strongly recommended that the inherited attribute `_uid_` be populated in Compositions, using the UID copied from the `_object_id()_` of the `_uid_` field of the enclosing `VERSION` object. +\nFor example, the `ORIGINAL_VERSION.uid` `87284370-2D4B-4e3d-A3F3-F303D2F4F34B::uk.nhs.ehr1::2` would be copied to the `_uid_` field of the Composition.",
        "min": 0,
        "max": "*",
        "constraint": [
          {
            "key": "Setting_valid",
            "severity": "error",
            "human": "Setting valid",
            "expression": "null # TODO: manual translation needed"
          },
          {
            "key": "unnamed2",
            "severity": "error",
            "human": "unnamed2",
            "expression": "null # TODO: manual translation needed"
          },
          {
            "key": "unnamed3",
            "severity": "error",
            "human": "unnamed3",
            "expression": "null # TODO: manual translation needed"
          },
          {
            "key": "Category_validity",
            "severity": "error",
            "human": "Category validity",
            "expression": "null # TODO: manual translation needed"
          },
          {
            "key": "Is_persistent_validity",
            "severity": "error",
            "human": "Is persistent validity must satisfy conditional constraints",
            "expression": "is_persistent() implies context .empty()"
          },
          {
            "key": "Content_valid",
            "severity": "error",
            "human": "Content valid must be present",
            "expression": "content.exists() implies content.empty().not()"
          },
          {
            "key": "Is_archetype_root",
            "severity": "error",
            "human": "Is archetype root",
            "expression": "is_archetype_root()"
          }
        ],
        "isModifier": false,
        "binding": {
          "strength": "required",
          "valueSet": "https://specifications.openehr.org/fhir/valueset-languages"
        }
      },
      {
        "id": "COMPOSITION.language",
        "path": "COMPOSITION.language",
        "short": "Mandatory indicator of the localised language in which this Composition is written.",
        "definition": "Mandatory indicator of the localised language in which this Composition is written. Coded from openEHR Code Set  `languages`. The language of an Entry if different from the Composition is indicated in `ENTRY._language_`. ",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "http://openehr.org/fhir/StructureDefinition/CODE-PHRASE"
          }
        ],
        "isModifier": false
      },
      {
        "id": "COMPOSITION.territory",
        "path": "COMPOSITION.territory",
        "short": "Name of territory in which this Composition was written.",
        "definition": "Name of territory in which this Composition was written. Coded from openEHR  countries  code set, which is an expression of the ISO 3166 standard.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "http://openehr.org/fhir/StructureDefinition/CODE-PHRASE"
          }
        ],
        "isModifier": false
      },
      {
        "id": "COMPOSITION.category",
        "path": "COMPOSITION.category",
        "short": "Temporal category of this Composition, i.",
        "definition": "Temporal category of this Composition, i.e. \n\n* `431|persistent|` - of potential life-time validity;\n* `451|episodic|` - valid over the life of a care episode;\n* `433|event|` - valid at the time of recording (long-term validity requires subsequent clinical assessment).\n\nor any other code defined in the openEHR terminology group 'category'.\n",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "http://openehr.org/fhir/StructureDefinition/DV-CODED-TEXT"
          }
        ],
        "isModifier": false
      },
      {
        "id": "COMPOSITION.context",
        "path": "COMPOSITION.context",
        "short": "The clinical session context of this Composition, i.",
        "definition": "The clinical session context of this Composition, i.e. the contextual attributes of the clinical session. ",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "http://openehr.org/fhir/StructureDefinition/EVENT-CONTEXT"
          }
        ],
        "isModifier": false
      },
      {
        "id": "COMPOSITION.composer",
        "path": "COMPOSITION.composer",
        "short": "The person primarily responsible for the content of the Composition (but not necessarily its committal into the EHR system).",
        "definition": "The person primarily responsible for the content of the Composition (but not necessarily its committal into the EHR system). This is the identifier which should appear on the screen. It may or may not be the person who entered the data. When it is the patient, the special self  instance of `PARTY_PROXY` will be used.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "http://openehr.org/fhir/StructureDefinition/PARTY-PROXY"
          }
        ],
        "isModifier": false
      },
      {
        "id": "COMPOSITION.content",
        "path": "COMPOSITION.content",
        "short": "The content of this Composition.",
        "definition": "The content of this Composition. ",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "http://openehr.org/fhir/StructureDefinition/CONTENT-ITEM"
          }
        ],
        "isModifier": false
      }
    ]
  }
}