This page is part of the electronic Case Reporting (eCR) (v2.1.2: STU 2) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions
Active as of 2020-07-31 |
<PlanDefinition xmlns="http://hl7.org/fhir">
<id value="plandefinition-ersd-instance-simple-example"/>
<meta>
<profile
value="http://hl7.org/fhir/us/ecr/StructureDefinition/ersd-plandefinition"/>
</meta>
<text>
<status value="extensions"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: PlanDefinition plandefinition-ersd-instance-simple-example</b></p><a name="plandefinition-ersd-instance-simple-example"> </a><a name="hcplandefinition-ersd-instance-simple-example"> </a><a name="plandefinition-ersd-instance-simple-example-en-US"> </a><p><b>Variable</b>: <span title="text/fhirpath"><code>2 weeks</code></span>(<b>normalReportingDuration</b>)</p><p><b>url</b>: <a href="PlanDefinition-plandefinition-ersd-instance-simple-example.html">PlanDefinition eRSD PlanDefinition Instance Simple Example</a></p><p><b>identifier</b>: <a href="http://terminology.hl7.org/6.0.2/NamingSystem-uri.html" title="As defined by RFC 3986 (http://www.ietf.org/rfc/rfc3986.txt)(with many schemes defined in many RFCs). For OIDs and UUIDs, use the URN form (urn:oid:(note: lowercase) and urn:uuid:). See http://www.ietf.org/rfc/rfc3001.txt and http://www.ietf.org/rfc/rfc4122.txt
This oid is used as an identifier II.root to indicate the the extension is an absolute URI (technically, an IRI). Typically, this is used for OIDs and GUIDs. Note that when this OID is used with OIDs and GUIDs, the II.extension should start with urn:oid or urn:uuid:
Note that this OID is created to aid with interconversion between CDA and FHIR - FHIR uses urn:ietf:rfc:3986 as equivalent to this OID. URIs as identifiers appear more commonly in FHIR.
This OID may also be used in CD.codeSystem.">Uniform Resource Identifier (URI)</a>/urn:oid:2.16.840.1.113883.4.642.40.46.34.4</p><p><b>version</b>: 2.1.2</p><p><b>name</b>: PlanDefinition_eRSD_Instance_Simple_Example</p><p><b>title</b>: eRSD PlanDefinition Instance Simple Example</p><p><b>type</b>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/plan-definition-type workflow-definition}">Workflow Definition</span></p><p><b>status</b>: Active</p><p><b>experimental</b>: true</p><p><b>date</b>: 2020-07-31 12:32:29-0500</p><p><b>publisher</b>: HL7 International / Public Health</p><p><b>contact</b>: HL7 International / Public Health: <a href="http://www.hl7.org/Special/committees/pher">http://www.hl7.org/Special/committees/pher</a></p><p><b>description</b>: </p><div><p>An example ersd PlanDefinition</p>
</div><p><b>jurisdiction</b>: <span title="Codes:{urn:iso:std:iso:3166 US}">United States of America</span></p><blockquote><p><b>action</b></p><blockquote><p><b>id</b></p>start-workflow</blockquote><p><b>description</b>: This action represents the start of the reporting workflow in response to the encounter-start event.</p><p><b>textEquivalent</b>: Start the reporting workflow in response to an encounter-start event</p><p><b>code</b>: <span title="Codes:{http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions initiate-reporting-workflow}">Initiate a reporting workflow</span></p><blockquote><p><b>trigger</b></p><blockquote><p><b>id</b></p>encounter-start</blockquote><p><b>US Public Health Named Event Type Extension</b>: <span title="Codes:{http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-triggerdefinition-namedevents encounter-start}">Indicates the start of an encounter</span></p><p><b>type</b>: Named Event</p><p><b>name</b>: encounter-start</p></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>patient</blockquote><p><b>US Public Health FHIR Query Pattern Extension</b>: Patient/{{context.patientId}}</p><p><b>type</b>: Patient</p></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>encounter</blockquote><p><b>US Public Health FHIR Query Pattern Extension</b>: Encounter/{{context.encounterId}}</p><p><b>type</b>: Encounter</p></blockquote><h3>RelatedActions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>ActionId</b></td><td><b>Relationship</b></td><td><b>Offset[x]</b></td></tr><tr><td style="display: none">*</td><td>check-suspected-disorder</td><td>Before Start</td><td>No display for Duration (value: 1; system: http://unitsofmeasure.org; code: h)</td></tr></table></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>id</b></p>check-suspected-disorder</blockquote><p><b>description</b>: This action represents the start of the check suspected disorder reporting workflow in response to the encounter-start event.</p><p><b>textEquivalent</b>: Check suspected disorders for immediate reportability and setup jobs for future reportability checks.</p><p><b>code</b>: <span title="Codes:{http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions execute-reporting-workflow}">Execute a series of actions to accomplish reporting</span></p><blockquote><p><b>action</b></p><blockquote><p><b>id</b></p>is-encounter-suspected-disorder</blockquote><p><b>description</b>: This action represents the check for suspected disorder reportability to create the patients eICR.</p><p><b>textEquivalent</b>: Check Trigger Codes based on Suspected Reportable Value set.</p><p><b>code</b>: <span title="Codes:{http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions check-trigger-codes}">Evaluate candidate patient's data against trigger codes to determine reportability</span></p><blockquote><p><b>condition</b></p><p><b>kind</b>: Applicability</p><h3>Expressions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style="display: none">*</td><td>FHIRPath</td><td>%modifiedConditions.exists() or %modifiedLabResults.exists() or %modifiedMedicationOrders.exists()</td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>modifiedConditions</blockquote><p><b>US Public Health FHIR Query Pattern Extension</b>: Condition?patient=Patient/{{context.patientId}}</p><p><b>type</b>: Condition</p><h3>CodeFilters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Path</b></td><td><b>ValueSet</b></td></tr><tr><td style="display: none">*</td><td>code</td><td><a href="ValueSet-valueset-sdtc-example.html">Example Suspected Disorder Triggers for Public Health Reporting</a></td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>modifiedLabResults</blockquote><p><b>US Public Health FHIR Query Pattern Extension</b>: Observation?patient=Patient/{{context.patientId}}</p><p><b>type</b>: Observation</p><h3>CodeFilters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Path</b></td><td><b>ValueSet</b></td></tr><tr><td style="display: none">*</td><td>value</td><td><a href="ValueSet-valueset-lotc-example.html">Example Lab Order Test Triggers for Public Health Reporting</a></td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>modifiedMedicationOrders</blockquote><p><b>US Public Health FHIR Query Pattern Extension</b>: MedicationRequest?patient=Patient/{{context.patientId}}</p><p><b>type</b>: MedicationRequest</p><h3>CodeFilters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Path</b></td><td><b>ValueSet</b></td></tr><tr><td style="display: none">*</td><td>medication</td><td><a href="ValueSet-valueset-mrtc-example.html">Example Medications Triggers for Public Health Reporting</a></td></tr></table></blockquote><h3>RelatedActions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>ActionId</b></td><td><b>Relationship</b></td></tr><tr><td style="display: none">*</td><td>create-eicr</td><td>Before Start</td></tr></table></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>id</b></p>continue-check-reportable</blockquote><p><b>code</b>: <span title="Codes:{http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions evaluate-condition}">Evaluate condition to determine reportability</span></p><blockquote><p><b>condition</b></p><p><b>kind</b>: Applicability</p><h3>Expressions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style="display: none">*</td><td>FHIRPath</td><td>%encounter.where((status = 'in-progress' and period.start + %normalReportingDuration < now()) or status = 'finished' and period.end <= now() - 72 hours)</td></tr></table></blockquote><h3>RelatedActions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>ActionId</b></td><td><b>Relationship</b></td><td><b>Offset[x]</b></td></tr><tr><td style="display: none">*</td><td>check-reportable</td><td>Before Start</td><td>No display for Duration (value: 6; comparator: <=; system: http://unitsofmeasure.org; code: h)</td></tr></table></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>id</b></p>check-reportable</blockquote><p><b>description</b>: This action represents the check for suspected reportability of the eICR.</p><p><b>textEquivalent</b>: Check Reportability and setup jobs for future reportability checks.</p><p><b>code</b>: <span title="Codes:{http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions execute-reporting-workflow}">Execute a series of actions to accomplish reporting</span></p><blockquote><p><b>action</b></p><blockquote><p><b>id</b></p>is-encounter-reportable</blockquote><p><b>description</b>: This action represents the check for reportability to create the patients eICR.</p><p><b>textEquivalent</b>: Check Trigger Codes based on RCTC Value sets.</p><p><b>code</b>: <span title="Codes:{http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions check-trigger-codes}">Evaluate candidate patient's data against trigger codes to determine reportability</span></p><blockquote><p><b>condition</b></p><p><b>kind</b>: Applicability</p><h3>Expressions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style="display: none">*</td><td>FHIRPath</td><td>%encounter.where(period.start + %normalReportingDuration >= now()) and (%conditions.exists() or %encounters.exists() or %immunizations.exists() or %procedures.exists() or %procedureOrders.exists() or %labOrders.exists() or %labTests.exists() or %labResults.exists() or %medicationAdministrations.exists() or %medicationOrders.exists() or %medicationDispenses.exists())</td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>conditions</blockquote><p><b>US Public Health FHIR Query Pattern Extension</b>: Condition?patient=Patient/{{context.patientId}}</p><p><b>type</b>: Condition</p><h3>CodeFilters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Path</b></td><td><b>ValueSet</b></td></tr><tr><td style="display: none">*</td><td>code</td><td><a href="ValueSet-valueset-dxtc-example.html">Example Diagnosis Problem Triggers for Public Health Reporting</a></td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>encounters</blockquote><p><b>US Public Health Related Data Extension</b>: encounter</p><p><b>type</b>: Encounter</p><h3>CodeFilters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Path</b></td><td><b>ValueSet</b></td></tr><tr><td style="display: none">*</td><td>reasonCode</td><td><a href="ValueSet-valueset-dxtc-example.html">Example Diagnosis Problem Triggers for Public Health Reporting</a></td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>immunizations</blockquote><p><b>US Public Health FHIR Query Pattern Extension</b>: Immunization?patient=Patient/{{context.patientId}}</p><p><b>type</b>: Immunization</p><h3>CodeFilters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Path</b></td><td><b>ValueSet</b></td></tr><tr><td style="display: none">*</td><td>vaccineCode</td><td><a href="ValueSet-valueset-mrtc-example.html">Example Medications Triggers for Public Health Reporting</a></td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>labOrders</blockquote><p><b>US Public Health FHIR Query Pattern Extension</b>: ServiceRequest?patient=Patient/{{context.patientId}}</p><p><b>type</b>: ServiceRequest</p><h3>CodeFilters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Path</b></td><td><b>ValueSet</b></td></tr><tr><td style="display: none">*</td><td>code</td><td><a href="ValueSet-valueset-lotc-example.html">Example Lab Order Test Triggers for Public Health Reporting</a></td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>labTests</blockquote><p><b>US Public Health FHIR Query Pattern Extension</b>: Observation?patient=Patient/{{context.patientId}}</p><p><b>type</b>: Observation</p><h3>CodeFilters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Path</b></td><td><b>ValueSet</b></td></tr><tr><td style="display: none">*</td><td>code</td><td><a href="ValueSet-valueset-lotc-example.html">Example Lab Order Test Triggers for Public Health Reporting</a></td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>diagnosticOrders</blockquote><p><b>US Public Health FHIR Query Pattern Extension</b>: DiagnosticReport?patient=Patient/{{context.patientId}}</p><p><b>type</b>: DiagnosticReport</p><h3>CodeFilters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Path</b></td><td><b>ValueSet</b></td></tr><tr><td style="display: none">*</td><td>code</td><td><a href="ValueSet-valueset-lotc-example.html">Example Lab Order Test Triggers for Public Health Reporting</a></td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>procedureOrders</blockquote><p><b>US Public Health FHIR Query Pattern Extension</b>: ServiceRequest?patient=Patient/{{context.patientId}}</p><p><b>type</b>: ServiceRequest</p><h3>CodeFilters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Path</b></td><td><b>ValueSet</b></td></tr><tr><td style="display: none">*</td><td>code</td><td><a href="ValueSet-valueset-pctc-example.html">Example Procedure Triggers for Public Health Reporting</a></td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>procedures</blockquote><p><b>US Public Health FHIR Query Pattern Extension</b>: Procedure?patient=Patient/{{context.patientId}}</p><p><b>type</b>: Procedure</p><h3>CodeFilters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Path</b></td><td><b>ValueSet</b></td></tr><tr><td style="display: none">*</td><td>code</td><td><a href="ValueSet-valueset-pctc-example.html">Example Procedure Triggers for Public Health Reporting</a></td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>medicationOrders</blockquote><p><b>US Public Health FHIR Query Pattern Extension</b>: MedicationRequest?patient=Patient/{{context.patientId}}</p><p><b>type</b>: MedicationRequest</p><h3>CodeFilters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Path</b></td><td><b>ValueSet</b></td></tr><tr><td style="display: none">*</td><td>medication</td><td><a href="ValueSet-valueset-mrtc-example.html">Example Medications Triggers for Public Health Reporting</a></td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>medicationDispenses</blockquote><p><b>US Public Health FHIR Query Pattern Extension</b>: MedicationDispense?patient=Patient/{{context.patientId}}</p><p><b>type</b>: MedicationDispense</p><h3>CodeFilters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Path</b></td><td><b>ValueSet</b></td></tr><tr><td style="display: none">*</td><td>medication</td><td><a href="ValueSet-valueset-mrtc-example.html">Example Medications Triggers for Public Health Reporting</a></td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>medicationAdministrations</blockquote><p><b>US Public Health FHIR Query Pattern Extension</b>: MedicationAdministration?patient=Patient/{{context.patientId}}</p><p><b>type</b>: MedicationAdministration</p><h3>CodeFilters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Path</b></td><td><b>ValueSet</b></td></tr><tr><td style="display: none">*</td><td>medication</td><td><a href="ValueSet-valueset-mrtc-example.html">Example Medications Triggers for Public Health Reporting</a></td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>labResults</blockquote><p><b>US Public Health Related Data Extension</b>: labTests</p><p><b>type</b>: Observation</p><h3>CodeFilters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Path</b></td><td><b>ValueSet</b></td></tr><tr><td style="display: none">*</td><td>value</td><td><a href="ValueSet-valueset-ostc-example.html">Example Organism Substance Triggers for Public Health Reporting</a></td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>diagnosticResults</blockquote><p><b>US Public Health Related Data Extension</b>: diagnosticOrders</p><p><b>type</b>: DiagnosticReport</p><h3>CodeFilters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Path</b></td><td><b>ValueSet</b></td></tr><tr><td style="display: none">*</td><td>code</td><td><a href="ValueSet-valueset-ostc-example.html">Example Organism Substance Triggers for Public Health Reporting</a></td></tr></table></blockquote><h3>RelatedActions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>ActionId</b></td><td><b>Relationship</b></td></tr><tr><td style="display: none">*</td><td>create-eicr</td><td>Before Start</td></tr></table></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>id</b></p>check-update-eicr</blockquote><p><b>code</b>: <span title="Codes:{http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions evaluate-condition}">Evaluate condition to determine reportability</span></p><blockquote><p><b>condition</b></p><p><b>kind</b>: Applicability</p><h3>Expressions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style="display: none">*</td><td>FHIRPath</td><td>%last-eicr.last().entry.first().resource.date < now() - 72 hours</td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>last-eicr</blockquote><p><b>US Public Health Related Data Extension</b>: eicr-report</p><p><b>type</b>: Bundle</p><p><b>profile</b>: <a href="StructureDefinition-eicr-document-bundle.html">eICR Document Bundle</a></p></blockquote><h3>RelatedActions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>ActionId</b></td><td><b>Relationship</b></td></tr><tr><td style="display: none">*</td><td>create-eicr</td><td>Before Start</td></tr></table></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>id</b></p>is-encounter-in-progress</blockquote><p><b>code</b>: <span title="Codes:{http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions evaluate-condition}">Evaluate condition to determine reportability</span></p><blockquote><p><b>condition</b></p><p><b>kind</b>: Applicability</p><h3>Expressions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style="display: none">*</td><td>FHIRPath</td><td>%`inprogress-encounter`.where(status = 'in-progress' and period.start + %normalReportingDuration >= now() and period.end <= now() - 72 hours)</td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>inprogress-encounter</blockquote><p><b>US Public Health Related Data Extension</b>: encounter</p><p><b>type</b>: Encounter</p></blockquote><h3>RelatedActions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>ActionId</b></td><td><b>Relationship</b></td><td><b>Offset[x]</b></td></tr><tr><td style="display: none">*</td><td>check-reportable</td><td>Before Start</td><td>No display for Duration (value: 6; comparator: <=; system: http://unitsofmeasure.org; code: h)</td></tr></table></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>id</b></p>is-encounter-completed</blockquote><p><b>code</b>: <span title="Codes:{http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions complete-reporting}">Complete reporting for the patient</span></p><blockquote><p><b>condition</b></p><p><b>kind</b>: Applicability</p><h3>Expressions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style="display: none">*</td><td>FHIRPath</td><td>%completedEncounter.exists(status = 'finished')</td></tr></table></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>completedEncounter</blockquote><p><b>US Public Health Related Data Extension</b>: encounter</p><p><b>type</b>: Encounter</p></blockquote></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>id</b></p>create-eicr</blockquote><p><b>description</b>: This action represents the creation of the eICR. It subsequently calls validate.</p><p><b>textEquivalent</b>: Create eICR</p><p><b>code</b>: <span title="Codes:{http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions create-report}">Create a Report containing Patient's data for patients who passed the check-reportability test</span></p><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>patient-data</blockquote><p><b>US Public Health Related Data Extension</b>: patient</p><p><b>type</b>: Patient</p><p><b>profile</b>: <a href="http://hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-patient.html">US Core Patient Profile</a></p></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>condition-data</blockquote><p><b>US Public Health Related Data Extension</b>: conditions</p><p><b>type</b>: Condition</p><p><b>profile</b>: <a href="http://hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-condition.html">US Core Condition Profile</a></p></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>encounter-data</blockquote><p><b>US Public Health Related Data Extension</b>: encounters</p><p><b>type</b>: Encounter</p><p><b>profile</b>: <a href="http://hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-encounter.html">US Core Encounter Profile</a></p></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>mr-data</blockquote><p><b>US Public Health Related Data Extension</b>: medicationOrders</p><p><b>type</b>: MedicationRequest</p><p><b>profile</b>: <a href="http://hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-medicationrequest.html">US Core MedicationRequest Profile</a></p></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>immz-data</blockquote><p><b>US Public Health Related Data Extension</b>: immunizations</p><p><b>type</b>: Immunization</p><p><b>profile</b>: <a href="http://hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-immunization.html">US Core Immunization Profile</a></p></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>proc-data</blockquote><p><b>US Public Health Related Data Extension</b>: procedures</p><p><b>type</b>: Procedure</p><p><b>profile</b>: <a href="http://hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-procedure.html">US Core Procedure Profile</a></p></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>labResult-data</blockquote><p><b>US Public Health Related Data Extension</b>: labResults</p><p><b>type</b>: Observation</p><p><b>profile</b>: <a href="http://hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-observation-lab.html">US Core Laboratory Result Observation Profile</a></p></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>labOrder-data</blockquote><p><b>US Public Health Related Data Extension</b>: labOrders</p><p><b>type</b>: ServiceRequest</p><p><b>profile</b>: <a href="http://hl7.org/fhir/R4/servicerequest.html">ServiceRequest</a></p></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>diagnosticResult-data</blockquote><p><b>US Public Health Related Data Extension</b>: diagnosticResults</p><p><b>type</b>: DiagnosticReport</p><p><b>profile</b>: <a href="http://hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-diagnosticreport-lab.html">US Core DiagnosticReport Profile for Laboratory Results Reporting</a></p></blockquote><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>diagnosticOrder-data</blockquote><p><b>US Public Health Related Data Extension</b>: diagnosticOrders</p><p><b>type</b>: DiagnosticReport</p><p><b>profile</b>: <a href="http://hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-diagnosticreport-lab.html">US Core DiagnosticReport Profile for Laboratory Results Reporting</a></p></blockquote><blockquote><p><b>output</b></p><blockquote><p><b>id</b></p>eicr-report</blockquote><p><b>type</b>: Bundle</p><p><b>profile</b>: <a href="StructureDefinition-eicr-document-bundle.html">eICR Document Bundle</a></p></blockquote><h3>RelatedActions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>ActionId</b></td><td><b>Relationship</b></td></tr><tr><td style="display: none">*</td><td>validate-eicr</td><td>Before Start</td></tr></table></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>id</b></p>validate-eicr</blockquote><p><b>description</b>: This action represents the validation of the eICR. It subsequently calls route-and-send.</p><p><b>textEquivalent</b>: Validate eICR</p><p><b>code</b>: <span title="Codes:{http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions validate-report}">Validate Report against specified profiles and terminologies.</span></p><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>generated-eicr-report</blockquote><p><b>US Public Health Related Data Extension</b>: eicr-report</p><p><b>type</b>: Bundle</p><p><b>profile</b>: <a href="StructureDefinition-eicr-document-bundle.html">eICR Document Bundle</a></p></blockquote><blockquote><p><b>output</b></p><blockquote><p><b>id</b></p>valid-eicr-report</blockquote><p><b>type</b>: Bundle</p><p><b>profile</b>: <a href="StructureDefinition-eicr-document-bundle.html">eICR Document Bundle</a></p></blockquote><h3>RelatedActions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>ActionId</b></td><td><b>Relationship</b></td></tr><tr><td style="display: none">*</td><td>route-and-send-eicr</td><td>Before Start</td></tr></table></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>id</b></p>route-and-send-eicr</blockquote><p><b>description</b>: This action represents the routing and sending of the eICR.</p><p><b>textEquivalent</b>: Route and send eICR</p><p><b>code</b>: <span title="Codes:{http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions submit-report}">Submit the report to specified endpoint</span></p><blockquote><p><b>input</b></p><blockquote><p><b>id</b></p>validated-eicr-report</blockquote><p><b>US Public Health Related Data Extension</b>: valid-eicr-report</p><p><b>type</b>: Bundle</p><p><b>profile</b>: <a href="StructureDefinition-eicr-document-bundle.html">eICR Document Bundle</a></p></blockquote><blockquote><p><b>output</b></p><blockquote><p><b>id</b></p>submitted-eicr-report</blockquote><p><b>type</b>: Bundle</p><p><b>profile</b>: <a href="StructureDefinition-eicr-document-bundle.html">eICR Document Bundle</a></p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>id</b></p>encounter-modified</blockquote><p><b>description</b>: This action represents the start of the reporting workflow in response to the encounter-modified event</p><p><b>textEquivalent</b>: Start the reporting workflow in response to an encounter-modified event</p><p><b>code</b>: <span title="Codes:{http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions initiate-reporting-workflow}">Initiate a reporting workflow</span></p><blockquote><p><b>trigger</b></p><blockquote><p><b>id</b></p>encounter-modified-trigger</blockquote><p><b>US Public Health Named Event Type Extension</b>: <span title="Codes:{http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-triggerdefinition-namedevents encounter-modified}">Indicates modifications to data elements of an encounter</span></p><p><b>type</b>: Named Event</p><p><b>name</b>: encounter-modified</p></blockquote><blockquote><p><b>condition</b></p><p><b>kind</b>: Applicability</p><h3>Expressions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style="display: none">*</td><td>FHIRPath</td><td>%encounter.where(period.start + %normalReportingDuration < now())</td></tr></table></blockquote><h3>RelatedActions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>ActionId</b></td><td><b>Relationship</b></td></tr><tr><td style="display: none">*</td><td>create-eicr</td><td>Before Start</td></tr></table></blockquote></div>
</text>
<extension url="http://hl7.org/fhir/StructureDefinition/variable">
<valueExpression>
<name value="normalReportingDuration"/>
<language value="text/fhirpath"/>
<expression value="2 weeks"/>
</valueExpression>
</extension>
<url
value="http://hl7.org/fhir/us/ecr/PlanDefinition/plandefinition-ersd-instance-simple-example"/>
<identifier>
<system value="urn:ietf:rfc:3986"/>
<value value="urn:oid:2.16.840.1.113883.4.642.40.46.34.4"/>
</identifier>
<version value="2.1.2"/>
<name value="PlanDefinition_eRSD_Instance_Simple_Example"/>
<title value="eRSD PlanDefinition Instance Simple Example"/>
<type>
<coding>
<system
value="http://terminology.hl7.org/CodeSystem/plan-definition-type"/>
<code value="workflow-definition"/>
<display value="Workflow Definition"/>
</coding>
</type>
<status value="active"/>
<experimental value="true"/>
<date value="2020-07-31T12:32:29.858-05:00"/>
<publisher value="HL7 International / Public Health"/>
<contact>
<name value="HL7 International / Public Health"/>
<telecom>
<system value="url"/>
<value value="http://www.hl7.org/Special/committees/pher"/>
</telecom>
</contact>
<description value="An example ersd PlanDefinition"/>
<jurisdiction>
<coding>
<system value="urn:iso:std:iso:3166"/>
<code value="US"/>
<display value="United States of America"/>
</coding>
<text value="United States of America"/>
</jurisdiction>
<action id="start-workflow">
<description
value="This action represents the start of the reporting workflow in response to the encounter-start event."/>
<textEquivalent
value="Start the reporting workflow in response to an encounter-start event"/>
<code>
<coding>
<system
value="http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"/>
<code value="initiate-reporting-workflow"/>
<display value="Initiate a reporting workflow"/>
</coding>
</code>
<trigger id="encounter-start">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-named-eventtype-extension">
<valueCodeableConcept>
<coding>
<system
value="http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-triggerdefinition-namedevents"/>
<code value="encounter-start"/>
<display value="Indicates the start of an encounter"/>
</coding>
</valueCodeableConcept>
</extension>
<type value="named-event"/>
<name value="encounter-start"/>
</trigger>
<input id="patient">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension">
<valueString value="Patient/{{context.patientId}}"/>
</extension>
<type value="Patient"/>
</input>
<input id="encounter">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension">
<valueString value="Encounter/{{context.encounterId}}"/>
</extension>
<type value="Encounter"/>
</input>
<relatedAction>
<actionId value="check-suspected-disorder"/>
<relationship value="before-start"/>
<offsetDuration>
<value value="1"/>
<system value="http://unitsofmeasure.org"/>
<code value="h"/>
</offsetDuration>
</relatedAction>
</action>
<action id="check-suspected-disorder">
<description
value="This action represents the start of the check suspected disorder reporting workflow in response to the encounter-start event."/>
<textEquivalent
value="Check suspected disorders for immediate reportability and setup jobs for future reportability checks."/>
<code>
<coding>
<system
value="http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"/>
<code value="execute-reporting-workflow"/>
</coding>
</code>
<action id="is-encounter-suspected-disorder">
<description
value="This action represents the check for suspected disorder reportability to create the patients eICR."/>
<textEquivalent
value="Check Trigger Codes based on Suspected Reportable Value set."/>
<code>
<coding>
<system
value="http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"/>
<code value="check-trigger-codes"/>
</coding>
</code>
<condition>
<kind value="applicability"/>
<expression>
<language value="text/fhirpath"/>
<expression
value="%modifiedConditions.exists() or %modifiedLabResults.exists() or %modifiedMedicationOrders.exists()"/>
</expression>
</condition>
<input id="modifiedConditions">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension">
<valueString
value="Condition?patient=Patient/{{context.patientId}}"/>
</extension>
<type value="Condition"/>
<codeFilter>
<path value="code"/>
<valueSet
value="http://hl7.org/fhir/us/ecr/ValueSet/valueset-sdtc-example"/>
</codeFilter>
</input>
<input id="modifiedLabResults">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension">
<valueString
value="Observation?patient=Patient/{{context.patientId}}"/>
</extension>
<type value="Observation"/>
<codeFilter>
<path value="value"/>
<valueSet
value="http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example"/>
</codeFilter>
</input>
<input id="modifiedMedicationOrders">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension">
<valueString
value="MedicationRequest?patient=Patient/{{context.patientId}}"/>
</extension>
<type value="MedicationRequest"/>
<codeFilter>
<path value="medication"/>
<valueSet
value="http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example"/>
</codeFilter>
</input>
<relatedAction>
<actionId value="create-eicr"/>
<relationship value="before-start"/>
</relatedAction>
</action>
<action id="continue-check-reportable">
<code>
<coding>
<system
value="http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"/>
<code value="evaluate-condition"/>
</coding>
</code>
<condition>
<kind value="applicability"/>
<expression>
<language value="text/fhirpath"/>
<expression
value="%encounter.where((status = 'in-progress' and period.start + %normalReportingDuration < now()) or status = 'finished' and period.end <= now() - 72 hours)"/>
</expression>
</condition>
<relatedAction>
<actionId value="check-reportable"/>
<relationship value="before-start"/>
<offsetDuration>
<value value="6"/>
<comparator value="<="/>
<system value="http://unitsofmeasure.org"/>
<code value="h"/>
</offsetDuration>
</relatedAction>
</action>
</action>
<action id="check-reportable">
<description
value="This action represents the check for suspected reportability of the eICR."/>
<textEquivalent
value="Check Reportability and setup jobs for future reportability checks."/>
<code>
<coding>
<system
value="http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"/>
<code value="execute-reporting-workflow"/>
</coding>
</code>
<action id="is-encounter-reportable">
<description
value="This action represents the check for reportability to create the patients eICR."/>
<textEquivalent value="Check Trigger Codes based on RCTC Value sets."/>
<code>
<coding>
<system
value="http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"/>
<code value="check-trigger-codes"/>
</coding>
</code>
<condition>
<kind value="applicability"/>
<expression>
<language value="text/fhirpath"/>
<expression
value="%encounter.where(period.start + %normalReportingDuration >= now()) and (%conditions.exists() or %encounters.exists() or %immunizations.exists() or %procedures.exists() or %procedureOrders.exists() or %labOrders.exists() or %labTests.exists() or %labResults.exists() or %medicationAdministrations.exists() or %medicationOrders.exists() or %medicationDispenses.exists())"/>
</expression>
</condition>
<input id="conditions">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension">
<valueString
value="Condition?patient=Patient/{{context.patientId}}"/>
</extension>
<type value="Condition"/>
<codeFilter>
<path value="code"/>
<valueSet
value="http://hl7.org/fhir/us/ecr/ValueSet/valueset-dxtc-example"/>
</codeFilter>
</input>
<input id="encounters">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension">
<valueString value="encounter"/>
</extension>
<type value="Encounter"/>
<codeFilter>
<path value="reasonCode"/>
<valueSet
value="http://hl7.org/fhir/us/ecr/ValueSet/valueset-dxtc-example"/>
</codeFilter>
</input>
<input id="immunizations">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension">
<valueString
value="Immunization?patient=Patient/{{context.patientId}}"/>
</extension>
<type value="Immunization"/>
<codeFilter>
<path value="vaccineCode"/>
<valueSet
value="http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example"/>
</codeFilter>
</input>
<input id="labOrders">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension">
<valueString
value="ServiceRequest?patient=Patient/{{context.patientId}}"/>
</extension>
<type value="ServiceRequest"/>
<codeFilter>
<path value="code"/>
<valueSet
value="http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example"/>
</codeFilter>
</input>
<input id="labTests">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension">
<valueString
value="Observation?patient=Patient/{{context.patientId}}"/>
</extension>
<type value="Observation"/>
<codeFilter>
<path value="code"/>
<valueSet
value="http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example"/>
</codeFilter>
</input>
<input id="diagnosticOrders">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension">
<valueString
value="DiagnosticReport?patient=Patient/{{context.patientId}}"/>
</extension>
<type value="DiagnosticReport"/>
<codeFilter>
<path value="code"/>
<valueSet
value="http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example"/>
</codeFilter>
</input>
<input id="procedureOrders">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension">
<valueString
value="ServiceRequest?patient=Patient/{{context.patientId}}"/>
</extension>
<type value="ServiceRequest"/>
<codeFilter>
<path value="code"/>
<valueSet
value="http://hl7.org/fhir/us/ecr/ValueSet/valueset-pctc-example"/>
</codeFilter>
</input>
<input id="procedures">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension">
<valueString
value="Procedure?patient=Patient/{{context.patientId}}"/>
</extension>
<type value="Procedure"/>
<codeFilter>
<path value="code"/>
<valueSet
value="http://hl7.org/fhir/us/ecr/ValueSet/valueset-pctc-example"/>
</codeFilter>
</input>
<input id="medicationOrders">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension">
<valueString
value="MedicationRequest?patient=Patient/{{context.patientId}}"/>
</extension>
<type value="MedicationRequest"/>
<codeFilter>
<path value="medication"/>
<valueSet
value="http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example"/>
</codeFilter>
</input>
<input id="medicationDispenses">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension">
<valueString
value="MedicationDispense?patient=Patient/{{context.patientId}}"/>
</extension>
<type value="MedicationDispense"/>
<codeFilter>
<path value="medication"/>
<valueSet
value="http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example"/>
</codeFilter>
</input>
<input id="medicationAdministrations">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension">
<valueString
value="MedicationAdministration?patient=Patient/{{context.patientId}}"/>
</extension>
<type value="MedicationAdministration"/>
<codeFilter>
<path value="medication"/>
<valueSet
value="http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example"/>
</codeFilter>
</input>
<input id="labResults">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension">
<valueString value="labTests"/>
</extension>
<type value="Observation"/>
<codeFilter>
<path value="value"/>
<valueSet
value="http://hl7.org/fhir/us/ecr/ValueSet/valueset-ostc-example"/>
</codeFilter>
</input>
<input id="diagnosticResults">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension">
<valueString value="diagnosticOrders"/>
</extension>
<type value="DiagnosticReport"/>
<codeFilter>
<path value="code"/>
<valueSet
value="http://hl7.org/fhir/us/ecr/ValueSet/valueset-ostc-example"/>
</codeFilter>
</input>
<relatedAction>
<actionId value="create-eicr"/>
<relationship value="before-start"/>
</relatedAction>
</action>
<action id="check-update-eicr">
<code>
<coding>
<system
value="http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"/>
<code value="evaluate-condition"/>
</coding>
</code>
<condition>
<kind value="applicability"/>
<expression>
<language value="text/fhirpath"/>
<expression
value="%last-eicr.last().entry.first().resource.date < now() - 72 hours"/>
</expression>
</condition>
<input id="last-eicr">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension">
<valueString value="eicr-report"/>
</extension>
<type value="Bundle"/>
<profile
value="http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle"/>
</input>
<relatedAction>
<actionId value="create-eicr"/>
<relationship value="before-start"/>
</relatedAction>
</action>
<action id="is-encounter-in-progress">
<code>
<coding>
<system
value="http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"/>
<code value="evaluate-condition"/>
</coding>
</code>
<condition>
<kind value="applicability"/>
<expression>
<language value="text/fhirpath"/>
<expression
value="%`inprogress-encounter`.where(status = 'in-progress' and period.start + %normalReportingDuration >= now() and period.end <= now() - 72 hours)"/>
</expression>
</condition>
<input id="inprogress-encounter">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension">
<valueString value="encounter"/>
</extension>
<type value="Encounter"/>
</input>
<relatedAction>
<actionId value="check-reportable"/>
<relationship value="before-start"/>
<offsetDuration>
<value value="6"/>
<comparator value="<="/>
<system value="http://unitsofmeasure.org"/>
<code value="h"/>
</offsetDuration>
</relatedAction>
</action>
<action id="is-encounter-completed">
<code>
<coding>
<system
value="http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"/>
<code value="complete-reporting"/>
</coding>
</code>
<condition>
<kind value="applicability"/>
<expression>
<language value="text/fhirpath"/>
<expression
value="%completedEncounter.exists(status = 'finished')"/>
</expression>
</condition>
<input id="completedEncounter">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension">
<valueString value="encounter"/>
</extension>
<type value="Encounter"/>
</input>
</action>
</action>
<action id="create-eicr">
<description
value="This action represents the creation of the eICR. It subsequently calls validate."/>
<textEquivalent value="Create eICR"/>
<code>
<coding>
<system
value="http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"/>
<code value="create-report"/>
</coding>
</code>
<input id="patient-data">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension">
<valueString value="patient"/>
</extension>
<type value="Patient"/>
<profile
value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"/>
</input>
<input id="condition-data">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension">
<valueString value="conditions"/>
</extension>
<type value="Condition"/>
<profile
value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition"/>
</input>
<input id="encounter-data">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension">
<valueString value="encounters"/>
</extension>
<type value="Encounter"/>
<profile
value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter"/>
</input>
<input id="mr-data">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension">
<valueString value="medicationOrders"/>
</extension>
<type value="MedicationRequest"/>
<profile
value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest"/>
</input>
<input id="immz-data">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension">
<valueString value="immunizations"/>
</extension>
<type value="Immunization"/>
<profile
value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization"/>
</input>
<input id="proc-data">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension">
<valueString value="procedures"/>
</extension>
<type value="Procedure"/>
<profile
value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure"/>
</input>
<input id="labResult-data">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension">
<valueString value="labResults"/>
</extension>
<type value="Observation"/>
<profile
value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab"/>
</input>
<input id="labOrder-data">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension">
<valueString value="labOrders"/>
</extension>
<type value="ServiceRequest"/>
<profile
value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
</input>
<input id="diagnosticResult-data">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension">
<valueString value="diagnosticResults"/>
</extension>
<type value="DiagnosticReport"/>
<profile
value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab"/>
</input>
<input id="diagnosticOrder-data">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension">
<valueString value="diagnosticOrders"/>
</extension>
<type value="DiagnosticReport"/>
<profile
value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab"/>
</input>
<output id="eicr-report">
<type value="Bundle"/>
<profile
value="http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle"/>
</output>
<relatedAction>
<actionId value="validate-eicr"/>
<relationship value="before-start"/>
</relatedAction>
</action>
<action id="validate-eicr">
<description
value="This action represents the validation of the eICR. It subsequently calls route-and-send."/>
<textEquivalent value="Validate eICR"/>
<code>
<coding>
<system
value="http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"/>
<code value="validate-report"/>
</coding>
</code>
<input id="generated-eicr-report">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension">
<valueString value="eicr-report"/>
</extension>
<type value="Bundle"/>
<profile
value="http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle"/>
</input>
<output id="valid-eicr-report">
<type value="Bundle"/>
<profile
value="http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle"/>
</output>
<relatedAction>
<actionId value="route-and-send-eicr"/>
<relationship value="before-start"/>
</relatedAction>
</action>
<action id="route-and-send-eicr">
<description
value="This action represents the routing and sending of the eICR."/>
<textEquivalent value="Route and send eICR"/>
<code>
<coding>
<system
value="http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"/>
<code value="submit-report"/>
</coding>
</code>
<input id="validated-eicr-report">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-relateddata-extension">
<valueString value="valid-eicr-report"/>
</extension>
<type value="Bundle"/>
<profile
value="http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle"/>
</input>
<output id="submitted-eicr-report">
<type value="Bundle"/>
<profile
value="http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle"/>
</output>
</action>
<action id="encounter-modified">
<description
value="This action represents the start of the reporting workflow in response to the encounter-modified event"/>
<textEquivalent
value="Start the reporting workflow in response to an encounter-modified event"/>
<code>
<coding>
<system
value="http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions"/>
<code value="initiate-reporting-workflow"/>
<display value="Initiate a reporting workflow"/>
</coding>
</code>
<trigger id="encounter-modified-trigger">
<extension
url="http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-named-eventtype-extension">
<valueCodeableConcept>
<coding>
<system
value="http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-triggerdefinition-namedevents"/>
<code value="encounter-modified"/>
<display
value="Indicates modifications to data elements of an encounter"/>
</coding>
</valueCodeableConcept>
</extension>
<type value="named-event"/>
<name value="encounter-modified"/>
</trigger>
<condition>
<kind value="applicability"/>
<expression>
<language value="text/fhirpath"/>
<expression
value="%encounter.where(period.start + %normalReportingDuration < now())"/>
</expression>
</condition>
<relatedAction>
<actionId value="create-eicr"/>
<relationship value="before-start"/>
</relatedAction>
</action>
</PlanDefinition>