Skip to content

Add blocking to JSON specification as common in healthcare pathways #2

Description

@TomMonks

The specification needs to handle the common situation where a healthcare pathway is blocked.

Suggested modificatiom -> maybe to the transitions section e.g.

  "transitions": [
    {
      "from": "Acute Treatment",
      "to": "Transfer to Rehab",
      "probability": 1.0,
      "blocking": true
    },
    {
      "from": "Transfer to Rehab",
      "to": "Exit",
      "probability": 1.0
    }
  ]

In context of a full example:

{
  "name": "Acute stroke pathway",
  "description": "Acute stroke care to rehabilitation with bed blocking",
  "activities": [
    {
      "name": "Acute Treatment",
      "type": "activity",
      "resource": {"name": "AcuteBed", "capacity": 10},
      "service_distribution": {
        "type": "lognormal",
        "parameters": {"mean": 7.0, "stdev": 1.0}
      },
      "arrival_distribution": {
        "type": "exponential",
        "parameters": {"rate": 0.067}
      }
    },
    {
      "name": "Transfer to Rehab",
      "type": "activity",
      "resource": {"name": "RehabBed", "capacity": 5},
      "service_distribution": {
        "type": "lognormal",
        "parameters": {"mean": 30.0, "stdev": 5.0}
      }
    }
  ],
  "transitions": [
    {
      "from": "Acute Treatment",
      "to": "Transfer to Rehab",
      "probability": 1.0,
      "blocking": true
    },
    {
      "from": "Transfer to Rehab",
      "to": "Exit",
      "probability": 1.0
    }
  ]
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions