{
  "resourceType": "Provenance",
  "id": "ExampleMappingProvenance",
  "meta": {
    "profile": [
      "https://example.org/fhir/li-xinyang-interop-r4/StructureDefinition/hitc-canonical-provenance"
    ]
  },
  "extension": [
    {
      "url": "https://example.org/fhir/li-xinyang-interop-r4/StructureDefinition/hitc-source-system",
      "valueIdentifier": {
        "system": "urn:ietf:rfc:3986",
        "value": "urn:oid:1.2.840.114350.1.13.99999.1.7.2.688879"
      }
    },
    {
      "url": "https://example.org/fhir/li-xinyang-interop-r4/StructureDefinition/hitc-source-format",
      "valueCode": "hl7-v2"
    },
    {
      "url": "https://example.org/fhir/li-xinyang-interop-r4/StructureDefinition/hitc-transformation-step",
      "valueCodeableConcept": {
        "coding": [
          {
            "code": "structural-mapping",
            "system": "https://example.org/fhir/li-xinyang-interop-r4/CodeSystem/hitc-transformation-activity"
          }
        ]
      }
    },
    {
      "url": "https://example.org/fhir/li-xinyang-interop-r4/StructureDefinition/hitc-merkle-root",
      "valueString": "7d0f2c4aee774f8c4d8d9c9025f9b9a2f1dcd8b67b97b695514f27dd3c7445d8"
    },
    {
      "url": "https://example.org/fhir/li-xinyang-interop-r4/StructureDefinition/hitc-mapping-strategy",
      "valueCode": "exact"
    },
    {
      "url": "https://example.org/fhir/li-xinyang-interop-r4/StructureDefinition/hitc-mapping-confidence",
      "valueDecimal": 1
    },
    {
      "url": "https://example.org/fhir/li-xinyang-interop-r4/StructureDefinition/hitc-mapping-reviewer",
      "valueReference": {
        "reference": "Practitioner/ExampleReviewer"
      }
    },
    {
      "url": "https://example.org/fhir/li-xinyang-interop-r4/StructureDefinition/hitc-transformation-step",
      "valueCodeableConcept": {
        "coding": [
          {
            "code": "terminology-translation",
            "system": "https://example.org/fhir/li-xinyang-interop-r4/CodeSystem/hitc-transformation-activity"
          }
        ]
      }
    },
    {
      "url": "https://example.org/fhir/li-xinyang-interop-r4/StructureDefinition/hitc-transformation-step",
      "valueCodeableConcept": {
        "coding": [
          {
            "code": "unit-normalization",
            "system": "https://example.org/fhir/li-xinyang-interop-r4/CodeSystem/hitc-transformation-activity"
          }
        ]
      }
    },
    {
      "url": "https://example.org/fhir/li-xinyang-interop-r4/StructureDefinition/hitc-transformation-step",
      "valueCodeableConcept": {
        "coding": [
          {
            "code": "temporal-normalization",
            "system": "https://example.org/fhir/li-xinyang-interop-r4/CodeSystem/hitc-transformation-activity"
          }
        ]
      }
    },
    {
      "url": "https://example.org/fhir/li-xinyang-interop-r4/StructureDefinition/hitc-transformation-step",
      "valueCodeableConcept": {
        "coding": [
          {
            "code": "validation",
            "system": "https://example.org/fhir/li-xinyang-interop-r4/CodeSystem/hitc-transformation-activity"
          }
        ]
      }
    },
    {
      "url": "https://example.org/fhir/li-xinyang-interop-r4/StructureDefinition/hitc-transformation-step",
      "valueCodeableConcept": {
        "coding": [
          {
            "code": "quality-measurement",
            "system": "https://example.org/fhir/li-xinyang-interop-r4/CodeSystem/hitc-transformation-activity"
          }
        ]
      }
    },
    {
      "url": "https://example.org/fhir/li-xinyang-interop-r4/StructureDefinition/hitc-transformation-step",
      "valueCodeableConcept": {
        "coding": [
          {
            "code": "lineage-recording",
            "system": "https://example.org/fhir/li-xinyang-interop-r4/CodeSystem/hitc-transformation-activity"
          }
        ]
      }
    },
    {
      "url": "https://example.org/fhir/li-xinyang-interop-r4/StructureDefinition/hitc-validation-stage",
      "valueCode": "r-sch"
    },
    {
      "url": "https://example.org/fhir/li-xinyang-interop-r4/StructureDefinition/hitc-validation-stage",
      "valueCode": "r-ref"
    },
    {
      "url": "https://example.org/fhir/li-xinyang-interop-r4/StructureDefinition/hitc-validation-stage",
      "valueCode": "r-term"
    },
    {
      "url": "https://example.org/fhir/li-xinyang-interop-r4/StructureDefinition/hitc-validation-stage",
      "valueCode": "qmc"
    }
  ],
  "target": [
    {
      "reference": "Patient/ExamplePatient"
    },
    {
      "reference": "Observation/ExampleHbA1cObservation"
    },
    {
      "reference": "Condition/ExampleCondition"
    }
  ],
  "occurredPeriod": {
    "start": "2026-07-15T09:55:00-04:00",
    "end": "2026-07-15T09:59:30-04:00"
  },
  "recorded": "2026-07-15T10:00:00-04:00",
  "reason": [
    {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
          "code": "TREAT"
        }
      ],
      "text": "Cross-institutional clinical data exchange"
    }
  ],
  "activity": {
    "coding": [
      {
        "code": "structural-mapping",
        "system": "https://example.org/fhir/li-xinyang-interop-r4/CodeSystem/hitc-transformation-activity"
      }
    ]
  },
  "agent": [
    {
      "type": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
            "code": "assembler"
          }
        ]
      },
      "who": {
        "reference": "Device/ExampleSourceEHR"
      },
      "onBehalfOf": {
        "reference": "Organization/ExampleHospital"
      }
    }
  ],
  "entity": [
    {
      "role": "source",
      "what": {
        "reference": "DocumentReference/ExampleSourceDocument"
      }
    }
  ]
}
