{
  "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": "policy-denial",
  "seed": 1108,
  "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-1108",
        "operation": "exchange-envelope-created",
        "outcome": "success",
        "purpose": "care-delivery-demo",
        "systemRef": "iol",
        "traceId": "SYN-TRACE-POLICY-DENIAL-1108"
      },
      {
        "actorRef": "SYN-WRK-0148",
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "attempt": 1,
        "decision": "deny",
        "demoTimestamp": "2026-02-03T09:03:00.000Z",
        "detail": "Purpose and requested data category do not satisfy demo policy SYN-POLICY-1.0.",
        "id": "SYN-AUDIT-2-1108",
        "operation": "failure-at-policy",
        "outcome": "serious-failure",
        "purpose": "care-delivery-demo",
        "systemRef": "policy",
        "traceId": "SYN-TRACE-POLICY-DENIAL-1108"
      }
    ],
    "envelopes": [
      {
        "attempt": 1,
        "correlationId": "SYN-CORR-POLICY-DENIAL-1108",
        "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-1108",
        "payloadRef": "SYN-ART-REG-00417-V1",
        "receiver": "iol",
        "schema": "demo-exchange-envelope-v1",
        "sender": "clinic-ehr",
        "status": "received",
        "synthetic": true,
        "traceId": "SYN-TRACE-POLICY-DENIAL-1108"
      }
    ],
    "events": [
      {
        "artifactRefs": [],
        "demoTimestamp": "2026-02-03T09:00:00.000Z",
        "detail": "Loaded authored scenario policy-denial with seed 1108.",
        "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": "policy",
        "demoTimestamp": "2026-02-03T09:03:00.000Z",
        "detail": "iol called policy for failed-at-policy.",
        "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": "Purpose and requested data category do not satisfy demo policy SYN-POLICY-1.0.",
        "sequence": 11,
        "status": "failed",
        "stepId": "scene-3",
        "type": "AUDIT_RECORDED"
      },
      {
        "artifactRefs": [
          "SYN-ART-REG-00417-V1"
        ],
        "componentId": "policy",
        "demoTimestamp": "2026-02-03T09:03:00.000Z",
        "detail": "Purpose and requested data category do not satisfy demo policy SYN-POLICY-1.0.",
        "sequence": 12,
        "status": "failed",
        "stepId": "scene-3",
        "type": "FAILED_AT_BOUNDARY"
      }
    ],
    "failedTraceHistory": [
      {
        "boundary": "policy",
        "cause": "Purpose and requested data category do not satisfy demo policy SYN-POLICY-1.0.",
        "failedAt": "2026-02-03T09:03:00.000Z",
        "id": "SYN-FAILED-POLICY-DENIAL-1108",
        "scenarioId": "policy-denial",
        "status": "failed",
        "traceId": "SYN-TRACE-POLICY-DENIAL-1108"
      }
    ],
    "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-1108",
        "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-1108",
        "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-1108",
        "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-1108",
        "from": "iol",
        "outcome": "failed-at-policy",
        "routeKind": "orchestration-call",
        "sequence": 4,
        "status": "failed",
        "stepId": "scene-3",
        "to": "policy",
        "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-1108",
        "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": "policy-denial-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-1108",
        "interaction": "find-shared-history",
        "status": "received",
        "stepId": "scene-2",
        "to": "iol",
        "traceId": "SYN-TRACE-POLICY-DENIAL-1108",
        "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-1108",
        "interaction": "record-redacted-audit-evidence",
        "status": "acknowledged",
        "stepId": "scene-2",
        "to": "audit-evidence",
        "traceId": "SYN-TRACE-POLICY-DENIAL-1108",
        "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-1108",
        "interaction": "failed-at-policy",
        "status": "failed",
        "stepId": "scene-3",
        "to": "policy",
        "traceId": "SYN-TRACE-POLICY-DENIAL-1108",
        "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-1108",
        "interaction": "record-redacted-audit-evidence",
        "status": "acknowledged",
        "stepId": "scene-3",
        "to": "audit-evidence",
        "traceId": "SYN-TRACE-POLICY-DENIAL-1108",
        "transactionId": "find-shared-history"
      }
    ],
    "policyDecisions": [
      {
        "actorRef": "SYN-WRK-0148",
        "dataCategory": "limited-shared-summary",
        "demoTimestamp": "2026-02-03T09:03:00.000Z",
        "directiveInput": "SYN-DIRECTIVE-CARE-001",
        "id": "SYN-POLICY-DECISION-1-1108",
        "obligations": [],
        "organizationRef": "SYN-FAC-001",
        "outcome": "deny",
        "policyVersion": "SYN-POLICY-1.0",
        "purpose": "care-delivery-demo",
        "requesterSystem": "clinic-ehr",
        "role": "ordering-clinician"
      }
    ],
    "provenance": [],
    "scenarioId": "policy-denial",
    "scenarioSlug": "policy-denial",
    "seed": 1108,
    "traceId": "SYN-TRACE-POLICY-DENIAL-1108",
    "transactionGroups": [
      {
        "hopSequences": [
          1,
          2,
          3,
          4,
          5
        ],
        "id": "find-shared-history",
        "title": "Find Shared History"
      }
    ],
    "transformations": []
  },
  "warning": "SYNTHETIC-NOT-FOR-CLINICAL-USE"
}
