This page is part of the US Public Health Profiles Library (v1.0.0-ballot: STU 1 Ballot 1) based on FHIR R4. . For a full list of available versions, see the Directory of published versions
Active as of 2022-07-31 |
@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 "us-ph-plandefinition-alt-expression-example"];
fhir:Resource.meta [
fhir:Meta.versionId [ fhir:value "2" ];
fhir:Meta.lastUpdated [ fhir:value "2022-07-25T03:24:15.383+00:00"^^xsd:dateTime ];
fhir:Meta.source [ fhir:value "#7fgE3zdPadJWZv8T" ]
];
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "generated" ];
fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: PlanDefinition</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 \"us-ph-plandefinition-alt-expression-example\" Version \"2\" Updated \"2022-07-25 03:24:15+0000\" </p><p style=\"margin-bottom: 0px\">Information Source: #7fgE3zdPadJWZv8T!</p></div><p><b>url</b>: <code>http://example.org/fhir/PlanDefinition/us-ph-plandefinition-alt-expression-example</code></p><p><b>version</b>: 1.0.0-ballot</p><p><b>name</b>: USPublicHealthPlanDefinitionAlternativeExpressionExample</p><p><b>title</b>: US Public Health PlanDefinition Alternative Expression 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.1.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>: 2022-07-31 12:32:29-0500</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 PlanDefinition</p><p><b>jurisdiction</b>: United States of America <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (unknown#US)</span></p><p><b>effectivePeriod</b>: 2020-12-01 --> (ongoing)</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-suspected-disorder</td><td>before-start</td><td>1 h<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM code h = 'h')</span></td></tr></table></blockquote><blockquote><p><b>action</b></p><p><b>description</b>: This action represents the start of the check suspected disorder reporting workflow in response to the encounter-start event.</p><p><b>textEquivalent</b>: Check suspected disorders for immediate reportability and setup jobs for future reportability checks.</p><p><b>code</b>: 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 suspected disorder reportability to create the patients eICR.</p><p><b>textEquivalent</b>: Check Trigger Codes based on Suspected Reportable Value set.</p><p><b>code</b>: 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><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 of the eICR. It subsequently calls validate.</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><h3>RelatedActions</h3><table class=\"grid\"><tr><td>-</td><td><b>ActionId</b></td><td><b>Relationship</b></td></tr><tr><td>*</td><td>validate-eicr</td><td>before-start</td></tr></table></blockquote><blockquote><p><b>action</b></p><p><b>description</b>: This action represents the validation of the eICR. It subsequently calls route-and-send.</p><p><b>textEquivalent</b>: Validate eICR</p><p><b>code</b>: 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><h3>RelatedActions</h3><table class=\"grid\"><tr><td>-</td><td><b>ActionId</b></td><td><b>Relationship</b></td></tr><tr><td>*</td><td>route-and-send-eicr</td><td>before-start</td></tr></table></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><p><b>action</b></p><p><b>description</b>: This action represents the start of the reporting workflow in response to the encounter-modified event</p><p><b>textEquivalent</b>: Start the reporting workflow in response to an encounter-modified event</p><p><b>code</b>: 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><blockquote><p><b>condition</b></p><p><b>kind</b>: applicability</p></blockquote><h3>RelatedActions</h3><table class=\"grid\"><tr><td>-</td><td><b>ActionId</b></td><td><b>Relationship</b></td></tr><tr><td>*</td><td>create-eicr</td><td>before-start</td></tr></table></blockquote></div>"
];
fhir:PlanDefinition.url [ fhir:value "http://example.org/fhir/PlanDefinition/us-ph-plandefinition-alt-expression-example"];
fhir:PlanDefinition.version [ fhir:value "1.0.0-ballot"];
fhir:PlanDefinition.name [ fhir:value "USPublicHealthPlanDefinitionAlternativeExpressionExample"];
fhir:PlanDefinition.title [ fhir:value "US Public Health PlanDefinition Alternative Expression 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 "2022-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 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.effectivePeriod [
fhir:Period.start [ fhir:value "2020-12-01"^^xsd:date ]
];
fhir:PlanDefinition.relatedArtifact [
fhir:index 0;
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://example.org/fhir/Library/library-rctc-example";
fhir:link <http://example.org/fhir/Library/library-rctc-example> ]
];
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/ph-library/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/ph-library/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/ph-library/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.input [
fhir:index 0;
fhir:Element.id [ fhir:value "patient" ];
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension" ];
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 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension" ];
fhir:Extension.valueString [ fhir:value "Encounter/{{context.encounterId}}" ] ];
fhir:DataRequirement.type [ fhir:value "Encounter" ] ];
fhir:PlanDefinition.action.relatedAction [
fhir:index 0;
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 0;
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/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-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 0;
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/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:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-alternative-expression-extension" ];
fhir:Extension.valueExpression [
fhir:Expression.language [ fhir:value "text/cql-identifier" ];
fhir:Expression.expression [ fhir:value "Is Suspected Disorder?" ];
fhir:Expression.reference [ fhir:value "http://example.org/fhir/Library/RuleFilters|1.0.0" ] ] ];
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "%modifiedConditions.exists() or %modifiedLabResults.exists() or %modifiedMedicationOrders.exists()" ] ] ];
fhir:PlanDefinition.action.input [
fhir:index 0;
fhir:Element.id [ fhir:value "modifiedConditions" ];
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension" ];
fhir:Extension.valueString [ fhir:value "Condition?patient=Patient/{{context.patientId}}" ] ];
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://example.org/fhir/ValueSet/valueset-sdtc-example";
fhir:link <http://example.org/fhir/ValueSet/valueset-sdtc-example> ] ] ], [
fhir:index 1;
fhir:Element.id [ fhir:value "modifiedLabResults" ];
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension" ];
fhir:Extension.valueString [ fhir:value "Observation?patient=Patient/{{context.patientId}}" ] ];
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://example.org/fhir/ValueSet/valueset-sdtc-example";
fhir:link <http://example.org/fhir/ValueSet/valueset-sdtc-example> ] ] ], [
fhir:index 2;
fhir:Element.id [ fhir:value "modifiedMedicationOrders" ];
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension" ];
fhir:Extension.valueString [ fhir:value "MedicationRequest?patient=Patient/{{context.patientId}}" ] ];
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://example.org/fhir/ValueSet/valueset-sdtc-example";
fhir:link <http://example.org/fhir/ValueSet/valueset-sdtc-example> ] ] ];
fhir:PlanDefinition.action.relatedAction [
fhir:index 0;
fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "create-eicr" ];
fhir:PlanDefinition.action.relatedAction.relationship [ fhir:value "before-start" ] ] ], [
fhir:index 1;
fhir:Element.id [ fhir:value "continue-check-reportable" ];
fhir:PlanDefinition.action.code [
fhir:index 0;
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/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:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-alternative-expression-extension" ];
fhir:Extension.valueExpression [
fhir:Expression.language [ fhir:value "text/cql-identifier" ];
fhir:Expression.expression [ fhir:value "Is Encounter In Progress and Within Normal Reporting Duration or 72h or less after end of encounter?" ];
fhir:Expression.reference [ fhir:value "http://example.org/fhir/Library/RuleFilters|1.0.0" ] ] ];
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "%encounter.where((status = 'in-progress' and period.start + 1 day * %normalReportingDuration >= now()) or (status = 'finished' and period.end + 72 hours >= now())).select(true)" ] ] ];
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 "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/ph-library/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/ph-library/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:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-alternative-expression-extension" ];
fhir:Extension.valueExpression [
fhir:Expression.language [ fhir:value "text/cql-identifier" ];
fhir:Expression.expression [ fhir:value "Is Encounter Reportable and Within Normal Reporting Duration?" ];
fhir:Expression.reference [ fhir:value "http://example.org/fhir/Library/RuleFilters|1.0.0" ] ] ];
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "%encounter.where(period.start + 1 day * %normalReportingDuration >= now()).select(true) and (%conditions.exists() or %encounters.exists() or %immunizations.exists() or %procedures.exists() or %procedureOrders.exists() or %labOrders.exists() or %labTests.exists() or %labResults.exists() or %medicationAdministrations.exists() or %medicationOrders.exists() or %medicationDispenses.exists())" ] ] ];
fhir:PlanDefinition.action.input [
fhir:index 0;
fhir:Element.id [ fhir:value "conditions" ];
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension" ];
fhir:Extension.valueString [ fhir:value "Condition?patient=Patient/{{context.patientId}}" ] ];
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://example.org/fhir/ValueSet/valueset-dxtc-example";
fhir:link <http://example.org/fhir/ValueSet/valueset-dxtc-example> ] ] ], [
fhir:index 1;
fhir:Element.id [ fhir:value "encounters" ];
fhir:Element.extension [
fhir:index 0;
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.codeFilter [
fhir:index 0;
fhir:DataRequirement.codeFilter.path [ fhir:value "reasonCode" ];
fhir:DataRequirement.codeFilter.valueSet [
fhir:value "http://example.org/fhir/ValueSet/valueset-dxtc-example";
fhir:link <http://example.org/fhir/ValueSet/valueset-dxtc-example> ] ] ], [
fhir:index 2;
fhir:Element.id [ fhir:value "immunizations" ];
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension" ];
fhir:Extension.valueString [ fhir:value "Immunization?patient=Patient/{{context.patientId}}" ] ];
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://example.org/fhir/ValueSet/valueset-mrtc-example";
fhir:link <http://example.org/fhir/ValueSet/valueset-mrtc-example> ] ] ], [
fhir:index 3;
fhir:Element.id [ fhir:value "labOrders" ];
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension" ];
fhir:Extension.valueString [ fhir:value "ServiceRequest?patient=Patient/{{context.patientId}}" ] ];
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://example.org/fhir/ValueSet/valueset-lotc-example";
fhir:link <http://example.org/fhir/ValueSet/valueset-lotc-example> ] ] ], [
fhir:index 4;
fhir:Element.id [ fhir:value "labTests" ];
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension" ];
fhir:Extension.valueString [ fhir:value "Observation?patient=Patient/{{context.patientId}}" ] ];
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://example.org/fhir/ValueSet/valueset-lotc-example";
fhir:link <http://example.org/fhir/ValueSet/valueset-lotc-example> ] ] ], [
fhir:index 5;
fhir:Element.id [ fhir:value "diagnosticOrders" ];
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension" ];
fhir:Extension.valueString [ fhir:value "DiagnosticReport?patient=Patient/{{context.patientId}}" ] ];
fhir:DataRequirement.type [ fhir:value "DiagnosticReport" ];
fhir:DataRequirement.codeFilter [
fhir:index 0;
fhir:DataRequirement.codeFilter.path [ fhir:value "code" ];
fhir:DataRequirement.codeFilter.valueSet [
fhir:value "http://example.org/fhir/ValueSet/valueset-lotc-example";
fhir:link <http://example.org/fhir/ValueSet/valueset-lotc-example> ] ] ], [
fhir:index 6;
fhir:Element.id [ fhir:value "procedureOrders" ];
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension" ];
fhir:Extension.valueString [ fhir:value "ServiceRequest?patient=Patient/{{context.patientId}}" ] ];
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://example.org/fhir/ValueSet/valueset-pctc-example";
fhir:link <http://example.org/fhir/ValueSet/valueset-pctc-example> ] ] ], [
fhir:index 7;
fhir:Element.id [ fhir:value "procedures" ];
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension" ];
fhir:Extension.valueString [ fhir:value "Procedure?patient=Patient/{{context.patientId}}" ] ];
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://example.org/fhir/ValueSet/valueset-pctc-example";
fhir:link <http://example.org/fhir/ValueSet/valueset-pctc-example> ] ] ], [
fhir:index 8;
fhir:Element.id [ fhir:value "medicationOrders" ];
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension" ];
fhir:Extension.valueString [ fhir:value "MedicationRequest?patient=Patient/{{context.patientId}}" ] ];
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://example.org/fhir/ValueSet/valueset-mrtc-example";
fhir:link <http://example.org/fhir/ValueSet/valueset-mrtc-example> ] ] ], [
fhir:index 9;
fhir:Element.id [ fhir:value "medicationDispenses" ];
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension" ];
fhir:Extension.valueString [ fhir:value "MedicationDispense?patient=Patient/{{context.patientId}}" ] ];
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://example.org/fhir/ValueSet/valueset-mrtc-example";
fhir:link <http://example.org/fhir/ValueSet/valueset-mrtc-example> ] ] ], [
fhir:index 10;
fhir:Element.id [ fhir:value "medicationAdministrations" ];
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension" ];
fhir:Extension.valueString [ fhir:value "MedicationAdministration?patient=Patient/{{context.patientId}}" ] ];
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://example.org/fhir/ValueSet/valueset-mrtc-example";
fhir:link <http://example.org/fhir/ValueSet/valueset-mrtc-example> ] ] ], [
fhir:index 11;
fhir:Element.id [ fhir:value "labResults" ];
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension" ];
fhir:Extension.valueString [ fhir:value "labTests" ] ];
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://example.org/fhir/ValueSet/valueset-ostc-example";
fhir:link <http://example.org/fhir/ValueSet/valueset-ostc-example> ] ] ], [
fhir:index 12;
fhir:Element.id [ fhir:value "diagnosticResults" ];
fhir:Element.extension [
fhir:index 0;
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.codeFilter [
fhir:index 0;
fhir:DataRequirement.codeFilter.path [ fhir:value "code" ];
fhir:DataRequirement.codeFilter.valueSet [
fhir:value "http://example.org/fhir/ValueSet/valueset-ostc-example";
fhir:link <http://example.org/fhir/ValueSet/valueset-ostc-example> ] ] ];
fhir:PlanDefinition.action.relatedAction [
fhir:index 0;
fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "create-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/ph-library/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:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-alternative-expression-extension" ];
fhir:Extension.valueExpression [
fhir:Expression.language [ fhir:value "text/cql-identifier" ];
fhir:Expression.expression [ fhir:value "Most recent eICR sent over 72 hours ago?" ];
fhir:Expression.reference [ fhir:value "http://example.org/fhir/Library/RuleFilters|1.0.0" ] ] ];
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "((%lasteicr.last().entry[2].resource as Bundle).entry.first().resource as Composition).date < now() - 72 hours" ] ] ];
fhir:PlanDefinition.action.input [
fhir:index 0;
fhir:Element.id [ fhir:value "lasteicr" ];
fhir:Element.extension [
fhir:index 0;
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/ph-library/StructureDefinition/us-ph-document-bundle";
fhir:index 0;
fhir:link <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-document-bundle> ] ];
fhir:PlanDefinition.action.relatedAction [
fhir:index 0;
fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "create-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/ph-library/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:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-alternative-expression-extension" ];
fhir:Extension.valueExpression [
fhir:Expression.language [ fhir:value "text/cql-identifier" ];
fhir:Expression.expression [ fhir:value "Is Encounter In Progress and Within Normal Reporting Duration or 72h or less after end of encounter?" ];
fhir:Expression.reference [ fhir:value "http://example.org/fhir/Library/RuleFilters|1.0.0" ] ] ];
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "%inprogressencounter.where(status = 'in-progress' and period.start + 1 day * %normalReportingDuration >= now() or (status = 'finished' and period.end + 72 hours >= now())).exists()" ] ] ];
fhir:PlanDefinition.action.input [
fhir:index 0;
fhir:Element.id [ fhir:value "inprogressencounter" ];
fhir:Element.extension [
fhir:index 0;
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: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 3;
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 0;
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-plandefinition-actions" ];
fhir:Coding.code [ fhir:value "create-report" ] ] ];
fhir:PlanDefinition.action.input [
fhir:index 0;
fhir:Element.id [ fhir:value "patientdata" ];
fhir:Element.extension [
fhir:index 0;
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";
fhir:index 0;
fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient> ] ], [
fhir:index 1;
fhir:Element.id [ fhir:value "conditiondata" ];
fhir:Element.extension [
fhir:index 0;
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";
fhir:index 0;
fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition> ] ], [
fhir:index 2;
fhir:Element.id [ fhir:value "encounterdata" ];
fhir:Element.extension [
fhir:index 0;
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";
fhir:index 0;
fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter> ] ], [
fhir:index 3;
fhir:Element.id [ fhir:value "mrdata" ];
fhir:Element.extension [
fhir:index 0;
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";
fhir:index 0;
fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest> ] ], [
fhir:index 4;
fhir:Element.id [ fhir:value "immzdata" ];
fhir:Element.extension [
fhir:index 0;
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";
fhir:index 0;
fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization> ] ], [
fhir:index 5;
fhir:Element.id [ fhir:value "procdata" ];
fhir:Element.extension [
fhir:index 0;
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";
fhir:index 0;
fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure> ] ], [
fhir:index 6;
fhir:Element.id [ fhir:value "labResultdata" ];
fhir:Element.extension [
fhir:index 0;
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";
fhir:index 0;
fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab> ] ], [
fhir:index 7;
fhir:Element.id [ fhir:value "labOrderdata" ];
fhir:Element.extension [
fhir:index 0;
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 0;
fhir:link <http://hl7.org/fhir/StructureDefinition/ServiceRequest> ] ], [
fhir:index 8;
fhir:Element.id [ fhir:value "diagnosticResultdata" ];
fhir:Element.extension [
fhir:index 0;
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";
fhir:index 0;
fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab> ] ], [
fhir:index 9;
fhir:Element.id [ fhir:value "diagnosticOrderdata" ];
fhir:Element.extension [
fhir:index 0;
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";
fhir:index 0;
fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab> ] ];
fhir:PlanDefinition.action.output [
fhir:index 0;
fhir:Element.id [ fhir:value "eicrreport" ];
fhir:DataRequirement.type [ fhir:value "Bundle" ];
fhir:DataRequirement.profile [
fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-document-bundle";
fhir:index 0;
fhir:link <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-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 4;
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 0;
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-plandefinition-actions" ];
fhir:Coding.code [ fhir:value "validate-report" ] ] ];
fhir:PlanDefinition.action.input [
fhir:index 0;
fhir:Element.id [ fhir:value "generatedeicrreport" ];
fhir:Element.extension [
fhir:index 0;
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/ph-library/StructureDefinition/us-ph-document-bundle";
fhir:index 0;
fhir:link <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-document-bundle> ] ];
fhir:PlanDefinition.action.output [
fhir:index 0;
fhir:Element.id [ fhir:value "valideicrreport" ];
fhir:DataRequirement.type [ fhir:value "Bundle" ];
fhir:DataRequirement.profile [
fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-document-bundle";
fhir:index 0;
fhir:link <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-document-bundle> ] ];
fhir:PlanDefinition.action.relatedAction [
fhir:index 0;
fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "route-and-send-eicr" ];
fhir:PlanDefinition.action.relatedAction.relationship [ fhir:value "before-start" ] ]
], [
fhir:index 5;
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/ph-library/CodeSystem/us-ph-plandefinition-actions" ];
fhir:Coding.code [ fhir:value "submit-report" ] ] ];
fhir:PlanDefinition.action.input [
fhir:index 0;
fhir:Element.id [ fhir:value "validatedeicrreport" ];
fhir:Element.extension [
fhir:index 0;
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/ph-library/StructureDefinition/us-ph-document-bundle";
fhir:index 0;
fhir:link <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-document-bundle> ] ];
fhir:PlanDefinition.action.output [
fhir:index 0;
fhir:Element.id [ fhir:value "submittedeicrreport" ];
fhir:DataRequirement.type [ fhir:value "Bundle" ];
fhir:DataRequirement.profile [
fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-document-bundle";
fhir:index 0;
fhir:link <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-document-bundle> ] ]
], [
fhir:index 6;
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 0;
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/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-modified-trigger" ];
fhir:Element.extension [
fhir:index 0;
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 0;
fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-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 0;
fhir:PlanDefinition.action.condition.kind [ fhir:value "applicability" ];
fhir:PlanDefinition.action.condition.expression [
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-alternative-expression-extension" ];
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://example.org/fhir/Library/RuleFilters|1.0.0" ] ] ];
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 0;
fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "create-eicr" ];
fhir:PlanDefinition.action.relatedAction.relationship [ fhir:value "before-start" ] ]
].
# - ontology header ------------------------------------------------------------
a owl:Ontology;
owl:imports fhir:fhir.ttl.