{
  "architecture": {
    "accessDate": "2026-08-10",
    "sourceUrl": "https://guides.ohie.org/arch-spec/",
    "title": "OpenHIE Architecture Specification",
    "version": "5.2 (August 2024)"
  },
  "demoModelVersion": "1.0.0",
  "disclaimer": "This is an independent, OpenHIE-inspired educational simulation built from synthetic fixtures. It is not an OpenHIE product or endorsed reference implementation. It is not a deployable HIE, clinical system, security control, certification, or demonstration of legal compliance, production security, scalability, clinical safety, or standards conformance.",
  "scenario": "inactive-facility-or-worker",
  "seed": 1109,
  "synthetic": true,
  "trace": {
    "attempts": [],
    "audit": [
      {
        "actorRef": "SYN-WRK-0148",
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "attempt": 1,
        "demoTimestamp": "2026-02-03T09:02:00.000Z",
        "detail": "Illustrative envelope references the immutable payload rather than copying it.",
        "id": "SYN-AUDIT-1-1109",
        "operation": "exchange-envelope-created",
        "outcome": "success",
        "purpose": "care-delivery-demo",
        "systemRef": "iol",
        "traceId": "SYN-TRACE-INACTIVE-FACILITY-OR-WORKER-1109"
      },
      {
        "actorRef": "SYN-WRK-0148",
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "attempt": 1,
        "demoTimestamp": "2026-02-03T09:03:00.000Z",
        "detail": "The worker is inactive or is not linked to the requesting facility and service.",
        "id": "SYN-AUDIT-2-1109",
        "operation": "failure-at-interlinking",
        "outcome": "serious-failure",
        "purpose": "care-delivery-demo",
        "systemRef": "interlinking",
        "traceId": "SYN-TRACE-INACTIVE-FACILITY-OR-WORKER-1109"
      }
    ],
    "envelopes": [
      {
        "attempt": 1,
        "correlationId": "SYN-CORR-INACTIVE-FACILITY-OR-WORKER-1109",
        "declaredPurpose": "care-delivery-demo",
        "demoTimestamp": "2026-02-03T09:02:00.000Z",
        "idempotencyKey": "SYN-IDEM-HISTORY-001",
        "interaction": "find-shared-history",
        "messageId": "SYN-MSG-SCENE-2-1-1-1109",
        "payloadRef": "SYN-ART-REG-00417-V1",
        "receiver": "iol",
        "schema": "demo-exchange-envelope-v1",
        "sender": "clinic-ehr",
        "status": "received",
        "synthetic": true,
        "traceId": "SYN-TRACE-INACTIVE-FACILITY-OR-WORKER-1109"
      }
    ],
    "events": [
      {
        "artifactRefs": [],
        "demoTimestamp": "2026-02-03T09:00:00.000Z",
        "detail": "Loaded authored scenario inactive-facility-or-worker with seed 1109.",
        "sequence": 1,
        "status": "idle",
        "stepId": "scene-0",
        "type": "SCENARIO_LOADED"
      },
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "componentId": "clinic-ehr",
        "demoTimestamp": "2026-02-03T09:01:00.000Z",
        "detail": "Immutable local registration source displayed before exchange.",
        "sequence": 2,
        "status": "received",
        "stepId": "scene-1",
        "type": "SOURCE_ARTIFACT_SHOWN"
      },
      {
        "artifactRefs": [],
        "componentId": "clinic-ehr",
        "demoTimestamp": "2026-02-03T09:01:00.000Z",
        "detail": "The Clinic EHR shows immutable source artifact SYN-ART-REG-00417-V1 before exchange.",
        "sequence": 3,
        "status": "acknowledged",
        "stepId": "scene-1",
        "type": "SCENE_COMPLETED"
      },
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "componentId": "iol",
        "demoTimestamp": "2026-02-03T09:02:00.000Z",
        "detail": "clinic-ehr called iol for find-shared-history.",
        "sequence": 4,
        "status": "received",
        "stepId": "scene-2",
        "type": "ORCHESTRATION_CALL_RECORDED"
      },
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "componentId": "iol",
        "demoTimestamp": "2026-02-03T09:02:00.000Z",
        "detail": "Created demo envelope for find-shared-history.",
        "sequence": 5,
        "status": "received",
        "stepId": "scene-2",
        "type": "ENVELOPE_CREATED"
      },
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "componentId": "audit-evidence",
        "demoTimestamp": "2026-02-03T09:02:00.000Z",
        "detail": "iol called audit-evidence for record-redacted-audit-evidence.",
        "sequence": 6,
        "status": "acknowledged",
        "stepId": "scene-2",
        "type": "ORCHESTRATION_CALL_RECORDED"
      },
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "componentId": "audit-evidence",
        "demoTimestamp": "2026-02-03T09:02:00.000Z",
        "detail": "Illustrative envelope references the immutable payload rather than copying it.",
        "sequence": 7,
        "status": "acknowledged",
        "stepId": "scene-2",
        "type": "AUDIT_RECORDED"
      },
      {
        "artifactRefs": [],
        "componentId": "clinic-ehr",
        "demoTimestamp": "2026-02-03T09:02:00.000Z",
        "detail": "The IOL creates illustrative demo-exchange-envelope-v1 with a payload reference and deterministic attempt metadata.",
        "sequence": 8,
        "status": "acknowledged",
        "stepId": "scene-2",
        "type": "SCENE_COMPLETED"
      },
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "componentId": "interlinking",
        "demoTimestamp": "2026-02-03T09:03:00.000Z",
        "detail": "iol called interlinking for failed-at-interlinking.",
        "sequence": 9,
        "status": "failed",
        "stepId": "scene-3",
        "type": "ORCHESTRATION_CALL_RECORDED"
      },
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "componentId": "audit-evidence",
        "demoTimestamp": "2026-02-03T09:03:00.000Z",
        "detail": "iol called audit-evidence for record-redacted-audit-evidence.",
        "sequence": 10,
        "status": "acknowledged",
        "stepId": "scene-3",
        "type": "ORCHESTRATION_CALL_RECORDED"
      },
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "componentId": "audit-evidence",
        "demoTimestamp": "2026-02-03T09:03:00.000Z",
        "detail": "The worker is inactive or is not linked to the requesting facility and service.",
        "sequence": 11,
        "status": "failed",
        "stepId": "scene-3",
        "type": "AUDIT_RECORDED"
      },
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "componentId": "interlinking",
        "demoTimestamp": "2026-02-03T09:03:00.000Z",
        "detail": "The worker is inactive or is not linked to the requesting facility and service.",
        "sequence": 12,
        "status": "failed",
        "stepId": "scene-3",
        "type": "FAILED_AT_BOUNDARY"
      }
    ],
    "failedTraceHistory": [
      {
        "boundary": "interlinking",
        "cause": "The worker is inactive or is not linked to the requesting facility and service.",
        "failedAt": "2026-02-03T09:03:00.000Z",
        "id": "SYN-FAILED-INACTIVE-FACILITY-OR-WORKER-1109",
        "scenarioId": "inactive-facility-or-worker",
        "status": "failed",
        "traceId": "SYN-TRACE-INACTIVE-FACILITY-OR-WORKER-1109"
      }
    ],
    "finalStores": {
      "aggregateContributionIds": [],
      "financeTransactionIds": [],
      "hmisReportIds": [],
      "shrArtifactIds": [
        "SYN-SHR-SUMMARY-000184-V1"
      ],
      "stockTransactionIds": []
    },
    "generatedAt": "2026-02-03T09:03:00.000Z",
    "hops": [
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "attempt": 1,
        "demoTimestamp": "2026-02-03T09:02:00.000Z",
        "eventSequence": 4,
        "evidenceId": "SYN-CALL-SCENE-2-1-1109",
        "from": "clinic-ehr",
        "outcome": "find-shared-history",
        "routeKind": "orchestration-call",
        "sequence": 1,
        "status": "received",
        "stepId": "scene-2",
        "to": "iol",
        "transactionId": "find-shared-history"
      },
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "attempt": 1,
        "demoTimestamp": "2026-02-03T09:02:00.000Z",
        "eventSequence": 5,
        "evidenceId": "SYN-MSG-SCENE-2-1-1-1109",
        "from": "clinic-ehr",
        "outcome": "find-shared-history",
        "routeKind": "transport-envelope",
        "sequence": 2,
        "status": "received",
        "stepId": "scene-2",
        "to": "iol",
        "transactionId": "find-shared-history"
      },
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "attempt": 1,
        "demoTimestamp": "2026-02-03T09:02:00.000Z",
        "eventSequence": 6,
        "evidenceId": "SYN-CALL-SCENE-2-2-1109",
        "from": "iol",
        "outcome": "record-redacted-audit-evidence",
        "routeKind": "orchestration-call",
        "sequence": 3,
        "status": "acknowledged",
        "stepId": "scene-2",
        "to": "audit-evidence",
        "transactionId": "find-shared-history"
      },
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "attempt": 1,
        "demoTimestamp": "2026-02-03T09:03:00.000Z",
        "eventSequence": 9,
        "evidenceId": "SYN-CALL-SCENE-3-3-1109",
        "from": "iol",
        "outcome": "failed-at-interlinking",
        "routeKind": "orchestration-call",
        "sequence": 4,
        "status": "failed",
        "stepId": "scene-3",
        "to": "interlinking",
        "transactionId": "find-shared-history"
      },
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "attempt": 1,
        "demoTimestamp": "2026-02-03T09:03:00.000Z",
        "eventSequence": 10,
        "evidenceId": "SYN-CALL-SCENE-3-4-1109",
        "from": "iol",
        "outcome": "record-redacted-audit-evidence",
        "routeKind": "orchestration-call",
        "sequence": 5,
        "status": "acknowledged",
        "stepId": "scene-3",
        "to": "audit-evidence",
        "transactionId": "find-shared-history"
      }
    ],
    "id": "inactive-facility-or-worker-failed",
    "mode": "failed",
    "orchestrationCalls": [
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "attempt": 1,
        "demoTimestamp": "2026-02-03T09:02:00.000Z",
        "eventSequence": 4,
        "from": "clinic-ehr",
        "id": "SYN-CALL-SCENE-2-1-1109",
        "interaction": "find-shared-history",
        "status": "received",
        "stepId": "scene-2",
        "to": "iol",
        "traceId": "SYN-TRACE-INACTIVE-FACILITY-OR-WORKER-1109",
        "transactionId": "find-shared-history"
      },
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "attempt": 1,
        "demoTimestamp": "2026-02-03T09:02:00.000Z",
        "eventSequence": 6,
        "from": "iol",
        "id": "SYN-CALL-SCENE-2-2-1109",
        "interaction": "record-redacted-audit-evidence",
        "status": "acknowledged",
        "stepId": "scene-2",
        "to": "audit-evidence",
        "traceId": "SYN-TRACE-INACTIVE-FACILITY-OR-WORKER-1109",
        "transactionId": "find-shared-history"
      },
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "attempt": 1,
        "demoTimestamp": "2026-02-03T09:03:00.000Z",
        "eventSequence": 9,
        "from": "iol",
        "id": "SYN-CALL-SCENE-3-3-1109",
        "interaction": "failed-at-interlinking",
        "status": "failed",
        "stepId": "scene-3",
        "to": "interlinking",
        "traceId": "SYN-TRACE-INACTIVE-FACILITY-OR-WORKER-1109",
        "transactionId": "find-shared-history"
      },
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "attempt": 1,
        "demoTimestamp": "2026-02-03T09:03:00.000Z",
        "eventSequence": 10,
        "from": "iol",
        "id": "SYN-CALL-SCENE-3-4-1109",
        "interaction": "record-redacted-audit-evidence",
        "status": "acknowledged",
        "stepId": "scene-3",
        "to": "audit-evidence",
        "traceId": "SYN-TRACE-INACTIVE-FACILITY-OR-WORKER-1109",
        "transactionId": "find-shared-history"
      }
    ],
    "policyDecisions": [],
    "provenance": [],
    "scenarioId": "inactive-facility-or-worker",
    "scenarioSlug": "inactive-facility-or-worker",
    "seed": 1109,
    "traceId": "SYN-TRACE-INACTIVE-FACILITY-OR-WORKER-1109",
    "transactionGroups": [
      {
        "hopSequences": [
          1,
          2,
          3,
          4,
          5
        ],
        "id": "find-shared-history",
        "title": "Find Shared History"
      }
    ],
    "transformations": []
  },
  "warning": "SYNTHETIC-NOT-FOR-CLINICAL-USE"
}
