View: Hide Browser | Browser on the left | Browser on the right | Dictionary
Report:General Info | Attributes | Operations | Relations | Constraints

Parent Package: composition
Class COMPOSITION


LOCATABLE
   |
   +--COMPOSITION

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.

Attributes
SignatureOptionalityMultiplicityConstantDocumentation
 category : DV_CODED_TEXT  --  Indicates what broad category this Composition is belogs to, e.g. “persistent” - of longitudinal validity, “event”, “process” etc. 
 language : CODE_PHRASE  --  Mandatory indicator of the localised language in which this Entry is written. Coded from openEHR Code Set “languages”. 
 territory : CODE_PHRASE  --  Name of territory in which this Composition was written. Coded from openEHR “countries” code set, which is an expression of the ISO 3166 standard. 

Attributes from Associations
SignatureOptionalityMultiplicityDocumentation
 context : EVENT_CONTEXT0..1  -- The clinical session context of this Composition, i.e. the contextual attributes of the clinical session. 
 content : Set<CONTENT_ITEM>0..1 0..* The content of this Composition. 
 composer : PARTY_PROXY --  


Operations
SignatureConstraintsDocumentation
 is_persistent() : Boolean  True if category is a “persistent” type, False otherwise. Useful for finding Compositions in an EHR which are guaranteed to be of interest to most users. 

Constraints
NameExpression
Is_archetype_rootinv: is_archetype_root 
Content_validinv: content <> Void implies not content.is_empty 
Composer_validinv: composer <> Void 
Territory_validinv: territory <> Void and code_set(Code_set_id_countries).has_code(territory) 
No_parentinv: parent = Void 
Is_persistent_validityinv: is_persistent implies context = Void 
Category_validityinv: category <> Void and terminology(Terminology_id_openehr). has_code_for_group_id(Group_id_composition_category, category. defining_code) 
language_validinv: language <> Void and code_set(Code_set_id_languages).has_code(language)