PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.ecr@1.1.0
    http://hl7.org/fhir/us/ecr/PlanDefinition/plandefinition-ersd-instance
{
  "description": "An example ersd PlanDefinition",
  "_filename": "example/PlanDefinition-plandefinition-ersd-instance.json",
  "package_name": "hl7.fhir.us.ecr",
  "date": "2020-07-31T12:32:29.858-05:00",
  "meta": {
    "source": "#1Vdult52UApiUgPS",
    "profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/ersd-plandefinition" ],
    "versionId": "18",
    "lastUpdated": "2020-12-03T07:29:41.456+00:00"
  },
  "publisher": "HL7 Public Health Work Group (http://www.hl7.org/Special/committees/pher/index.cfm)",
  "jurisdiction": [ {
    "text": "United States of America",
    "coding": [ {
      "code": "US",
      "system": "urn:iso:std:iso:3166",
      "display": "United States of America"
    } ]
  } ],
  "name": "PlanDefinition_eRSD_Instance",
  "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",
  "package_version": "1.1.0",
  "status": "active",
  "id": "d7039694-edbf-4918-9e13-85961d4a5852",
  "kind": null,
  "url": "http://hl7.org/fhir/us/ecr/PlanDefinition/plandefinition-ersd-instance",
  "action": [ {
    "id": "start",
    "code": [ {
      "coding": [ {
        "code": "start",
        "system": "http://hl7.org/fhir/us/ecr/CodeSystem/executabletask-type"
      } ]
    } ],
    "trigger": [ {
      "id": "encounter",
      "name": "encounter-start",
      "type": "named-event"
    } ],
    "description": "This action represents the start of the reporting workflow in response to the encounter-start event",
    "relatedAction": [ {
      "actionId": "check-reportable",
      "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-reportable",
    "code": [ {
      "coding": [ {
        "code": "check-reportable",
        "system": "http://hl7.org/fhir/us/ecr/CodeSystem/executabletask-type"
      } ]
    } ],
    "action": [ {
      "id": "ckr-is-encounter-reportable",
      "input": [ {
        "id": "conditions",
        "type": "Condition",
        "codeFilter": [ {
          "path": "code",
          "valueSet": "http://hl7.org/fhir/us/ecr/ValueSet/valueset-dxtc-example"
        } ]
      }, {
        "id": "encounters",
        "type": "Encounter",
        "codeFilter": [ {
          "path": "reasonCode",
          "valueSet": "http://hl7.org/fhir/us/ecr/ValueSet/valueset-dxtc-example"
        } ]
      }, {
        "id": "immunizations",
        "type": "Immunization",
        "codeFilter": [ {
          "path": "vaccineCode",
          "valueSet": "http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example"
        } ]
      }, {
        "id": "labOrders",
        "type": "ServiceRequest",
        "codeFilter": [ {
          "path": "code",
          "valueSet": "http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example"
        } ]
      }, {
        "id": "labTests",
        "type": "Observation",
        "codeFilter": [ {
          "path": "code",
          "valueSet": "http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example"
        } ]
      }, {
        "id": "procedureOrders",
        "type": "ServiceRequest",
        "codeFilter": [ {
          "path": "code",
          "valueSet": "http://hl7.org/fhir/us/ecr/ValueSet/valueset-pctc-example"
        } ]
      }, {
        "id": "procedures",
        "type": "Procedure",
        "codeFilter": [ {
          "path": "code",
          "valueSet": "http://hl7.org/fhir/us/ecr/ValueSet/valueset-pctc-example"
        } ]
      }, {
        "id": "medicationOrders",
        "type": "MedicationRequest",
        "codeFilter": [ {
          "path": "medication",
          "valueSet": "http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example"
        } ]
      }, {
        "id": "medicationDispenses",
        "type": "MedicationDispense",
        "codeFilter": [ {
          "path": "medication",
          "valueSet": "http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example"
        } ]
      }, {
        "id": "medicationAdministrations",
        "type": "MedicationAdministration",
        "codeFilter": [ {
          "path": "medication",
          "valueSet": "http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example"
        } ]
      }, {
        "id": "labResults",
        "type": "Observation",
        "codeFilter": [ {
          "path": "value",
          "valueSet": "http://hl7.org/fhir/us/ecr/ValueSet/valueset-ostc-example"
        } ]
      } ],
      "condition": [ {
        "kind": "applicability",
        "expression": {
          "language": "text/fhirpath",
          "extension": [ {
            "url": "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-alternativeExpression",
            "valueExpression": {
              "language": "text/cql-identifier",
              "reference": "http://aphl.org/fhir/ecr/Library/RuleFilters|1.0.0",
              "expression": "Is Reportable"
            }
          } ],
          "expression": "%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()"
        }
      } ],
      "relatedAction": [ {
        "actionId": "create-and-report-eicr",
        "relationship": "before-start"
      } ]
    }, {
      "id": "ckr-is-encounter-in-progress",
      "condition": [ {
        "kind": "applicability",
        "expression": {
          "language": "text/fhirpath",
          "extension": [ {
            "url": "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-alternativeExpression",
            "valueExpression": {
              "language": "text/cql-identifier",
              "reference": "http://aphl.org/fhir/ecr/Library/RuleFilters|1.0.0",
              "expression": "Is Encounter In Progress"
            }
          } ],
          "expression": "%encounter.status = 'in-progress'"
        }
      } ],
      "relatedAction": [ {
        "actionId": "check-reportable",
        "relationship": "before-start",
        "offsetDuration": {
          "code": "h",
          "value": 6,
          "system": "http://unitsofmeasure.org"
        }
      } ]
    } ],
    "description": "This action represents the check for suspected reportability of the eICR.",
    "textEquivalent": "Check Reportable"
  }, {
    "id": "create-and-report-eicr",
    "code": [ {
      "coding": [ {
        "code": "create-and-report-eicr",
        "system": "http://hl7.org/fhir/us/ecr/CodeSystem/executabletask-type"
      } ]
    } ],
    "action": [ {
      "id": "car-report-eicr",
      "relatedAction": [ {
        "actionId": "report-eicr",
        "relationship": "before-start"
      } ]
    }, {
      "id": "car-is-encounter-complete",
      "condition": [ {
        "kind": "applicability",
        "expression": {
          "language": "text/fhirpath",
          "extension": [ {
            "url": "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-alternativeExpression",
            "valueExpression": {
              "language": "text/cql-identifier",
              "reference": "http://aphl.org/fhir/ecr/Library/RuleFilters|1.0.0",
              "expression": "Is Encounter Complete"
            }
          } ],
          "expression": "%encounter.status = 'finished'"
        }
      } ],
      "relatedAction": [ {
        "actionId": "report-eicr",
        "relationship": "before-start",
        "offsetDuration": {
          "code": "h",
          "value": 24,
          "system": "http://unitsofmeasure.org"
        }
      } ]
    }, {
      "id": "car-is-encounter-in-progress",
      "condition": [ {
        "kind": "applicability",
        "expression": {
          "language": "text/fhirpath",
          "extension": [ {
            "url": "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-alternativeExpression",
            "valueExpression": {
              "language": "text/cql-identifier",
              "reference": "http://aphl.org/fhir/ecr/Library/RuleFilters|1.0.0",
              "expression": "Is Encounter In Progress"
            }
          } ],
          "expression": "%encounter.status = 'in-progress'"
        }
      } ],
      "relatedAction": [ {
        "actionId": "create-and-report-eicr",
        "relationship": "before-start",
        "offsetDuration": {
          "code": "h",
          "value": 24,
          "system": "http://unitsofmeasure.org"
        }
      } ]
    } ],
    "description": "This action represents the creation and reporting of the eICR.",
    "textEquivalent": "Create and Report eICR"
  }, {
    "id": "report-eicr",
    "action": [ {
      "id": "create-eicr",
      "code": [ {
        "coding": [ {
          "code": "create-eicr",
          "system": "http://hl7.org/fhir/us/ecr/CodeSystem/executabletask-type"
        } ]
      } ],
      "description": "This action represents the creation of the eICR.",
      "relatedAction": [ {
        "actionId": "validate-eicr",
        "relationship": "before-start"
      } ],
      "textEquivalent": "Create eICR."
    }, {
      "id": "validate-eicr",
      "code": [ {
        "coding": [ {
          "code": "validate-eicr",
          "system": "http://hl7.org/fhir/us/ecr/CodeSystem/executabletask-type"
        } ]
      } ],
      "description": "This action represents the validation of the eICR.",
      "relatedAction": [ {
        "actionId": "route-and-send-eicr",
        "relationship": "before-start"
      } ],
      "textEquivalent": "Validate eICR."
    }, {
      "id": "route-and-send-eicr",
      "code": [ {
        "coding": [ {
          "code": "route-and-send-eicr",
          "system": "http://hl7.org/fhir/us/ecr/CodeSystem/executabletask-type"
        } ]
      } ],
      "description": "This action represents the routing and sending of the eICR.",
      "textEquivalent": "Route and send eICR"
    } ],
    "description": "This action represents the reporting of the eICR.",
    "textEquivalent": "Report eICR"
  } ],
  "version": "1.1.0",
  "relatedArtifact": [ {
    "type": "depends-on",
    "label": "RCTC Value Set Library of Trigger Codes",
    "resource": "http://hl7.org/fhir/us/ecr/Library/library-rctc"
  } ],
  "contact": [ {
    "name": "HL7 International - Public Health",
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/pher",
      "system": "url"
    } ]
  } ],
  "effectivePeriod": {
    "start": "2020-12-01"
  }
}