{
  "id": "5a7ceb64-0440-4970-9cec-d1041329cc93",
  "type": "run",
  "title": "Synthetic Patient delivery · mapping correction verified",
  "summary": {
    "byAspect": {
      "metadata": {
        "errors": 0,
        "warnings": 0
      },
      "structural": {
        "errors": 0,
        "warnings": 0
      }
    },
    "runStatus": "pass",
    "totalInfo": 24,
    "totalErrors": 0,
    "overallScore": 100,
    "totalWarnings": 0,
    "byResourceType": [
      {
        "info": 24,
        "count": 12,
        "score": 100,
        "errors": 0,
        "warnings": 0,
        "resourceType": "Patient"
      }
    ],
    "passFailStatus": "PASS",
    "totalResources": 12,
    "validationUnits": {
      "total": 12,
      "processed": 12,
      "embeddedTotal": 0,
      "embeddedByType": {},
      "embeddedProcessed": 0
    },
    "qualityGateStatus": "PASS",
    "qualityGateThresholds": {
      "source": "default",
      "maxErrors": 100,
      "environment": "testing",
      "maxWarnings": null,
      "passThreshold": 90,
      "warnThreshold": 75
    }
  },
  "redacted": true,
  "redaction": {
    "algorithm": "sha256-prefix-16",
    "defaultOn": true,
    "resourceIds": true
  },
  "topIssues": [],
  "runDetails": {
    "jobId": "redacted:49d0f62638caf7f7",
    "runId": 2456,
    "serverUrl": "<redacted>",
    "startedAt": "2026-09-22T14:34:49.264Z",
    "serverName": "Synthetic Patient delivery",
    "completedAt": "2026-09-22T14:34:51.368Z",
    "environment": "testing",
    "triggerSource": "api",
    "passFailStatus": "pass"
  },
  "generatedAt": "2026-09-22T14:34:52.703Z",
  "triageItems": [],
  "issueSummary": {
    "byAspect": [
      {
        "aspect": "metadata",
        "severity": "information",
        "issueRows": 12,
        "affectedResources": 12
      },
      {
        "aspect": "structural",
        "severity": "information",
        "issueRows": 12,
        "affectedResources": 12
      }
    ],
    "bySeverity": [
      {
        "groups": 2,
        "severity": "information",
        "issueRows": 24,
        "affectedResources": 12
      }
    ],
    "totalGroups": 2,
    "totalIssueRows": 24
  },
  "issueAppendix": [
    {
      "code": "required-metadata-missing-versionId",
      "path": "meta.versionId",
      "count": 12,
      "aspect": "metadata",
      "fixHint": null,
      "message": "patient resource is missing recommended metadata field: meta.versionid",
      "severity": "information",
      "resourceTypes": [
        "Patient"
      ],
      "sampleResources": [
        "redacted:ca240d887e3dc76f",
        "redacted:4f2bbefcae4747cd",
        "redacted:20b863798186ea8f"
      ],
      "affectedResources": 12,
      "resourceTypeCount": 1
    },
    {
      "code": "dom-6",
      "path": "Patient.text",
      "count": 12,
      "aspect": "structural",
      "fixHint": null,
      "message": "a resource should have narrative for robust management",
      "severity": "information",
      "resourceTypes": [
        "Patient"
      ],
      "sampleResources": [
        "redacted:ca240d887e3dc76f",
        "redacted:4f2bbefcae4747cd",
        "redacted:20b863798186ea8f"
      ],
      "affectedResources": 12,
      "resourceTypeCount": 1
    }
  ],
  "validationSettings": {
    "hapi": {
      "enabled": false,
      "timeout": 30000,
      "igPackages": []
    },
    "note": "Derived exclusively from the immutable settings snapshot captured for this validation run.",
    "source": "run-snapshot",
    "runtime": {
      "batchSize": 50,
      "maxConcurrent": 5,
      "enableDeltaSearch": true,
      "bestPracticeSeverity": "info",
      "validationStrictness": "standard"
    },
    "terminology": {
      "servers": [],
      "strategy": "local-only"
    },
    "resourceTypes": {
      "excludedTypes": [],
      "includedTypes": [
        "Patient"
      ],
      "selectedCount": 1
    },
    "enabledAspects": [
      {
        "aspect": "structural",
        "engine": "records",
        "severity": "inherit"
      },
      {
        "aspect": "profile",
        "engine": "records",
        "severity": "inherit"
      },
      {
        "aspect": "terminology",
        "engine": "records",
        "severity": "inherit"
      },
      {
        "aspect": "reference",
        "engine": "records",
        "severity": "inherit"
      },
      {
        "aspect": "invariant",
        "engine": "fhirpath",
        "severity": "inherit"
      },
      {
        "aspect": "custom_rule",
        "engine": "custom",
        "severity": "inherit"
      },
      {
        "aspect": "metadata",
        "engine": "records",
        "severity": "inherit"
      },
      {
        "aspect": "anomaly",
        "engine": "records",
        "severity": "inherit"
      }
    ],
    "profileSources": {
      "simplifier": true,
      "packageRegistry": true
    },
    "packageDownload": {
      "autoDownload": true,
      "versionPolicy": "prefer-stable",
      "pinnedVersions": [],
      "requireApproval": false,
      "approvedPackages": [
        "hl7.fhir.r4.core",
        "hl7.fhir.r4.examples",
        "de.gematik.*",
        "de.medizininformatikinitiative.*",
        "de.medizininformatik-initiative.*",
        "de.einwilligungsmanagement",
        "kbv.*",
        "de.basisprofil.*",
        "rki.demis.*",
        "hl7.eu.*",
        "hl7.fhir.eu.*",
        "hl7.fhir.us.*",
        "uk.nhsdigital.*",
        "fhir.r4.ukcore.*",
        "hl7.fhir.uk.*",
        "uk.core",
        "ihe.*",
        "hl7.fhir.uv.*",
        "nphies-fs"
      ]
    }
  },
  "reproducibilityContract": {
    "validator_tool": "Records Validator",
    "validator_version": "0.6.35",
    "validator_config": {
      "settings": {
        "mode": "offline",
        "aspects": {
          "anomaly": {
            "engine": "records",
            "enabled": true,
            "severity": "inherit"
          },
          "profile": {
            "engine": "records",
            "enabled": true,
            "severity": "inherit"
          },
          "metadata": {
            "engine": "records",
            "enabled": true,
            "severity": "inherit"
          },
          "invariant": {
            "engine": "fhirpath",
            "enabled": true,
            "severity": "inherit"
          },
          "reference": {
            "engine": "records",
            "enabled": true,
            "severity": "inherit"
          },
          "structural": {
            "engine": "records",
            "enabled": true,
            "severity": "inherit"
          },
          "custom_rule": {
            "engine": "custom",
            "enabled": true,
            "severity": "inherit"
          },
          "terminology": {
            "engine": "records",
            "enabled": true,
            "severity": "inherit"
          }
        },
        "hapiConfig": {
          "enabled": false,
          "timeout": 30000,
          "poolSize": 3,
          "cachePath": "/tmp/fhir-packages",
          "igPackages": [],
          "useProcessPool": true,
          "enableBestPractice": true,
          "terminologyServerMode": "online"
        },
        "cacheConfig": {
          "ttl": {
            "default": 900000,
            "profile": 1800000,
            "igPackage": 86400000,
            "validation": 300000,
            "terminology": 3600000
          },
          "layers": {
            "L1": "enabled",
            "L2": "disabled",
            "L3": "disabled"
          },
          "l1MaxSizeMb": 100,
          "l2MaxSizeGb": 1,
          "l3MaxSizeGb": 5,
          "warmupProfiles": [],
          "warmupTerminologySystems": []
        },
        "fhirVersion": "R4",
        "performance": {
          "batchSize": 50,
          "maxConcurrent": 5,
          "enableDeltaSearch": true
        },
        "advisorRules": [],
        "excludedPaths": [],
        "offlineConfig": {
          "ontoserverUrl": "https://r4.ontoserver.csiro.au/fhir",
          "profileCachePath": "/opt/fhir/igs/"
        },
        "resourceTypes": {
          "enabled": true,
          "fhirVersion": "R4",
          "excludedTypes": [],
          "includedTypes": [
            "Bundle",
            "Patient",
            "Observation",
            "Condition",
            "Encounter",
            "Procedure",
            "Medication",
            "MedicationRequest",
            "DiagnosticReport",
            "AllergyIntolerance",
            "Immunization",
            "CarePlan",
            "Goal",
            "ServiceRequest",
            "Organization",
            "Practitioner",
            "PractitionerRole",
            "Location",
            "DocumentReference",
            "Composition",
            "List",
            "Appointment",
            "Schedule",
            "Slot",
            "MedicationStatement",
            "MedicationAdministration",
            "Specimen",
            "Consent",
            "Device",
            "DeviceMetric",
            "FamilyMemberHistory",
            "RequestGroup",
            "ClinicalImpression",
            "Coverage",
            "AdverseEvent",
            "QuestionnaireResponse",
            "Task",
            "BodyStructure",
            "Claim",
            "ClaimResponse",
            "ImagingStudy",
            "ResearchStudy",
            "RiskAssessment",
            "Substance"
          ]
        },
        "circuitBreaker": {
          "resetTimeout": 1800000,
          "halfOpenTimeout": 300000,
          "failureThreshold": 5
        },
        "forPublication": false,
        "profileSources": {
          "simplifier": true,
          "packageRegistry": true
        },
        "imposedProfiles": {
          "enabled": false,
          "policies": []
        },
        "packageDownload": {
          "autoDownload": true,
          "versionPolicy": "prefer-stable",
          "pinnedVersions": {},
          "requireApproval": false,
          "approvedPackages": [
            "hl7.fhir.r4.core",
            "hl7.fhir.r4.examples",
            "de.gematik.*",
            "de.medizininformatikinitiative.*",
            "de.medizininformatik-initiative.*",
            "de.einwilligungsmanagement",
            "kbv.*",
            "de.basisprofil.*",
            "rki.demis.*",
            "hl7.eu.*",
            "hl7.fhir.eu.*",
            "hl7.fhir.us.*",
            "uk.nhsdigital.*",
            "fhir.r4.ukcore.*",
            "hl7.fhir.uk.*",
            "uk.core",
            "ihe.*",
            "hl7.fhir.uv.*",
            "nphies-fs"
          ]
        },
        "terminologyServers": [],
        "advancedTerminology": {
          "eclValidation": {
            "enabled": false,
            "customExpressions": {}
          },
          "hierarchyValidation": {
            "enabled": false,
            "contextMappings": {
              "Condition.code": "404684003",
              "Procedure.code": "71388002",
              "Observation.code": "363787002",
              "AllergyIntolerance.code": "105590001",
              "MedicationStatement.medicationCodeableConcept": "373873005"
            }
          },
          "crossMappingValidation": {
            "enabled": false,
            "checkPairs": [
              {
                "sourceSystem": "http://hl7.org/fhir/sid/icd-10",
                "targetSystem": "http://snomed.info/sct"
              },
              {
                "sourceSystem": "http://hl7.org/fhir/sid/icd-10-cm",
                "targetSystem": "http://snomed.info/sct"
              }
            ],
            "strictness": "warn"
          }
        },
        "terminologyFallback": {
          "local": "n/a",
          "remote": "https://tx.fhir.org/r4"
        },
        "autoApplyCustomRules": false,
        "bestPracticeSeverity": "info",
        "validationStrictness": "standard",
        "terminologyResolution": {
          "strategy": "local-only",
          "twoPhaseExpansion": {
            "mode": "shadow",
            "enabled": false,
            "logMismatches": true
          },
          "reportUnverifiedBindings": true,
          "strictUnverifiedRequiredBindings": true
        },
        "autoRevalidateAfterEdit": false,
        "listViewPollingInterval": 30000,
        "enableBestPracticeChecks": true,
        "recursiveReferenceValidation": {
          "enabled": true,
          "maxDepth": 3,
          "validateExternal": false,
          "validateContained": true,
          "validateBundleEntries": true
        },
        "autoRevalidateOnVersionChange": true
      },
      "dispatchPath": "records-multi-aspect",
      "settingsHash": "a865c77410811ed9",
      "schemaVersion": 5,
      "executionPolicy": "standard-v1",
      "executionSettingsHash": "a865c77410811ed9"
    },
    "ig_packages": [],
    "terminology_source": "Local package terminology only",
    "environment_label": "testing",
    "run_timestamp": "2026-09-22T14:34:49.264Z",
    "thresholds_applied": {
      "anomaly": {
        "id": null,
        "aspect": "anomaly",
        "source": "default",
        "minScore": 0,
        "serverId": null,
        "maxErrors": 100,
        "environment": null,
        "maxWarnings": null,
        "passThreshold": 90,
        "warnThreshold": 75
      },
      "overall": {
        "id": null,
        "aspect": null,
        "source": "default",
        "minScore": 0,
        "serverId": null,
        "maxErrors": 100,
        "environment": null,
        "maxWarnings": null,
        "passThreshold": 90,
        "warnThreshold": 75
      },
      "profile": {
        "id": null,
        "aspect": "profile",
        "source": "default",
        "minScore": 0,
        "serverId": null,
        "maxErrors": 100,
        "environment": null,
        "maxWarnings": null,
        "passThreshold": 90,
        "warnThreshold": 75
      },
      "metadata": {
        "id": null,
        "aspect": "metadata",
        "source": "default",
        "minScore": 0,
        "serverId": null,
        "maxErrors": 100,
        "environment": null,
        "maxWarnings": null,
        "passThreshold": 90,
        "warnThreshold": 75
      },
      "invariant": {
        "id": null,
        "aspect": "invariant",
        "source": "default",
        "minScore": 0,
        "serverId": null,
        "maxErrors": 100,
        "environment": null,
        "maxWarnings": null,
        "passThreshold": 90,
        "warnThreshold": 75
      },
      "reference": {
        "id": null,
        "aspect": "reference",
        "source": "default",
        "minScore": 0,
        "serverId": null,
        "maxErrors": 100,
        "environment": null,
        "maxWarnings": null,
        "passThreshold": 90,
        "warnThreshold": 75
      },
      "structural": {
        "id": null,
        "aspect": "structural",
        "source": "default",
        "minScore": 0,
        "serverId": null,
        "maxErrors": 100,
        "environment": null,
        "maxWarnings": null,
        "passThreshold": 90,
        "warnThreshold": 75
      },
      "custom_rule": {
        "id": null,
        "aspect": "custom_rule",
        "source": "default",
        "minScore": 0,
        "serverId": null,
        "maxErrors": 100,
        "environment": null,
        "maxWarnings": null,
        "passThreshold": 90,
        "warnThreshold": 75
      },
      "terminology": {
        "id": null,
        "aspect": "terminology",
        "source": "default",
        "minScore": 0,
        "serverId": null,
        "maxErrors": 100,
        "environment": null,
        "maxWarnings": null,
        "passThreshold": 90,
        "warnThreshold": 75
      }
    },
    "validator_app_version": "0.12.0+2a9dc1441",
    "validator_app_version_note": "Frozen Records application build from this validation run.",
    "validation_ruleset_version": "2026.09.22.3",
    "validation_ruleset_hash": "sha256:97679d8274f6a238f8899d58245aa4efed0c11629ac74183b0c1e6fcf6c0fb06",
    "settings_hash": "a865c77410811ed9",
    "ig_packages_note": "Frozen active implementation-guide packages from this validation run.",
    "terminology_source_note": "Frozen run snapshot (offline, local-only).",
    "source_server_note": "Frozen source FHIR server metadata from this validation run.",
    "dataset_scope_id": "api-run-6ea5e5f8-6ba3-418a-be03-c6060919c63a",
    "thresholds_note": "Frozen quality-gate thresholds from this validation run.",
    "report_content_hash": "36ba97abdab292191682b1dac5038452ae686e4d3f47f9ca6bde401409cf6a8b",
    "report_content_hash_algorithm": "canonical-json-v1",
    "pinned_canonical_fingerprint": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "validation_lock_hash": "sha256:2d331a3af3b4942cdd878a68d4a9e5c7c9bcfc97f2ab6d1ec215e03dac963240",
    "source_server": {
      "serverId": 456,
      "name": "Synthetic Patient delivery",
      "url": "http://127.0.0.1:6200/delivery/fhir",
      "fhirVersion": "R4",
      "environment": "testing"
    },
    "validation_fhir_version": "R4",
    "validation_lock_missing_inputs": [],
    "validation_lock_immutability_warnings": [],
    "validation_lock_status": "locked",
    "snapshot_schema_version": 5
  },
  "issueAppendixTruncatedInPdf": {
    "truncated": true,
    "omittedRows": 24,
    "shownGroups": 0,
    "omittedGroups": 2,
    "pdfGroupLimit": 15
  }
}