{
  "resourceType": "StructureDefinition",
  "id": "24551cca-c8b3-4d5f-8fad-72ae78b61d40",
  "meta": {
    "lastUpdated": "2025-11-13T14:13:02.2054649+00:00"
  },
  "url": "http://fhir.alp/StructureDefinition/AlpCoreAddress",
  "name": "AlpCoreAddress",
  "status": "draft",
  "date": "2020-07-07T16:46:24.6918464Z",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "servd",
      "uri": "http://www.omg.org/spec/ServD/1.0/",
      "name": "ServD"
    },
    {
      "identity": "vcard",
      "uri": "http://w3.org/vcard",
      "name": "vCard Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "type": "Address",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Address",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Address",
        "path": "Address",
        "constraint": [
          {
            "key": "alp-adr-1",
            "severity": "error",
            "human": "If postalCode exists, city has to be populated as well",
            "expression": "postalCode.exists() implies city.exists()"
          }
        ]
      },
      {
        "id": "Address.city",
        "path": "Address.city",
        "condition": [
          "alp-adr-1"
        ]
      },
      {
        "id": "Address.district",
        "path": "Address.district",
        "max": "0"
      },
      {
        "id": "Address.postalCode",
        "path": "Address.postalCode",
        "condition": [
          "alp-adr-1"
        ]
      }
    ]
  }
}