PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.resp-net@1.0.0-ballot
    http://hl7.org/fhir/us/resp-net/StructureDefinition/plandefinition-example
{
  "description": "This is the RESP-NET Knowledge Artifact",
  "_filename": "example/PlanDefinition-plandefinition-example.json",
  "package_name": "hl7.fhir.us.resp-net",
  "date": "2023-06-01T12:32:29.858-05:00",
  "meta": {
    "profile": [ "http://hl7.org/fhir/us/resp-net/StructureDefinition/resp-net-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": "PlanDefinitionRespNetExample",
  "type": "{:coding [{:system \\\"http://terminology.hl7.org/CodeSystem/plan-definition-type\\\", :code \\\"workflow-definition\\\", :display \\\"Workflow Definition\\\"}]}",
  "experimental": "true",
  "resourceType": "PlanDefinition",
  "title": "PlanDefinition RESP-NET Example",
  "package_version": "1.0.0-ballot",
  "extension": [ {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode": "pher"
  } ],
  "status": "active",
  "id": "06923a21-5e81-46b6-b86d-349da0dd1fee",
  "kind": null,
  "url": "http://hl7.org/fhir/us/resp-net/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-end",
      "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-reportability",
      "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": "start-workflow-for-positive-lab-result",
    "code": [ {
      "coding": [ {
        "code": "initiate-reporting-workflow",
        "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions"
      } ]
    } ],
    "trigger": [ {
      "id": "labresult-change",
      "name": "labresult-change",
      "type": "named-event",
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-named-eventtype",
        "valueCodeableConcept": {
          "coding": [ {
            "code": "labresult-change",
            "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-triggerdefinition-namedevents",
            "display": "Indicates change in a patient's labresults"
          } ]
        }
      } ]
    } ],
    "description": "This action represents the start of the reporting workflow in response to the labresult-change (e.g new lab result or modified existing lab result) event",
    "relatedAction": [ {
      "actionId": "check-reportability",
      "relationship": "before-start",
      "offsetDuration": {
        "code": "h",
        "value": 72,
        "system": "http://unitsofmeasure.org"
      }
    } ],
    "textEquivalent": "Start the reporting workflow in response to an labresult-change event"
  }, {
    "id": "check-reportability",
    "code": [ {
      "coding": [ {
        "code": "execute-reporting-workflow",
        "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions"
      } ]
    } ],
    "action": [ {
      "id": "is-ambulatory-encounter-reportable",
      "code": [ {
        "coding": [ {
          "code": "evaluate-condition",
          "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions"
        } ]
      } ],
      "input": [ {
        "id": "closedEncounter",
        "type": "Encounter",
        "extension": [ {
          "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
          "valueString": "Encounter/{{context.patientId}}"
        } ]
      }, {
        "id": "participantGroup",
        "type": "Group",
        "extension": [ {
          "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
          "valueString": "Group/{{context.nchsGroupId}}"
        } ]
      } ],
      "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 for reportability of ambulatory encounters based on survey participation.",
      "relatedAction": [ {
        "actionId": "create-resp-net-report",
        "relationship": "before-start"
      } ],
      "textEquivalent": "Check Participation of Provider to report on the encounter"
    }, {
      "id": "is-inpatient-encounter-reportable",
      "code": [ {
        "coding": [ {
          "code": "evaluate-condition",
          "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions"
        } ]
      } ],
      "input": [ {
        "id": "inpatientEncounter",
        "type": "Encounter",
        "extension": [ {
          "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
          "valueString": "Encounter/{{context.patientId}}"
        } ]
      } ],
      "condition": [ {
        "kind": "applicability",
        "expression": {
          "language": "text/fhirpath",
          "expression": "%closedEncounter.exists()"
        }
      } ],
      "description": "This action represents the check for reportability of inpatient encounters based on survey requirements.",
      "relatedAction": [ {
        "actionId": "create-resp-net-report",
        "relationship": "before-start"
      } ],
      "textEquivalent": "Check criteria to report on the encounter"
    } ],
    "description": "This action represents the start of the check for reportable conditions in response to the encounter-end event. This is an example of executing a reporting workflow with other actions.",
    "textEquivalent": "Check Reportability"
  }, {
    "id": "create-resp-net-report",
    "code": [ {
      "coding": [ {
        "code": "create-report",
        "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions"
      } ]
    } ],
    "input": [ {
      "id": "patient",
      "type": "Patient",
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
        "valueString": "Patient/{{context.patientId}}"
      } ]
    }, {
      "id": "conditions",
      "type": "Condition",
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
        "valueString": "Condition?patient=Patient/{{context.patientId}}&clinical-status=http://terminology.hl7.org/CodeSystem/condition-clinical|active"
      } ]
    }, {
      "id": "allergies",
      "type": "AllergyIntolerance",
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
        "valueString": "AllergyIntolerance?patient=Patient/{{context.patientId}}"
      } ]
    }, {
      "id": "careteam",
      "type": "CareTeam",
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
        "valueString": "CareTeam?patient=Patient/{{context.patientId}}"
      } ]
    }, {
      "id": "careplan",
      "type": "CarePlan",
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
        "valueString": "CarePlan?patient=Patient/{{context.patientId}}"
      } ]
    }, {
      "id": "goals",
      "type": "Goal",
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
        "valueString": "Goal?patient=Patient/{{context.patientId}}"
      } ]
    }, {
      "id": "encounter",
      "type": "Encounter",
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
        "valueString": "Encounter/{{context.encounterId}}"
      } ]
    }, {
      "id": "medRequests",
      "type": "MedicationRequest",
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
        "valueString": "MedicationRequest?patient=Patient/{{context.patientId}}&intent=order"
      } ]
    }, {
      "id": "medStatements",
      "type": "MedicationStatement",
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
        "valueString": "MedicationStatement?patient=Patient/{{context.patientId}}"
      } ]
    }, {
      "id": "medAdms",
      "type": "MedicationAdministration",
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
        "valueString": "MedicationAdministration?patient=Patient/{{context.patientId}}"
      } ]
    }, {
      "id": "vitals",
      "type": "Observation",
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
        "valueString": "Observation?patient=Patient/{{context.patientId}}&category=http://terminology.hl7.org/CodeSystem/observation-category|vital-signs"
      } ]
    }, {
      "id": "socialHistory",
      "type": "Observation",
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
        "valueString": "Observation?patient=Patient/{{context.patientId}}&category=http://terminology.hl7.org/CodeSystem/observation-category|social-history"
      } ]
    }, {
      "id": "diagnosticOrders",
      "type": "DiagnosticReport",
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
        "valueString": "DiagnosticReport?patient=Patient/{{context.patientId}}"
      } ]
    }, {
      "id": "serviceRequests",
      "type": "ServiceRequest",
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
        "valueString": "ServiceRequest?patient=Patient/{{context.patientId}}"
      } ]
    }, {
      "id": "procedures",
      "type": "Procedure",
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
        "valueString": "Procedure?patient=Patient/{{context.patientId}}"
      } ]
    }, {
      "id": "implantableDevices",
      "type": "Device",
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
        "valueString": "Device?patient=Patient/{{context.patientId}}"
      } ]
    }, {
      "id": "labs",
      "type": "Observation",
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-fhirquerypattern-extension",
        "valueString": "Observation?patient=Patient/{{context.patientId}}&category=http://terminology.hl7.org/CodeSystem/observation-category|laboratory"
      } ]
    } ],
    "output": [ {
      "id": "resp-net-report",
      "type": "Bundle",
      "profile": [ "http://hl7.org/fhir/us/resp-net/StructureDefinition/resp-net-reporting-bundle" ]
    } ],
    "description": "This action represents the creation, validation and submission of the RESP-NET report.",
    "relatedAction": [ {
      "actionId": "validate-resp-net-report",
      "relationship": "before-start"
    } ],
    "textEquivalent": "Create Report and send to RESP-NET site."
  }, {
    "id": "validate-resp-net-report",
    "code": [ {
      "coding": [ {
        "code": "validate-report",
        "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions"
      } ]
    } ],
    "input": [ {
      "id": "created-resp-net-report",
      "type": "Bundle",
      "profile": [ "http://hl7.org/fhir/us/resp-net/StructureDefinition/resp-net-reporting-bundle" ],
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-relateddata-extension",
        "valueString": "resp-net-report"
      } ]
    } ],
    "output": [ {
      "id": "validated-resp-net-report",
      "type": "Bundle",
      "profile": [ "http://hl7.org/fhir/us/resp-net/StructureDefinition/resp-net-reporting-bundle" ]
    } ],
    "description": "This action represents the validation of the RESP-NET Report",
    "relatedAction": [ {
      "actionId": "submit-resp-net-report",
      "relationship": "before-start"
    } ],
    "textEquivalent": "Validate Report"
  }, {
    "id": "submit-resp-net-report",
    "code": [ {
      "coding": [ {
        "code": "submit-report",
        "system": "http://hl7.org/fhir/us/medmorph/CodeSystem/us-ph-plandefinition-actions"
      } ]
    } ],
    "input": [ {
      "id": "valid-resp-net-report",
      "type": "Bundle",
      "profile": [ "http://hl7.org/fhir/us/resp-net/StructureDefinition/resp-net-reporting-bundle" ],
      "extension": [ {
        "url": "http://hl7.org/fhir/us/medmorph/StructureDefinition/us-ph-relateddata-extension",
        "valueString": "validated-resp-net-report"
      } ]
    } ],
    "description": "This action represents the routing and sending of the RESP-NET Report",
    "textEquivalent": "Route and send RESP-NET Report"
  } ],
  "version": "1.0.0-ballot",
  "relatedArtifact": [ {
    "type": "depends-on",
    "label": "Health Care Survey Registered Participants",
    "resource": "http://nchs/fhir/r4/Group/healthcare-survey-participants"
  } ],
  "contact": [ {
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/pher",
      "system": "url"
    } ]
  } ],
  "effectivePeriod": {
    "start": "2021-11-01"
  }
}