{
  "resourceType" : "Parameters",
  "id" : "ContextualPopulateResponse",
  "parameter" : [{
    "name" : "response",
    "resource" : {
      "resourceType" : "QuestionnaireResponse",
      "id" : "qr-123",
      "questionnaire" : "http://fhir.tiro.health/Questionnaire/example",
      "status" : "completed",
      "authored" : "2025-10-29T10:30:00Z"
    }
  },
  {
    "name" : "provenance",
    "resource" : {
      "resourceType" : "Provenance",
      "id" : "prov-002",
      "meta" : {
        "profile" : ["http://fhir.tiro.health/StructureDefinition/form-provenance"]
      },
      "extension" : [{
        "url" : "http://fhir.tiro.health/StructureDefinition/provenance-why",
        "valueMarkdown" : "The clinical note states: \"CT thorax toont een massa van 4.2cm in de rechter bovenkwab met invasie van de thoraxwand.\"\nThis indicates a tumor >4cm with chest wall invasion, corresponding to cT3 per AJCC 8th edition staging criteria."
      }],
      "target" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/targetElement",
          "valueUri" : "item-789"
        }],
        "reference" : "QuestionnaireResponse/qr-123"
      }],
      "recorded" : "2025-10-29T10:32:00Z",
      "activity" : {
        "coding" : [{
          "system" : "http://fhir.tiro.health/CodeSystem/form-activity",
          "code" : "ai-clipboard",
          "display" : "AI Clipboard"
        },
        {
          "system" : "http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle",
          "code" : "originate",
          "display" : "Originate/Retain Record Lifecycle Event"
        }],
        "text" : "CT toont massa van 4.2cm in rechter bovenkwab met thoraxwandinvasie → cT3 (AJCC 8th)"
      },
      "agent" : [{
        "type" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
            "code" : "assembler",
            "display" : "Assembler"
          }]
        },
        "who" : {
          "reference" : "Device/atticus-ai-population-engine"
        }
      }],
      "entity" : [{
        "role" : "source",
        "what" : {
          "extension" : [{
            "url" : "http://fhir.tiro.health/StructureDefinition/html-element-id",
            "valueString" : "label-001"
          },
          {
            "url" : "http://fhir.tiro.health/StructureDefinition/html-element-id",
            "valueString" : "label-002"
          }],
          "reference" : "DocumentReference/doc-001",
          "display" : "Referral letter from AZ Monica"
        }
      }]
    }
  }]
}