US Public Health Profiles Library
1.0.0 - STU1 United States of America flag

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

PlanDefinition: US Public Health PlanDefinition - Alternative Expression (Experimental)

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)

RelatedArtifacts

-TypeLabelResource
*Depends OnRCTC Value Set Library of Trigger Codeshttp://example.org/fhir/Library/library-rctc-example

action

id

start-workflow

description: 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-start

US Public Health Named Event Type Extension: Indicates the start of an encounter

type: Named Event

name: encounter-start

input

id

patient

US Public Health FHIR Query Pattern Extension: Patient/{{context.patientId}}

type: Patient

input

id

encounter

US Public Health FHIR Query Pattern Extension: Encounter/{{context.encounterId}}

type: Encounter

RelatedActions

-ActionIdRelationshipOffset[x]
*check-suspected-disorderBefore StartNo display for Duration (value: 1; system: http://unitsofmeasure.org; code: h)

action

id

check-suspected-disorder

description: 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-disorder

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

-ExtensionLanguageExpression
*FHIRPath%modifiedConditions.exists() or %modifiedLabResults.exists() or %modifiedMedicationOrders.exists()

input

id

modifiedConditions

US Public Health FHIR Query Pattern Extension: Condition?patient=Patient/{{context.patientId}}

type: Condition

CodeFilters

-PathValueSet
*codehttp://example.org/fhir/ValueSet/valueset-sdtc-example

input

id

modifiedLabResults

US Public Health FHIR Query Pattern Extension: Observation?patient=Patient/{{context.patientId}}

type: Observation

CodeFilters

-PathValueSet
*valuehttp://example.org/fhir/ValueSet/valueset-sdtc-example

input

id

modifiedMedicationOrders

US Public Health FHIR Query Pattern Extension: MedicationRequest?patient=Patient/{{context.patientId}}

type: MedicationRequest

CodeFilters

-PathValueSet
*medicationhttp://example.org/fhir/ValueSet/valueset-sdtc-example

RelatedActions

-ActionIdRelationship
*create-eicrBefore Start

action

id

continue-check-reportable

code: Evaluate condition to determine reportability

condition

kind: Applicability

Expressions

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

-ActionIdRelationshipOffset[x]
*check-reportableBefore StartNo display for Duration (value: 6; system: http://unitsofmeasure.org; code: h)

action

id

check-reportable

description: 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-reportable

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

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

conditions

US Public Health FHIR Query Pattern Extension: Condition?patient=Patient/{{context.patientId}}

type: Condition

CodeFilters

-PathValueSet
*codehttp://example.org/fhir/ValueSet/valueset-dxtc-example

input

id

encounters

US Public Health Related Data Extension: encounter

type: Encounter

CodeFilters

-PathValueSet
*reasonCodehttp://example.org/fhir/ValueSet/valueset-dxtc-example

input

id

immunizations

US Public Health FHIR Query Pattern Extension: Immunization?patient=Patient/{{context.patientId}}

type: Immunization

CodeFilters

-PathValueSet
*vaccineCodehttp://example.org/fhir/ValueSet/valueset-mrtc-example

input

id

labOrders

US Public Health FHIR Query Pattern Extension: ServiceRequest?patient=Patient/{{context.patientId}}

type: ServiceRequest

CodeFilters

-PathValueSet
*codehttp://example.org/fhir/ValueSet/valueset-lotc-example

input

id

labTests

US Public Health FHIR Query Pattern Extension: Observation?patient=Patient/{{context.patientId}}

type: Observation

CodeFilters

-PathValueSet
*codehttp://example.org/fhir/ValueSet/valueset-lotc-example

input

id

diagnosticOrders

US Public Health FHIR Query Pattern Extension: DiagnosticReport?patient=Patient/{{context.patientId}}

type: DiagnosticReport

CodeFilters

-PathValueSet
*codehttp://example.org/fhir/ValueSet/valueset-lotc-example

input

id

procedureOrders

US Public Health FHIR Query Pattern Extension: ServiceRequest?patient=Patient/{{context.patientId}}

type: ServiceRequest

CodeFilters

-PathValueSet
*codehttp://example.org/fhir/ValueSet/valueset-pctc-example

input

id

procedures

US Public Health FHIR Query Pattern Extension: Procedure?patient=Patient/{{context.patientId}}

type: Procedure

CodeFilters

-PathValueSet
*codehttp://example.org/fhir/ValueSet/valueset-pctc-example

input

id

medicationOrders

US Public Health FHIR Query Pattern Extension: MedicationRequest?patient=Patient/{{context.patientId}}

type: MedicationRequest

CodeFilters

-PathValueSet
*medicationhttp://example.org/fhir/ValueSet/valueset-mrtc-example

input

id

medicationDispenses

US Public Health FHIR Query Pattern Extension: MedicationDispense?patient=Patient/{{context.patientId}}

type: MedicationDispense

CodeFilters

-PathValueSet
*medicationhttp://example.org/fhir/ValueSet/valueset-mrtc-example

input

id

medicationAdministrations

US Public Health FHIR Query Pattern Extension: MedicationAdministration?patient=Patient/{{context.patientId}}

type: MedicationAdministration

CodeFilters

-PathValueSet
*medicationhttp://example.org/fhir/ValueSet/valueset-mrtc-example

input

id

labResults

US Public Health Related Data Extension: labTests

type: Observation

CodeFilters

-PathValueSet
*valuehttp://example.org/fhir/ValueSet/valueset-ostc-example

input

id

diagnosticResults

US Public Health Related Data Extension: diagnosticOrders

type: DiagnosticReport

CodeFilters

-PathValueSet
*codehttp://example.org/fhir/ValueSet/valueset-ostc-example

RelatedActions

-ActionIdRelationship
*create-eicrBefore Start

action

id

check-update-eicr

code: Evaluate condition to determine reportability

condition

kind: Applicability

Expressions

-ExtensionLanguageExpression
*FHIRPath((%lasteicr.last().entry[2].resource as Bundle).entry.first().resource as Composition).date < now() - 72 hours

input

id

lasteicr

US Public Health Related Data Extension: eicrreport

type: Bundle

profile: US Public Health Document Bundle

RelatedActions

-ActionIdRelationship
*create-eicrBefore Start

action

id

is-encounter-in-progress

code: Evaluate condition to determine reportability

condition

kind: Applicability

Expressions

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

inprogressencounter

US Public Health Related Data Extension: encounter

type: Encounter

RelatedActions

-ActionIdRelationshipOffset[x]
*check-reportableBefore StartNo display for Duration (value: 6; system: http://unitsofmeasure.org; code: h)

action

id

create-eicr

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

patientdata

US Public Health Related Data Extension: patient

type: Patient

profile: US Core Patient Profile

input

id

conditiondata

US Public Health Related Data Extension: conditions

type: Condition

profile: US Core Condition Encounter Diagnosis Profile

input

id

encounterdata

US Public Health Related Data Extension: encounter

type: Encounter

profile: US Core Encounter Profile

input

id

mrdata

US Public Health Related Data Extension: medicationOrders

type: MedicationRequest

profile: US Core MedicationRequest Profile

input

id

immzdata

US Public Health Related Data Extension: immunizations

type: Immunization

profile: US Core Immunization Profile

input

id

procdata

US Public Health Related Data Extension: procedures

type: Procedure

profile: US Core Procedure Profile

input

id

labResultdata

US Public Health Related Data Extension: labResults

type: Observation

profile: US Core Laboratory Result Observation Profile

input

id

labOrderdata

US Public Health Related Data Extension: labOrders

type: ServiceRequest

profile: ServiceRequest

input

id

diagnosticResultdata

US Public Health Related Data Extension: diagnosticResults

type: DiagnosticReport

profile: US Core DiagnosticReport Profile for Laboratory Results Reporting

input

id

diagnosticOrderdata

US Public Health Related Data Extension: diagnosticOrders

type: DiagnosticReport

profile: US Core DiagnosticReport Profile for Laboratory Results Reporting

output

id

eicrreport

type: Bundle

profile: US Public Health Document Bundle

RelatedActions

-ActionIdRelationship
*validate-eicrBefore Start

action

id

anonymize-report

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

US Public Health Related Data Extension: output-report

type: Bundle

output

id

anonymized-report

type: Bundle

profile: US Public Health Reporting Bundle

action

id

validate-eicr

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

generatedeicrreport

US Public Health Related Data Extension: eicrreport

type: Bundle

profile: US Public Health Document Bundle

output

id

valideicrreport

type: Bundle

profile: US Public Health Document Bundle

RelatedActions

-ActionIdRelationship
*route-and-send-eicrBefore Start

action

id

route-and-send-eicr

description: This action represents the routing and sending of the eICR.

textEquivalent: Route and send eICR

code: Submit the report to specified endpoint

input

id

validatedeicrreport

US Public Health Related Data Extension: valideicrreport

type: Bundle

profile: US Public Health Document Bundle

output

id

submittedeicrreport

type: Bundle

profile: US Public Health Document Bundle

action

id

encounter-modified

description: 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-trigger

US Public Health Named Event Type Extension: Indicates modifications to data elements of an encounter

type: Named Event

name: encounter-modified

condition

kind: Applicability

Expressions

-ExtensionLanguageExpression
*FHIRPath%encounter.where(period.start + 1 day * %normalReportingDuration < now()).select(true)

RelatedActions

-ActionIdRelationship
*create-eicrBefore Start