# AIR Data Quality Violation Detail - Aotearoa Immunisation Register (AIR) FHIR Implementation Guide v2.1.0

* [**Table of Contents**](toc.md)
* [**Artifacts Summary**](artifacts.md)
* **AIR Data Quality Violation Detail**

## Extension: AIR Data Quality Violation Detail 

| | |
| :--- | :--- |
| *Official URL*:https://standards.digital.health.nz/fhir/air/StructureDefinition/air-dq-violation | *Version*:2.1.0 |
| Active as of 2026-07-21 | *Computable Name*:DQViolation |

This describes one particular AIR data quality rule violation for an Immunization. Each rule violation includes a code, a type, a message, the FHIRPath expression to the element where the error occurred, and the weighting associated with the rule. Refer to [Data Quality Rules](dataQualityRules.md) and [AIR Data Quality Violation Code](https://standards.digital.health.nz/ns/air-data-quality-violation-code) value set for codes and messages that could be returned.

**Context of Use**

**Usage info**

**Usages:**

* This Extension is not used by any profiles in this Specification

You can also check for [usages in the FHIR IG Statistics](https://packages2.fhir.org/xig/resource/AIR-ig|current/StructureDefinition/StructureDefinition-dq-violation.json)

### Formal Views of Extension Content

 [Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work](http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#structure-definitions). 

 

Other representations of profile: [CSV](StructureDefinition-dq-violation.csv), [Excel](StructureDefinition-dq-violation.xlsx), [Schematron](StructureDefinition-dq-violation.sch) 

#### Constraints



## Resource Content

```json
{
  "resourceType" : "StructureDefinition",
  "id" : "dq-violation",
  "url" : "https://standards.digital.health.nz/fhir/air/StructureDefinition/air-dq-violation",
  "version" : "2.1.0",
  "name" : "DQViolation",
  "title" : "AIR Data Quality Violation Detail",
  "status" : "active",
  "date" : "2026-07-21T20:59:11+00:00",
  "publisher" : "Te Whatu Ora",
  "contact" : [{
    "name" : "Te Whatu Ora",
    "telecom" : [{
      "system" : "url",
      "value" : "https://tewhatuora.govt.nz"
    }]
  }],
  "description" : "This describes one particular AIR data quality rule violation for an Immunization. Each rule violation includes a code, a type, a message, the FHIRPath expression to the element where the error occurred, and the weighting associated with the rule. Refer to [Data Quality Rules](dataQualityRules.html) and [AIR Data Quality Violation Code](https://standards.digital.health.nz/ns/air-data-quality-violation-code) value set for codes and messages that could be returned.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "urn:iso:std:iso:3166",
      "code" : "US",
      "display" : "New Zealand"
    }]
  }],
  "fhirVersion" : "4.0.1",
  "mapping" : [{
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  }],
  "kind" : "complex-type",
  "abstract" : false,
  "context" : [{
    "type" : "element",
    "expression" : "Element"
  }],
  "type" : "Extension",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation" : "constraint",
  "differential" : {
    "element" : [{
      "id" : "Extension",
      "path" : "Extension",
      "short" : "AIR Data Quality Violation Detail",
      "definition" : "This describes one particular AIR data quality rule violation for an Immunization. Each rule violation includes a code, a type, a message, the FHIRPath expression to the element where the error occurred, and the weighting associated with the rule. Refer to [Data Quality Rules](dataQualityRules.html) and [AIR Data Quality Violation Code](https://standards.digital.health.nz/ns/air-data-quality-violation-code) value set for codes and messages that could be returned."
    },
    {
      "id" : "Extension.extension",
      "path" : "Extension.extension",
      "min" : 5
    },
    {
      "id" : "Extension.extension:violationCode",
      "path" : "Extension.extension",
      "sliceName" : "violationCode",
      "min" : 1,
      "max" : "1"
    },
    {
      "id" : "Extension.extension:violationCode.extension",
      "path" : "Extension.extension.extension",
      "max" : "0"
    },
    {
      "id" : "Extension.extension:violationCode.url",
      "path" : "Extension.extension.url",
      "fixedUri" : "violationCode"
    },
    {
      "id" : "Extension.extension:violationCode.value[x]",
      "path" : "Extension.extension.value[x]",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "Extension.extension:violationType",
      "path" : "Extension.extension",
      "sliceName" : "violationType",
      "min" : 1,
      "max" : "1"
    },
    {
      "id" : "Extension.extension:violationType.extension",
      "path" : "Extension.extension.extension",
      "max" : "0"
    },
    {
      "id" : "Extension.extension:violationType.url",
      "path" : "Extension.extension.url",
      "fixedUri" : "violationType"
    },
    {
      "id" : "Extension.extension:violationType.value[x]",
      "path" : "Extension.extension.value[x]",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "Extension.extension:violationMessage",
      "path" : "Extension.extension",
      "sliceName" : "violationMessage",
      "min" : 1,
      "max" : "1"
    },
    {
      "id" : "Extension.extension:violationMessage.extension",
      "path" : "Extension.extension.extension",
      "max" : "0"
    },
    {
      "id" : "Extension.extension:violationMessage.url",
      "path" : "Extension.extension.url",
      "fixedUri" : "violationMessage"
    },
    {
      "id" : "Extension.extension:violationMessage.value[x]",
      "path" : "Extension.extension.value[x]",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "Extension.extension:violationElement",
      "path" : "Extension.extension",
      "sliceName" : "violationElement",
      "min" : 1,
      "max" : "1"
    },
    {
      "id" : "Extension.extension:violationElement.extension",
      "path" : "Extension.extension.extension",
      "max" : "0"
    },
    {
      "id" : "Extension.extension:violationElement.url",
      "path" : "Extension.extension.url",
      "fixedUri" : "violationElement"
    },
    {
      "id" : "Extension.extension:violationElement.value[x]",
      "path" : "Extension.extension.value[x]",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "Extension.extension:violationWeighting",
      "path" : "Extension.extension",
      "sliceName" : "violationWeighting",
      "min" : 1,
      "max" : "1"
    },
    {
      "id" : "Extension.extension:violationWeighting.extension",
      "path" : "Extension.extension.extension",
      "max" : "0"
    },
    {
      "id" : "Extension.extension:violationWeighting.url",
      "path" : "Extension.extension.url",
      "fixedUri" : "violationWeighting"
    },
    {
      "id" : "Extension.extension:violationWeighting.value[x]",
      "path" : "Extension.extension.value[x]",
      "type" : [{
        "code" : "integer"
      }]
    },
    {
      "id" : "Extension.url",
      "path" : "Extension.url",
      "fixedUri" : "https://standards.digital.health.nz/fhir/air/StructureDefinition/air-dq-violation"
    },
    {
      "id" : "Extension.value[x]",
      "path" : "Extension.value[x]",
      "max" : "0"
    }]
  }
}

```
