PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.ecr@1.0.0
    http://hl7.org/fhir/us/ecr/PlanDefinition/plandefinition-ersd-instance
{
  "description": null,
  "_filename": "example/PlanDefinition-plandefinition-ersd-instance.json",
  "package_name": "hl7.fhir.us.ecr",
  "date": "2019-09-15T16:49:11+00:00",
  "meta": {
    "profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/ersd-plandefinition" ],
    "versionId": "42",
    "lastUpdated": "2019-11-05T00:00:37.000+00:00"
  },
  "publisher": null,
  "name": "PlanDefinition_eRSD_Instance",
  "type": "{:coding [{:system \\\"http://terminology.hl7.org/CodeSystem/plan-definition-type\\\", :code \\\"eca-rule\\\", :display \\\"ECA Rule\\\"}]}",
  "experimental": null,
  "resourceType": "PlanDefinition",
  "title": "eRSD PlanDefinition Instance",
  "package_version": "1.0.0",
  "status": "active",
  "id": "82a9dd06-748a-4a97-84ba-addf5e0d744a",
  "kind": null,
  "url": "http://hl7.org/fhir/us/ecr/PlanDefinition/plandefinition-ersd-instance",
  "action": [ {
    "id": "match-trigger",
    "trigger": [ {
      "data": [ {
        "type": "Condition",
        "codeFilter": [ {
          "path": "code",
          "valueSet": "http://hl7.org/fhir/us/ecr/ValueSet/valueset-dxtc-example"
        } ]
      } ],
      "type": "data-changed"
    }, {
      "data": [ {
        "type": "Immunization",
        "codeFilter": [ {
          "path": "vaccineCode",
          "valueSet": "http://hl7.org/fhir/us/ecr/ValueSet/valueset-iztc-example"
        } ]
      } ],
      "type": "data-changed"
    }, {
      "data": [ {
        "type": "ServiceRequest",
        "codeFilter": [ {
          "path": "code",
          "valueSet": "http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example"
        } ]
      } ],
      "type": "data-changed"
    }, {
      "data": [ {
        "type": "Observation",
        "codeFilter": [ {
          "path": "code",
          "valueSet": "http://hl7.org/fhir/us/ecr/ValueSet/valueset-lrtc-example"
        } ]
      } ],
      "type": "data-changed"
    }, {
      "data": [ {
        "type": "MedicationAdministration",
        "codeFilter": [ {
          "path": "code",
          "valueSet": "http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example"
        } ]
      } ],
      "type": "data-changed"
    }, {
      "data": [ {
        "type": "Observation",
        "codeFilter": [ {
          "path": "code",
          "valueSet": "http://hl7.org/fhir/us/ecr/ValueSet/valueset-ostc-example"
        } ]
      } ],
      "type": "data-changed"
    } ],
    "description": "This action represents the matching of a trigger code to one of the values in the eRSD value sets.",
    "textEquivalent": "Match of a code to one of the values in the eRSD value sets."
  }, {
    "id": "create-eicr",
    "description": "This action represents the initial creation of the eICR.",
    "relatedAction": [ {
      "actionId": "match-trigger",
      "relationship": "after",
      "offsetDuration": {
        "unit": "h",
        "value": 1
      }
    } ],
    "textEquivalent": "eICR construction delay (offsetDuration.value = x hours) - time after trigger event before an eICR should be created."
  }, {
    "id": "periodic-update-eicr",
    "trigger": [ {
      "type": "periodic",
      "timingTiming": {
        "repeat": {
          "period": 24,
          "frequency": 1,
          "periodUnit": "h"
        }
      }
    } ],
    "condition": [ {
      "kind": "start",
      "expression": {
        "language": "text/cql",
        "expression": "encounter.period.start != null and encounter.period.end = null",
        "description": "Encounter is active."
      }
    }, {
      "kind": "stop",
      "expression": {
        "language": "text/cql",
        "expression": "encounter.period.end != null",
        "description": "Encounter is closed."
      }
    } ],
    "description": "This action represents the periodic update of the eICR.",
    "relatedAction": [ {
      "actionId": "create-eicr",
      "relationship": "after",
      "offsetDuration": {
        "unit": "h",
        "value": 24
      }
    } ],
    "textEquivalent": "eICR periodic update (repeat.frequency = y hours) - the time after an initial eICR creation to send a new eICR as an update during long encounters."
  }, {
    "id": "close-out-eicr",
    "trigger": [ {
      "data": [ {
        "type": "Encounter",
        "profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-encounter" ],
        "dateFilter": [ {
          "path": "period.end"
        } ]
      } ],
      "type": "data-added"
    } ],
    "description": "This action represents the close out of an eICR encounter.",
    "timingTiming": {
      "repeat": {
        "count": 1,
        "duration": 24,
        "frequency": 1,
        "durationUnit": "h"
      }
    },
    "relatedAction": [ {
      "actionId": "create-eicr",
      "relationship": "after"
    } ],
    "textEquivalent": "eICR encounter close out (timingTiming.repeat.duration = z hours) - the time after the end of the encounter to create the final eICR when there have been one or more trigger events."
  }, {
    "id": "validate-eicr",
    "trigger": [ {
      "data": [ {
        "type": "Composition",
        "profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-composition" ]
      } ],
      "name": "eicr-created",
      "type": "data-changed"
    } ],
    "description": "This action represents the validation of an eICR.",
    "textEquivalent": "Validate eICR."
  }, {
    "id": "route-and-send-eicr",
    "description": "This action represents the routing and sending of an eICR.",
    "relatedAction": [ {
      "actionId": "validate-eicr",
      "relationship": "after"
    } ],
    "textEquivalent": "Route and send eICR"
  } ],
  "version": "1.0.0"
}