{
  "capturedAt": "2026-09-15T11:12:13.646Z",
  "synthetic": true,
  "cliPackageVersion": "0.1.3",
  "validatorPackageVersion": "0.6.4",
  "execution": "Current local source; CLI process and actual MCP tool handler with default validator service",
  "limits": [
    "No hosted CI-provider job was executed.",
    "No workspace run, saved baseline or release disposition was created.",
    "Successful checks cover the configured local checks."
  ],
  "cli": [
    {
      "label": "before",
      "input": {
        "resourceType": "Patient",
        "id": "synthetic-cli-patient",
        "active": "true"
      },
      "inputSha256": "41eb6bc2b6c597a0018d52b9720af3c6daadee67021163f8ba04502ce398f7f4",
      "command": "records validate-file patient-before.json --format json",
      "exitCode": 1,
      "output": {
        "success": false,
        "mode": "local",
        "files": 1,
        "results": [
          {
            "file": "patient-before.json",
            "resourceType": "Patient",
            "score": 85,
            "mode": "local",
            "errors": 1,
            "warnings": 0,
            "issues": [
              {
                "severity": "error",
                "code": "invalid-type",
                "path": "Patient.active",
                "message": "'active' must be boolean (JS boolean), got string",
                "aspect": "structural"
              }
            ]
          }
        ]
      }
    },
    {
      "label": "after",
      "input": {
        "resourceType": "Patient",
        "id": "synthetic-cli-patient",
        "active": true
      },
      "inputSha256": "b215e1957a4b72f1a3cee9296fc7843e3b39cbaa48328ae3d9b4fbacd1bd5b2a",
      "command": "records validate-file patient-after.json --format json",
      "exitCode": 0,
      "output": {
        "success": true,
        "mode": "local",
        "files": 1,
        "results": [
          {
            "file": "patient-after.json",
            "resourceType": "Patient",
            "score": 100,
            "mode": "local",
            "errors": 0,
            "warnings": 0,
            "issues": []
          }
        ]
      }
    }
  ],
  "mcp": [
    {
      "label": "before",
      "tool": "validate_resource",
      "arguments": {
        "resource": {
          "resourceType": "Patient",
          "id": "synthetic-cli-patient",
          "active": "true"
        },
        "fhirVersion": "R4"
      },
      "result": {
        "resourceType": "Patient",
        "profile": null,
        "fhirVersion": "R4",
        "score": 79,
        "errors": 1,
        "warnings": 0,
        "information": 6,
        "issues": [
          {
            "severity": "error",
            "code": "structural-primitive-type-mismatch",
            "path": "Patient.active",
            "message": "Primitive type mismatch for Patient.active: expected boolean, found string",
            "aspect": "structural"
          },
          {
            "severity": "info",
            "code": "dom-6",
            "path": "Patient.text",
            "message": "A resource should have narrative for robust management",
            "aspect": "structural"
          },
          {
            "severity": "info",
            "code": "missing-meta",
            "path": "meta",
            "message": "Resource should have a meta field",
            "aspect": "metadata"
          },
          {
            "severity": "info",
            "code": "required-metadata-missing-lastUpdated",
            "path": "meta.lastUpdated",
            "message": "Patient resource is missing recommended metadata field: meta.lastUpdated",
            "aspect": "metadata"
          },
          {
            "severity": "info",
            "code": "required-metadata-missing-versionId",
            "path": "meta.versionId",
            "message": "Patient resource is missing recommended metadata field: meta.versionId",
            "aspect": "metadata"
          },
          {
            "severity": "information",
            "code": "best-practice-patient-identifier",
            "path": "Patient.identifier",
            "message": "Patient resources should have at least one identifier for reliable patient matching",
            "aspect": "structural"
          },
          {
            "severity": "information",
            "code": "best-practice-patient-name",
            "path": "Patient.name",
            "message": "Patient resources should have at least one name",
            "aspect": "structural"
          }
        ],
        "engine": "records"
      }
    },
    {
      "label": "after",
      "tool": "validate_resource",
      "arguments": {
        "resource": {
          "resourceType": "Patient",
          "id": "synthetic-cli-patient",
          "active": true
        },
        "fhirVersion": "R4"
      },
      "result": {
        "resourceType": "Patient",
        "profile": null,
        "fhirVersion": "R4",
        "score": 94,
        "errors": 0,
        "warnings": 0,
        "information": 6,
        "issues": [
          {
            "severity": "info",
            "code": "dom-6",
            "path": "Patient.text",
            "message": "A resource should have narrative for robust management",
            "aspect": "structural"
          },
          {
            "severity": "info",
            "code": "missing-meta",
            "path": "meta",
            "message": "Resource should have a meta field",
            "aspect": "metadata"
          },
          {
            "severity": "info",
            "code": "required-metadata-missing-lastUpdated",
            "path": "meta.lastUpdated",
            "message": "Patient resource is missing recommended metadata field: meta.lastUpdated",
            "aspect": "metadata"
          },
          {
            "severity": "info",
            "code": "required-metadata-missing-versionId",
            "path": "meta.versionId",
            "message": "Patient resource is missing recommended metadata field: meta.versionId",
            "aspect": "metadata"
          },
          {
            "severity": "information",
            "code": "best-practice-patient-identifier",
            "path": "Patient.identifier",
            "message": "Patient resources should have at least one identifier for reliable patient matching",
            "aspect": "structural"
          },
          {
            "severity": "information",
            "code": "best-practice-patient-name",
            "path": "Patient.name",
            "message": "Patient resources should have at least one name",
            "aspect": "structural"
          }
        ],
        "engine": "records"
      }
    }
  ]
}
