{
  "format": "minctrl.process/v1",
  "graph": {
    "edges": [
      {
        "id": "e0___start____intake",
        "source": "__start__",
        "target": "intake"
      },
      {
        "id": "e1_intake__split",
        "source": "intake",
        "target": "split"
      },
      {
        "id": "e2_split__screen",
        "source": "split",
        "target": "screen"
      },
      {
        "id": "e3_split__compliance",
        "source": "split",
        "target": "compliance"
      },
      {
        "id": "e4_screen__merge",
        "source": "screen",
        "target": "merge"
      },
      {
        "id": "e5_compliance__merge",
        "source": "compliance",
        "target": "merge"
      },
      {
        "id": "e6_merge__eligible",
        "source": "merge",
        "target": "eligible"
      },
      {
        "id": "e7_eligible__screenfail",
        "label": "screen-fail / ineligible",
        "source": "eligible",
        "target": "screenfail"
      },
      {
        "id": "e8_eligible__pi-signoff",
        "label": "eligible / borderline candidate",
        "source": "eligible",
        "target": "pi-signoff"
      },
      {
        "id": "e9_pi-signoff__review",
        "source": "pi-signoff",
        "target": "review"
      },
      {
        "id": "e10_review__enroll",
        "label": "approved to enroll",
        "source": "review",
        "target": "enroll"
      },
      {
        "id": "e11_review__screen",
        "label": "deviation / data query — rework",
        "source": "review",
        "target": "screen"
      },
      {
        "id": "e12_screenfail__monitor",
        "source": "screenfail",
        "target": "monitor"
      },
      {
        "id": "e13_enroll__monitor",
        "source": "enroll",
        "target": "monitor"
      },
      {
        "id": "e14_monitor____end__",
        "source": "monitor",
        "target": "__end__"
      }
    ],
    "nodes": [
      {
        "agent": null,
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "__start__",
        "interrupt_before": false,
        "kind": "terminal",
        "label": "Start",
        "position": {
          "x": 0,
          "y": 0
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "terminal",
        "tools": []
      },
      {
        "agent": "intake",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "intake",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Ingest the protocol and pull candidate patient records from the EHR into the CTMS",
        "position": {
          "x": 0,
          "y": 120
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "ctms",
          "ehr-fhir"
        ]
      },
      {
        "agent": null,
        "confidential": false,
        "gate": null,
        "gateway": "parallel",
        "human": null,
        "id": "split",
        "interrupt_before": false,
        "kind": "gateway",
        "label": "Run screening and reg-package prep concurrently",
        "position": {
          "x": 0,
          "y": 240
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "gateway",
        "tools": []
      },
      {
        "agent": "screen",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "screen",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Screen and match eligible patients against the protocol and abstract source data into the EDC",
        "position": {
          "x": 0,
          "y": 360
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "eligibility-match",
          "edc"
        ]
      },
      {
        "agent": "compliance",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "compliance",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Flag protocol deviations / data discrepancies and assemble the monitoring and regulatory package",
        "position": {
          "x": 0,
          "y": 480
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "edc",
          "reg-docs"
        ]
      },
      {
        "agent": null,
        "confidential": false,
        "gate": null,
        "gateway": "parallel",
        "human": null,
        "id": "merge",
        "interrupt_before": false,
        "kind": "gateway",
        "label": "Join screening and reg-package prep",
        "position": {
          "x": 0,
          "y": 600
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "gateway",
        "tools": []
      },
      {
        "agent": null,
        "confidential": false,
        "gate": null,
        "gateway": "exclusive",
        "human": null,
        "id": "eligible",
        "interrupt_before": false,
        "kind": "gateway",
        "label": "Eligibility verdict?",
        "position": {
          "x": 0,
          "y": 720
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "gateway",
        "tools": []
      },
      {
        "agent": "compliance",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "screenfail",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Clear screen-fail: log the ineligibility reason in the CTMS and close the candidate — a reversible, non-enrolling disposition",
        "position": {
          "x": 0,
          "y": 840
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "ctms",
          "edc"
        ]
      },
      {
        "agent": null,
        "confidential": false,
        "gate": "gate:pi-signoff",
        "gateway": null,
        "human": "Principal investigator / medical monitor",
        "id": "pi-signoff",
        "interrupt_before": true,
        "kind": "gate",
        "label": "The PI / medical monitor reviews eligibility, deviations and any safety determination and signs to enroll (or sends the case back for query resolution)",
        "position": {
          "x": 0,
          "y": 960
        },
        "reversible": false,
        "sla": null,
        "sla_spec": null,
        "tier": "high",
        "tools": []
      },
      {
        "agent": null,
        "confidential": false,
        "gate": null,
        "gateway": "exclusive",
        "human": null,
        "id": "review",
        "interrupt_before": false,
        "kind": "gateway",
        "label": "PI decision?",
        "position": {
          "x": 0,
          "y": 1080
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "gateway",
        "tools": []
      },
      {
        "agent": "execute",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "enroll",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Enroll the patient and submit the regulatory documents to the sponsor / IRB under Part 11",
        "position": {
          "x": 0,
          "y": 1200
        },
        "reversible": false,
        "sla": null,
        "sla_spec": null,
        "tier": "high",
        "tools": [
          "reg-docs",
          "ctms"
        ]
      },
      {
        "agent": "monitor",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "monitor",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Monitor safety signals, resolve EDC queries and maintain the eTMF",
        "position": {
          "x": 0,
          "y": 1320
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "ctms",
          "edc"
        ]
      },
      {
        "agent": null,
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "__end__",
        "interrupt_before": false,
        "kind": "terminal",
        "label": "Done",
        "position": {
          "x": 0,
          "y": 1440
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "terminal",
        "tools": []
      }
    ]
  },
  "hash": "11e738384c1d1d581730a003a9b15bb0187e685439db1b61f27af28b2deeea1b",
  "name": "Clinical-trial-ops autopilot",
  "slug": "cro",
  "source": "example",
  "version": null,
  "violations": []
}
