<Provenance xmlns="http://hl7.org/fhir">
  <meta>
    <profile value="https://gen.kanta.fi/fhir/tahdonilmaisut/StructureDefinition/TahdonilmaisuProvenance" />
  </meta>
  <language value="fi" />
  <contained>
    <Patient>
      <id value="PAT1" />
      <meta>
        <profile value="https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientOfficialID" />
      </meta>
      <identifier>
        <use value="official" />
        <system value="urn:oid:1.2.246.21" />
        <value value="300111A9001" />
      </identifier>
      <name>
        <use value="official" />
        <family value="Koski" />
        <given value="Iida" />
        <given value="Maria" />
      </name>
      <birthDate value="2011-01-30" />
    </Patient>
  </contained>
  <contained>
    <Patient>
      <id value="BOOKER1" />
      <meta>
        <profile value="https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientOfficialID" />
      </meta>
      <identifier>
        <use value="official" />
        <system value="urn:oid:1.2.246.21" />
        <value value="300111A9001" />
      </identifier>
      <name>
        <use value="official" />
        <family value="Koski" />
        <given value="Iida" />
        <given value="Maria" />
      </name>
    </Patient>
  </contained>
  <contained>
    <Device>
      <id value="DEVICE1" />
      <meta>
        <profile value="https://gen.kanta.fi/fhir/StructureDefinition/KantaDevice" />
      </meta>
      <identifier>
        <system value="urn:oid:1.2.246.537.6.12.999.2003.34" />
        <value value="345675" />
      </identifier>
      <deviceName>
        <name value="Tietojärjestelmän nimi Valviran tietojärjestelmärekisterin sosiaali- ja terveydenhuollon tietojärjestelmistä mukaan - OmaKanta" />
        <type value="other" />
      </deviceName>
      <version>
        <value value="Versio xyz" />
      </version>
    </Device>
  </contained>
  <target>
    <reference value="urn:uuid:ce5ea340-adfd-40f2-87d4-a25e4f8bf143" />
  </target>
  <recorded value="2023-05-10T09:02:00+00:00" />
  <agent>
    <role>
      <coding>
        <system value="http://gen.kanta.fi/figen-cs-provenancerolecategory" />
        <code value="3" />
        <display value="Asiakas tai potilas, jota resurssi koskee" />
      </coding>
    </role>
    <who>
      <reference value="#PAT1" />
    </who>
  </agent>
  <agent>
    <role>
      <coding>
        <system value="http://gen.kanta.fi/figen-cs-provenancerolecategory" />
        <code value="12" />
        <display value="Resurssin tallentanut asiakas" />
      </coding>
    </role>
    <who>
      <reference value="#BOOKER1" />
    </who>
  </agent>
  <agent>
    <role>
      <coding>
        <system value="http://gen.kanta.fi/figen-cs-provenancerolecategory" />
        <code value="1" />
        <display value="Resurssin rekisterinpitäjä" />
      </coding>
    </role>
    <who>
      <identifier>
        <value value="1.2.246.10.2462460.19.1" />
      </identifier>
      <display value="Kansaneläkelaitos" />
    </who>
  </agent>
  <agent>
    <role>
      <coding>
        <system value="http://gen.kanta.fi/figen-cs-provenancerolecategory" />
        <code value="13" />
        <display value="Resurssin tuottanut palveluntuottaja" />
      </coding>
    </role>
    <who>
      <identifier>
        <system value="urn:ietf:rfc:3986" />
        <value value="urn:oid:1.2.246.10.10688929.10.0" />
      </identifier>
      <display value="Palvelunantajan 1.2.246.10.2462460.10.0 nimi - Kela" />
    </who>
  </agent>
  <agent>
    <role>
      <coding>
        <system value="http://gen.kanta.fi/figen-cs-provenancerolecategory" />
        <code value="4" />
        <display value="Resurssin tuottanut tietojärjestelmä" />
      </coding>
    </role>
    <who>
      <reference value="#DEVICE1" />
    </who>
  </agent>
</Provenance>