US Public Health Profiles Library, published by HL7 Public Health Work Group. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-us-ph-library/ and changes regularly. See the Directory of published versions
Official URL: http://example.org/fhir/PlanDefinition/us-ph-plandefinition-alt-expression-example | Version: 1.0.0 | |||
Active as of 2022-07-31 | Computable Name: USPublicHealthPlanDefinitionAlternativeExpressionExample |
An example PlanDefinition
Generated Narrative: PlanDefinition us-ph-plandefinition-alt-expression-example
url: PlanDefinition US Public Health PlanDefinition Alternative Expression Example
version: 1.0.0
name: USPublicHealthPlanDefinitionAlternativeExpressionExample
title: US Public Health PlanDefinition Alternative Expression Example
type: Workflow Definition
status: Active
experimental: true
date: 2022-07-31 12:32:29-0500
publisher: HL7 Public Health Work Group
contact: HL7 Public Health Work Group: http://www.hl7.org/Special/committees/pher,pher@lists.HL7.org
description:
An example PlanDefinition
jurisdiction: United States of America
effectivePeriod: 2020-12-01 --> (ongoing)
Type | Label | Resource |
Depends On | RCTC Value Set Library of Trigger Codes | http://example.org/fhir/Library/library-rctc-example |
action
id
start-workflowdescription: This action represents the start of the reporting workflow in response to the encounter-start event.
textEquivalent: Start the reporting workflow in response to an encounter-start event
code: Initiate a reporting workflow
trigger
id
encounter-startUS Public Health Named Event Type Extension: Indicates the start of an encounter
type: Named Event
name: encounter-start
input
id
patientUS Public Health FHIR Query Pattern Extension: Patient/{{context.patientId}}
type: Patient
input
id
encounterUS Public Health FHIR Query Pattern Extension: Encounter/{{context.encounterId}}
type: Encounter
RelatedActions
ActionId Relationship Offset[x] check-suspected-disorder Before Start No display for Duration (value: 1; system: http://unitsofmeasure.org; code: h)
action
id
check-suspected-disorderdescription: This action represents the start of the check suspected disorder reporting workflow in response to the encounter-start event.
textEquivalent: Check suspected disorders for immediate reportability and setup jobs for future reportability checks.
code: Execute a series of actions to accomplish reporting
action
id
is-encounter-suspected-disorderdescription: This action represents the check for suspected disorder reportability to create the patients eICR.
textEquivalent: Check Trigger Codes based on Suspected Reportable Value set.
code: Evaluate candidate patient's data against trigger codes to determine reportability
condition
kind: Applicability
Expressions
Extension Language Expression FHIRPath %modifiedConditions.exists() or %modifiedLabResults.exists() or %modifiedMedicationOrders.exists() input
id
modifiedConditionsUS Public Health FHIR Query Pattern Extension: Condition?patient=Patient/{{context.patientId}}
type: Condition
CodeFilters
Path ValueSet code http://example.org/fhir/ValueSet/valueset-sdtc-example
input
id
modifiedLabResultsUS Public Health FHIR Query Pattern Extension: Observation?patient=Patient/{{context.patientId}}
type: Observation
CodeFilters
Path ValueSet value http://example.org/fhir/ValueSet/valueset-sdtc-example
input
id
modifiedMedicationOrdersUS Public Health FHIR Query Pattern Extension: MedicationRequest?patient=Patient/{{context.patientId}}
type: MedicationRequest
CodeFilters
Path ValueSet medication http://example.org/fhir/ValueSet/valueset-sdtc-example
RelatedActions
ActionId Relationship create-eicr Before Start action
id
continue-check-reportablecode: Evaluate condition to determine reportability
condition
kind: Applicability
Expressions
Extension Language Expression FHIRPath %encounter.where((status = 'in-progress' and period.start + 1 day * %normalReportingDuration >= now()) or (status = 'finished' and period.end + 72 hours >= now())).select(true) RelatedActions
ActionId Relationship Offset[x] check-reportable Before Start No display for Duration (value: 6; system: http://unitsofmeasure.org; code: h)
action
id
check-reportabledescription: This action represents the check for suspected reportability of the eICR.
textEquivalent: Check Reportability and setup jobs for future reportability checks.
code: Execute a series of actions to accomplish reporting
action
id
is-encounter-reportabledescription: This action represents the check for reportability to create the patients eICR.
textEquivalent: Check Trigger Codes based on RCTC Value sets.
code: Evaluate candidate patient's data against trigger codes to determine reportability
condition
kind: Applicability
Expressions
Extension Language Expression FHIRPath %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()) input
id
conditionsUS Public Health FHIR Query Pattern Extension: Condition?patient=Patient/{{context.patientId}}
type: Condition
CodeFilters
Path ValueSet code http://example.org/fhir/ValueSet/valueset-dxtc-example
input
id
encountersUS Public Health Related Data Extension: encounter
type: Encounter
CodeFilters
Path ValueSet reasonCode http://example.org/fhir/ValueSet/valueset-dxtc-example
input
id
immunizationsUS Public Health FHIR Query Pattern Extension: Immunization?patient=Patient/{{context.patientId}}
type: Immunization
CodeFilters
Path ValueSet vaccineCode http://example.org/fhir/ValueSet/valueset-mrtc-example
input
id
labOrdersUS Public Health FHIR Query Pattern Extension: ServiceRequest?patient=Patient/{{context.patientId}}
type: ServiceRequest
CodeFilters
Path ValueSet code http://example.org/fhir/ValueSet/valueset-lotc-example
input
id
labTestsUS Public Health FHIR Query Pattern Extension: Observation?patient=Patient/{{context.patientId}}
type: Observation
CodeFilters
Path ValueSet code http://example.org/fhir/ValueSet/valueset-lotc-example
input
id
diagnosticOrdersUS Public Health FHIR Query Pattern Extension: DiagnosticReport?patient=Patient/{{context.patientId}}
type: DiagnosticReport
CodeFilters
Path ValueSet code http://example.org/fhir/ValueSet/valueset-lotc-example
input
id
procedureOrdersUS Public Health FHIR Query Pattern Extension: ServiceRequest?patient=Patient/{{context.patientId}}
type: ServiceRequest
CodeFilters
Path ValueSet code http://example.org/fhir/ValueSet/valueset-pctc-example
input
id
proceduresUS Public Health FHIR Query Pattern Extension: Procedure?patient=Patient/{{context.patientId}}
type: Procedure
CodeFilters
Path ValueSet code http://example.org/fhir/ValueSet/valueset-pctc-example
input
id
medicationOrdersUS Public Health FHIR Query Pattern Extension: MedicationRequest?patient=Patient/{{context.patientId}}
type: MedicationRequest
CodeFilters
Path ValueSet medication http://example.org/fhir/ValueSet/valueset-mrtc-example
input
id
medicationDispensesUS Public Health FHIR Query Pattern Extension: MedicationDispense?patient=Patient/{{context.patientId}}
type: MedicationDispense
CodeFilters
Path ValueSet medication http://example.org/fhir/ValueSet/valueset-mrtc-example
input
id
medicationAdministrationsUS Public Health FHIR Query Pattern Extension: MedicationAdministration?patient=Patient/{{context.patientId}}
type: MedicationAdministration
CodeFilters
Path ValueSet medication http://example.org/fhir/ValueSet/valueset-mrtc-example
input
id
labResultsUS Public Health Related Data Extension: labTests
type: Observation
CodeFilters
Path ValueSet value http://example.org/fhir/ValueSet/valueset-ostc-example
input
id
diagnosticResultsUS Public Health Related Data Extension: diagnosticOrders
type: DiagnosticReport
CodeFilters
Path ValueSet code http://example.org/fhir/ValueSet/valueset-ostc-example
RelatedActions
ActionId Relationship create-eicr Before Start action
id
check-update-eicrcode: Evaluate condition to determine reportability
condition
kind: Applicability
Expressions
Extension Language Expression FHIRPath ((%lasteicr.last().entry[2].resource as Bundle).entry.first().resource as Composition).date < now() - 72 hours input
id
lasteicrUS Public Health Related Data Extension: eicrreport
type: Bundle
profile: US Public Health Document Bundle
RelatedActions
ActionId Relationship create-eicr Before Start action
id
is-encounter-in-progresscode: Evaluate condition to determine reportability
condition
kind: Applicability
Expressions
Extension Language Expression FHIRPath %inprogressencounter.where(status = 'in-progress' and period.start + 1 day * %normalReportingDuration >= now() or (status = 'finished' and period.end + 72 hours >= now())).exists() input
id
inprogressencounterUS Public Health Related Data Extension: encounter
type: Encounter
RelatedActions
ActionId Relationship Offset[x] check-reportable Before Start No display for Duration (value: 6; system: http://unitsofmeasure.org; code: h)
action
id
create-eicrdescription: This action represents the creation of the eICR. It subsequently calls validate.
textEquivalent: Create eICR
code: Create a Report containing Patient's data for patients who passed the check-reportability test
input
id
patientdataUS Public Health Related Data Extension: patient
type: Patient
profile: US Core Patient Profile
input
id
conditiondataUS Public Health Related Data Extension: conditions
type: Condition
input
id
encounterdataUS Public Health Related Data Extension: encounter
type: Encounter
profile: US Core Encounter Profile
input
id
mrdataUS Public Health Related Data Extension: medicationOrders
type: MedicationRequest
profile: US Core MedicationRequest Profile
input
id
immzdataUS Public Health Related Data Extension: immunizations
type: Immunization
profile: US Core Immunization Profile
input
id
procdataUS Public Health Related Data Extension: procedures
type: Procedure
profile: US Core Procedure Profile
input
id
labResultdataUS Public Health Related Data Extension: labResults
type: Observation
input
id
labOrderdataUS Public Health Related Data Extension: labOrders
type: ServiceRequest
profile: ServiceRequest
input
id
diagnosticResultdataUS Public Health Related Data Extension: diagnosticResults
type: DiagnosticReport
profile: US Core DiagnosticReport Profile for Laboratory Results Reporting
input
id
diagnosticOrderdataUS Public Health Related Data Extension: diagnosticOrders
type: DiagnosticReport
profile: US Core DiagnosticReport Profile for Laboratory Results Reporting
output
id
eicrreporttype: Bundle
profile: US Public Health Document Bundle
RelatedActions
ActionId Relationship validate-eicr Before Start action
id
anonymize-reportUS Public Health Trust Service Endpoint Extension: Endpoint PHAReceiver
description: This action is used to anonymize a identifiable report
textEquivalent: Anonymize the report.
code: Anonymize the report before submitting the report
input
id
report-to-be-anonymizedUS Public Health Related Data Extension: output-report
type: Bundle
output
id
anonymized-reporttype: Bundle
profile: US Public Health Reporting Bundle
action
id
validate-eicrdescription: This action represents the validation of the eICR. It subsequently calls route-and-send.
textEquivalent: Validate eICR
code: Validate Report against specified profiles and terminologies.
input
id
generatedeicrreportUS Public Health Related Data Extension: eicrreport
type: Bundle
profile: US Public Health Document Bundle
output
id
valideicrreporttype: Bundle
profile: US Public Health Document Bundle
RelatedActions
ActionId Relationship route-and-send-eicr Before Start
action
id
route-and-send-eicrdescription: This action represents the routing and sending of the eICR.
textEquivalent: Route and send eICR
code: Submit the report to specified endpoint
input
id
validatedeicrreportUS Public Health Related Data Extension: valideicrreport
type: Bundle
profile: US Public Health Document Bundle
output
id
submittedeicrreporttype: Bundle
profile: US Public Health Document Bundle
action
id
encounter-modifieddescription: This action represents the start of the reporting workflow in response to the encounter-modified event
textEquivalent: Start the reporting workflow in response to an encounter-modified event
code: Initiate a reporting workflow
trigger
id
encounter-modified-triggerUS Public Health Named Event Type Extension: Indicates modifications to data elements of an encounter
type: Named Event
name: encounter-modified
condition
kind: Applicability
Expressions
Extension Language Expression FHIRPath %encounter.where(period.start + 1 day * %normalReportingDuration < now()).select(true) RelatedActions
ActionId Relationship create-eicr Before Start