PackagesCanonicalsLogsProblems
    Packages
    ans.fhir.fr.annuaire@0.1.0
    https://annuaire.sante.gouv.fr/fhir/StructureDefinition/Fr-Address-Extended
{
  "description": null,
  "_filename": "StructureDefinition-Fr-Address-Extended.json",
  "package_name": "ans.fhir.fr.annuaire",
  "date": "2023-12-13T11:01:47+00:00",
  "derivation": "constraint",
  "meta": {
    "lastUpdated": "2022-07-25T17:40:40.0522362+00:00"
  },
  "publisher": "ANS",
  "fhirVersion": "4.0.1",
  "jurisdiction": [ {
    "coding": [ {
      "code": "FR",
      "system": "urn:iso:std:iso:3166",
      "display": "FRANCE"
    } ]
  } ],
  "name": "FrAddressExtended",
  "abstract": false,
  "type": "Address",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "0.1.0",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Address",
      "min": 0,
      "definition": "An address expressed using postal conventions (as opposed to GPS or other location definition formats).  This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery.  There are a variety of postal address formats defined around the world.",
      "short": "An address expressed using postal conventions (as opposed to GPS or other location definition formats)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "XAD",
        "identity": "v2"
      }, {
        "map": "AD",
        "identity": "rim"
      }, {
        "map": "Address",
        "identity": "servd"
      } ],
      "max": "*",
      "id": "Address",
      "condition": [ "ele-1" ],
      "comment": "Note: address is intended to describe postal addresses for administrative purposes, not to describe absolute geographical coordinates.  Postal addresses are often used as proxies for physical locations (also see the [Location](http://hl7.org/fhir/R4/location.html#) resource).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Address"
      }
    }, {
      "path": "Address.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Address.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Address.extension",
      "min": 0,
      "definition": "An Extension",
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Address.extension",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Address.extension",
      "min": 0,
      "definition": "Optional Extension Element - found in all resources.",
      "short": "Optional Extensions Element",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "http://interopsante.org/fhir/StructureDefinition/FrAddressInseeCode" ]
      } ],
      "sliceName": "inseeCode",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode": "normative"
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
        "valueCode": "4.0.0"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "1",
      "id": "Address.extension:inseeCode",
      "condition": [ "ele-1" ],
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Address.extension",
      "min": 0,
      "definition": "Optional Extension Element - found in all resources.",
      "short": "Optional Extensions Element",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "https://annuaire.sante.gouv.fr/fhir/StructureDefinition/French-Department" ]
      } ],
      "sliceName": "frenchDepartment",
      "max": "1",
      "id": "Address.extension:frenchDepartment",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Address.extension",
      "min": 0,
      "definition": "Optional Extension Element - found in all resources.",
      "short": "Optional Extensions Element",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "https://annuaire.sante.gouv.fr/fhir/StructureDefinition/Address-Country-Code" ]
      } ],
      "sliceName": "countryCode",
      "max": "1",
      "id": "Address.extension:countryCode",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Address.use",
      "requirements": "Allows an appropriate address to be chosen from a list of many.",
      "min": 0,
      "definition": "The purpose of this address.",
      "isModifier": true,
      "short": "home | work | temp | old | billing - purpose of this address",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "XAD.7",
        "identity": "v2"
      }, {
        "map": "unique(./use)",
        "identity": "rim"
      }, {
        "map": "./AddressPurpose",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/address-use",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "AddressUse"
        } ],
        "description": "The use of an address."
      },
      "max": "1",
      "id": "Address.use",
      "condition": [ "ele-1" ],
      "comment": "Applications can assume that an address is current unless it explicitly says that it is temporary or old.",
      "example": [ {
        "label": "General",
        "valueCode": "home"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Address.use"
      },
      "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary or old address etc.for a current/permanent one",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Address.type",
      "min": 0,
      "definition": "Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.",
      "short": "postal | physical | both",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "XAD.18",
        "identity": "v2"
      }, {
        "map": "unique(./use)",
        "identity": "rim"
      }, {
        "map": "address type parameter",
        "identity": "vcard"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/address-type",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "AddressType"
        } ],
        "description": "The type of an address (physical / postal)."
      },
      "max": "1",
      "id": "Address.type",
      "condition": [ "ele-1" ],
      "comment": "The definition of Address states that \"address is intended to describe postal addresses, not physical locations\". However, many applications track whether an address has a dual purpose of being a location that can be visited as well as being a valid delivery destination, and Postal addresses are often used as proxies for physical locations (also see the [Location](http://hl7.org/fhir/R4/location.html#) resource).",
      "example": [ {
        "label": "General",
        "valueCode": "both"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Address.type"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Address.text",
      "requirements": "A renderable, unencoded form.",
      "min": 0,
      "definition": "Specifies the entire address as it should be displayed e.g. on a postal label. This may be provided instead of or as well as the specific parts.",
      "short": "Text representation of the address",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6",
        "identity": "v2"
      }, {
        "map": "./formatted",
        "identity": "rim"
      }, {
        "map": "address label parameter",
        "identity": "vcard"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Address.text",
      "condition": [ "ele-1" ],
      "comment": "Can provide both a text representation and parts. Applications updating an address SHALL ensure that  when both text and parts are present,  no content is included in the text that isn't found in a part.",
      "example": [ {
        "label": "General",
        "valueString": "137 Nowhere Street, Erewhon 9132"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Address.text"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Address.line",
      "min": 0,
      "definition": "This component contains the house number, apartment number, street name, street direction,  P.O. Box number, delivery hints, and similar address information.",
      "short": "Street name, number, direction & P.O. Box etc.",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)",
        "identity": "v2"
      }, {
        "map": "AD.part[parttype = AL]",
        "identity": "rim"
      }, {
        "map": "street",
        "identity": "vcard"
      }, {
        "map": "./StreetAddress (newline delimitted)",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "*",
      "id": "Address.line",
      "condition": [ "ele-1" ],
      "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
      "example": [ {
        "label": "General",
        "valueString": "137 Nowhere Street"
      } ],
      "orderMeaning": "The order in which lines should appear in an address label",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Address.line"
      },
      "isSummary": true
    }, {
      "path": "Address.line.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Address.line.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Address.line.extension",
      "min": 0,
      "definition": "An Extension",
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Address.line.extension",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Address.line.extension",
      "min": 0,
      "definition": "The name of the party who will take receipt at the specified address, and will take on responsibility for ensuring delivery to the target recipient.",
      "short": "careOf",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "ADXP[partType=CAR]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-careOf" ]
      } ],
      "sliceName": "careOf",
      "max": "*",
      "id": "Address.line.extension:careOf",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Address.line.extension",
      "min": 0,
      "definition": "This can be a unit designator, such as apartment number, suite number, or floor. There may be several unit designators in an address (e.g., \"3rd floor, Appt. 342\"). This can also be a designator pointing away from the location, rather than specifying a smaller location within some larger one (e.g., Dutch \"t.o.\" means \"opposite to\" for house boats located across the street facing houses).",
      "short": "additionalLocator",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "ADXP[partType=ADL]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator" ]
      } ],
      "sliceName": "additionalLocator",
      "max": "*",
      "id": "Address.line.extension:additionalLocator",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Address.line.extension",
      "min": 0,
      "definition": "The number of a building, house or lot alongside the street. Also known as \"primary street number\". This does not number the street but rather the building.",
      "short": "houseNumber",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "ADXP[partType=BNR]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber" ]
      } ],
      "sliceName": "houseNumber",
      "max": "*",
      "id": "Address.line.extension:houseNumber",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Address.line.extension",
      "min": 0,
      "definition": "Any alphabetic character, fraction or other text that may appear after the numeric portion of a building number.",
      "short": "buildingNumberSuffix",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "ADXP[partType=BNS]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-buildingNumberSuffix" ]
      } ],
      "sliceName": "buildingNumberSuffix",
      "max": "*",
      "id": "Address.line.extension:buildingNumberSuffix",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Address.line.extension",
      "min": 0,
      "definition": "The designation given to the street. (e.g. Street, Avenue, Crescent, etc.).",
      "short": "streetNameType",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "ADXP[partType=STTYP]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetNameType" ]
      } ],
      "sliceName": "streetNameType",
      "max": "*",
      "id": "Address.line.extension:streetNameType",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Address.line.extension",
      "min": 0,
      "definition": "The base name of a roadway or artery recognized by a municipality (excluding street type and direction).",
      "short": "streetNameBase",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "ADXP[partType=STB]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetNameBase" ]
      } ],
      "sliceName": "streetNamebase",
      "max": "*",
      "id": "Address.line.extension:streetNamebase",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Address.line.extension",
      "min": 0,
      "definition": "A numbered box located in a post station.",
      "short": "postBox",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "ADXP[partType=POB]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox" ]
      } ],
      "sliceName": "postBox",
      "max": "*",
      "id": "Address.line.extension:postBox",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Address.line.value",
      "min": 0,
      "definition": "Primitive value for string",
      "short": "Primitive value for string",
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/regex",
          "valueString": "[ \\r\\n\\t\\S]+"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Address.line.value",
      "maxLength": 1048576,
      "base": {
        "max": "1",
        "min": 0,
        "path": "string.value"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Address.city",
      "min": 0,
      "definition": "The name of the city, town, suburb, village or other community or delivery center.",
      "short": "Name of city, town etc.",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "XAD.3",
        "identity": "v2"
      }, {
        "map": "AD.part[parttype = CTY]",
        "identity": "rim"
      }, {
        "map": "locality",
        "identity": "vcard"
      }, {
        "map": "./Jurisdiction",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "alias": [ "Municpality" ],
      "max": "1",
      "id": "Address.city",
      "condition": [ "ele-1" ],
      "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
      "example": [ {
        "label": "General",
        "valueString": "Erewhon"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Address.city"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Address.district",
      "min": 0,
      "definition": "The name of the administrative area (county).",
      "short": "District name (aka county)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "XAD.9",
        "identity": "v2"
      }, {
        "map": "AD.part[parttype = CNT | CPA]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "alias": [ "County" ],
      "max": "1",
      "id": "Address.district",
      "condition": [ "ele-1" ],
      "comment": "District is sometimes known as county, but in some regions 'county' is used in place of city (municipality), so county name should be conveyed in city instead.",
      "example": [ {
        "label": "General",
        "valueString": "Madison"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Address.district"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Address.state",
      "min": 0,
      "definition": "Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (e.g. US 2 letter state codes).",
      "short": "Sub-unit of country (abbreviations ok)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "XAD.4",
        "identity": "v2"
      }, {
        "map": "AD.part[parttype = STA]",
        "identity": "rim"
      }, {
        "map": "region",
        "identity": "vcard"
      }, {
        "map": "./Region",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "alias": [ "Province", "Territory" ],
      "max": "1",
      "id": "Address.state",
      "condition": [ "ele-1" ],
      "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Address.state"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Address.postalCode",
      "min": 0,
      "definition": "A postal code designating a region defined by the postal service.",
      "short": "Postal code for area",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "XAD.5",
        "identity": "v2"
      }, {
        "map": "AD.part[parttype = ZIP]",
        "identity": "rim"
      }, {
        "map": "code",
        "identity": "vcard"
      }, {
        "map": "./PostalIdentificationCode",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "alias": [ "Zip" ],
      "max": "1",
      "id": "Address.postalCode",
      "condition": [ "ele-1" ],
      "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
      "example": [ {
        "label": "General",
        "valueString": "9132"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Address.postalCode"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Address.country",
      "min": 0,
      "definition": "Country - a nation as commonly understood or generally accepted.",
      "short": "Country (will be ISO 3166 3 letter code; code=FRA for France)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "XAD.6",
        "identity": "v2"
      }, {
        "map": "AD.part[parttype = CNT]",
        "identity": "rim"
      }, {
        "map": "country",
        "identity": "vcard"
      }, {
        "map": "./Country",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Address.country",
      "condition": [ "ele-1" ],
      "comment": "ISO 3166 3 letter codes can be used in place of a full country name. FRA for France.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Address.country"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "per-1",
        "human": "If present, start SHALL have a lower value than end",
        "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
        "source": "http://hl7.org/fhir/StructureDefinition/Encounter",
        "severity": "error",
        "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)"
      } ],
      "path": "Address.period",
      "requirements": "Allows addresses to be placed in historical context.",
      "min": 0,
      "definition": "Time period when address was/is in use.",
      "short": "Time period when address was/is in use",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DR",
        "identity": "v2"
      }, {
        "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]",
        "identity": "rim"
      }, {
        "map": "XAD.12 / XAD.13 + XAD.14",
        "identity": "v2"
      }, {
        "map": "./usablePeriod[type=\"IVL\"]",
        "identity": "rim"
      }, {
        "map": "./StartDate and ./EndDate",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Address.period",
      "condition": [ "ele-1" ],
      "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](http://hl7.org/fhir/R4/datatypes.html#Duration).",
      "example": [ {
        "label": "General",
        "valuePeriod": {
          "end": "2010-07-01",
          "start": "2010-03-23"
        }
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Address.period"
      },
      "isSummary": true
    } ]
  },
  "status": "draft",
  "id": "379ab01c-22ba-4cb0-9617-e88cac936230",
  "kind": "complex-type",
  "url": "https://annuaire.sante.gouv.fr/fhir/StructureDefinition/Fr-Address-Extended",
  "version": "0.1.0",
  "differential": {
    "element": [ {
      "id": "Address.extension",
      "min": 0,
      "path": "Address.extension",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      }
    }, {
      "id": "Address.extension:frenchDepartment",
      "max": "1",
      "min": 0,
      "path": "Address.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://annuaire.sante.gouv.fr/fhir/StructureDefinition/French-Department" ]
      } ],
      "sliceName": "frenchDepartment"
    }, {
      "id": "Address.extension:countryCode",
      "max": "1",
      "min": 0,
      "path": "Address.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://annuaire.sante.gouv.fr/fhir/StructureDefinition/Address-Country-Code" ]
      } ],
      "sliceName": "countryCode"
    }, {
      "id": "Address.line.extension",
      "min": 0,
      "path": "Address.line.extension",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      }
    }, {
      "id": "Address.line.extension:careOf",
      "min": 0,
      "path": "Address.line.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-careOf" ]
      } ],
      "sliceName": "careOf"
    }, {
      "id": "Address.line.extension:additionalLocator",
      "min": 0,
      "path": "Address.line.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator" ]
      } ],
      "sliceName": "additionalLocator"
    }, {
      "id": "Address.line.extension:houseNumber",
      "min": 0,
      "path": "Address.line.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber" ]
      } ],
      "sliceName": "houseNumber"
    }, {
      "id": "Address.line.extension:buildingNumberSuffix",
      "min": 0,
      "path": "Address.line.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-buildingNumberSuffix" ]
      } ],
      "sliceName": "buildingNumberSuffix"
    }, {
      "id": "Address.line.extension:streetNameType",
      "min": 0,
      "path": "Address.line.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetNameType" ]
      } ],
      "sliceName": "streetNameType"
    }, {
      "id": "Address.line.extension:streetNamebase",
      "min": 0,
      "path": "Address.line.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetNameBase" ]
      } ],
      "sliceName": "streetNamebase"
    }, {
      "id": "Address.line.extension:postBox",
      "min": 0,
      "path": "Address.line.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox" ]
      } ],
      "sliceName": "postBox"
    } ]
  },
  "contact": [ {
    "name": "ANS",
    "telecom": [ {
      "value": "https://esante.gouv.fr",
      "system": "url"
    }, {
      "value": "monserviceclient.annuaire@esante.gouv.fr",
      "system": "email"
    } ]
  } ],
  "baseDefinition": "http://interopsante.org/fhir/StructureDefinition/FrAddress"
}