{
  "resourceType" : "Bundle",
  "id" : "ch-atc-iti-81-response-sample",
  "meta" : {
    "profile" : [
      "http://fhir.ch/ig/ch-atc/StructureDefinition/CH-ATC.ITI-81.Response"
    ]
  },
  "type" : "searchset",
  "total" : 3,
  "entry" : [
    {
      "fullUrl" : "http://test.fhir.org/r3/AuditEvent/48901",
      "resource" : {
        "resourceType" : "AuditEvent",
        "id" : "48901",
        "text" : {
          "status" : "generated",
          "div" : "<div xmlns="http://www.w3.org/1999/xhtml">Upload of Birth certificate 10.10.2020 18:29 from Julia Helfe-Gern on behalf of Jakob Wieder-Gesund 
          </div>"
        },
        "type" : {
          "system" : "http://dicom.nema.org/resources/ontology/DCM",
          "code" : "110106",
          "display" : "Export"
        },
        "subtype" : [
          {
            "system" : "urn:oid:2.16.756.5.30.1.127.3.10.7",
            "code" : "ATC_DOC_CREATE",
            "display" : "Document upload"
          }
        ],
        "action" : "C",
        "recorded" : "2020-10-10T16:29:00Z",
        "outcome" : "0",
        "purposeOfEvent" : [
          {
            "coding" : [
              {
                "system" : "urn:oid:2.16.756.5.30.1.127.3.10.5",
                "code" : "NORM",
                "display" : "Normal Access"
              }
            ]
          }
        ],
        "agent" : [
          {
            "role" : [
              {
                "coding" : [
                  {
                    "system" : "urn:oid:2.16.756.5.30.1.127.3.10.6",
                    "code" : "PAT",
                    "display" : "Patient"
                  }
                ]
              }
            ],
            "name" : "Jakob Wieder-Gesund",
            "requestor" : false
          },
          {
            "role" : [
              {
                "coding" : [
                  {
                    "system" : "urn:oid:2.16.756.5.30.1.127.3.10.6",
                    "code" : "REP",
                    "display" : "Representative"
                  }
                ]
              }
            ],
            "name" : "Julia Helfe Gern",
            "requestor" : true
          }
        ],
        "source" : {
          "identifier" : {
            "system" : "urn:ietf:rfc:3986",
            "value" : "urn:oid:7.8.9.10.11"
          }
        },
        "entity" : [
          {
            "identifier" : {
              "system" : "urn:oid:2.16.756.5.30.1.127.3.10.3",
              "value" : "761337610469261945"
            },
            "type" : {
              "system" : "http://hl7.org/fhir/audit-entity-type",
              "code" : "1",
              "display" : "Person"
            },
            "role" : {
              "system" : "http://hl7.org/fhir/object-role",
              "code" : "1",
              "display" : "Patient"
            }
          },
          {
            "identifier" : {
              "type" : {
                "coding" : [
                  {
                    "system" : "urn:uuid:2e82c1f6-a085-4c72-9da3-8640a32e42ab",
                    "code" : "IHE XDS Metadata",
                    "display" : "XDSDocumentEntry.uniqueId"
                  }
                ]
              },
              "system" : "urn:ietf:rfc:3986",
              "value" : "urn:oid:1.2.3.4.5"
            },
            "type" : {
              "system" : "http://hl7.org/fhir/audit-entity-type",
              "code" : "2",
              "display" : "System Object"
            },
            "role" : {
              "system" : "http://hl7.org/fhir/object-role",
              "code" : "3",
              "display" : "Report"
            },
            "detail" : [
              {
                "type" : "Repository Unique Id",
                "value" : "MS4yLjM="
              },
              {
                "type" : "homeCommunityID",
                "value" : "NS42LjcuOA=="
              },
              {
                "type" : "EprDocumentTypeCode",
                "value" : "NDQ0NTYxMDAx"
              }
            ]
          }
        ]
      },
      "search" : {
        "mode" : "match"
      }
    },
    {
      "fullUrl" : "http://test.fhir.org/r3/AuditEvent/48904",
      "resource" : {
        "resourceType" : "AuditEvent",
        "id" : "48904",
        "text" : {
          "status" : "generated",
          "div" : "<div xmlns="http://www.w3.org/1999/xhtml">Jakob Wieder-Gesund has viewed the audit trail 22.09.2020 10:47 
          </div>"
        },
        "type" : {
          "system" : "http://dicom.nema.org/resources/ontology/DCM",
          "code" : "110106",
          "display" : "Export"
        },
        "subtype" : [
          {
            "system" : "urn:oid:2.16.756.5.30.1.127.3.10.7",
            "code" : "ATC_LOG_READ",
            "display" : "Accessing the Patient Audit Record Repository"
          }
        ],
        "action" : "C",
        "recorded" : "2020-09-22T08:47:00Z",
        "outcome" : "0",
        "agent" : [
          {
            "role" : [
              {
                "coding" : [
                  {
                    "system" : "urn:oid:2.16.756.5.30.1.127.3.10.6",
                    "code" : "PAT",
                    "display" : "Patient"
                  }
                ]
              }
            ],
            "name" : "Jakob Wieder-Gesund",
            "requestor" : true
          }
        ],
        "source" : {
          "identifier" : {
            "system" : "urn:ietf:rfc:3986",
            "value" : "urn:oid:7.8.9.10.11"
          }
        },
        "entity" : [
          {
            "identifier" : {
              "system" : "urn:oid:2.16.756.5.30.1.127.3.10.3",
              "value" : "761337610469261945"
            },
            "type" : {
              "system" : "http://hl7.org/fhir/audit-entity-type",
              "code" : "1",
              "display" : "Person"
            },
            "role" : {
              "system" : "http://hl7.org/fhir/object-role",
              "code" : "1",
              "display" : "Patient"
            }
          }
        ]
      },
      "search" : {
        "mode" : "match"
      }
    },
    {
      "fullUrl" : "http://test.fhir.org/r3/AuditEvent/48914",
      "resource" : {
        "resourceType" : "AuditEvent",
        "id" : "48914",
        "text" : {
          "status" : "generated",
          "div" : "<div xmlns="http://www.w3.org/1999/xhtml">22.09.2020 09:47: Jakob Wieder-Gesund created Access Level delegation-and-restricted till 31.12.2020 08:00 to Dr. med. Hans Allzeitbereit
          </div>"
        },
        "type" : {
          "system" : "http://dicom.nema.org/resources/ontology/DCM",
          "code" : "110106",
          "display" : "Export"
        },
        "subtype" : [
          {
            "system" : "urn:oid:2.16.756.5.30.1.127.3.10.7",
            "code" : "ATC_POL_CREATE_AUT_PART_AL",
            "display" : "Authorize participants to access level/date"
          }
        ],
        "action" : "C",
        "recorded" : "2020-10-09T07:47:00Z",
        "outcome" : "0",
        "agent" : [
          {
            "role" : [
              {
                "coding" : [
                  {
                    "system" : "urn:oid:2.16.756.5.30.1.127.3.10.6",
                    "code" : "PAT",
                    "display" : "Patient"
                  }
                ]
              }
            ],
            "name" : "Jakob Wieder-Gesund",
            "requestor" : true
          }
        ],
        "source" : {
          "identifier" : {
            "system" : "urn:ietf:rfc:3986",
            "value" : "urn:oid:7.8.9.10.12"
          }
        },
        "entity" : [
          {
            "identifier" : {
              "system" : "urn:oid:2.16.756.5.30.1.127.3.10.3",
              "value" : "761337610469261945"
            },
            "type" : {
              "system" : "http://hl7.org/fhir/audit-entity-type",
              "code" : "1",
              "display" : "Person"
            },
            "role" : {
              "system" : "http://hl7.org/fhir/object-role",
              "code" : "1",
              "display" : "Patient"
            }
          },
          {
            "identifier" : {
              "system" : "urn:oid:2.51.1.3",
              "value" : "7601000234438"
            },
            "type" : {
              "system" : "http://hl7.org/fhir/audit-entity-type",
              "code" : "2",
              "display" : "System Object"
            },
            "role" : {
              "system" : "urn:oid:2.16.756.5.30.1.127.3.10.6",
              "code" : "HCP",
              "display" : "Healthcare professional"
            },
            "name" : "Dr. med. Hans Allzeitbereit",
            "detail" : [
              {
                "type" : "AccessLevel",
                "value" : "dXJuOmUtaGVhbHRoLXN1aXNzZToyMDE1OnBvbGljaWVzOmFjY2Vzcy1sZXZlbDpkZWxlZ2F0aW9uLWFuZC1yZXN0cmljdGVk"
              },
              {
                "type" : "AccessLimitedToDate",
                "value" : "MjAyMC0xMi0zMVQwODowMDowMFo="
              }
            ]
          }
        ]
      },
      "search" : {
        "mode" : "match"
      }
    }
  ]
}