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 rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

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

<http://hl7.org/fhir/PlanDefinition/plandefinition-ersd-instance-example> a fhir:PlanDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "plandefinition-ersd-instance-example"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/ecr/StructureDefinition/ersd-plandefinition" ;
       fhir:index -1 ;
       fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/ersd-plandefinition>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<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>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index -1 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/variable" ] ;
     fhir:Extension.valueExpression [
       fhir:Expression.name [ fhir:value "normalReportingDuration" ] ;
       fhir:Expression.language [ fhir:value "text/fhirpath" ] ;
       fhir:Expression.expression [ fhir:value "14" ]
     ]
  ] ;
  fhir:PlanDefinition.url [ fhir:value "http://hl7.org/fhir/us/ecr/PlanDefinition/plandefinition-ersd-instance-example"] ;
  fhir:PlanDefinition.identifier [
     fhir:index -1 ;
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ] ;
     fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.4.642.40.46.34.3" ]
  ] ;
  fhir:PlanDefinition.version [ fhir:value "3.0.0-ballot"] ;
  fhir:PlanDefinition.name [ fhir:value "PlanDefinition_eRSD_Instance_Example"] ;
  fhir:PlanDefinition.title [ fhir:value "eRSD PlanDefinition Instance Example"] ;
  fhir:PlanDefinition.type [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/plan-definition-type" ] ;
       fhir:Coding.code [ fhir:value "workflow-definition" ] ;
       fhir:Coding.display [ fhir:value "Workflow Definition" ]
     ]
  ] ;
  fhir:PlanDefinition.status [ fhir:value "active"] ;
  fhir:PlanDefinition.experimental [ fhir:value "true"^^xsd:boolean] ;
  fhir:PlanDefinition.date [ fhir:value "2020-07-31T12:32:29.858-05:00"^^xsd:dateTime] ;
  fhir:PlanDefinition.publisher [ fhir:value "HL7 International / Public Health"] ;
  fhir:PlanDefinition.contact [
     fhir:index -1 ;
     fhir:ContactDetail.name [ fhir:value "HL7 International / Public Health" ] ;
     fhir:ContactDetail.telecom [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "http://www.hl7.org/Special/committees/pher" ]
     ], [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "pher@lists.HL7.org" ]
     ]
  ] ;
  fhir:PlanDefinition.description [ fhir:value "An example ersd PlanDefinition"] ;
  fhir:PlanDefinition.jurisdiction [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
       fhir:Coding.code [ fhir:value "US" ]
     ]
  ] ;
  fhir:PlanDefinition.effectivePeriod [
     fhir:Period.start [ fhir:value "2020-12-01"^^xsd:date ]
  ] ;
  fhir:PlanDefinition.relatedArtifact [
     fhir:index -1 ;
     fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ;
     fhir:RelatedArtifact.label [ fhir:value "RCTC Value Set Library of Trigger Codes" ] ;
     fhir:RelatedArtifact.resource [
       fhir:value "http://hl7.org/fhir/us/ecr/Library/library-rctc-example" ;
       fhir:link <http://hl7.org/fhir/us/ecr/Library/library-rctc-example>
     ]
  ] ;
  fhir:PlanDefinition.action [
     fhir:index -1 ;
     fhir:Element.id [ fhir:value "start-workflow" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "This action represents the start of the reporting workflow in response to the encounter-start event." ] ;
     fhir:PlanDefinition.action.textEquivalent [ fhir:value "Start the reporting workflow in response to an encounter-start event" ] ;
     fhir:PlanDefinition.action.code [
       fhir:index -1 ;
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
         fhir:Coding.code [ fhir:value "initiate-reporting-workflow" ] ;
         fhir:Coding.display [ fhir:value "Initiate a reporting workflow" ]
       ]
     ] ;
     fhir:PlanDefinition.action.trigger [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "encounter-start" ] ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-named-eventtype-extension" ] ;
         fhir:Extension.valueCodeableConcept [
           fhir:CodeableConcept.coding [
             fhir:index -1 ;
             fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-triggerdefinition-namedevents" ] ;
             fhir:Coding.code [ fhir:value "encounter-start" ] ;
             fhir:Coding.display [ fhir:value "Indicates the start of an encounter" ]
           ]
         ]
       ] ;
       fhir:TriggerDefinition.type [ fhir:value "named-event" ] ;
       fhir:TriggerDefinition.name [ fhir:value "encounter-start" ]
     ] ;
     fhir:PlanDefinition.action.input [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "patient" ] ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern" ] ;
         fhir:Extension.valueString [ fhir:value "Patient/{{context.patientId}}" ]
       ] ;
       fhir:DataRequirement.type [ fhir:value "Patient" ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "encounter" ] ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern" ] ;
         fhir:Extension.valueString [ fhir:value "Encounter/{{context.encounterId}}" ]
       ] ;
       fhir:DataRequirement.type [ fhir:value "Encounter" ]
     ] ;
     fhir:PlanDefinition.action.relatedAction [
       fhir:index -1 ;
       fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "check-suspected-disorder" ] ;
       fhir:PlanDefinition.action.relatedAction.relationship [ fhir:value "before-start" ] ;
       fhir:PlanDefinition.action.relatedAction.offsetDuration [
         fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
         fhir:Quantity.code [ fhir:value "h" ]
       ]
     ]
  ], [
     fhir:index -1 ;
     fhir:Element.id [ fhir:value "check-suspected-disorder" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "This action represents the start of the check suspected disorder reporting workflow in response to the encounter-start event." ] ;
     fhir:PlanDefinition.action.textEquivalent [ fhir:value "Check suspected disorders for immediate reportability and setup jobs for future reportability checks." ] ;
     fhir:PlanDefinition.action.code [
       fhir:index -1 ;
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
         fhir:Coding.code [ fhir:value "execute-reporting-workflow" ]
       ]
     ] ;
     fhir:PlanDefinition.action.action [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "is-encounter-suspected-disorder" ] ;
       fhir:PlanDefinition.action.description [ fhir:value "This action represents the check for suspected disorder reportability to create the patients eICR." ] ;
       fhir:PlanDefinition.action.textEquivalent [ fhir:value "Check Trigger Codes based on Suspected Reportable Value set." ] ;
       fhir:PlanDefinition.action.code [
         fhir:index -1 ;
         fhir:CodeableConcept.coding [
           fhir:index -1 ;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
           fhir:Coding.code [ fhir:value "check-trigger-codes" ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "continue-check-reportable" ] ;
       fhir:PlanDefinition.action.code [
         fhir:index -1 ;
         fhir:CodeableConcept.coding [
           fhir:index -1 ;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
           fhir:Coding.code [ fhir:value "evaluate-condition" ]
         ]
       ]
     ]
  ], [
     fhir:index -1 ;
     fhir:Element.id [ fhir:value "check-reportable" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "This action represents the check for suspected reportability of the eICR." ] ;
     fhir:PlanDefinition.action.textEquivalent [ fhir:value "Check Reportability and setup jobs for future reportability checks." ] ;
     fhir:PlanDefinition.action.code [
       fhir:index -1 ;
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
         fhir:Coding.code [ fhir:value "execute-reporting-workflow" ]
       ]
     ] ;
     fhir:PlanDefinition.action.action [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "is-encounter-reportable" ] ;
       fhir:PlanDefinition.action.description [ fhir:value "This action represents the check for reportability to create the patients eICR." ] ;
       fhir:PlanDefinition.action.textEquivalent [ fhir:value "Check Trigger Codes based on RCTC Value sets." ] ;
       fhir:PlanDefinition.action.code [
         fhir:index -1 ;
         fhir:CodeableConcept.coding [
           fhir:index -1 ;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
           fhir:Coding.code [ fhir:value "check-trigger-codes" ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "check-update-eicr" ] ;
       fhir:PlanDefinition.action.code [
         fhir:index -1 ;
         fhir:CodeableConcept.coding [
           fhir:index -1 ;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
           fhir:Coding.code [ fhir:value "evaluate-condition" ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "is-encounter-in-progress" ] ;
       fhir:PlanDefinition.action.code [
         fhir:index -1 ;
         fhir:CodeableConcept.coding [
           fhir:index -1 ;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
           fhir:Coding.code [ fhir:value "evaluate-condition" ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "is-encounter-completed" ] ;
       fhir:PlanDefinition.action.code [
         fhir:index -1 ;
         fhir:CodeableConcept.coding [
           fhir:index -1 ;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
           fhir:Coding.code [ fhir:value "complete-reporting" ]
         ]
       ]
     ]
  ], [
     fhir:index -1 ;
     fhir:Element.id [ fhir:value "create-eicr" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "This action represents the creation of the eICR. It subsequently calls validate." ] ;
     fhir:PlanDefinition.action.textEquivalent [ fhir:value "Create eICR" ] ;
     fhir:PlanDefinition.action.code [
       fhir:index -1 ;
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
         fhir:Coding.code [ fhir:value "create-report" ]
       ]
     ] ;
     fhir:PlanDefinition.action.input [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "patientdata" ] ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension" ] ;
         fhir:Extension.valueString [ fhir:value "patient" ]
       ] ;
       fhir:DataRequirement.type [ fhir:value "Patient" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|6.1.0" ;
         fhir:index -1 ;
         fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|6.1.0>
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "conditiondata" ] ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension" ] ;
         fhir:Extension.valueString [ fhir:value "conditions" ]
       ] ;
       fhir:DataRequirement.type [ fhir:value "Condition" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition-encounter-diagnosis|6.1.0" ;
         fhir:index -1 ;
         fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition-encounter-diagnosis|6.1.0>
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "encounterdata" ] ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension" ] ;
         fhir:Extension.valueString [ fhir:value "encounter" ]
       ] ;
       fhir:DataRequirement.type [ fhir:value "Encounter" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter|6.1.0" ;
         fhir:index -1 ;
         fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter|6.1.0>
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "mrdata" ] ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension" ] ;
         fhir:Extension.valueString [ fhir:value "medicationOrders" ]
       ] ;
       fhir:DataRequirement.type [ fhir:value "MedicationRequest" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest|6.1.0" ;
         fhir:index -1 ;
         fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest|6.1.0>
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "immzdata" ] ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension" ] ;
         fhir:Extension.valueString [ fhir:value "immunizations" ]
       ] ;
       fhir:DataRequirement.type [ fhir:value "Immunization" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization|6.1.0" ;
         fhir:index -1 ;
         fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization|6.1.0>
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "procdata" ] ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension" ] ;
         fhir:Extension.valueString [ fhir:value "procedures" ]
       ] ;
       fhir:DataRequirement.type [ fhir:value "Procedure" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure|6.1.0" ;
         fhir:index -1 ;
         fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure|6.1.0>
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "labResultdata" ] ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension" ] ;
         fhir:Extension.valueString [ fhir:value "labResults" ]
       ] ;
       fhir:DataRequirement.type [ fhir:value "Observation" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab|6.1.0" ;
         fhir:index -1 ;
         fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab|6.1.0>
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "labOrderdata" ] ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension" ] ;
         fhir:Extension.valueString [ fhir:value "labOrders" ]
       ] ;
       fhir:DataRequirement.type [ fhir:value "ServiceRequest" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ;
         fhir:index -1 ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/ServiceRequest>
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "diagnosticResultdata" ] ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension" ] ;
         fhir:Extension.valueString [ fhir:value "diagnosticResults" ]
       ] ;
       fhir:DataRequirement.type [ fhir:value "DiagnosticReport" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab|6.1.0" ;
         fhir:index -1 ;
         fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab|6.1.0>
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "diagnosticOrderdata" ] ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension" ] ;
         fhir:Extension.valueString [ fhir:value "diagnosticOrders" ]
       ] ;
       fhir:DataRequirement.type [ fhir:value "DiagnosticReport" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab|6.1.0" ;
         fhir:index -1 ;
         fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab|6.1.0>
       ]
     ] ;
     fhir:PlanDefinition.action.output [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "eicrreport" ] ;
       fhir:DataRequirement.type [ fhir:value "Bundle" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle" ;
         fhir:index -1 ;
         fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle>
       ]
     ] ;
     fhir:PlanDefinition.action.relatedAction [
       fhir:index -1 ;
       fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "validate-eicr" ] ;
       fhir:PlanDefinition.action.relatedAction.relationship [ fhir:value "before-start" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:Element.id [ fhir:value "validate-eicr" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "This action represents the validation of the eICR. It subsequently calls route-and-send." ] ;
     fhir:PlanDefinition.action.textEquivalent [ fhir:value "Validate eICR" ] ;
     fhir:PlanDefinition.action.code [
       fhir:index -1 ;
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
         fhir:Coding.code [ fhir:value "validate-report" ]
       ]
     ] ;
     fhir:PlanDefinition.action.input [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "generatedeicrreport" ] ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension" ] ;
         fhir:Extension.valueString [ fhir:value "eicrreport" ]
       ] ;
       fhir:DataRequirement.type [ fhir:value "Bundle" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle" ;
         fhir:index -1 ;
         fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle>
       ]
     ] ;
     fhir:PlanDefinition.action.output [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "valideicrreport" ] ;
       fhir:DataRequirement.type [ fhir:value "Bundle" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle" ;
         fhir:index -1 ;
         fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle>
       ]
     ] ;
     fhir:PlanDefinition.action.relatedAction [
       fhir:index -1 ;
       fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "route-and-send-eicr" ] ;
       fhir:PlanDefinition.action.relatedAction.relationship [ fhir:value "before-start" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:Element.id [ fhir:value "route-and-send-eicr" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "This action represents the routing and sending of the eICR." ] ;
     fhir:PlanDefinition.action.textEquivalent [ fhir:value "Route and send eICR" ] ;
     fhir:PlanDefinition.action.code [
       fhir:index -1 ;
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
         fhir:Coding.code [ fhir:value "submit-report" ]
       ]
     ] ;
     fhir:PlanDefinition.action.input [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "validatedeicrreport" ] ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension" ] ;
         fhir:Extension.valueString [ fhir:value "valideicrreport" ]
       ] ;
       fhir:DataRequirement.type [ fhir:value "Bundle" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle" ;
         fhir:index -1 ;
         fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle>
       ]
     ] ;
     fhir:PlanDefinition.action.output [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "submittedeicrreport" ] ;
       fhir:DataRequirement.type [ fhir:value "Bundle" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle" ;
         fhir:index -1 ;
         fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle>
       ]
     ]
  ], [
     fhir:index -1 ;
     fhir:Element.id [ fhir:value "encounter-modified" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "This action represents the start of the reporting workflow in response to the encounter-modified event" ] ;
     fhir:PlanDefinition.action.textEquivalent [ fhir:value "Start the reporting workflow in response to an encounter-modified event" ] ;
     fhir:PlanDefinition.action.code [
       fhir:index -1 ;
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
         fhir:Coding.code [ fhir:value "initiate-reporting-workflow" ] ;
         fhir:Coding.display [ fhir:value "Initiate a reporting workflow" ]
       ]
     ] ;
     fhir:PlanDefinition.action.trigger [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "encounter-modified-trigger" ] ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-named-eventtype-extension" ] ;
         fhir:Extension.valueCodeableConcept [
           fhir:CodeableConcept.coding [
             fhir:index -1 ;
             fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-triggerdefinition-namedevents" ] ;
             fhir:Coding.code [ fhir:value "encounter-modified" ] ;
             fhir:Coding.display [ fhir:value "Indicates modifications to data elements of an encounter" ]
           ]
         ]
       ] ;
       fhir:TriggerDefinition.type [ fhir:value "named-event" ] ;
       fhir:TriggerDefinition.name [ fhir:value "encounter-modified" ]
     ] ;
     fhir:PlanDefinition.action.condition [
       fhir:index -1 ;
       fhir:PlanDefinition.action.condition.kind [ fhir:value "applicability" ] ;
       fhir:PlanDefinition.action.condition.expression [
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-alternativeExpression" ] ;
           fhir:Extension.valueExpression [
             fhir:Expression.language [ fhir:value "text/cql-identifier" ] ;
             fhir:Expression.expression [ fhir:value "Is Encounter Longer Than Normal Reporting Duration?" ] ;
             fhir:Expression.reference [ fhir:value "http://hl7.org/fhir/us/ecr/Library/library-executable-rule-filters-example" ]
           ]
         ] ;
         fhir:Expression.language [ fhir:value "text/fhirpath" ] ;
         fhir:Expression.expression [ fhir:value "%encounter.where(period.start + 1 day * %normalReportingDuration < now()).select(true)" ]
       ]
     ] ;
     fhir:PlanDefinition.action.relatedAction [
       fhir:index -1 ;
       fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "create-eicr" ] ;
       fhir:PlanDefinition.action.relatedAction.relationship [ fhir:value "before-start" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/PlanDefinition/plandefinition-ersd-instance-example.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl ;
  owl:versionIRI <http://build.fhir.org/PlanDefinition/plandefinition-ersd-instance-example.ttl> .