# Logical Record Architecture for Health and Social Care
## Discharge Summary Release 0.02

Contents
The content of this release is not comprehensive and is not fully validated and must not be used in live system implementations.
# Reference Model Class: COMPONENT_RELATIONSHIP_ELEMENT
The COMPONENT_RELATIONSHIP_ELEMENT class is an ELEMENT whose coded meaning is constrained to represent an asserted relationship between two other RECORD_COMPONENTs. The association role links collection is therefore constrained to two member LINKs, one of which references the subject RECORD_COMPONENT and the other the object. Because the COMPONENT_RELATIONSHIP_ELEMENT is a RECORD_COMPONENT in its own right, it can be asserted, revised or maintained separately from both the related RECORD_COMPONENTs. ## Specializes ## ELEMENT ## Attributes
Name | Data type | Occurs | Description
--- | --- | --- | ---
value | ANY | 1..1 | An ELEMENT has a single DATA_VALUE containing the value, unless this is indicated as absent by a null_flavour attribute.
## Constraints
Type | Name | Specification
--- | --- | ---
coded meaning from LRA vocab | LRA Invariant | inv: meaning.isOclKindOf(CD.CV) and meaning.code.ocliIsTypeOf(LraComponentRelationshipElementValue)
meaning is defined | LRA Invariant | --Attribute meaning is defined (i.e. must be assigned a value) inv: meaning.oclIsDefined()
name value | LRA Inv: Fixed | inv: name.value = <a href="$element://{99CDF407-1579-4eac-BB4F-F9D25CB6AA56}"><font color="#0000ff"><u>LraRecordComponentName</u></font></a>.COMPONENT_RELATIONSHIP_ELEMENT
one link to object | LRA Invariant | inv: links->exists(link|link.role = LraRoleCode.OBJECT)
one link to subject | LRA Invariant | inv: links->exists(link|link.role = LraRoleCode.SUBJECT)
only two links, each of type COMPONENT_RELATIONSHIP_LINK | LRA Invariant | inv: self.links-&gt;size() = 2 and self.links-&gt;foreach(link|link.oclIsTypeOf(COMPONENT_RELATIONSHIP_LINK))
value defines dependency | LRA Invariant | -- Attribute value is from a coded set which defines the dependency of this individual realtionship inv: value.code.oclIsTypeOf(LraComponentRelationshipElementValue)
value is coded data | LRA Invariant | inv: value.oclIsKindOf(CD.CV)