{
"description": "Example of an eRSD PlanDefinition demonstrating the use of the US Public Health RelatedData Extension for linking related resources.",
"_filename": "example/PlanDefinition-plandefinition-ersd-instance-relateddata-extension-example.json",
"package_name": "hl7.fhir.us.ecr",
"date": "2020-07-31T12:32:29.858-05:00",
"meta": {
"profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/ersd-plandefinition" ]
},
"publisher": "HL7 International / Public Health",
"jurisdiction": [ {
"coding": [ {
"code": "US",
"system": "urn:iso:std:iso:3166"
} ]
} ],
"name": "PlanDefinition_eRSD_Instance_Simple_Example",
"type": "{:coding [{:system \\\"http://terminology.hl7.org/CodeSystem/plan-definition-type\\\", :code \\\"workflow-definition\\\", :display \\\"Workflow Definition\\\"}]}",
"experimental": "true",
"resourceType": "PlanDefinition",
"title": "eRSD PlanDefinition Instance Simple Example",
"package_version": "3.0.0-ballot",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/variable",
"valueExpression": {
"name": "normalReportingDuration",
"language": "text/fhirpath",
"expression": "2 weeks"
}
} ],
"status": "active",
"id": "a6972505-dbf5-42a4-91b9-41bb37e4a8cf",
"kind": null,
"url": "http://hl7.org/fhir/us/ecr/PlanDefinition/plandefinition-ersd-instance-relateddata-extension-example",
"identifier": [ {
"value": "urn:oid:2.16.840.1.113883.4.642.40.46.34.5",
"system": "urn:ietf:rfc:3986"
} ],
"action": [ {
"id": "start-workflow",
"code": [ {
"coding": [ {
"code": "initiate-reporting-workflow",
"system": "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions",
"display": "Initiate a reporting workflow"
} ]
} ],
"input": [ {
"id": "patient",
"type": "Patient",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern",
"valueString": "Patient/{{context.patientId}}"
} ]
}, {
"id": "encounter",
"type": "Encounter",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern",
"valueString": "Encounter/{{context.encounterId}}"
} ]
} ],
"trigger": [ {
"id": "encounter-start",
"name": "encounter-start",
"type": "named-event",
"extension": [ {
"url": "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-named-eventtype-extension",
"valueCodeableConcept": {
"coding": [ {
"code": "encounter-start",
"system": "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-triggerdefinition-namedevents",
"display": "Indicates the start of an encounter"
} ]
}
} ]
} ],
"description": "This action represents the start of the reporting workflow in response to the encounter-start event.",
"relatedAction": [ {
"actionId": "check-suspected-disorder",
"relationship": "before-start",
"offsetDuration": {
"code": "h",
"value": 1,
"system": "http://unitsofmeasure.org"
}
} ],
"textEquivalent": "Start the reporting workflow in response to an encounter-start event"
}, {
"id": "check-suspected-disorder",
"code": [ {
"coding": [ {
"code": "execute-reporting-workflow",
"system": "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"
} ]
} ],
"action": [ {
"id": "is-encounter-suspected-disorder",
"code": [ {
"coding": [ {
"code": "check-trigger-codes",
"system": "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"
} ]
} ],
"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."
}, {
"id": "continue-check-reportable",
"code": [ {
"coding": [ {
"code": "evaluate-condition",
"system": "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"
} ]
} ]
} ],
"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."
}, {
"id": "check-reportable",
"code": [ {
"coding": [ {
"code": "execute-reporting-workflow",
"system": "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"
} ]
} ],
"action": [ {
"id": "is-encounter-reportable",
"code": [ {
"coding": [ {
"code": "check-trigger-codes",
"system": "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"
} ]
} ],
"description": "This action represents the check for reportability to create the patients eICR.",
"textEquivalent": "Check Trigger Codes based on RCTC Value sets."
}, {
"id": "check-update-eicr",
"code": [ {
"coding": [ {
"code": "evaluate-condition",
"system": "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"
} ]
} ]
}, {
"id": "is-encounter-in-progress",
"code": [ {
"coding": [ {
"code": "evaluate-condition",
"system": "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"
} ]
} ]
}, {
"id": "is-encounter-completed",
"code": [ {
"coding": [ {
"code": "complete-reporting",
"system": "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"
} ]
} ]
} ],
"description": "This action represents the check for suspected reportability of the eICR.",
"textEquivalent": "Check Reportability and setup jobs for future reportability checks."
}, {
"id": "create-eicr",
"code": [ {
"coding": [ {
"code": "create-report",
"system": "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"
} ]
} ],
"input": [ {
"id": "patient-data",
"type": "Patient",
"profile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|6.1.0" ],
"extension": [ {
"url": "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension",
"valueString": "patient"
} ]
}, {
"id": "condition-data",
"type": "Condition",
"profile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition-encounter-diagnosis|6.1.0" ],
"extension": [ {
"url": "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension",
"valueString": "conditions"
} ]
}, {
"id": "encounter-data",
"type": "Encounter",
"profile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter|6.1.0" ],
"extension": [ {
"url": "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension",
"valueString": "encounters"
} ]
}, {
"id": "mr-data",
"type": "MedicationRequest",
"profile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest|6.1.0" ],
"extension": [ {
"url": "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension",
"valueString": "medicationOrders"
} ]
}, {
"id": "immz-data",
"type": "Immunization",
"profile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization|6.1.0" ],
"extension": [ {
"url": "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension",
"valueString": "immunizations"
} ]
}, {
"id": "proc-data",
"type": "Procedure",
"profile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure|6.1.0" ],
"extension": [ {
"url": "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension",
"valueString": "procedures"
} ]
}, {
"id": "labResult-data",
"type": "Observation",
"profile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab|6.1.0" ],
"extension": [ {
"url": "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension",
"valueString": "labResults"
} ]
}, {
"id": "labOrder-data",
"type": "ServiceRequest",
"profile": [ "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ],
"extension": [ {
"url": "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension",
"valueString": "labOrders"
} ]
}, {
"id": "diagnosticResult-data",
"type": "DiagnosticReport",
"profile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab|6.1.0" ],
"extension": [ {
"url": "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension",
"valueString": "diagnosticResults"
} ]
}, {
"id": "diagnosticOrder-data",
"type": "DiagnosticReport",
"profile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab|6.1.0" ],
"extension": [ {
"url": "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension",
"valueString": "diagnosticOrders"
} ]
} ],
"output": [ {
"id": "eicr-report",
"type": "Bundle",
"profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle" ]
} ],
"description": "This action represents the creation of the eICR. It subsequently calls validate.",
"relatedAction": [ {
"actionId": "validate-eicr",
"relationship": "before-start"
} ],
"textEquivalent": "Create eICR"
}, {
"id": "validate-eicr",
"code": [ {
"coding": [ {
"code": "validate-report",
"system": "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"
} ]
} ],
"input": [ {
"id": "generated-eicr-report",
"type": "Bundle",
"profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle" ],
"extension": [ {
"url": "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension",
"valueString": "eicr-report"
} ]
} ],
"output": [ {
"id": "valid-eicr-report",
"type": "Bundle",
"profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle" ]
} ],
"description": "This action represents the validation of the eICR. It subsequently calls route-and-send.",
"relatedAction": [ {
"actionId": "route-and-send-eicr",
"relationship": "before-start"
} ],
"textEquivalent": "Validate eICR"
}, {
"id": "route-and-send-eicr",
"code": [ {
"coding": [ {
"code": "submit-report",
"system": "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"
} ]
} ],
"input": [ {
"id": "validated-eicr-report",
"type": "Bundle",
"profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle" ],
"extension": [ {
"url": "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension",
"valueString": "valid-eicr-report"
} ]
} ],
"output": [ {
"id": "submitted-eicr-report",
"type": "Bundle",
"profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle" ]
} ],
"description": "This action represents the routing and sending of the eICR.",
"textEquivalent": "Route and send eICR"
}, {
"id": "encounter-modified",
"code": [ {
"coding": [ {
"code": "initiate-reporting-workflow",
"system": "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions",
"display": "Initiate a reporting workflow"
} ]
} ],
"trigger": [ {
"id": "encounter-modified-trigger",
"name": "encounter-modified",
"type": "named-event",
"extension": [ {
"url": "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-named-eventtype-extension",
"valueCodeableConcept": {
"coding": [ {
"code": "encounter-modified",
"system": "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-triggerdefinition-namedevents",
"display": "Indicates modifications to data elements of an encounter"
} ]
}
} ]
} ],
"condition": [ {
"kind": "applicability",
"expression": {
"language": "text/fhirpath",
"expression": "%encounter.where(period.start + %normalReportingDuration < now())"
}
} ],
"description": "This action represents the start of the reporting workflow in response to the encounter-modified event",
"relatedAction": [ {
"actionId": "create-eicr",
"relationship": "before-start"
} ],
"textEquivalent": "Start the reporting workflow in response to an encounter-modified event"
} ],
"version": "3.0.0-ballot",
"contact": [ {
"name": "HL7 International / Public Health",
"telecom": [ {
"value": "http://www.hl7.org/Special/committees/pher",
"system": "url"
}, {
"value": "pher@lists.HL7.org",
"system": "email"
} ]
} ]
}