# 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: ED.Text
The specialised class ED.Text overlaps the function of ED.Doc, and differs principally in that it is not allowed to be compressed or translated. In the LRA there is no distinction drawn between the two classes, ED.Text is regarded as a subtype of ED.Doc, a conforming application MAY treat all ED.Text as it would treat ED.Doc. This is implemented as described in ISO 21090 ## Specializes ## ED ## Attributes
Name | Data type | Occurs | Description
--- | --- | --- | ---
charset | CharacterSet | 0..1 | in ISO 21090 this is defined as the charset of the encapsulation of data and not of the data itself. Data that can define its own charset (such as binary encoded XML for example) may do so. This attribute should not be interpreted as the charset of the canonical form of the data, which will be derived from its canonical content based on the underlying media type. This attribute is implemented as described in ISO 21090
compression | Compression | 0..1 | This is implemented as described in ISO 21090.
data | Binary | 0..1 | This is implemented as described in ISO 21090.
description | ST | 0..1 | Is optional in the LRA. It is implemented within ISO 21090 as an American disability act requirement and MAY be undefined within the LRA. Logic within the LRA MUST NOT depend on the value of description.
integrityCheck | Binary | 0..1 | This is implemented as described in ISO 21090.
integrityCheckAlgorithm | IntegrityCheckAlgorithm | 0..1 | This is implemented as described in ISO 21090.
language | LraHumanLanguage | 0..1 | This is implemented as described in ISO 21090.
mediaType | MediaType | 0..1 | This is implemented as described in ISO 21090.
reference | TEL.URL | 0..1 | This is implemented as described in ISO 21090.
thumbnail | ED | 0..1 | Is deprecated in the LRA. It is optional within ISO 21090 and MUST be undefined within the LRA. Logic within the LRA MUST NOT depend on the value of thumbnail.
translation | ED | 1..1 | This attribute is deprecated in the LRA. It is optional within ISO 21090 and MUST be undefined within the LRA. Logic within the LRA MUST NOT depend on the value of translation.
value | String | 0..1 | This is implemented as described in ISO 21090.
xml | XML | 0..1 | In the instance of primary XML (or XHTML) data the ED representation is an encapsulated encoding of the XML, which may have a different character set to the original. The actual canonical data xml may be rendered inline in the ED.xml, but might not. If not, then the canonical representation may have to be derived to obtain the actual uncompressed xml. This is implemented as described in ISO 21090
## Constraints
Type | Name | Specification
--- | --- | ---
no compression | Invariant | inv: compression.oclIsUndefined
no data | Invariant | inv: data.oclIsUndefined
no integrityCheck | Invariant | inv: integrityCheck.oclIsUndefined
no thumbnail | Invariant | inv: thumbnail.oclIsUndefined
no translations | Invariant | inv: translation->isEmpty
no xml | Invariant | inv: xml.oclIsUndefined
text only | Invariant | inv: mediaType = "text/plain"
## Reference Model Type ##