{
  "resourceType": "StructureDefinition",
  "id": "NHSEngland-AuditEvent-GenomicsPARS",
  "url": "https://fhir.nhs.uk/StructureDefinition/NHSEngland-AuditEvent-GenomicsPARS",
  "version": "0.3.0",
  "name": "NHSEngland_AuditEvent_GenomicsPARS",
  "title": "NHSEngland AuditEvent GenomicsPARS",
  "status": "active",
  "date": "2026-04-16",
  "publisher": "NHS England",
  "contact": [
    {
      "name": "NHS England",
      "telecom": [
        {
          "system": "email",
          "value": "interoperabilityteam@nhs.net",
          "use": "work",
          "rank": 1
        }
      ]
    }
  ],
  "description": "This profile defines the Genomics constraints and extensions on the NHS England Patient Audit and Record Service FHIR resource [PARS AuditEvent](https://fhir.nhs.uk/England/StructureDefinition/England-AuditEvent-PARS).",
  "purpose": "Created by the central GMS infrastructure on any CRUD event.\r\n\r\nCan be searched on for auditability and obtaining status history for Tasks (as an alternative to the Task _history option).\r\n\r\nIt is not expected or permitted that a client system would update or post AuditEvents to the central service.\r\n\r\nAuditEvents are expected to be created for any CRUD events which affect resources on the server. Where resources do not exist on the server, e.g. empty SearchSets or failed POSTs, no AuditEvents will be created. Failed updates may still trigger creation of AuditEvent resources but the outcome.code will record that the event was unsuccessful.\r\n\r\nAuditEvents for resources created by the server will record the server identity within the who element.\r\n\r\nThe below profile is therefore provided to support parsing for clients if returned through a GET request.",
  "copyright": "Copyright © 2026+ NHS England Licensed under the Apache License, Version 2.0 (the \\\\\\\"License\\\\\\\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \\\\\\\"AS IS\\\\\\\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at  https://www.hl7.org/fhir/license.html.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "AuditEvent",
  "baseDefinition": "https://fhir.nhs.uk/England/StructureDefinition/England-AuditEvent-PARS",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "AuditEvent.action",
        "path": "AuditEvent.action",
        "definition": "SHALL be present. Code from base HL7 resource, only C (create), R (read) and U (update) would usually be expected."
      },
      {
        "id": "AuditEvent.agent",
        "path": "AuditEvent.agent",
        "definition": "SHOULD be present for any user initiated actions. Reference to the user or system that triggered the creation/read/update. Identity SHOULD be determined through the appropriate authentication token within the request header, e.g. CIS2 auth token."
      },
      {
        "id": "AuditEvent.entity",
        "path": "AuditEvent.entity",
        "definition": "SHOULD be present where the resource exists on the server. Reference to the resource which was affected by the event."
      }
    ]
  }
}