# 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: AD.Postal
The address of a postal delivery point comprising n to 5 ordered print lines of alphanumeric characters (where n >= 0). This data type flavor is designed to support the logical representation of the following address structures used within the NHS and wider public sector within England. NPfIT MIM Address streetAddressLine Typed data type flavors - comprising 1 to 5 streetAddressLine elements each containing a maximum 35 characters with all markup characters intended to control layout excluded; no fixed abode is represented by a single address line containing the text “no fixed abode”. PDS PERSON_ADDRESS structure - comprising 0 to 5 address lines each containing a maximum 40 characters; address line elements 1 or 2, and 5 should be present; structure intended to specify the following sequence of parts: premises ID, house name (e.g. ‘Flat 1’, ‘The Old Schoolhouse’), house number, dependent thoroughfare name and descriptor without commas (e.g. ’23 Mill Lane’), dependent locality (e.g. ‘Boxgrove’), post town (e.g. ‘Leeds’) and, if present, country (e.g. ‘Hampshire’, ‘Hants’). NHS Data Model and Dictionary ADDRESS UNSTRUCTURED - a recognisable postal address comprising 0 to 5 address lines each containing a maximum 35 characters; the format is intended to relate to the physical layout, and not necessarily to the logical layout of the address. NHS Data Model and Dictionary PATIENT USUAL ADDRESS with ADDRESS FORMAT CODE = '1' or 'S' - used within CDS messages to denote a "Label format" address, i.e. an address comprising 0 to 5 address lines each containing a maximum 35 characters with each line left justified as a specific data element. eGIF UK Postal Address Structure - comprising 2 to 5 address lines (upper bound is the de facto standard) each containing a maximum 35 characters; typically refers to a building and usually specifies the following sequence of parts: name / number, street, town and county / state / province and sometimes country. The class also can be further constrained to support the logical representation of post code only address instances as required by the Verified Identity sections of NHS Data Model and Dictionary CDS data structures. Note that a deliberate decision was taken NOT to include the the term 'structured' or 'unstructured' in the designation of this class. This is because of the ambiguous use of these terms when referring to address structures. For example the NHS Data Model and Dictionary ADDRESS UNSTRUCTURED class specifies a 0 to 5 line postal address format. However, when being compared to address structures in which all of the address parts are contained within a single text field (as represented by AD.TEXT), n to 5 line address formats of this type are often referred to or implied as being 'structured'. ## Specializes ## AD ## Attributes
Name | Data type | Occurs | Description
--- | --- | --- | ---
part | AD.Part | 0..* | As ISO 21090, a sequence of address parts, such as street or post office Box, city, postal code, country, etc. Any instance of AD that is not is null must have at least one address part.
use | PostalAddressUse | 0..* | A set of codes to indicate to a system or user which address in a set of like addresses to select for a given purpose. An address instance may therefore be associated with number of intended uses. ISO 21090 specifies use of the HL7 v3 PostalAddressUse code system. The LRA adopts a subset of this and specifies a number of additional codes to meet the intended use requirements of address structures specified by: NPfIT MIM Datatypes Implementation Manual; Person Demographic Service; and NHS Data Model and Dictionary
useablePeriod | QSET_TS | 0..1 | As ISO 21090, a General Timing Specification (GTS) specifying the periods of time during which the address can be used. This is used to specify different addresses for different times of the week or year and not the overall period of validity of the address.
isNotOrdered | Boolean | 0..1 | True if the order of the address parts is known otherwise false. While the address parts are always a sequence, the order in which they are presented may or may not be known to be true or important.
## Constraints
Type | Name | Specification
--- | --- | ---
Maximum of 5 addressLine parts allowed | LRA Invariant | inv: part-&gt;select(p: AD.Part | p.definesProperty(p.addressLine))-&gt;size() &lt;= 5
Only address parts addressKey, gridReference, addressLine, postalCode, country, and desc allowed | LRA Invariant | inv: part-&gt;forAll(p.definesProperty(p.gridReference) or p.definesProperty(p.addressLine) or p.definesProperty(p.postalCode) or p.definesProperty(p.country) or p.definesProperty(p.addressKey) or p.definesProperty(p.desc))
## Reference Model Type ##