Electronic Case Reporting (eCR)
3.0.0-ballot - STU 3 Ballot United States of America flag

Electronic Case Reporting (eCR), published by HL7 International / Public Health. This guide is not an authorized publication; it is the continuous build for version 3.0.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/case-reporting/ and changes regularly. See the Directory of published versions

: eRSD PlanDefinition Instance Example

Page standards status: Informative

Raw ttl | Download

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:PlanDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "plandefinition-ersd-instance-example"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/ersd-plandefinition"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ecr/StructureDefinition/ersd-plandefinition>     ] )
  ] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:text [
fhir:status [ fhir:v "extensions" ] ;
fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <table class=\"narrative-table\">\n    <tbody>\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Metadata</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">eRSD PlanDefinition Instance Example</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Version</th>\n\n\n\n<td class=\"content-container\">3.0.0-ballot</td>\n\n\n</tr>\n\n\n\n\n\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Identifier</th>\n\n\n\n<td class=\"content-container\">urn:oid:2.16.840.1.113883.4.642.40.46.34.3</td>\n\n\n</tr>\n\n\n\n  \n    \n    \n  \n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Experimental</th>\n\n\n\n<td class=\"content-container\">true</td>\n\n\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Jurisdiction</th>\n\n\n\n<td class=\"content-container\">\n    US from <a href=\"https://en.wikipedia.org/wiki/ISO_3166-2\">urn:iso:std:iso:3166</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Steward (Publisher)</th>\n\n\n\n<td class=\"content-container\">HL7 International / Public Health</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Steward Contact</th>\n\n\n\n<td class=\"content-container\">HL7 International / Public Health</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\"><div><p>An example ersd PlanDefinition</p>\n</div></td>\n\n\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n\n<td class=\"content-container\">\n    Workflow Definition\n\n\n</td>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Action</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">start-workflow</td>\n\n\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">This action represents the start of the reporting workflow in response to the encounter-start event.</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Human-interpretable Description</th>\n\n\n\n<td class=\"content-container\">Start the reporting workflow in response to an encounter-start event</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    Initiate a reporting workflow\n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Trigger Type</th>\n\n\n\n<td class=\"content-container\">Named Event</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Trigger Name</th>\n\n\n\n<td class=\"content-container\">encounter-start</td>\n\n\n</tr>\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Patient\n    <br/>\n   \n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Encounter\n    <br/>\n   \n   \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Action</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">check-suspected-disorder</td>\n\n\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">This action represents the start of the check suspected disorder reporting workflow in response to the encounter-start event.</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Human-interpretable Description</th>\n\n\n\n<td class=\"content-container\">Check suspected disorders for immediate reportability and setup jobs for future reportability checks.</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    execute-reporting-workflow from <a href=\"http://hl7.org/fhir/us/ph-library/2.0.0-snapshot/CodeSystem-us-ph-codesystem-plandefinition-actions.html\">http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n  \n    \n      \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action (Parent Action ID: check-suspected-disorder)</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">is-encounter-suspected-disorder</td>\n\n\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">This action represents the check for suspected disorder reportability to create the patients eICR.</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Human-interpretable Description</th>\n\n\n\n<td class=\"content-container\">Check Trigger Codes based on Suspected Reportable Value set.</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    check-trigger-codes from <a href=\"http://hl7.org/fhir/us/ph-library/2.0.0-snapshot/CodeSystem-us-ph-codesystem-plandefinition-actions.html\">http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n    \n    \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">is-encounter-suspected-disorder</td>\n\n\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">This action represents the check for suspected disorder reportability to create the patients eICR.</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Human-interpretable Description</th>\n\n\n\n<td class=\"content-container\">Check Trigger Codes based on Suspected Reportable Value set.</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    check-trigger-codes from <a href=\"http://hl7.org/fhir/us/ph-library/2.0.0-snapshot/CodeSystem-us-ph-codesystem-plandefinition-actions.html\">http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n    \n  \n    \n      \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action (Parent Action ID: check-suspected-disorder)</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">continue-check-reportable</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    evaluate-condition from <a href=\"http://hl7.org/fhir/us/ph-library/2.0.0-snapshot/CodeSystem-us-ph-codesystem-plandefinition-actions.html\">http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n    \n    \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">continue-check-reportable</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    evaluate-condition from <a href=\"http://hl7.org/fhir/us/ph-library/2.0.0-snapshot/CodeSystem-us-ph-codesystem-plandefinition-actions.html\">http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n    \n  \n\n\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Action</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">check-reportable</td>\n\n\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">This action represents the check for suspected reportability of the eICR.</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Human-interpretable Description</th>\n\n\n\n<td class=\"content-container\">Check Reportability and setup jobs for future reportability checks.</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    execute-reporting-workflow from <a href=\"http://hl7.org/fhir/us/ph-library/2.0.0-snapshot/CodeSystem-us-ph-codesystem-plandefinition-actions.html\">http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n  \n    \n      \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action (Parent Action ID: check-reportable)</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">is-encounter-reportable</td>\n\n\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">This action represents the check for reportability to create the patients eICR.</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Human-interpretable Description</th>\n\n\n\n<td class=\"content-container\">Check Trigger Codes based on RCTC Value sets.</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    check-trigger-codes from <a href=\"http://hl7.org/fhir/us/ph-library/2.0.0-snapshot/CodeSystem-us-ph-codesystem-plandefinition-actions.html\">http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n    \n    \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">is-encounter-reportable</td>\n\n\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">This action represents the check for reportability to create the patients eICR.</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Human-interpretable Description</th>\n\n\n\n<td class=\"content-container\">Check Trigger Codes based on RCTC Value sets.</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    check-trigger-codes from <a href=\"http://hl7.org/fhir/us/ph-library/2.0.0-snapshot/CodeSystem-us-ph-codesystem-plandefinition-actions.html\">http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n    \n  \n    \n      \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action (Parent Action ID: check-reportable)</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">check-update-eicr</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    evaluate-condition from <a href=\"http://hl7.org/fhir/us/ph-library/2.0.0-snapshot/CodeSystem-us-ph-codesystem-plandefinition-actions.html\">http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n    \n    \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">check-update-eicr</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    evaluate-condition from <a href=\"http://hl7.org/fhir/us/ph-library/2.0.0-snapshot/CodeSystem-us-ph-codesystem-plandefinition-actions.html\">http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n    \n  \n    \n      \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action (Parent Action ID: check-reportable)</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">is-encounter-in-progress</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    evaluate-condition from <a href=\"http://hl7.org/fhir/us/ph-library/2.0.0-snapshot/CodeSystem-us-ph-codesystem-plandefinition-actions.html\">http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n    \n    \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">is-encounter-in-progress</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    evaluate-condition from <a href=\"http://hl7.org/fhir/us/ph-library/2.0.0-snapshot/CodeSystem-us-ph-codesystem-plandefinition-actions.html\">http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n    \n  \n    \n      \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action (Parent Action ID: check-reportable)</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">is-encounter-completed</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    complete-reporting from <a href=\"http://hl7.org/fhir/us/ph-library/2.0.0-snapshot/CodeSystem-us-ph-codesystem-plandefinition-actions.html\">http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n    \n    \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">is-encounter-completed</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    complete-reporting from <a href=\"http://hl7.org/fhir/us/ph-library/2.0.0-snapshot/CodeSystem-us-ph-codesystem-plandefinition-actions.html\">http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n    \n  \n\n\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Action</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">create-eicr</td>\n\n\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">This action represents the creation of the eICR. It subsequently calls validate.</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Human-interpretable Description</th>\n\n\n\n<td class=\"content-container\">Create eICR</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    create-report from <a href=\"http://hl7.org/fhir/us/ph-library/2.0.0-snapshot/CodeSystem-us-ph-codesystem-plandefinition-actions.html\">http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Patient\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/core/STU6.1/StructureDefinition-us-core-patient.html\">US Core Patient Profile</a> version: 6.1.0\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Condition\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/core/STU6.1/StructureDefinition-us-core-condition-encounter-diagnosis.html\">US Core Condition Encounter Diagnosis Profile</a> version: 6.1.0\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Encounter\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/core/STU6.1/StructureDefinition-us-core-encounter.html\">US Core Encounter Profile</a> version: 6.1.0\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: MedicationRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/core/STU6.1/StructureDefinition-us-core-medicationrequest.html\">US Core MedicationRequest Profile</a> version: 6.1.0\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Immunization\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/core/STU6.1/StructureDefinition-us-core-immunization.html\">US Core Immunization Profile</a> version: 6.1.0\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Procedure\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/core/STU6.1/StructureDefinition-us-core-procedure.html\">US Core Procedure Profile</a> version: 6.1.0\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Observation\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/core/STU6.1/StructureDefinition-us-core-observation-lab.html\">US Core Laboratory Result Observation Profile</a> version: 6.1.0\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: ServiceRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/servicerequest.html\">ServiceRequest</a>\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: DiagnosticReport\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/core/STU6.1/StructureDefinition-us-core-diagnosticreport-lab.html\">US Core DiagnosticReport Profile for Laboratory Results Reporting</a> version: 6.1.0\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: DiagnosticReport\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/us/core/STU6.1/StructureDefinition-us-core-diagnosticreport-lab.html\">US Core DiagnosticReport Profile for Laboratory Results Reporting</a> version: 6.1.0\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Output Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Bundle\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"StructureDefinition-eicr-document-bundle.html\">eICR Document Bundle</a>\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Action</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">validate-eicr</td>\n\n\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">This action represents the validation of the eICR. It subsequently calls route-and-send.</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Human-interpretable Description</th>\n\n\n\n<td class=\"content-container\">Validate eICR</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    validate-report from <a href=\"http://hl7.org/fhir/us/ph-library/2.0.0-snapshot/CodeSystem-us-ph-codesystem-plandefinition-actions.html\">http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Bundle\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"StructureDefinition-eicr-document-bundle.html\">eICR Document Bundle</a>\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Output Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Bundle\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"StructureDefinition-eicr-document-bundle.html\">eICR Document Bundle</a>\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Action</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">route-and-send-eicr</td>\n\n\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">This action represents the routing and sending of the eICR.</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Human-interpretable Description</th>\n\n\n\n<td class=\"content-container\">Route and send eICR</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    submit-report from <a href=\"http://hl7.org/fhir/us/ph-library/2.0.0-snapshot/CodeSystem-us-ph-codesystem-plandefinition-actions.html\">http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Bundle\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"StructureDefinition-eicr-document-bundle.html\">eICR Document Bundle</a>\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Output Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Bundle\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"StructureDefinition-eicr-document-bundle.html\">eICR Document Bundle</a>\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Action</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Id</th>\n\n\n\n<td class=\"content-container\">encounter-modified</td>\n\n\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">This action represents the start of the reporting workflow in response to the encounter-modified event</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Human-interpretable Description</th>\n\n\n\n<td class=\"content-container\">Start the reporting workflow in response to an encounter-modified event</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    Initiate a reporting workflow\n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Trigger Type</th>\n\n\n\n<td class=\"content-container\">Named Event</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Trigger Name</th>\n\n\n\n<td class=\"content-container\">encounter-modified</td>\n\n\n</tr>\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Condition</th>\n  <td class=\"content-container\">\n  <em>Kind</em>: Applicability\n  \n    <br/>\n    \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.5.4 of the sample-content-ig Liquid templates</th>\n</tr>\n\n    </tbody>\n  </table>\n</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/variable"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/variable>     ] ;
fhir:value [
a fhir:Expression ;
fhir:name [ fhir:v "normalReportingDuration" ] ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "14" ]     ]
  ] ) ; # 
  fhir:url [
fhir:v "http://hl7.org/fhir/us/ecr/PlanDefinition/plandefinition-ersd-instance-example"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ecr/PlanDefinition/plandefinition-ersd-instance-example>
  ] ; # 
  fhir:identifier ( [
fhir:system [
fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
fhir:l <urn:ietf:rfc:3986>     ] ;
fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.40.46.34.3" ]
  ] ) ; # 
  fhir:version [ fhir:v "3.0.0-ballot"] ; # 
  fhir:name [ fhir:v "PlanDefinition_eRSD_Instance_Example"] ; # 
  fhir:title [ fhir:v "eRSD PlanDefinition Instance Example"] ; # 
  fhir:type [
    ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/plan-definition-type"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/plan-definition-type>       ] ;
fhir:code [ fhir:v "workflow-definition" ] ;
fhir:display [ fhir:v "Workflow Definition" ]     ] )
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v true] ; # 
  fhir:date [ fhir:v "2020-07-31T12:32:29.858-05:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "HL7 International / Public Health"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "HL7 International / Public Health" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://www.hl7.org/Special/committees/pher" ]     ] [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "pher@lists.HL7.org" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "An example ersd PlanDefinition"] ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [
fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
fhir:l <urn:iso:std:iso:3166>       ] ;
fhir:code [ fhir:v "US" ]     ] )
  ] ) ; # 
  fhir:effectivePeriod [
fhir:start [ fhir:v "2020-12-01"^^xsd:date ]
  ] ; # 
  fhir:relatedArtifact ( [
fhir:type [ fhir:v "depends-on" ] ;
fhir:label [ fhir:v "RCTC Value Set Library of Trigger Codes" ] ;
fhir:resource [
fhir:v "http://hl7.org/fhir/us/ecr/Library/library-rctc-example"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ecr/Library/library-rctc-example>     ]
  ] ) ; # 
  fhir:action ( [
fhir:id [ fhir:v "start-workflow" ] ;
fhir:description [ fhir:v "This action represents the start of the reporting workflow in response to the encounter-start event." ] ;
fhir:textEquivalent [ fhir:v "Start the reporting workflow in response to an encounter-start event" ] ;
    ( fhir:code [
      ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions>         ] ;
fhir:code [ fhir:v "initiate-reporting-workflow" ] ;
fhir:display [ fhir:v "Initiate a reporting workflow" ]       ] )     ] ) ;
    ( fhir:trigger [
fhir:id [ fhir:v "encounter-start" ] ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-named-eventtype-extension"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-named-eventtype-extension>         ] ;
fhir:value [
a fhir:CodeableConcept ;
          ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-triggerdefinition-namedevents"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-triggerdefinition-namedevents>             ] ;
fhir:code [ fhir:v "encounter-start" ] ;
fhir:display [ fhir:v "Indicates the start of an encounter" ]           ] )         ]       ] ) ;
fhir:type [ fhir:v "named-event" ] ;
fhir:name [ fhir:v "encounter-start" ]     ] ) ;
    ( fhir:input [
fhir:id [ fhir:v "patient" ] ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern>         ] ;
fhir:value [
a fhir:String ;
fhir:v "Patient/{{context.patientId}}"         ]       ] ) ;
fhir:type [ fhir:v "Patient" ]     ] [
fhir:id [ fhir:v "encounter" ] ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern>         ] ;
fhir:value [
a fhir:String ;
fhir:v "Encounter/{{context.encounterId}}"         ]       ] ) ;
fhir:type [ fhir:v "Encounter" ]     ] ) ;
    ( fhir:relatedAction [
fhir:actionId [ fhir:v "check-suspected-disorder" ] ;
fhir:relationship [ fhir:v "before-start" ] ;
fhir:offset [
a fhir:Duration ;
fhir:value [ fhir:v "1"^^xsd:decimal ] ;
fhir:system [
fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
fhir:l <http://unitsofmeasure.org>         ] ;
fhir:code [ fhir:v "h" ]       ]     ] )
  ] [
fhir:id [ fhir:v "check-suspected-disorder" ] ;
fhir:description [ fhir:v "This action represents the start of the check suspected disorder reporting workflow in response to the encounter-start event." ] ;
fhir:textEquivalent [ fhir:v "Check suspected disorders for immediate reportability and setup jobs for future reportability checks." ] ;
    ( fhir:code [
      ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions>         ] ;
fhir:code [ fhir:v "execute-reporting-workflow" ]       ] )     ] ) ;
    ( fhir:action [
fhir:id [ fhir:v "is-encounter-suspected-disorder" ] ;
fhir:description [ fhir:v "This action represents the check for suspected disorder reportability to create the patients eICR." ] ;
fhir:textEquivalent [ fhir:v "Check Trigger Codes based on Suspected Reportable Value set." ] ;
      ( fhir:code [
        ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions>           ] ;
fhir:code [ fhir:v "check-trigger-codes" ]         ] )       ] )     ] [
fhir:id [ fhir:v "continue-check-reportable" ] ;
      ( fhir:code [
        ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions>           ] ;
fhir:code [ fhir:v "evaluate-condition" ]         ] )       ] )     ] )
  ] [
fhir:id [ fhir:v "check-reportable" ] ;
fhir:description [ fhir:v "This action represents the check for suspected reportability of the eICR." ] ;
fhir:textEquivalent [ fhir:v "Check Reportability and setup jobs for future reportability checks." ] ;
    ( fhir:code [
      ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions>         ] ;
fhir:code [ fhir:v "execute-reporting-workflow" ]       ] )     ] ) ;
    ( fhir:action [
fhir:id [ fhir:v "is-encounter-reportable" ] ;
fhir:description [ fhir:v "This action represents the check for reportability to create the patients eICR." ] ;
fhir:textEquivalent [ fhir:v "Check Trigger Codes based on RCTC Value sets." ] ;
      ( fhir:code [
        ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions>           ] ;
fhir:code [ fhir:v "check-trigger-codes" ]         ] )       ] )     ] [
fhir:id [ fhir:v "check-update-eicr" ] ;
      ( fhir:code [
        ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions>           ] ;
fhir:code [ fhir:v "evaluate-condition" ]         ] )       ] )     ] [
fhir:id [ fhir:v "is-encounter-in-progress" ] ;
      ( fhir:code [
        ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions>           ] ;
fhir:code [ fhir:v "evaluate-condition" ]         ] )       ] )     ] [
fhir:id [ fhir:v "is-encounter-completed" ] ;
      ( fhir:code [
        ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions>           ] ;
fhir:code [ fhir:v "complete-reporting" ]         ] )       ] )     ] )
  ] [
fhir:id [ fhir:v "create-eicr" ] ;
fhir:description [ fhir:v "This action represents the creation of the eICR. It subsequently calls validate." ] ;
fhir:textEquivalent [ fhir:v "Create eICR" ] ;
    ( fhir:code [
      ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions>         ] ;
fhir:code [ fhir:v "create-report" ]       ] )     ] ) ;
    ( fhir:input [
fhir:id [ fhir:v "patientdata" ] ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension>         ] ;
fhir:value [
a fhir:String ;
fhir:v "patient"         ]       ] ) ;
fhir:type [ fhir:v "Patient" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|6.1.0"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient?version=6.1.0>       ] )     ] [
fhir:id [ fhir:v "conditiondata" ] ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension>         ] ;
fhir:value [
a fhir:String ;
fhir:v "conditions"         ]       ] ) ;
fhir:type [ fhir:v "Condition" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition-encounter-diagnosis|6.1.0"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition-encounter-diagnosis?version=6.1.0>       ] )     ] [
fhir:id [ fhir:v "encounterdata" ] ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension>         ] ;
fhir:value [
a fhir:String ;
fhir:v "encounter"         ]       ] ) ;
fhir:type [ fhir:v "Encounter" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter|6.1.0"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter?version=6.1.0>       ] )     ] [
fhir:id [ fhir:v "mrdata" ] ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension>         ] ;
fhir:value [
a fhir:String ;
fhir:v "medicationOrders"         ]       ] ) ;
fhir:type [ fhir:v "MedicationRequest" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest|6.1.0"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest?version=6.1.0>       ] )     ] [
fhir:id [ fhir:v "immzdata" ] ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension>         ] ;
fhir:value [
a fhir:String ;
fhir:v "immunizations"         ]       ] ) ;
fhir:type [ fhir:v "Immunization" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization|6.1.0"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization?version=6.1.0>       ] )     ] [
fhir:id [ fhir:v "procdata" ] ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension>         ] ;
fhir:value [
a fhir:String ;
fhir:v "procedures"         ]       ] ) ;
fhir:type [ fhir:v "Procedure" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure|6.1.0"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure?version=6.1.0>       ] )     ] [
fhir:id [ fhir:v "labResultdata" ] ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension>         ] ;
fhir:value [
a fhir:String ;
fhir:v "labResults"         ]       ] ) ;
fhir:type [ fhir:v "Observation" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab|6.1.0"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab?version=6.1.0>       ] )     ] [
fhir:id [ fhir:v "labOrderdata" ] ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension>         ] ;
fhir:value [
a fhir:String ;
fhir:v "labOrders"         ]       ] ) ;
fhir:type [ fhir:v "ServiceRequest" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/ServiceRequest"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/ServiceRequest>       ] )     ] [
fhir:id [ fhir:v "diagnosticResultdata" ] ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension>         ] ;
fhir:value [
a fhir:String ;
fhir:v "diagnosticResults"         ]       ] ) ;
fhir:type [ fhir:v "DiagnosticReport" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab|6.1.0"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab?version=6.1.0>       ] )     ] [
fhir:id [ fhir:v "diagnosticOrderdata" ] ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension>         ] ;
fhir:value [
a fhir:String ;
fhir:v "diagnosticOrders"         ]       ] ) ;
fhir:type [ fhir:v "DiagnosticReport" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab|6.1.0"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab?version=6.1.0>       ] )     ] ) ;
    ( fhir:output [
fhir:id [ fhir:v "eicrreport" ] ;
fhir:type [ fhir:v "Bundle" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle>       ] )     ] ) ;
    ( fhir:relatedAction [
fhir:actionId [ fhir:v "validate-eicr" ] ;
fhir:relationship [ fhir:v "before-start" ]     ] )
  ] [
fhir:id [ fhir:v "validate-eicr" ] ;
fhir:description [ fhir:v "This action represents the validation of the eICR. It subsequently calls route-and-send." ] ;
fhir:textEquivalent [ fhir:v "Validate eICR" ] ;
    ( fhir:code [
      ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions>         ] ;
fhir:code [ fhir:v "validate-report" ]       ] )     ] ) ;
    ( fhir:input [
fhir:id [ fhir:v "generatedeicrreport" ] ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension>         ] ;
fhir:value [
a fhir:String ;
fhir:v "eicrreport"         ]       ] ) ;
fhir:type [ fhir:v "Bundle" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle>       ] )     ] ) ;
    ( fhir:output [
fhir:id [ fhir:v "valideicrreport" ] ;
fhir:type [ fhir:v "Bundle" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle>       ] )     ] ) ;
    ( fhir:relatedAction [
fhir:actionId [ fhir:v "route-and-send-eicr" ] ;
fhir:relationship [ fhir:v "before-start" ]     ] )
  ] [
fhir:id [ fhir:v "route-and-send-eicr" ] ;
fhir:description [ fhir:v "This action represents the routing and sending of the eICR." ] ;
fhir:textEquivalent [ fhir:v "Route and send eICR" ] ;
    ( fhir:code [
      ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions>         ] ;
fhir:code [ fhir:v "submit-report" ]       ] )     ] ) ;
    ( fhir:input [
fhir:id [ fhir:v "validatedeicrreport" ] ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension>         ] ;
fhir:value [
a fhir:String ;
fhir:v "valideicrreport"         ]       ] ) ;
fhir:type [ fhir:v "Bundle" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle>       ] )     ] ) ;
    ( fhir:output [
fhir:id [ fhir:v "submittedeicrreport" ] ;
fhir:type [ fhir:v "Bundle" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle>       ] )     ] )
  ] [
fhir:id [ fhir:v "encounter-modified" ] ;
fhir:description [ fhir:v "This action represents the start of the reporting workflow in response to the encounter-modified event" ] ;
fhir:textEquivalent [ fhir:v "Start the reporting workflow in response to an encounter-modified event" ] ;
    ( fhir:code [
      ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions>         ] ;
fhir:code [ fhir:v "initiate-reporting-workflow" ] ;
fhir:display [ fhir:v "Initiate a reporting workflow" ]       ] )     ] ) ;
    ( fhir:trigger [
fhir:id [ fhir:v "encounter-modified-trigger" ] ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-named-eventtype-extension"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-named-eventtype-extension>         ] ;
fhir:value [
a fhir:CodeableConcept ;
          ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-triggerdefinition-namedevents"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-triggerdefinition-namedevents>             ] ;
fhir:code [ fhir:v "encounter-modified" ] ;
fhir:display [ fhir:v "Indicates modifications to data elements of an encounter" ]           ] )         ]       ] ) ;
fhir:type [ fhir:v "named-event" ] ;
fhir:name [ fhir:v "encounter-modified" ]     ] ) ;
    ( fhir:condition [
fhir:kind [ fhir:v "applicability" ] ;
fhir:expression [
        ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-alternativeExpression"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-alternativeExpression>           ] ;
fhir:value [
a fhir:Expression ;
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Is Encounter Longer Than Normal Reporting Duration?" ] ;
fhir:reference [
fhir:v "http://hl7.org/fhir/us/ecr/Library/library-executable-rule-filters-example"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/us/ecr/Library/library-executable-rule-filters-example>             ]           ]         ] ) ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "%encounter.where(period.start + 1 day * %normalReportingDuration < now()).select(true)" ]       ]     ] ) ;
    ( fhir:relatedAction [
fhir:actionId [ fhir:v "create-eicr" ] ;
fhir:relationship [ fhir:v "before-start" ]     ] )
  ] ) . #