{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2017-06-13T12:17:12.954+00:00"
  },
  "url": "https://purl.org/elab/fhir/StructureDefinition/SpatialCoverage",
  "name": "SpatialCoverage",
  "status": "draft",
  "date": "2017-06-13T12:05:34.9794337+00:00",
  "description": "Holds information about the spatial coverage of the sweep",
  "fhirVersion": "3.0.0",
  "kind": "complex-type",
  "abstract": false,
  "type": "Address",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Address",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "path": "Address.text",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "Address.text.reference.resolve().name"
            }
          ],
          "rules": "open"
        },
        "min": 0,
        "max": "0"
      },
      {
        "path": "Address.use",
        "min": 0,
        "max": "0"
      },
      {
        "path": "Address.type",
        "min": 0,
        "max": "0"
      },
      {
        "path": "Address.text",
        "sliceName": "topLevelText",
        "definition": "The highest geographical level at which data is available (e.g. country, county, district, etc.)",
        "min": 0,
        "max": "1"
      },
      {
        "path": "Address.text",
        "sliceName": "lowestLevelText",
        "definition": "The lowest geographical level at which data is available (e.g. postcode, grid reference)",
        "min": 0,
        "max": "1"
      },
      {
        "path": "Address.line",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "Address.line.reference.resolve().name"
            }
          ],
          "rules": "open"
        },
        "definition": "Where the country code is not adequate, this allows a description of the spatial coverage",
        "min": 0,
        "max": "1"
      },
      {
        "path": "Address.line",
        "sliceName": "topLevelReference",
        "definition": "Top level of address, the highest geographical level at which data is available (e.g. country, county, district, etc.)",
        "min": 0,
        "max": "1"
      },
      {
        "path": "Address.line",
        "sliceName": "lowestLevelReference",
        "definition": "Lowest level of address, the lowest geographical level at which data is available (e.g. postcode, grid reference)",
        "min": 0,
        "max": "1"
      },
      {
        "path": "Address.city",
        "min": 0,
        "max": "0"
      },
      {
        "path": "Address.district",
        "min": 0,
        "max": "0"
      },
      {
        "path": "Address.state",
        "min": 0,
        "max": "0"
      },
      {
        "path": "Address.postalCode",
        "min": 0,
        "max": "0"
      },
      {
        "path": "Address.country",
        "sliceName": "countryCode",
        "definition": "A code for the country covered by the sweep using the ISO 3166 codes e.g US-WI, see https://www.iso.org/obp/ui/#iso:code:3166:US",
        "min": 1,
        "max": "*"
      },
      {
        "path": "Address.period",
        "min": 0,
        "max": "0"
      }
    ]
  }
}