{ "description": "This is the Healthcare Survey Reporting Knowledge Artifact", "_filename": "example/PlanDefinition-plandefinition-central-cancer-registry-reporting-example.json", "package_name": "hl7.fhir.us.central-cancer-registry-reporting", "date": "2020-11-04T12:32:29.858-05:00", "meta": { "profile": [ "http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/ccrr-plandefinition" ], "versionId": "1", "lastUpdated": "2020-11-29T02:03:28.045+00:00" }, "publisher": "HL7 International / Public Health", "jurisdiction": [ { "coding": [ { "code": "US", "system": "urn:iso:std:iso:3166" } ] } ], "name": "CentralCancerRegistryReportingExample", "type": "{:coding [{:system \\\"http://terminology.hl7.org/CodeSystem/plan-definition-type\\\", :code \\\"workflow-definition\\\", :display \\\"Workflow Definition\\\"}]}", "experimental": "true", "resourceType": "PlanDefinition", "title": "PlanDefinition Central Cancer Registry Reporting Example", "package_version": "1.0.0", "status": "draft", "id": "be4dbcd0-2c02-4e1f-8cbc-8d3a7f6a01d8", "kind": null, "url": "http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/plandefinition-central-cancer-registry-reporting-example", "identifier": [ { "value": "urn:oid:2.16.840.1.113883.4.642.40.40.34.1", "system": "urn:ietf:rfc:3986" } ], "action": [ { "id": "start-workflow", "code": [ { "coding": [ { "code": "initiate-reporting-workflow", "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions" } ] } ], "trigger": [ { "id": "encounter-close", "name": "encounter-end", "type": "named-event", "extension": [ { "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-named-eventtype", "valueCodeableConcept": { "coding": [ { "code": "encounter-end", "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-triggerdefinition-namedevents", "display": "Indicates the end of an encounter" } ] } } ] } ], "description": "This action represents the start of the reporting workflow in response to the encounter-end event", "relatedAction": [ { "actionId": "check-reportable", "relationship": "before-start", "offsetDuration": { "code": "h", "value": 72, "system": "http://unitsofmeasure.org" } } ], "textEquivalent": "Start the reporting workflow in response to an encounter-end event" }, { "id": "check-reportable", "code": [ { "coding": [ { "code": "execute-reporting-workflow", "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions" } ] } ], "action": [ { "id": "is-encounter-reportable", "code": [ { "coding": [ { "code": "check-trigger-codes", "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions" } ] } ], "input": [ { "id": "conditions", "type": "Condition", "extension": [ { "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension", "valueString": "Condition?patient=Patient/{{context.patientId}}" } ], "codeFilter": [ { "path": "code", "valueSet": "http://hl7.org/fhir/us/central-cancer-registry-reporting/ValueSet/cancer-core-reportability-codes" } ] } ], "condition": [ { "kind": "applicability", "expression": { "language": "text/fhirpath", "expression": "%conditions.exists()" } } ], "description": "This action represents the check for reportability to create the patients eICR.", "relatedAction": [ { "actionId": "report-cancer-data", "relationship": "before-start" } ], "textEquivalent": "Check Trigger Codes based on RCTC Value sets." }, { "id": "should-continue-reporting", "code": [ { "coding": [ { "code": "evaluate-condition", "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions" } ] } ], "condition": [ { "kind": "applicability", "expression": { "language": "text/fhirpath", "expression": "%patient.deceased[x] == null && (currentTime - previousReportSubmissionTime) < 7776000" } } ], "relatedAction": [ { "actionId": "check-reportable", "relationship": "before-start", "offsetDuration": { "code": "mo", "value": 6, "system": "http://unitsofmeasure.org" } } ] } ], "description": "This action represents the check for suspected reportability of the cancer data.", "textEquivalent": "Check Reportability and setup jobs for future reportability checks." }, { "id": "report-cancer-data", "code": [ { "coding": [ { "code": "execute-reporting-workflow", "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions" } ] } ], "action": [ { "id": "create-cancer-report", "code": [ { "coding": [ { "code": "create-report", "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions" } ] } ], "input": [ { "id": "patient", "type": "Patient", "profile": [ "http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/cancer-patient" ] }, { "id": "condition", "type": "Condition", "profile": [ "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-primary-cancer-condition" ] }, { "id": "encounter", "type": "Encounter", "profile": [ "http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/cancer-encounter" ] }, { "id": "mr", "type": "MedicationRequest", "profile": [ "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-cancer-related-medication-request" ] }, { "id": "vitals", "type": "Observation", "profile": [ "http://hl7.org/fhir/StructureDefinition/vitalsigns" ] }, { "id": "labs", "type": "Observation", "profile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab" ] } ], "output": [ { "id": "cancer-report", "type": "Bundle", "profile": [ "http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/ccrr-reporting-bundle" ] } ], "description": "This action represents the creation of the cancer report.", "relatedAction": [ { "actionId": "validate-report", "relationship": "before-start" } ], "textEquivalent": "Central Cancer Registry Report" }, { "id": "validate-cancer-report", "code": [ { "coding": [ { "code": "validate-report", "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions" } ] } ], "input": [ { "id": "created-cancer-report", "type": "Bundle", "profile": [ "http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/ccrr-reporting-bundle" ] } ], "output": [ { "id": "validated-cancer-report", "type": "Bundle", "profile": [ "http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/ccrr-reporting-bundle" ] } ], "description": "This action represents the validation of the cancer report.", "relatedAction": [ { "actionId": "submit-report", "relationship": "before-start" } ], "textEquivalent": "Validate Report" }, { "id": "route-and-send-cancer-report", "code": [ { "coding": [ { "code": "submit-report", "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions" } ] } ], "input": [ { "id": "val-cancer-report", "type": "Bundle", "profile": [ "http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/ccrr-reporting-bundle" ] } ], "description": "This action represents the routing and sending of the cancer report.", "textEquivalent": "Route and send cancer report" } ], "description": "This action represents the creation, validation and submission of the cancer report.", "textEquivalent": "Check Reportability and setup jobs for future reportability checks." } ], "version": "1.0.0", "relatedArtifact": [ { "type": "depends-on", "label": "Central Cancer Registry Trigger Codes", "resource": "http://hl7.org/fhir/us/central-cancer-registry-reporting/ValueSet/cancer-core-reportability-codes" } ], "contact": [ { "telecom": [ { "value": "http://www.hl7.org/Special/committees/pher", "system": "url" } ] } ], "effectivePeriod": { "start": "2021-11-01" } }