{
  "resourceType": "StructureDefinition",
  "id": "logicalmodel-Address-R4",
  "url": "http://linkehr.com/fhir/logicalmodel-address-R4",
  "identifier": [
    {
      "system": "openEHR-CKM",
      "value": "openEHR-EHR-CLUSTER.address.v1"
    }
  ],
  "version": "0",
  "name": "Address",
  "title": "Address",
  "status": "draft",
  "date": "2024-06-18",
  "publisher": "openEHR",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.veratech.es"
        }
      ]
    }
  ],
  "description": "Details about the location of a person, physical building or landmark.",
  "purpose": "To record details about the location of a person, physical building or landmark as they are known or understood in the course of clinical documentation.",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "openEHR",
      "uri": "http://openehr.org",
      "name": "openEHR Mapping"
    },
    {
      "identity": "openEHR-natural",
      "uri": "http://openehr.org",
      "name": "openEHR natural path"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "StructureDefinition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element",
  "snapshot": {
    "element": [
      {
        "id": "Address",
        "path": "Address",
        "short": "Address",
        "definition": "Details about the location of a person, physical building or landmark.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Address",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Address.Address_line",
        "path": "Address.Address_line",
        "short": "Address line",
        "definition": "An unstructured address line representing all relevant street-level or post-box details that would support the identification of a location.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Address.Address_line",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Address.Address_line.value",
        "path": "Address.Address_line.value",
        "short": "Address line",
        "definition": "An unstructured address line representing all relevant street-level or post-box details that would support the identification of a location.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Address_line.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Address.City_Town",
        "path": "Address.City_Town",
        "short": "City/Town",
        "definition": "The name of the lowest level locality that contains the address.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Address.City_Town",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Address.City_Town.value",
        "path": "Address.City_Town.value",
        "short": "City/Town",
        "definition": "The name of the lowest level locality that contains the address.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.City_Town.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Address.District_County",
        "path": "Address.District_County",
        "short": "District/County",
        "definition": "The name of a local government district or geographical area that contains the address.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Address.District_County",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Address.District_County.value",
        "path": "Address.District_County.value",
        "short": "District/County",
        "definition": "The name of a local government district or geographical area that contains the address.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.District_County.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Address.State_Territory_Province",
        "path": "Address.State_Territory_Province",
        "short": "State/Territory/Province",
        "definition": "The name of a major government district or geographical area that contains the address.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.State_Territory_Province",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Address.State_Territory_Province.value",
        "path": "Address.State_Territory_Province.value",
        "short": "State/Territory/Province",
        "definition": "The name of a major government district or geographical area that contains the address.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.State_Territory_Province.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Address.Postal_code",
        "path": "Address.Postal_code",
        "short": "Postal code",
        "definition": "The code for a postal delivery area containing the address, as defined by the relevant postal delivery service.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Postal_code",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Address.Postal_code.value",
        "path": "Address.Postal_code.value",
        "short": "Postal code",
        "definition": "The code for a postal delivery area containing the address, as defined by the relevant postal delivery service.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Postal_code.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Address.Country",
        "path": "Address.Country",
        "short": "Country",
        "definition": "The name of the country containing the address.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Country",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Address.Country.value",
        "path": "Address.Country.value",
        "short": "Country",
        "definition": "The name of the country containing the address.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Country.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Address.Structured_address",
        "path": "Address.Structured_address",
        "short": "Structured address",
        "definition": "Structured details or extensions to the address.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Address.Structured_address",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Address.Geolocation_code",
        "path": "Address.Geolocation_code",
        "short": "Geolocation code",
        "definition": "Unique identifier that represents a precise geographical location.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Geolocation_code",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Address.Geolocation_code.value",
        "path": "Address.Geolocation_code.value",
        "short": "Geolocation code",
        "definition": "Unique identifier that represents a precise geographical location.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Geolocation_code.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Address.Latitude",
        "path": "Address.Latitude",
        "short": "Latitude",
        "definition": "Horizontal (y) coordinate of a geolocation for the address.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Latitude",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Address.Latitude.value",
        "path": "Address.Latitude.value",
        "short": "Latitude",
        "definition": "Horizontal (y) coordinate of a geolocation for the address.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Address.Latitude.value",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Address.Longitude",
        "path": "Address.Longitude",
        "short": "Longitude",
        "definition": "Horizontal (x) coordinate of a geolocation for the address.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Longitude",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Address.Longitude.value",
        "path": "Address.Longitude.value",
        "short": "Longitude",
        "definition": "Horizontal (x) coordinate of a geolocation for the address.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Address.Longitude.value",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Address.Altitude",
        "path": "Address.Altitude",
        "short": "Altitude",
        "definition": "The vertical coordinate of a geolocation representing height or depth of the address.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Altitude",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Address.Altitude.value",
        "path": "Address.Altitude.value",
        "short": "Altitude",
        "definition": "The vertical coordinate of a geolocation representing height or depth of the address.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Address.Altitude.value",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Address.Map_URL",
        "path": "Address.Map_URL",
        "short": "Map URL",
        "definition": "Link to a location on an online map.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Map_URL",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Address.Map_URL.value",
        "path": "Address.Map_URL.value",
        "short": "Map URL",
        "definition": "Link to a location on an online map.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Map_URL.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Address.Type",
        "path": "Address.Type",
        "short": "Type",
        "definition": "The type of address.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Type",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Address.Type.value_DV_CODED_TEXT",
        "path": "Address.Type.value_DV_CODED_TEXT",
        "short": "Type",
        "definition": "The type of address.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Type.value_DV_CODED_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Address.Type.value_DV_TEXT",
        "path": "Address.Type.value_DV_TEXT",
        "short": "Type",
        "definition": "The type of address.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Type.value_DV_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Address.Use",
        "path": "Address.Use",
        "short": "Use",
        "definition": "The primary purpose or use for the address.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Use",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Address.Use.value_DV_CODED_TEXT",
        "path": "Address.Use.value_DV_CODED_TEXT",
        "short": "Use",
        "definition": "The primary purpose or use for the address.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Use.value_DV_CODED_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Address.Use.value_DV_TEXT",
        "path": "Address.Use.value_DV_TEXT",
        "short": "Use",
        "definition": "The primary purpose or use for the address.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Use.value_DV_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Address.Comment",
        "path": "Address.Comment",
        "short": "Comment",
        "definition": "Additional narrative about the address not captured in other fields.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Comment",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Address.Comment.value",
        "path": "Address.Comment.value",
        "short": "Comment",
        "definition": "Additional narrative about the address not captured in other fields.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Address.Comment.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      }
    ]
  }
}