<?xml version="1.0" encoding="UTF-8"?>

<Contract xmlns="http://hl7.org/fhir">
  <id value="ExampleDataSharingAgreement"/>
  <meta>
    <profile value="https://www.core.blackpear.com/ig/metadata/StructureDefinition/CoreDataSharingAgreement"/>
  </meta>
  <text>
    <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: Contract ExampleDataSharingAgreement</b></p><a name="ExampleDataSharingAgreement"> </a><a name="hcExampleDataSharingAgreement"> </a><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-CoreDataSharingAgreement.html">CoreDataSharingAgreement</a></p></div><blockquote><p><b>Data Sharing Agreement Scope Extension</b></p><ul><li>purpose: directcare</li><li>basis: 6-1-a</li><li>patients: careteam</li><li>condition: 6-1-a</li><li>condition: 9-2-h</li><li>basis-special: 9-2-h</li><li>service: <a href="HealthcareService-SomewhereSharedCarePlanning.html">HealthcareService Somewhere Shared Care Planning</a></li></ul></blockquote><p><b>status</b>: Executed</p><p><b>applies</b>: 2022-01-01 --&gt; 2022-12-31</p><p><b>subject</b>: <a href="Endpoint-A29390Demo.html">Endpoint The Demo Practice [A29390]</a></p><blockquote><p><b>term</b></p><blockquote><p><b>offer</b></p><blockquote><p><b>party</b></p><p><b>reference</b>: Somewhere Medical Group (Identifier: <code>https://fhir.nhs.uk/Id/ods-organization-code</code>/A29390)</p><p><b>role</b>: <span title="Codes:{https://www.core.blackpear.com/ig/metadata/CodeSystem/UKGDPRRoleCodes controller}">Controller (sensu UK GDPR)</span></p></blockquote><blockquote><p><b>party</b></p><p><b>reference</b>: Somewhere Integrated Care (Identifier: <code>https://fhir.nhs.uk/Id/ods-organization-code</code>/ICS001)</p><p><b>role</b>: <span title="Codes:{https://www.core.blackpear.com/ig/metadata/CodeSystem/UKGDPRRoleCodes controller}">Controller (sensu UK GDPR)</span></p></blockquote><blockquote><p><b>party</b></p><p><b>reference</b>: Black Pear Software Limited (Identifier: <code>https://fhir.nhs.uk/Id/ods-organization-code</code>/8HV05)</p><p><b>role</b>: <span title="Codes:{https://www.core.blackpear.com/ig/metadata/CodeSystem/UKGDPRRoleCodes processor}">Processor (sensu UK GDPR)</span></p></blockquote><p><b>topic</b>: <a href="ConceptMap-ExampleRBACMatrix.html">ConceptMap Example</a></p><p><b>decision</b>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/v3-ActCode IMPLIED}">implied consent</span></p></blockquote></blockquote></div>
  </text>
  <extension url="https://www.core.blackpear.com/ig/metadata/StructureDefinition/DataSharingAgreementScopeExtension">
    <extension url="purpose">
      <valueCode value="directcare"/>
    </extension>
    <extension url="basis">
      <valueCode value="6-1-a"/>
    </extension>
    <extension url="patients">
      <valueCode value="careteam"/>
    </extension>
    <extension url="condition">
      <valueCode value="6-1-a"/>
    </extension>
    <extension url="condition">
      <valueCode value="9-2-h"/>
    </extension>
    <extension url="basis-special">
      <valueCode value="9-2-h"/>
    </extension>
    <extension url="service">
      <valueReference>
        <reference value="HealthcareService/SomewhereSharedCarePlanning"/>
      </valueReference>
    </extension>
  </extension>
  <status value="executed"/>
  <applies>
    <start value="2022-01-01"/>
    <end value="2022-12-31"/>
  </applies>
  <subject>
    <reference value="Endpoint/A29390Demo"/>
    <identifier>
      <system value="urn:oid:2.16.840.1.113883.4.583"/>
      <value value="https://52577db430054b45a0.develop.eu-west-2.quickfhir.cloud/A29390"/>
    </identifier>
  </subject>
  <term>
    <offer>
      <party>
        <reference>
          <identifier>
            <system value="https://fhir.nhs.uk/Id/ods-organization-code"/>
            <value value="A29390"/>
          </identifier>
          <display value="Somewhere Medical Group"/>
        </reference>
        <role>
          <coding>
            <system value="https://www.core.blackpear.com/ig/metadata/CodeSystem/UKGDPRRoleCodes"/>
            <code value="controller"/>
          </coding>
        </role>
      </party>
      <party>
        <reference>
          <identifier>
            <system value="https://fhir.nhs.uk/Id/ods-organization-code"/>
            <value value="ICS001"/>
          </identifier>
          <display value="Somewhere Integrated Care"/>
        </reference>
        <role>
          <coding>
            <system value="https://www.core.blackpear.com/ig/metadata/CodeSystem/UKGDPRRoleCodes"/>
            <code value="controller"/>
          </coding>
        </role>
      </party>
      <party>
        <reference>
          <identifier>
            <system value="https://fhir.nhs.uk/Id/ods-organization-code"/>
            <value value="8HV05"/>
          </identifier>
          <display value="Black Pear Software Limited"/>
        </reference>
        <role>
          <coding>
            <system value="https://www.core.blackpear.com/ig/metadata/CodeSystem/UKGDPRRoleCodes"/>
            <code value="processor"/>
          </coding>
        </role>
      </party>
      <topic>
        <reference value="ConceptMap/ExampleRBACMatrix"/>
      </topic>
      <decision>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
          <code value="IMPLIED"/>
        </coding>
      </decision>
    </offer>
  </term>
</Contract>