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

<ActivityDefinition xmlns="http://hl7.org/fhir">
  <id value="activity-example-recordinference-ad"/>
  <meta>
    <profile value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recordinferenceactivity"/>
    <profile value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-computableactivity"/>
  </meta>
  <language value="en"/>
  <text>
    <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml">
  <table class="narrative-table">
    <tbody>
<tr>


<th colspan="2" scope="row" class="row-header">Metadata</th>


</tr>

<tr>


<th scope="row" class="row-header">Title</th>



<td class="content-container">Activity Example Record Inference AD</td>


</tr>



<tr>


<th scope="row" class="row-header">Version</th>



<td class="content-container">2.0.0</td>


</tr>







  
<tr>


<th scope="row" class="row-header">Identifier</th>



<td class="content-container">urn:oid:2.16.840.1.113883.4.642.40.48.11.15</td>


</tr>








<tr>


<th scope="row" class="row-header">Experimental</th>



<td class="content-container">true</td>


</tr>





<tr>


<th scope="row" class="row-header">Jurisdiction</th>



<td class="content-container">
    World


</td>


</tr>








<tr>


<th scope="row" class="row-header">Steward (Publisher)</th>



<td class="content-container">HL7 International / Clinical Decision Support</td>


</tr>



<tr>


<th scope="row" class="row-header">Steward Contact</th>



<td class="content-container">HL7 International / Clinical Decision Support</td>


</tr>







<tr>


<th scope="row" class="row-header">Description</th>



<td class="content-container"><div><p>Example Activity Definition for a recommendation to record an inference</p>
</div></td>


</tr>









<tr>


<th scope="row" class="row-header">Resource Kind</th>



<td class="content-container">Task</td>


</tr>


<tr>


<th scope="row" class="row-header">Resource Profile</th>



<td class="content-container"><a href="StructureDefinition-cpg-recordinferencetask.html">CPG Record Inference Task</a></td>


</tr>


<tr>


<th scope="row" class="row-header">Code</th>



<td class="content-container">
    Record an inference


</td>


</tr>


<tr>


<th scope="row" class="row-header">Intent</th>



<td class="content-container">Proposal</td>


</tr>












<tr>
  <th scope="row" class="row-header">Dynamic Value</th>
  <td class="content-container">
    
    <em>Path</em>: contained
    
    
    <br/>
    <em>Expression</em>: FHIR.Observation { id: FHIR.id { value: 'inference' }, extension: List&lt;FHIR.Extension&gt; { FHIR.Extension { url: FHIR.uri { value: 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-caseFeatureType' }, value: FHIR.code { value: 'inferred' } } }, status: FHIR.ObservationStatus {value: 'final' }, code: FHIR.CodeableConcept { coding: List&lt;FHIR.Coding&gt; { FHIR.Coding { code: FHIR.code { value: 'Inference' } } } }, subject: FHIR.Reference { reference: FHIR.string { value: Patient.id.value } }, issued: FHIR.instant { value: Now() } }
    
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Dynamic Value</th>
  <td class="content-container">
    
    <em>Path</em>: input[0].type
    
    
    <br/>
    <em>Expression</em>: %resource.code
    
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Dynamic Value</th>
  <td class="content-container">
    
    <em>Path</em>: input[0].valueReference
    
    
    <br/>
    <em>Expression</em>: FHIR.Reference { reference: FHIR.string { value: '#inference' } }
    
  </td>
</tr>

<tr>
  <th colspan="2" scope="row" class="row-header">Generated using version 0.5.4 of the sample-content-ig Liquid templates</th>
</tr>

    </tbody>
  </table>
</div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability">
    <valueCode value="shareable"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability">
    <valueCode value="computable"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability">
    <valueCode value="publishable"/>
  </extension>
  <url value="http://hl7.org/fhir/uv/cpg/ActivityDefinition/activity-example-recordinference-ad"/>
  <identifier>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:2.16.840.1.113883.4.642.40.48.11.15"/>
  </identifier>
  <version value="2.0.0"/>
  <name value="ActivityExampleRecordInferenceAD"/>
  <title value="Activity Example Record Inference AD"/>
  <status value="active"/>
  <experimental value="true"/>
  <date value="2026-04-29T15:06:55+00:00"/>
  <publisher value="HL7 International / Clinical Decision Support"/>
  <contact>
    <name value="HL7 International / Clinical Decision Support"/>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/dss"/>
    </telecom>
  </contact>
  <description value="Example Activity Definition for a recommendation to record an inference"/>
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
      <code value="001"/>
      <display value="World"/>
    </coding>
  </jurisdiction>
  <kind value="Task"/>
  <profile value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recordinferencetask"/>
  <code>
    <coding>
      <system value="http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs"/>
      <code value="record-inference"/>
      <display value="Record an inference"/>
    </coding>
  </code>
  <intent value="proposal"/>
  <doNotPerform value="false"/>
  <dynamicValue>
    <path value="contained"/>
    <expression>
      <language value="text/cql-expression"/>
      <expression value="FHIR.Observation { id: FHIR.id { value: 'inference' }, extension: List&lt;FHIR.Extension&gt; { FHIR.Extension { url: FHIR.uri { value: 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-caseFeatureType' }, value: FHIR.code { value: 'inferred' } } }, status: FHIR.ObservationStatus {value: 'final' }, code: FHIR.CodeableConcept { coding: List&lt;FHIR.Coding&gt; { FHIR.Coding { code: FHIR.code { value: 'Inference' } } } }, subject: FHIR.Reference { reference: FHIR.string { value: Patient.id.value } }, issued: FHIR.instant { value: Now() } }"/>
    </expression>
  </dynamicValue>
  <dynamicValue>
    <path value="input[0].type"/>
    <expression>
      <language value="text/cql-expression"/>
      <expression value="%resource.code"/>
    </expression>
  </dynamicValue>
  <dynamicValue>
    <path value="input[0].valueReference"/>
    <expression>
      <language value="text/cql-expression"/>
      <expression value="FHIR.Reference { reference: FHIR.string { value: '#inference' } }"/>
    </expression>
  </dynamicValue>
</ActivityDefinition>