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

<Provenance xmlns="http://hl7.org/fhir">
  <id value="agent-provenance-example"/>
  <meta>
    <profile value="https://fhir.soigneur.coach/fhir/StructureDefinition/cc-agent-provenance"/>
  </meta>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: Provenance agent-provenance-example</b></p><a name="agent-provenance-example"> </a><a name="hcagent-provenance-example"> </a><div style="display: inline-block; background-color: #fbffeb; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Profil: <a href="StructureDefinition-cc-agent-provenance.html">Coaching-write Provenance (Provenance)</a></p></div><p>Provenance for: </p><ul><li><a href="ServiceRequest-synth-iron-01-prescription.html">ServiceRequest Threshold</a></li><li><a href="Patient-synth-iron-01.html">Anonymous Patient Female, DoB: 1989-05-27 ( https://fhir.soigneur.coach/fhir/CodeSystem/cc-provider#garmin:synth-iron-01)</a></li></ul><p>Summary</p><table class="grid"><tr><td>Occurrence</td><td>2026-09-25 18:42:00+0000</td></tr><tr><td>Recorded</td><td>2026-09-25 18:42:00+0000</td></tr><tr><td>Activity</td><td><span title="Codes:{http://terminology.hl7.org/CodeSystem/v3-DataOperation UPDATE}, {https://fhir.soigneur.coach/fhir/CodeSystem/cc-provenance-activity coach-write}">revise</span></td></tr><tr><td>Reason</td><td><span title="Codes:">The week's load target is reached; tomorrow becomes a rest day.</span></td></tr></table><p><b>Agents</b></p><table class="grid"><tr><td><b>Type</b></td><td><b>who</b></td></tr><tr><td><span title="Codes:{http://terminology.hl7.org/CodeSystem/provenance-participant-type author}">Author</span></td><td>Soigneur coach (Identifier: <a href="NamingSystem-sid-agent.html" title="The coach agent's logical identity (ADR 0144) — value `coach`. Used as an identifier-only Reference wherever FHIR needs the agent as an actor (CcAgentProvenance.agent[author].who, NutritionOrder.orderer): there is no agent resource on the server, so a literal Type/id would dangle and fail referential integrity.">SoigneurAgentId</a>/coach)</td></tr><tr><td><span title="Codes:{http://terminology.hl7.org/CodeSystem/provenance-participant-type verifier}">Verifier</span></td><td><a href="Patient-synth-iron-01.html">Anonymous Patient Female, DoB: 1989-05-27 ( https://fhir.soigneur.coach/fhir/CodeSystem/cc-provider#garmin:synth-iron-01)</a></td></tr></table><p><b>Entities</b></p><table class="grid"><tr><td><b>Role</b></td><td><b>What</b></td></tr><tr><td>Source</td><td>Coach conversation (Identifier: <a href="NamingSystem-sid-conversation.html" title="AG-UI thread id for an in-app coach-ask conversation. Carried on Communication.identifier so the UI can hydrate a transcript by thread (ADR 0044).">SoigneurConversationThreadId</a>/review-0123456789abcdef)</td></tr><tr><td>Revision</td><td><a href="ServiceRequest-synth-iron-01-prescription.html">ServiceRequest Threshold</a></td></tr></table></div>
  </text>
  <target>
    <reference value="ServiceRequest/synth-iron-01-prescription"/>
  </target>
  <target>
    <reference value="Patient/synth-iron-01"/>
  </target>
  <occurredDateTime value="2026-09-25T18:42:00Z"/>
  <recorded value="2026-09-25T18:42:00Z"/>
  <reason>
    <text value="The week's load target is reached; tomorrow becomes a rest day."/>
  </reason>
  <activity>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/v3-DataOperation"/>
      <code value="UPDATE"/>
    </coding>
    <coding>
      <system value="https://fhir.soigneur.coach/fhir/CodeSystem/cc-provenance-activity"/>
      <code value="coach-write"/>
    </coding>
  </activity>
  <agent>
    <extension url="https://fhir.soigneur.coach/fhir/StructureDefinition/cc-ext-agent-context">
      <extension url="skill">
        <valueString value="coach-review-workout"/>
      </extension>
      <extension url="model">
        <valueString value="openai/gpt-5.6-terra"/>
      </extension>
    </extension>
    <type>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/provenance-participant-type"/>
        <code value="author"/>
      </coding>
    </type>
    <who>
      <type value="Device"/>
      <identifier>
        <system value="https://fhir.soigneur.coach/fhir/sid/agent"/>
        <value value="coach"/>
      </identifier>
      <display value="Soigneur coach"/>
    </who>
  </agent>
  <agent>
    <type>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/provenance-participant-type"/>
        <code value="verifier"/>
      </coding>
    </type>
    <who>
      <reference value="Patient/synth-iron-01"/>
    </who>
  </agent>
  <entity>
    <role value="source"/>
    <what>
      <identifier>
        <system value="https://fhir.soigneur.coach/fhir/sid/conversation"/>
        <value value="review-0123456789abcdef"/>
      </identifier>
      <display value="Coach conversation"/>
    </what>
  </entity>
  <entity>
    <role value="revision"/>
    <what>
      <reference value="ServiceRequest/synth-iron-01-prescription/_history/1"/>
    </what>
  </entity>
</Provenance>