HL7 FHIR® Implementation Guide: Electronic Case Reporting (eCR) - US Realm
2.0.0 - STU 2

This page is part of the electronic Case Reporting (eCR) (v2.0.0: STU 2 on FHIR R4) based on FHIR R4. The current version which supercedes this version is 2.1.0. For a full list of available versions, see the Directory of published versions

: eRSD PlanDefinition Instance Simple Example - TTL Representation

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 -------------------------------------------------------------------

 a fhir:PlanDefinition;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "plandefinition-ersd-instance-simple-example"];
  fhir:Resource.meta [
     fhir:Meta.versionId [ fhir:value "2" ];
     fhir:Meta.lastUpdated [ fhir:value "2021-11-17T04:21:04.742+00:00"^^xsd:dateTime ];
     fhir:Meta.source [ fhir:value "#RGrNVmUZUqLjGmiG" ];
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/ecr/StructureDefinition/ersd-plandefinition";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/ersd-plandefinition>     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource \"plandefinition-ersd-instance-simple-example\" Version \"2\" Updated \"2021-11-17T04:21:04.742Z\" </p><p style=\"margin-bottom: 0px\">Information Source: #RGrNVmUZUqLjGmiG!</p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-ersd-plandefinition.html\">eRSD PlanDefinition</a></p></div><p><b>url</b>: <code>http://hl7.org/fhir/us/ecr/PlanDefinition/plandefinition-ersd-instance-simple-example</code></p><p><b>version</b>: 2.0.0</p><p><b>name</b>: PlanDefinition_eRSD_Instance_Simple_Example</p><p><b>title</b>: eRSD PlanDefinition Instance Simple Example</p><p><b>type</b>: Workflow Definition <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/3.0.0/CodeSystem-plan-definition-type.html\">PlanDefinitionType</a>#workflow-definition)</span></p><p><b>status</b>: active</p><p><b>experimental</b>: true</p><p><b>date</b>: 2020-07-31T12:32:29.858-05:00</p><p><b>publisher</b>: HL7 Public Health Work Group (http://www.hl7.org/Special/committees/pher/index.cfm)</p><p><b>contact</b>: HL7 International - Public Health: <a href=\"http://www.hl7.org/Special/committees/pher\">http://www.hl7.org/Special/committees/pher</a></p><p><b>description</b>: An example ersd PlanDefinition</p><p><b>jurisdiction</b>: United States of America <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (unknown#US)</span></p><blockquote><p><b>action</b></p><p><b>description</b>: This action represents the start of the reporting workflow in response to the encounter-start event</p><p><b>textEquivalent</b>: Start the reporting workflow in response to an encounter-start event</p><p><b>code</b>: Initiate a reporting workflow <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-us-ph-plandefinition-actions.html\">US Public Health PlanDefinition Action Codes</a>#initiate-reporting-workflow)</span></p><h3>RelatedActions</h3><table class=\"grid\"><tr><td>-</td><td><b>ActionId</b></td><td><b>Relationship</b></td><td><b>Offset[x]</b></td></tr><tr><td>*</td><td>check-reportable</td><td>before-start</td><td>60 s<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM code s = 's')</span></td></tr></table></blockquote><blockquote><p><b>action</b></p><p><b>description</b>: This action represents the check for suspected reportability of the eICR.</p><p><b>textEquivalent</b>: Check Reportability and setup jobs for future reportability checks.</p><p><b>code</b>: Execute a series of actions to accomplish reporting <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-us-ph-plandefinition-actions.html\">US Public Health PlanDefinition Action Codes</a>#execute-reporting-workflow)</span></p><blockquote><p><b>action</b></p><p><b>description</b>: This action represents the check for reportability to create the patients eICR.</p><p><b>textEquivalent</b>: Check Trigger Codes based on RCTC Value sets.</p><p><b>code</b>: Evaluate candidate patient's data against trigger codes to determine reportability <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-us-ph-plandefinition-actions.html\">US Public Health PlanDefinition Action Codes</a>#check-trigger-codes)</span></p></blockquote><blockquote><p><b>action</b></p><p><b>code</b>: Evaluate condition to determine reportability <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-us-ph-plandefinition-actions.html\">US Public Health PlanDefinition Action Codes</a>#evaluate-condition)</span></p></blockquote><blockquote><p><b>action</b></p><p><b>code</b>: Evaluate condition to determine reportability <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-us-ph-plandefinition-actions.html\">US Public Health PlanDefinition Action Codes</a>#evaluate-condition)</span></p></blockquote></blockquote><blockquote><p><b>action</b></p><p><b>description</b>: This action represents the creation, validation and submission of the eICR.</p><p><b>textEquivalent</b>: Create, Validate and Report eICR set of actions</p><p><b>code</b>: Execute a series of actions to accomplish reporting <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-us-ph-plandefinition-actions.html\">US Public Health PlanDefinition Action Codes</a>#execute-reporting-workflow)</span></p><blockquote><p><b>action</b></p><p><b>description</b>: This action represents the creation of the eICR.</p><p><b>textEquivalent</b>: Create eICR</p><p><b>code</b>: Create a Report containing Patient's data for patients who passed the check-reportability test <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-us-ph-plandefinition-actions.html\">US Public Health PlanDefinition Action Codes</a>#create-report)</span></p></blockquote><blockquote><p><b>action</b></p><p><b>description</b>: This action represents the validation of the eICR.</p><p><b>textEquivalent</b>: Validate eICR</p><p><b>code</b>: Validate Report against specified profiles and terminologies. <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-us-ph-plandefinition-actions.html\">US Public Health PlanDefinition Action Codes</a>#validate-report)</span></p></blockquote><blockquote><p><b>action</b></p><p><b>description</b>: This action represents the routing and sending of the eICR.</p><p><b>textEquivalent</b>: Route and send eICR</p><p><b>code</b>: Submit the report to specified endpoint <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-us-ph-plandefinition-actions.html\">US Public Health PlanDefinition Action Codes</a>#submit-report)</span></p></blockquote></blockquote></div>"
  ];
  fhir:PlanDefinition.url [ fhir:value "http://hl7.org/fhir/us/ecr/PlanDefinition/plandefinition-ersd-instance-simple-example"];
  fhir:PlanDefinition.version [ fhir:value "2.0.0"];
  fhir:PlanDefinition.name [ fhir:value "PlanDefinition_eRSD_Instance_Simple_Example"];
  fhir:PlanDefinition.title [ fhir:value "eRSD PlanDefinition Instance Simple Example"];
  fhir:PlanDefinition.type [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       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 Public Health Work Group (http://www.hl7.org/Special/committees/pher/index.cfm)"];
  fhir:PlanDefinition.contact [
     fhir:index 0;
     fhir:ContactDetail.name [ fhir:value "HL7 International - Public Health" ];
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://www.hl7.org/Special/committees/pher" ]     ]
  ];
  fhir:PlanDefinition.description [ fhir:value "An example ersd PlanDefinition"];
  fhir:PlanDefinition.jurisdiction [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ];
       fhir:Coding.code [ fhir:value "US" ];
       fhir:Coding.display [ fhir:value "United States of America" ]     ];
     fhir:CodeableConcept.text [ fhir:value "United States of America" ]
  ];
  fhir:PlanDefinition.action [
     fhir:index 0;
     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 0;
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-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 0;
       fhir:Element.id [ fhir:value "encounter-start" ];
       fhir:Element.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-named-eventtype-extension" ];
         fhir:Extension.valueCodeableConcept [
           fhir:CodeableConcept.coding [
             fhir:index 0;
             fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-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.relatedAction [
       fhir:index 0;
       fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "check-reportable" ];
       fhir:PlanDefinition.action.relatedAction.relationship [ fhir:value "before-start" ];
       fhir:PlanDefinition.action.relatedAction.offsetDuration [
         fhir:Quantity.value [ fhir:value "60"^^xsd:decimal ];
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ];
         fhir:Quantity.code [ fhir:value "s" ]       ]     ]
  ], [
     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 0;
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions" ];
         fhir:Coding.code [ fhir:value "execute-reporting-workflow" ]       ]     ];
     fhir:PlanDefinition.action.action [
       fhir:index 0;
       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 0;
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions" ];
           fhir:Coding.code [ fhir:value "check-trigger-codes" ]         ]       ];
       fhir:PlanDefinition.action.condition [
         fhir:index 0;
         fhir:PlanDefinition.action.condition.kind [ fhir:value "applicability" ];
         fhir:PlanDefinition.action.condition.expression [
           fhir:Expression.language [ fhir:value "text/fhirpath" ];
           fhir:Expression.expression [ fhir:value "%conditions.exists() or %encounters.exists() or %immunizations.exists() or %procedures.exists() or %procedureOrders.exists() or %labOrders.exists() or %labTests.exists() or %labResults.exists() or %medicationAdministrations.exists() or %medicationOrders.exists() or %medicationDispenses.exists()" ]         ]       ];
       fhir:PlanDefinition.action.input [
         fhir:index 0;
         fhir:Element.id [ fhir:value "conditions" ];
         fhir:DataRequirement.type [ fhir:value "Condition" ];
         fhir:DataRequirement.codeFilter [
           fhir:index 0;
           fhir:DataRequirement.codeFilter.path [ fhir:value "code" ];
           fhir:DataRequirement.codeFilter.valueSet [
             fhir:value "http://hl7.org/fhir/us/ecr/ValueSet/valueset-dxtc-example";
             fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-dxtc-example>           ]         ]       ], [
         fhir:index 1;
         fhir:Element.id [ fhir:value "encounters" ];
         fhir:DataRequirement.type [ fhir:value "Encounter" ];
         fhir:DataRequirement.codeFilter [
           fhir:index 0;
           fhir:DataRequirement.codeFilter.path [ fhir:value "reasonCode" ];
           fhir:DataRequirement.codeFilter.valueSet [
             fhir:value "http://hl7.org/fhir/us/ecr/ValueSet/valueset-dxtc-example";
             fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-dxtc-example>           ]         ]       ], [
         fhir:index 2;
         fhir:Element.id [ fhir:value "immunizations" ];
         fhir:DataRequirement.type [ fhir:value "Immunization" ];
         fhir:DataRequirement.codeFilter [
           fhir:index 0;
           fhir:DataRequirement.codeFilter.path [ fhir:value "vaccineCode" ];
           fhir:DataRequirement.codeFilter.valueSet [
             fhir:value "http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example";
             fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example>           ]         ]       ], [
         fhir:index 3;
         fhir:Element.id [ fhir:value "labOrders" ];
         fhir:DataRequirement.type [ fhir:value "ServiceRequest" ];
         fhir:DataRequirement.codeFilter [
           fhir:index 0;
           fhir:DataRequirement.codeFilter.path [ fhir:value "code" ];
           fhir:DataRequirement.codeFilter.valueSet [
             fhir:value "http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example";
             fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example>           ]         ]       ], [
         fhir:index 4;
         fhir:Element.id [ fhir:value "labTests" ];
         fhir:DataRequirement.type [ fhir:value "Observation" ];
         fhir:DataRequirement.codeFilter [
           fhir:index 0;
           fhir:DataRequirement.codeFilter.path [ fhir:value "code" ];
           fhir:DataRequirement.codeFilter.valueSet [
             fhir:value "http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example";
             fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example>           ]         ]       ], [
         fhir:index 5;
         fhir:Element.id [ fhir:value "procedureOrders" ];
         fhir:DataRequirement.type [ fhir:value "ServiceRequest" ];
         fhir:DataRequirement.codeFilter [
           fhir:index 0;
           fhir:DataRequirement.codeFilter.path [ fhir:value "code" ];
           fhir:DataRequirement.codeFilter.valueSet [
             fhir:value "http://hl7.org/fhir/us/ecr/ValueSet/valueset-pctc-example";
             fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-pctc-example>           ]         ]       ], [
         fhir:index 6;
         fhir:Element.id [ fhir:value "procedures" ];
         fhir:DataRequirement.type [ fhir:value "Procedure" ];
         fhir:DataRequirement.codeFilter [
           fhir:index 0;
           fhir:DataRequirement.codeFilter.path [ fhir:value "code" ];
           fhir:DataRequirement.codeFilter.valueSet [
             fhir:value "http://hl7.org/fhir/us/ecr/ValueSet/valueset-pctc-example";
             fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-pctc-example>           ]         ]       ], [
         fhir:index 7;
         fhir:Element.id [ fhir:value "medicationOrders" ];
         fhir:DataRequirement.type [ fhir:value "MedicationRequest" ];
         fhir:DataRequirement.codeFilter [
           fhir:index 0;
           fhir:DataRequirement.codeFilter.path [ fhir:value "medication" ];
           fhir:DataRequirement.codeFilter.valueSet [
             fhir:value "http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example";
             fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example>           ]         ]       ], [
         fhir:index 8;
         fhir:Element.id [ fhir:value "medicationDispenses" ];
         fhir:DataRequirement.type [ fhir:value "MedicationDispense" ];
         fhir:DataRequirement.codeFilter [
           fhir:index 0;
           fhir:DataRequirement.codeFilter.path [ fhir:value "medication" ];
           fhir:DataRequirement.codeFilter.valueSet [
             fhir:value "http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example";
             fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example>           ]         ]       ], [
         fhir:index 9;
         fhir:Element.id [ fhir:value "medicationAdministrations" ];
         fhir:DataRequirement.type [ fhir:value "MedicationAdministration" ];
         fhir:DataRequirement.codeFilter [
           fhir:index 0;
           fhir:DataRequirement.codeFilter.path [ fhir:value "medication" ];
           fhir:DataRequirement.codeFilter.valueSet [
             fhir:value "http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example";
             fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example>           ]         ]       ], [
         fhir:index 10;
         fhir:Element.id [ fhir:value "labResults" ];
         fhir:DataRequirement.type [ fhir:value "Observation" ];
         fhir:DataRequirement.codeFilter [
           fhir:index 0;
           fhir:DataRequirement.codeFilter.path [ fhir:value "value" ];
           fhir:DataRequirement.codeFilter.valueSet [
             fhir:value "http://hl7.org/fhir/us/ecr/ValueSet/valueset-ostc-example";
             fhir:link <http://hl7.org/fhir/us/ecr/ValueSet/valueset-ostc-example>           ]         ]       ];
       fhir:PlanDefinition.action.relatedAction [
         fhir:index 0;
         fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "report-eicr" ];
         fhir:PlanDefinition.action.relatedAction.relationship [ fhir:value "before-start" ]       ]     ], [
       fhir:index 1;
       fhir:Element.id [ fhir:value "check-update-eicr" ];
       fhir:PlanDefinition.action.code [
         fhir:index 0;
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions" ];
           fhir:Coding.code [ fhir:value "evaluate-condition" ]         ]       ];
       fhir:PlanDefinition.action.condition [
         fhir:index 0;
         fhir:PlanDefinition.action.condition.kind [ fhir:value "applicability" ];
         fhir:PlanDefinition.action.condition.expression [
           fhir:Expression.language [ fhir:value "text/fhirpath" ];
           fhir:Expression.expression [ fhir:value "Composition.where(code = 'http://loinc.org#55751-2').last().date < now() - 24 hours" ]         ]       ];
       fhir:PlanDefinition.action.relatedAction [
         fhir:index 0;
         fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "report-eicr" ];
         fhir:PlanDefinition.action.relatedAction.relationship [ fhir:value "before-start" ]       ]     ], [
       fhir:index 2;
       fhir:Element.id [ fhir:value "is-encounter-in-progress" ];
       fhir:PlanDefinition.action.code [
         fhir:index 0;
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions" ];
           fhir:Coding.code [ fhir:value "evaluate-condition" ]         ]       ];
       fhir:PlanDefinition.action.condition [
         fhir:index 0;
         fhir:PlanDefinition.action.condition.kind [ fhir:value "applicability" ];
         fhir:PlanDefinition.action.condition.expression [
           fhir:Expression.language [ fhir:value "text/fhirpath" ];
           fhir:Expression.expression [ fhir:value "%encounter.where(status = 'in-progress' and period.end <= now() - 72 hours)" ]         ]       ];
       fhir:PlanDefinition.action.relatedAction [
         fhir:index 0;
         fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "check-reportable" ];
         fhir:PlanDefinition.action.relatedAction.relationship [ fhir:value "before-start" ];
         fhir:PlanDefinition.action.relatedAction.offsetDuration [
           fhir:Quantity.value [ fhir:value "6"^^xsd:decimal ];
           fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ];
           fhir:Quantity.code [ fhir:value "h" ]         ]       ]     ]
  ], [
     fhir:index 2;
     fhir:Element.id [ fhir:value "report-eicr" ];
     fhir:PlanDefinition.action.description [ fhir:value "This action represents the creation, validation and submission of the eICR." ];
     fhir:PlanDefinition.action.textEquivalent [ fhir:value "Create, Validate and Report eICR set of actions" ];
     fhir:PlanDefinition.action.code [
       fhir:index 0;
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions" ];
         fhir:Coding.code [ fhir:value "execute-reporting-workflow" ]       ]     ];
     fhir:PlanDefinition.action.action [
       fhir:index 0;
       fhir:Element.id [ fhir:value "create-eicr" ];
       fhir:PlanDefinition.action.description [ fhir:value "This action represents the creation of the eICR." ];
       fhir:PlanDefinition.action.textEquivalent [ fhir:value "Create eICR" ];
       fhir:PlanDefinition.action.code [
         fhir:index 0;
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions" ];
           fhir:Coding.code [ fhir:value "create-report" ]         ]       ];
       fhir:PlanDefinition.action.input [
         fhir:index 0;
         fhir:Element.id [ fhir:value "patient" ];
         fhir:DataRequirement.type [ fhir:value "Patient" ];
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient";
           fhir:index 0;
           fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient>         ]       ], [
         fhir:index 1;
         fhir:Element.id [ fhir:value "condition" ];
         fhir:DataRequirement.type [ fhir:value "Condition" ];
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition";
           fhir:index 0;
           fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition>         ]       ], [
         fhir:index 2;
         fhir:Element.id [ fhir:value "encounter" ];
         fhir:DataRequirement.type [ fhir:value "Encounter" ];
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter";
           fhir:index 0;
           fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter>         ]       ], [
         fhir:index 3;
         fhir:Element.id [ fhir:value "mr" ];
         fhir:DataRequirement.type [ fhir:value "MedicationRequest" ];
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest";
           fhir:index 0;
           fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest>         ]       ], [
         fhir:index 4;
         fhir:Element.id [ fhir:value "immz" ];
         fhir:DataRequirement.type [ fhir:value "Immunization" ];
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization";
           fhir:index 0;
           fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization>         ]       ], [
         fhir:index 5;
         fhir:Element.id [ fhir:value "proc" ];
         fhir:DataRequirement.type [ fhir:value "Procedure" ];
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure";
           fhir:index 0;
           fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure>         ]       ], [
         fhir:index 6;
         fhir:Element.id [ fhir:value "obs" ];
         fhir:DataRequirement.type [ fhir:value "Observation" ];
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/vitalsigns";
           fhir:index 0;
           fhir:link <http://hl7.org/fhir/StructureDefinition/vitalsigns>         ]       ], [
         fhir:index 7;
         fhir:Element.id [ fhir:value "svcr" ];
         fhir:DataRequirement.type [ fhir:value "ServiceRequest" ];
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/ServiceRequest";
           fhir:index 0;
           fhir:link <http://hl7.org/fhir/StructureDefinition/ServiceRequest>         ]       ];
       fhir:PlanDefinition.action.output [
         fhir:index 0;
         fhir:Element.id [ fhir:value "eicr-report-output" ];
         fhir:DataRequirement.type [ fhir:value "Bundle" ];
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle";
           fhir:index 0;
           fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle>         ]       ];
       fhir:PlanDefinition.action.relatedAction [
         fhir:index 0;
         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." ];
       fhir:PlanDefinition.action.textEquivalent [ fhir:value "Validate eICR" ];
       fhir:PlanDefinition.action.code [
         fhir:index 0;
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions" ];
           fhir:Coding.code [ fhir:value "validate-report" ]         ]       ];
       fhir:PlanDefinition.action.input [
         fhir:index 0;
         fhir:Element.id [ fhir:value "eicr-report-input" ];
         fhir:DataRequirement.type [ fhir:value "Bundle" ];
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle";
           fhir:index 0;
           fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle>         ]       ];
       fhir:PlanDefinition.action.output [
         fhir:index 0;
         fhir:Element.id [ fhir:value "validated-eicr-report-output" ];
         fhir:DataRequirement.type [ fhir:value "Bundle" ];
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle";
           fhir:index 0;
           fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle>         ]       ];
       fhir:PlanDefinition.action.relatedAction [
         fhir:index 0;
         fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "submit-eicr" ];
         fhir:PlanDefinition.action.relatedAction.relationship [ fhir:value "before-start" ]       ]     ], [
       fhir:index 2;
       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 0;
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-plandefinition-actions" ];
           fhir:Coding.code [ fhir:value "submit-report" ]         ]       ];
       fhir:PlanDefinition.action.input [
         fhir:index 0;
         fhir:Element.id [ fhir:value "validated-eicr-report-input" ];
         fhir:DataRequirement.type [ fhir:value "Bundle" ];
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle";
           fhir:index 0;
           fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle>         ]       ];
       fhir:PlanDefinition.action.output [
         fhir:index 0;
         fhir:Element.id [ fhir:value "eicr-report-submitted" ];
         fhir:DataRequirement.type [ fhir:value "Bundle" ];
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle";
           fhir:index 0;
           fhir:link <http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle>         ]       ]     ]
  ].

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

 a owl:Ontology;
  owl:imports fhir:fhir.ttl.