{
  "resourceType": "StructureDefinition",
  "id": "Extension-DataStandardsWales-GridReference",
  "url": "https://fhir.nhs.wales/StructureDefinition/Extension-DataStandardsWales-GridReference",
  "version": "0.1.0",
  "name": "ExtensionDataStandardsWalesGridReference",
  "title": "Extension Data Standards Wales Grid Reference",
  "status": "draft",
  "date": "2026-08-13",
  "publisher": "NHS Wales",
  "contact": [
    {
      "name": "FHIR Standards",
      "telecom": [
        {
          "system": "email",
          "value": "fhir.standards@wales.nhs.uk",
          "use": "work",
          "rank": 1
        }
      ]
    }
  ],
  "description": "The British National Grid (BNG) standard applicable to the location. The grid reference resolves to a location on a map, which is found using the northing and easting numbered lines.",
  "copyright": "2026 NHS Wales",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Location"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "The national grid reference applicable to the location.",
        "definition": "The national grid reference applicable to the location.  The grid reference resolves to a location on a map, which is found using the northing and easting numbered lines.",
        "max": "1"
      },
      {
        "id": "Extension.extension:northings",
        "path": "Extension.extension",
        "sliceName": "northings",
        "short": "The northings element of the grid reference applicable to the location.",
        "definition": "The northings element of the grid reference applicable to the location.  Used in locating the correct square on a map.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:northings.extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:northings.url",
        "path": "Extension.extension.url",
        "fixedUri": "northings"
      },
      {
        "id": "Extension.extension:northings.value[x]",
        "path": "Extension.extension.value[x]",
        "type": [
          {
            "code": "integer"
          }
        ]
      },
      {
        "id": "Extension.extension:eastings",
        "path": "Extension.extension",
        "sliceName": "eastings",
        "short": "The eastings element of the grid reference applicable to the location.",
        "definition": "The eastings element of the grid reference applicable to the location.  Used in locating the correct square on a map.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:eastings.extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:eastings.url",
        "path": "Extension.extension.url",
        "fixedUri": "eastings"
      },
      {
        "id": "Extension.extension:eastings.value[x]",
        "path": "Extension.extension.value[x]",
        "type": [
          {
            "code": "integer"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://fhir.nhs.wales/StructureDefinition/Extension-DataStandardsWales-GridReference"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0"
      }
    ]
  }
}