{ "description": "This is the Health Care Survey Reporting Knowledge Artifact", "_filename": "example/PlanDefinition-plandefinition-example.json", "package_name": "hl7.fhir.us.health-care-surveys-reporting", "date": "2020-11-04T12:32:29.858-05:00", "meta": { "profile": [ "http://hl7.org/fhir/us/health-care-surveys-reporting/StructureDefinition/hcs-plandefinition" ], "versionId": "1", "lastUpdated": "2020-11-29T02:03:28.045+00:00" }, "publisher": "HL7 International - Public Health Work Group", "jurisdiction": [ { "coding": [ { "code": "US", "system": "urn:iso:std:iso:3166" } ] } ], "name": "PlanDefinitionExample", "type": "{:coding [{:system \\\"http://terminology.hl7.org/CodeSystem/plan-definition-type\\\", :code \\\"workflow-definition\\\", :display \\\"Workflow Definition\\\"}]}", "experimental": "true", "resourceType": "PlanDefinition", "title": "PlanDefinition Example", "package_version": "0.1.0", "extension": [ { "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/ext-receiverAddress", "valueReference": { "reference": "Endpoint/example-ph-endpoint" } }, { "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/ext-authorSignature", "valueSignature": { "who": { "reference": "Organization/example-pha-org" }, "data": "L44u", "type": [ { "code": "1.2.840.10065.1.12.1.5", "system": "urn:iso-astm:E1762-95:2013", "display": "Verification Signature" } ], "when": "2020-11-03T22:39:24.000+00:00", "sigFormat": "application/signature+xml", "targetFormat": "application/fhir+xml" } } ], "status": "draft", "id": "4edc1dd5-3f20-4b5a-8683-82d510d83f2e", "kind": null, "url": "http://hl7.org/fhir/us/health-care-surveys-reporting/StructureDefinition/plandefinition-example", "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-close", "type": "named-event", "extension": [ { "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/ext-us-ph-namedEventType", "valueCodeableConcept": { "coding": [ { "code": "encounter-close", "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-triggerdefinition-namedevents", "display": "Indicates the close of an encounter" } ] } } ] } ], "description": "This action represents the start of the reporting workflow in response to the encounter-close event", "relatedAction": [ { "actionId": "check-survey-participants", "relationship": "before-start", "offsetDuration": { "code": "min", "value": 5, "system": "http://unitsofmeasure.org" } } ], "textEquivalent": "Start the reporting workflow in response to an encounter-close event" }, { "id": "check-survey-participants", "code": [ { "coding": [ { "code": "check-participant-registration", "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions" } ] } ], "input": [ { "id": "closedEncounter", "type": "Encounter", "profile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" ] }, { "id": "participantGroup", "type": "Group", "profile": [ "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-survey-practitioner-group" ] } ], "condition": [ { "kind": "applicability", "expression": { "language": "text/fhirpath", "expression": "closedEncounter.participant.individual.identifier.where(system = 'http://hl7.org/fhir/sid/us-npi).value.subsetOf(participantGroup.member.entity.identifier.where(system = 'http://hl7.org/fhir/sid/us-npi).value)'" } } ], "description": "This action represents the check if Practitioner is registered to report on health care surveys.", "relatedAction": [ { "actionId": "report-to-nchs", "relationship": "before-start" } ], "textEquivalent": "Check Participant Registration" }, { "id": "report-to-nchs", "code": [ { "coding": [ { "code": "execute-reporting-workflow", "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions" } ] } ], "action": [ { "id": "create-hcs-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/core/StructureDefinition/us-core-patient" ] }, { "id": "condition", "type": "Condition", "profile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition" ] }, { "id": "encounter", "type": "Encounter", "profile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" ] }, { "id": "mr", "type": "MedicationRequest", "profile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest" ] }, { "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": "hcs-report", "type": "Bundle", "profile": [ "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-reporting-bundle" ] } ], "description": "This action represents the creation of the HCS Report.", "relatedAction": [ { "actionId": "validate-report", "relationship": "before-start" } ], "textEquivalent": "Health Care Survey Report" }, { "id": "validate-hcs-report", "code": [ { "coding": [ { "code": "validate-report", "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions" } ] } ], "input": [ { "id": "created-hcs-report", "type": "Bundle", "profile": [ "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-reporting-bundle" ] } ], "output": [ { "id": "validated-hcs-report", "type": "Bundle", "profile": [ "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-reporting-bundle" ] } ], "description": "This action represents the validation of the HCS Report", "relatedAction": [ { "actionId": "submit-report", "relationship": "before-start" } ], "textEquivalent": "Validate Report" }, { "id": "route-and-send-hcs-report", "code": [ { "coding": [ { "code": "submit-report", "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions" } ] } ], "input": [ { "id": "valid-hcs-report", "type": "Bundle", "profile": [ "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-reporting-bundle" ] } ], "description": "This action represents the routing and sending of the HCS Report", "textEquivalent": "Route and send HCS Report" } ], "description": "This action represents the creation, validation and submission of the health care survey report.", "textEquivalent": "Create Report and send to NCHS." } ], "version": "0.1.0", "relatedArtifact": [ { "type": "depends-on", "label": "Health Care Survey Registered Participants", "resource": "http://nchs/fhir/r4/Group/healthcare-survey-participants" } ], "contact": [ { "telecom": [ { "value": "http://hl7.org/Special/committees/pher", "system": "url" } ] } ], "effectivePeriod": { "start": "2021-11-01" } }