These records are used to record where a patient has asked to Opt Out of their data being used for a particular purpose. This will usually (but potentially not always) be where inclusion would otherwise be assumed due to s251 permissions etc.

If a patient decides to end their Opt Out a ToTime should be added to the record. If then then subsequently withdraw it again a new record with a different ExternalId should be created.

Schema

Schema OptOut (github)

Example

    <OptOuts>
        <OptOut>
            <EnteredAt>
                <CodingStandard>UKRR</CodingStandard>
                <Code>RR1+</Code>
                <Description>Demonstration Entries</Description>
            </EnteredAt>
            <ProgramName>UKRR</ProgramName>
            <ProgramDescription>UK Renal Registry</ProgramDescription>
            <FromTime>2018-06-25</FromTime>
            <UpdatedOn>2018-06-25T07:24:31</UpdatedOn>
            <ExternalId>50889490</ExternalId>
        </OptOut>
    </OptOuts>