<Consent xmlns="http://hl7.org/fhir">
    <id value="laboratory-consent-delegates-patient-example-01" />
    <meta>
        <versionId value="1" />
        <lastUpdated value="2024-08-06T07:45:23.3815+00:00" />
        <profile value="https://lab.vvis.gov.lv/fhir/StructureDefinition/Consent/LaboratoryConsentDelegatesPatient-v1" />
        <tag id="authorMedicalInstitution">
            <system value="urn:oid:1.3.6.1.4.1.38760.2.23" />
            <code value="010001080" />
            <display value="Nacionālais veselības dienests" />
        </tag>
        <tag id="entererMedicalPerson">
            <system value="urn:oid:1.3.6.1.4.1.38760.2.1" />
            <code value="32133600001" />
            <display value="Dairis Ozols" />
        </tag>
        <tag id="entererSystem">
            <system value="https://vvis.gov.lv/fhir/CodeSystem/1.3.6.1.4.1.38760.2.3" />
            <code value="FHIR.WS" />
            <display value="FHIR tīmekļa pakalpes" />
        </tag>
    </meta>
    <status value="active" />
    <scope>
        <coding>
            <code value="patient-privacy" />
        </coding>
    </scope>
    <category>
        <coding>
            <code value="INFA" />
        </coding>
    </category>
    <policyRule>
        <coding>
            <code value="OPTOUT" />
        </coding>
    </policyRule>
    <provision>
        <extension url="https://lab.vvis.gov.lv/fhir/StructureDefinition/Extension/RestrictPatient">
            <valueBoolean value="true" />
        </extension>
        <data>
            <meaning value="related" />
            <reference>
                <reference value="ServiceRequest/01J4KA2GSBMDAQ3QBJM261NQ05" />
                <type value="ServiceRequest" />
            </reference>
        </data>
    </provision>
</Consent>