All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eedm.person-contacts.v7.0.person-contacts.json Maven / Gradle / Ivy

{
  "title" : "Person Contacts",
  "description" : "People who will be contacted in case of emergency or other situations related to the subject person",
  "type" : "object",
  "properties" : {
    "metadata" : {
      "$ref" : "resource:/eedm/metadata.json"
    },
    "id" : {
      "title" : "ID",
      "description" : "The global identifier of the person contacts information resource",
      "type" : "string",
      "format" : "guid",
      "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
    },
    "person" : {
      "title" : "Person",
      "description" : "The subject person",
      "type" : "object",
      "properties" : {
        "id" : {
          "title" : "ID",
          "description" : "The global identifier for the Person.",
          "type" : "string",
          "format" : "guid",
          "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
        }
      },
      "links" : [ {
        "rel" : "self",
        "href" : "/persons/{id}",
        "targetSchema" : {
          "$ref" : "persons.json#"
        }
      } ],
      "additionalProperties" : false,
      "required" : [ "id" ]
    },
    "contacts" : {
      "title" : "Contacts",
      "description" : "The subject person's contacts",
      "type" : "array",
      "items" : {
        "type" : "object",
        "properties" : {
          "name" : {
            "title" : "Name",
            "description" : "The name of the contact",
            "type" : "object",
            "properties" : {
              "fullName" : {
                "title" : "Full Name",
                "description" : "The full name of the contact",
                "type" : "string"
              },
              "firstName" : {
                "title" : "First Name",
                "description" : "The first name of the contact",
                "type" : "string"
              },
              "middleName" : {
                "title" : "Middle Name",
                "description" : "The middle name of the contact",
                "type" : "string"
              },
              "lastName" : {
                "title" : "Last Name",
                "description" : "The last name of the contact",
                "type" : "string"
              }
            },
            "additionalProperties" : false,
            "minProperties" : 1
          },
          "types" : {
            "title" : "Types",
            "description" : "The types of the contact",
            "type" : "array",
            "items" : {
              "enum" : [ "emergency", "missingPerson" ],
              "type" : "string"
            }
          },
          "contactAddress" : {
            "title" : "Contact Address",
            "description" : "The associated physical or mailing address of the contact",
            "type" : "object",
            "properties" : {
              "address" : {
                "title" : "Address",
                "description" : "The complete address (optionally, split into multiple lines)",
                "oneOf" : [ {
                  "title" : "Full Address",
                  "description" : "The complete physical or mailing address",
                  "type" : "array",
                  "items" : {
                    "type" : "string"
                  }
                }, {
                  "title" : "Address Components",
                  "description" : "Components of the address",
                  "oneOf" : [ {
                    "type" : "object",
                    "properties" : {
                      "type" : {
                        "title" : "Type",
                        "description" : "A type of address for a person. Includes a standard type (e.g. 'home', 'school') and an optional, custom type to further identify the type of address.",
                        "oneOf" : [ {
                          "type" : "object",
                          "properties" : {
                            "addressType" : {
                              "title" : "Type",
                              "description" : "A mapping to a standard type for the address type.",
                              "enum" : [ "home", "school", "vacation", "billing", "shipping", "mailing", "business", "parent", "family", "pobox", "main", "branch", "region", "support", "matchingGifts", "other" ],
                              "type" : "string"
                            },
                            "detail" : {
                              "title" : "Detail",
                              "description" : "",
                              "oneOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "id" : {
                                    "title" : "ID",
                                    "description" : "The global identifier for the Detail.",
                                    "type" : "string",
                                    "format" : "guid",
                                    "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
                                  }
                                },
                                "links" : [ {
                                  "rel" : "self",
                                  "href" : "/address-types/{id}",
                                  "targetSchema" : {
                                    "$ref" : "address-types.json#"
                                  }
                                } ],
                                "additionalProperties" : false,
                                "required" : [ "id" ]
                              }, {
                                "type" : "object",
                                "maxProperties" : 0
                              } ]
                            }
                          },
                          "additionalProperties" : false,
                          "required" : [ "addressType" ]
                        }, {
                          "type" : "object",
                          "maxProperties" : 0
                        } ]
                      },
                      "addressLines" : {
                        "title" : "Address Lines",
                        "description" : "The address lines (e.g., street name and building number, apartment or suite, etc.)",
                        "type" : "array",
                        "items" : {
                          "type" : "string"
                        }
                      },
                      "place" : {
                        "title" : "Place",
                        "description" : "A country specific postal region.  Postal regions are expressed as a hierarchy of country, region, and sub-region, and as a locality with postal automation codes",
                        "oneOf" : [ {
                          "type" : "object",
                          "properties" : {
                            "country" : {
                              "title" : "Country",
                              "description" : "The country where the mailing address is located.",
                              "oneOf" : [ {
                                "title" : "Australia",
                                "description" : "",
                                "type" : "object",
                                "properties" : {
                                  "code" : {
                                    "title" : "Code",
                                    "description" : "The ISO 3166-1 alpha-3 country code.",
                                    "enum" : [ "AUS" ],
                                    "type" : "string"
                                  },
                                  "title" : {
                                    "title" : "Country",
                                    "description" : "The name of the country, as used in everyday speech.",
                                    "type" : "string"
                                  },
                                  "postalTitle" : {
                                    "title" : "Postal Country",
                                    "description" : "The name of the country when mail is being addressed from an international sender.",
                                    "oneOf" : [ {
                                      "type" : "string",
                                      "enum" : [ "AUSTRALIA" ]
                                    }, {
                                      "type" : "string",
                                      "maxLength" : 0
                                    } ]
                                  },
                                  "region" : {
                                    "title" : "Region",
                                    "description" : "A region within the country",
                                    "type" : "object",
                                    "properties" : {
                                      "code" : {
                                        "title" : "Code",
                                        "description" : "The ISO 3166-2 code of a region within the country",
                                        "oneOf" : [ {
                                          "type" : "string",
                                          "enum" : [ "AU-NSW", "AU-ACT", "AU-VIC", "AU-QLD", "AU-SA", "AU-WA", "AU-TAS", "AU-NT" ]
                                        }, {
                                          "type" : "string",
                                          "maxLength" : 0
                                        } ]
                                      },
                                      "title" : {
                                        "title" : "Title",
                                        "description" : "The full name of the region",
                                        "type" : "string"
                                      }
                                    },
                                    "additionalProperties" : false
                                  },
                                  "subRegion" : {
                                    "title" : "Subregion",
                                    "description" : "A subregion within the country and region",
                                    "type" : "object",
                                    "properties" : {
                                      "code" : {
                                        "title" : "Code",
                                        "description" : "The code of a sub-region. This should be based on ISO 3166-2, if applicable.",
                                        "type" : "string"
                                      },
                                      "title" : {
                                        "title" : "Title",
                                        "description" : "The name of a subregion",
                                        "type" : "string"
                                      }
                                    },
                                    "additionalProperties" : false
                                  },
                                  "locality" : {
                                    "title" : "city",
                                    "description" : "The name of the city or town.",
                                    "type" : "string"
                                  },
                                  "postalCode" : {
                                    "title" : "Postal Code",
                                    "description" : "The mailing postal code.",
                                    "oneOf" : [ {
                                      "type" : "string",
                                      "pattern" : "^(0[289][0-9]{2})|([1345689][0-9]{3})|(2[0-8][0-9]{2})|(290[0-9])|(291[0-4])|(7[0-4][0-9]{2})|(7[8-9][0-9]{2})$"
                                    }, {
                                      "type" : "string",
                                      "maxLength" : 0
                                    } ]
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "code" ]
                              }, {
                                "title" : "Brazil",
                                "description" : "",
                                "type" : "object",
                                "properties" : {
                                  "code" : {
                                    "title" : "Code",
                                    "description" : "The ISO 3166-1 alpha-3 country code.",
                                    "enum" : [ "BRA" ],
                                    "type" : "string"
                                  },
                                  "title" : {
                                    "title" : "Country",
                                    "description" : "The name of the country, as used in everyday speech.",
                                    "type" : "string"
                                  },
                                  "postalTitle" : {
                                    "title" : "Postal Country",
                                    "description" : "The name of the country when mail is being addressed from an international sender.",
                                    "oneOf" : [ {
                                      "type" : "string",
                                      "enum" : [ "BRAZIL" ]
                                    }, {
                                      "type" : "string",
                                      "maxLength" : 0
                                    } ]
                                  },
                                  "region" : {
                                    "title" : "Region",
                                    "description" : "A region within the country",
                                    "type" : "object",
                                    "properties" : {
                                      "code" : {
                                        "title" : "Code",
                                        "description" : "The ISO 3166-2 code of a region within the country",
                                        "oneOf" : [ {
                                          "type" : "string",
                                          "enum" : [ "BR-AC", "BR-AL", "BR-AM", "BR-AP", "BR-BA", "BR-CE", "BR-DF", "BR-ES", "BR-GO", "BR-MA", "BR-MG", "BR-MS", "BR-MT", "BR-PA", "BR-PB", "BR-PE", "BR-PI", "BR-PR", "BR-RJ", "BR-RN", "BR-RO", "BR-RR", "BR-RS", "BR-SC", "BR-SE", "BR-SP", "BR-TO" ]
                                        }, {
                                          "type" : "string",
                                          "maxLength" : 0
                                        } ]
                                      },
                                      "title" : {
                                        "title" : "Title",
                                        "description" : "The full name of the region",
                                        "type" : "string"
                                      }
                                    },
                                    "additionalProperties" : false
                                  },
                                  "subRegion" : {
                                    "title" : "Subregion",
                                    "description" : "A subregion within the country and region",
                                    "type" : "object",
                                    "properties" : {
                                      "code" : {
                                        "title" : "Code",
                                        "description" : "The code of a sub-region. This should be based on ISO 3166-2, if applicable.",
                                        "type" : "string"
                                      },
                                      "title" : {
                                        "title" : "Title",
                                        "description" : "The name of a subregion",
                                        "type" : "string"
                                      }
                                    },
                                    "additionalProperties" : false
                                  },
                                  "locality" : {
                                    "title" : "city",
                                    "description" : "The name of the city or town.",
                                    "type" : "string"
                                  },
                                  "postalCode" : {
                                    "title" : "Postal Code",
                                    "description" : "The mailing postal code.",
                                    "oneOf" : [ {
                                      "type" : "string",
                                      "pattern" : "^\\d{5}\\-\\d{3}$"
                                    }, {
                                      "type" : "string",
                                      "maxLength" : 0
                                    } ]
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "code" ]
                              }, {
                                "title" : "Canada",
                                "description" : "",
                                "type" : "object",
                                "properties" : {
                                  "code" : {
                                    "title" : "Code",
                                    "description" : "The ISO 3166-1 alpha-3 country code.",
                                    "enum" : [ "CAN" ],
                                    "type" : "string"
                                  },
                                  "title" : {
                                    "title" : "Country",
                                    "description" : "The name of the country, as used in everyday speech.",
                                    "type" : "string"
                                  },
                                  "postalTitle" : {
                                    "title" : "Postal Country",
                                    "description" : "The name of the country when mail is being addressed from an international sender.",
                                    "oneOf" : [ {
                                      "type" : "string",
                                      "enum" : [ "CANADA" ]
                                    }, {
                                      "type" : "string",
                                      "maxLength" : 0
                                    } ]
                                  },
                                  "region" : {
                                    "title" : "Region",
                                    "description" : "A region within the country",
                                    "type" : "object",
                                    "properties" : {
                                      "code" : {
                                        "title" : "Code",
                                        "description" : "The ISO 3166-2 code of a region within the country",
                                        "oneOf" : [ {
                                          "type" : "string",
                                          "enum" : [ "CA-AB", "CA-BC", "CA-MB", "CA-NB", "CA-NL", "CA-NS", "CA-NT", "CA-NU", "CA-ON", "CA-PE", "CA-QC", "CA-SK", "CA-YT" ]
                                        }, {
                                          "type" : "string",
                                          "maxLength" : 0
                                        } ]
                                      },
                                      "title" : {
                                        "title" : "Title",
                                        "description" : "The full name of the region",
                                        "type" : "string"
                                      }
                                    },
                                    "additionalProperties" : false
                                  },
                                  "subRegion" : {
                                    "title" : "Subregion",
                                    "description" : "A subregion within the country and region",
                                    "type" : "object",
                                    "properties" : {
                                      "code" : {
                                        "title" : "Code",
                                        "description" : "The code of a sub-region. This should be based on ISO 3166-2, if applicable.",
                                        "type" : "string"
                                      },
                                      "title" : {
                                        "title" : "Title",
                                        "description" : "The name of a subregion",
                                        "type" : "string"
                                      }
                                    },
                                    "additionalProperties" : false
                                  },
                                  "locality" : {
                                    "title" : "city",
                                    "description" : "The name of the city or town.",
                                    "type" : "string"
                                  },
                                  "postalCode" : {
                                    "title" : "Postal Code",
                                    "description" : "The mailing postal code.",
                                    "oneOf" : [ {
                                      "type" : "string",
                                      "pattern" : "^[ABCEGHJKLMNPRSTVXYabceghjklmnprstvxy]{1}\\d{1}[A-Za-z]{1}\\d{1}[A-Za-z]{1}\\d{1}$"
                                    }, {
                                      "type" : "string",
                                      "maxLength" : 0
                                    } ]
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "code" ]
                              }, {
                                "title" : "Mexico",
                                "description" : "",
                                "type" : "object",
                                "properties" : {
                                  "code" : {
                                    "title" : "Code",
                                    "description" : "The ISO 3166-1 alpha-3 country code.",
                                    "enum" : [ "MEX" ],
                                    "type" : "string"
                                  },
                                  "title" : {
                                    "title" : "Country",
                                    "description" : "The name of the country, as used in everyday speech.",
                                    "type" : "string"
                                  },
                                  "postalTitle" : {
                                    "title" : "Postal Country",
                                    "description" : "The name of the country when mail is being addressed from an international sender.",
                                    "oneOf" : [ {
                                      "type" : "string",
                                      "enum" : [ "MEXICO" ]
                                    }, {
                                      "type" : "string",
                                      "maxLength" : 0
                                    } ]
                                  },
                                  "region" : {
                                    "title" : "Region",
                                    "description" : "A region within the country",
                                    "type" : "object",
                                    "properties" : {
                                      "code" : {
                                        "title" : "Code",
                                        "description" : "The ISO 3166-2 code of a region within the country",
                                        "oneOf" : [ {
                                          "type" : "string",
                                          "enum" : [ "MX-AGU", "MX-BCN", "MX-BCS", "MX-CAM", "MX-COA", "MX-COL", "MX-CHP", "MX-CHH", "MX-DIF", "MX-DUR", "MX-GUA", "MX-GRO", "MX-HID", "MX-JAL", "MX-MEX", "MX-MIC", "MX-MOR", "MX-NAY", "MX-NLE", "MX-OAX", "MX-PUE", "MX-QUE", "MX-ROO", "MX-SLP", "MX-SIN", "MX-SON", "MX-TAB", "MX-TAM", "MX-TLA", "MX-VER", "MX-YUC", "MX-ZAC" ]
                                        }, {
                                          "type" : "string",
                                          "maxLength" : 0
                                        } ]
                                      },
                                      "title" : {
                                        "title" : "Title",
                                        "description" : "The full name of the region",
                                        "type" : "string"
                                      }
                                    },
                                    "additionalProperties" : false
                                  },
                                  "subRegion" : {
                                    "title" : "Subregion",
                                    "description" : "A subregion within the country and region",
                                    "type" : "object",
                                    "properties" : {
                                      "code" : {
                                        "title" : "Code",
                                        "description" : "The code of a sub-region. This should be based on ISO 3166-2, if applicable.",
                                        "type" : "string"
                                      },
                                      "title" : {
                                        "title" : "Title",
                                        "description" : "The name of a subregion",
                                        "type" : "string"
                                      }
                                    },
                                    "additionalProperties" : false
                                  },
                                  "locality" : {
                                    "title" : "city",
                                    "description" : "The name of the city or town.",
                                    "type" : "string"
                                  },
                                  "postalCode" : {
                                    "title" : "Postal Code",
                                    "description" : "The mailing postal code.",
                                    "oneOf" : [ {
                                      "type" : "string",
                                      "pattern" : "^\\A\\d{5,5}\\Z$"
                                    }, {
                                      "type" : "string",
                                      "maxLength" : 0
                                    } ]
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "code" ]
                              }, {
                                "title" : "Netherlands",
                                "description" : "",
                                "type" : "object",
                                "properties" : {
                                  "code" : {
                                    "title" : "Code",
                                    "description" : "The ISO 3166-1 alpha-3 country code.",
                                    "enum" : [ "NLD" ],
                                    "type" : "string"
                                  },
                                  "title" : {
                                    "title" : "Country",
                                    "description" : "The name of the country, as used in everyday speech.",
                                    "type" : "string"
                                  },
                                  "postalTitle" : {
                                    "title" : "Postal Country",
                                    "description" : "The name of the country when mail is being addressed from an international sender.",
                                    "oneOf" : [ {
                                      "type" : "string",
                                      "enum" : [ "NETHERLANDS" ]
                                    }, {
                                      "type" : "string",
                                      "maxLength" : 0
                                    } ]
                                  },
                                  "region" : {
                                    "title" : "Region",
                                    "description" : "A region within the country",
                                    "type" : "object",
                                    "properties" : {
                                      "code" : {
                                        "title" : "Code",
                                        "description" : "The ISO 3166-2 code of a region within the country",
                                        "oneOf" : [ {
                                          "type" : "string",
                                          "enum" : [ "NL-DR", "NL-FL", "NL-FR", "NL-GE", "NL-GR", "NL-LI", "NL-NB", "NL-NH", "NL-OV", "NL-UT", "NL-ZE", "NL-ZH" ]
                                        }, {
                                          "type" : "string",
                                          "maxLength" : 0
                                        } ]
                                      },
                                      "title" : {
                                        "title" : "Title",
                                        "description" : "The full name of the region",
                                        "type" : "string"
                                      }
                                    },
                                    "additionalProperties" : false
                                  },
                                  "subRegion" : {
                                    "title" : "Subregion",
                                    "description" : "A subregion within the country and region",
                                    "type" : "object",
                                    "properties" : {
                                      "code" : {
                                        "title" : "Code",
                                        "description" : "The code of a sub-region. This should be based on ISO 3166-2, if applicable.",
                                        "type" : "string"
                                      },
                                      "title" : {
                                        "title" : "Title",
                                        "description" : "The name of a subregion",
                                        "type" : "string"
                                      }
                                    },
                                    "additionalProperties" : false
                                  },
                                  "locality" : {
                                    "title" : "city",
                                    "description" : "The name of the city or town.",
                                    "type" : "string"
                                  },
                                  "postalCode" : {
                                    "title" : "Postal Code",
                                    "description" : "The mailing postal code.",
                                    "oneOf" : [ {
                                      "type" : "string",
                                      "pattern" : "^(NL-)?(\\d{4})\\s*([A-Z]{2})$"
                                    }, {
                                      "type" : "string",
                                      "maxLength" : 0
                                    } ]
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "code" ]
                              }, {
                                "title" : "United Kingdom of Great Britain and Northern Ireland",
                                "description" : "",
                                "type" : "object",
                                "properties" : {
                                  "code" : {
                                    "title" : "Code",
                                    "description" : "The ISO 3166-1 alpha-3 country code.",
                                    "enum" : [ "GBR" ],
                                    "type" : "string"
                                  },
                                  "title" : {
                                    "title" : "Country",
                                    "description" : "The name of the country, as used in everyday speech.",
                                    "type" : "string"
                                  },
                                  "postalTitle" : {
                                    "title" : "Postal Country",
                                    "description" : "The name of the country when mail is being addressed from an international sender.",
                                    "oneOf" : [ {
                                      "type" : "string",
                                      "enum" : [ "UNITED KINGDOM OF GREAT BRITAIN AND NORTHERN IRELAND" ]
                                    }, {
                                      "type" : "string",
                                      "maxLength" : 0
                                    } ]
                                  },
                                  "region" : {
                                    "title" : "Region",
                                    "description" : "A region within the country",
                                    "type" : "object",
                                    "properties" : {
                                      "code" : {
                                        "title" : "Code",
                                        "description" : "The ISO 3166-2 code of a region within the country",
                                        "enum" : [ "GB-ENG", "GB-NIR", "GB-SCT", "GB-WLS" ],
                                        "type" : "string"
                                      },
                                      "title" : {
                                        "title" : "Title",
                                        "description" : "The name of a subregion",
                                        "type" : "string"
                                      }
                                    },
                                    "additionalProperties" : false
                                  },
                                  "subRegion" : {
                                    "title" : "Subregion",
                                    "description" : "A subregion within the country and region",
                                    "type" : "object",
                                    "properties" : {
                                      "code" : {
                                        "title" : "Code",
                                        "description" : "The code of a sub-region. This should be based on ISO 3166-2, if applicable.",
                                        "oneOf" : [ {
                                          "type" : "string",
                                          "enum" : [ "GB-BAS", "GB-BBD", "GB-BDF", "GB-BDG", "GB-BEN", "GB-BEX", "GB-BIR", "GB-BKM", "GB-BMH", "GB-BNE", "GB-BNH", "GB-BNS", "GB-BOL", "GB-BPL", "GB-BRC", "GB-BRD", "GB-BRY", "GB-BST", "GB-BUR", "GB-CAM", "GB-CBF", "GB-CHE", "GB-CHW", "GB-CLD", "GB-CMA", "GB-CMD", "GB-CON", "GB-COV", "GB-CRY", "GB-DAL", "GB-DBY", "GB-DER", "GB-DEV", "GB-DNC", "GB-DOR", "GB-DUD", "GB-DUR", "GB-EAL", "GB-ENF", "GB-ERY", "GB-ESS", "GB-ESX", "GB-GAT", "GB-GLS", "GB-GRE", "GB-HAL", "GB-HAM", "GB-HAV", "GB-HCK", "GB-HEF", "GB-HIL", "GB-HMF", "GB-HNS", "GB-HPL", "GB-HRT", "GB-HRW", "GB-HRY", "GB-IOS", "GB-IOW", "GB-ISL", "GB-KEC", "GB-KEN", "GB-KHL", "GB-KIR", "GB-KTT", "GB-KWL", "GB-LAN", "GB-LBH", "GB-LCE", "GB-LDS", "GB-LEC", "GB-LEW", "GB-LIN", "GB-LIV", "GB-LND", "GB-LUT", "GB-MAN", "GB-MDB", "GB-MDW", "GB-MIK", "GB-MRT", "GB-NBL", "GB-NEL", "GB-NET", "GB-NFK", "GB-NGM", "GB-NLN", "GB-NSM", "GB-NTH", "GB-NTT", "GB-NTY", "GB-NWM", "GB-NYK", "GB-OLD", "GB-OXF", "GB-PLY", "GB-POL", "GB-POR", "GB-PTE", "GB-RCC", "GB-RCH", "GB-RDB", "GB-RDG", "GB-RIC", "GB-ROT", "GB-RUT", "GB-SAW", "GB-SFK", "GB-SFT", "GB-SGC", "GB-SHF", "GB-SHN", "GB-SHR", "GB-SKP", "GB-SLF", "GB-SLG", "GB-SND", "GB-SOL", "GB-SOM", "GB-SOS", "GB-SRY", "GB-STE", "GB-STH", "GB-STN", "GB-STS", "GB-STT", "GB-STY", "GB-SWD", "GB-SWK", "GB-TAM", "GB-TFW", "GB-THR", "GB-TOB", "GB-TRF", "GB-TWH", "GB-WAR", "GB-WBK", "GB-WFT", "GB-WGN", "GB-WIL", "GB-WKF", "GB-WLL", "GB-WLV", "GB-WND", "GB-WNM", "GB-WOK", "GB-WOR", "GB-WRL", "GB-WRT", "GB-WSM", "GB-WSX", "GB-YOR", "GB-ABC", "GB-AND", "GB-ANN", "GB-BFS", "GB-CCG", "GB-DRS", "GB-FMO", "GB-LBC", "GB-MEA", "GB-MUL", "GB-NMD", "GB-ABD", "GB-ABE", "GB-AGB", "GB-ANS", "GB-CLK", "GB-DGY", "GB-DND", "GB-EAY", "GB-EDH", "GB-EDU", "GB-ELN", "GB-ELS", "GB-ERW", "GB-FAL", "GB-FIF", "GB-GLG", "GB-HLD", "GB-IVC", "GB-MLN", "GB-MRY", "GB-NAY", "GB-NLK", "GB-ORK", "GB-PKN", "GB-RFW", "GB-SAY", "GB-SCB", "GB-SLK", "GB-STG", "GB-WDU", "GB-WLN", "GB-ZET", "GB-AGY", "GB-BGE", "GB-BGW", "GB-CAY", "GB-CGN", "GB-CMN", "GB-CRF", "GB-CWY", "GB-DEN", "GB-FLN", "GB-GWN", "GB-MON", "GB-MTY", "GB-NTL", "GB-NWP", "GB-PEM", "GB-POW", "GB-RCT", "GB-SWA", "GB-TOF", "GB-VGL", "GB-WRX" ]
                                        }, {
                                          "type" : "string",
                                          "maxLength" : 0
                                        } ]
                                      },
                                      "title" : {
                                        "title" : "Title",
                                        "description" : "The full name of the region",
                                        "type" : "string"
                                      }
                                    },
                                    "additionalProperties" : false
                                  },
                                  "locality" : {
                                    "title" : "city",
                                    "description" : "The name of the city or town.",
                                    "type" : "string"
                                  },
                                  "postalCode" : {
                                    "title" : "Postal Code",
                                    "description" : "The mailing postal code.",
                                    "oneOf" : [ {
                                      "type" : "string",
                                      "pattern" : "^(GIR 0AA)|((([A-Z-[QVX]][0-9][0-9]?)|(([A-Z-[QVX]][A-Z-[IJZ]][0-9][0-9]?)|(([A-Z-[QVX]][0-9][A-HJKPSTUW])|([A-Z-[QVX]][A-Z-[IJZ]][0-9][ABEHMNPRVWXY])))) [0-9][A-Z-[CIKMOV]]{2})$"
                                    }, {
                                      "type" : "string",
                                      "maxLength" : 0
                                    } ]
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "code" ]
                              }, {
                                "title" : "United States of America",
                                "description" : "",
                                "type" : "object",
                                "properties" : {
                                  "code" : {
                                    "title" : "Code",
                                    "description" : "The ISO 3166-1 alpha-3 country code.",
                                    "enum" : [ "USA" ],
                                    "type" : "string"
                                  },
                                  "title" : {
                                    "title" : "Country",
                                    "description" : "The name of the country, as used in everyday speech.",
                                    "type" : "string"
                                  },
                                  "postalTitle" : {
                                    "title" : "Postal Country",
                                    "description" : "The name of the country when mail is being addressed from an international sender.",
                                    "oneOf" : [ {
                                      "type" : "string",
                                      "enum" : [ "UNITED STATES OF AMERICA" ]
                                    }, {
                                      "type" : "string",
                                      "maxLength" : 0
                                    } ]
                                  },
                                  "region" : {
                                    "title" : "Region",
                                    "description" : "A region within the country",
                                    "type" : "object",
                                    "properties" : {
                                      "code" : {
                                        "title" : "Code",
                                        "description" : "The ISO 3166-2 code of a region within the country",
                                        "oneOf" : [ {
                                          "type" : "string",
                                          "enum" : [ "US-AL", "US-AK", "US-AZ", "US-AR", "US-CA", "US-CO", "US-CT", "US-DE", "US-DC", "US-FL", "US-GA", "US-HI", "US-ID", "US-IL", "US-IN", "US-IA", "US-KS", "US-KY", "US-LA", "US-ME", "US-MD", "US-MA", "US-MI", "US-MN", "US-MS", "US-MO", "US-MT", "US-NE", "US-NV", "US-NH", "US-NJ", "US-NM", "US-NY", "US-NC", "US-ND", "US-OH", "US-OK", "US-OR", "US-PA", "US-RI", "US-SC", "US-SD", "US-TN", "US-TX", "US-UT", "US-VT", "US-VA", "US-WA", "US-WV", "US-WI", "US-WY", "US-AS", "US-GU", "US-MP", "US-PR", "US-UM", "US-VI" ]
                                        }, {
                                          "type" : "string",
                                          "maxLength" : 0
                                        } ]
                                      },
                                      "title" : {
                                        "title" : "Title",
                                        "description" : "The full name of the region",
                                        "type" : "string"
                                      }
                                    },
                                    "additionalProperties" : false
                                  },
                                  "subRegion" : {
                                    "title" : "Subregion",
                                    "description" : "A subregion within the country and region",
                                    "type" : "object",
                                    "properties" : {
                                      "code" : {
                                        "title" : "Code",
                                        "description" : "The code of a sub-region. This should be based on ISO 3166-2, if applicable.",
                                        "type" : "string"
                                      },
                                      "title" : {
                                        "title" : "Title",
                                        "description" : "The name of a subregion",
                                        "type" : "string"
                                      }
                                    },
                                    "additionalProperties" : false
                                  },
                                  "locality" : {
                                    "title" : "city",
                                    "description" : "The name of the city or town.",
                                    "type" : "string"
                                  },
                                  "postalCode" : {
                                    "title" : "Postal Code",
                                    "description" : "The mailing postal code.",
                                    "oneOf" : [ {
                                      "type" : "string",
                                      "pattern" : "^(\\d{5}(-\\d{4})?|[A-Z]\\d[A-Z] *\\d[A-Z]\\d)$"
                                    }, {
                                      "type" : "string",
                                      "maxLength" : 0
                                    } ]
                                  },
                                  "deliveryPoint" : {
                                    "title" : "Delivery Point",
                                    "description" : "A specific set of digits between 00 and 99 assigned to every address. When combined with the ZIP + 4 code, the delivery point provides a unique identifier for every deliverable address served by the US Postal Service.",
                                    "oneOf" : [ {
                                      "type" : "string",
                                      "pattern" : "^[0-9][0-9]$"
                                    }, {
                                      "type" : "string",
                                      "maxLength" : 0
                                    } ]
                                  },
                                  "carrierRoute" : {
                                    "title" : "Carrier Route",
                                    "description" : "A subdivision of a US zipcode.",
                                    "oneOf" : [ {
                                      "type" : "string",
                                      "pattern" : "^(C|R|P)[0-9]{3}$"
                                    }, {
                                      "type" : "string",
                                      "maxLength" : 0
                                    } ]
                                  },
                                  "correctionDigit" : {
                                    "title" : "Correction Digit",
                                    "description" : "A number used to check for errors in a US ZIP code, delivery point, or carrier route.",
                                    "oneOf" : [ {
                                      "type" : "string",
                                      "pattern" : "^[0-9]$"
                                    }, {
                                      "type" : "string",
                                      "maxLength" : 0
                                    } ]
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "code" ]
                              }, {
                                "title" : "Generic",
                                "description" : "",
                                "type" : "object",
                                "properties" : {
                                  "code" : {
                                    "title" : "Code",
                                    "description" : "The ISO 3166-1 alpha-3 country code.",
                                    "enum" : [ "ABW", "AFG", "AGO", "AIA", "ALA", "ALB", "AND", "ARE", "ARG", "ARM", "ASM", "ATA", "ATF", "ATG", "AUT", "AZE", "BDI", "BEL", "BEN", "BES", "BFA", "BGD", "BGR", "BHR", "BHS", "BIH", "BLM", "BLR", "BLZ", "BMU", "BOL", "BRB", "BRN", "BTN", "BVT", "BWA", "CAF", "CCK", "CHE", "CHL", "CHN", "CIV", "CMR", "COD", "COG", "COK", "COL", "COM", "CPV", "CRI", "CUB", "CUW", "CXR", "CYM", "CYP", "CZE", "DEU", "DJI", "DMA", "DNK", "DOM", "DZA", "ECU", "EGY", "ERI", "ESH", "ESP", "EST", "ETH", "FIN", "FJI", "FLK", "FRA", "FRO", "FSM", "GAB", "GEO", "GGY", "GHA", "GIB", "GIN", "GLP", "GMB", "GNB", "GNQ", "GRC", "GRD", "GRL", "GTM", "GUF", "GUM", "GUY", "HKG", "HMD", "HND", "HRV", "HTI", "HUN", "IDN", "IMN", "IND", "IOT", "IRL", "IRN", "IRQ", "ISL", "ISR", "ITA", "JAM", "JEY", "JOR", "JPN", "KAZ", "KEN", "KGZ", "KHM", "KIR", "KNA", "KOR", "KWT", "LAO", "LBN", "LBR", "LBY", "LCA", "LIE", "LKA", "LSO", "LTU", "LUX", "LVA", "MAC", "MAF", "MAR", "MCO", "MDA", "MDG", "MDV", "MHL", "MKD", "MLI", "MLT", "MMR", "MNE", "MNG", "MNP", "MOZ", "MRT", "MSR", "MTQ", "MUS", "MWI", "MYS", "MYT", "NAM", "NCL", "NER", "NFK", "NGA", "NIC", "NIU", "NOR", "NPL", "NRU", "NZL", "OMN", "PAK", "PAN", "PCN", "PER", "PHL", "PLW", "PNG", "POL", "PRI", "PRK", "PRT", "PRY", "PSE", "PYF", "QAT", "REU", "ROU", "RUS", "RWA", "SAU", "SDN", "SEN", "SGP", "SGS", "SHN", "SJM", "SLB", "SLE", "SLV", "SMR", "SOM", "SPM", "SRB", "SSD", "STP", "SUR", "SVK", "SVN", "SWE", "SWZ", "SXM", "SYC", "SYR", "TCA", "TCD", "TGO", "THA", "TJK", "TKL", "TKM", "TLS", "TON", "TTO", "TUN", "TUR", "TUV", "TWN", "TZA", "UGA", "UKR", "UMI", "URY", "UZB", "VAT", "VCT", "VEN", "VGB", "VIR", "VNM", "VUT", "WLF", "WSM", "YEM", "ZAF", "ZMB", "ZWE" ],
                                    "type" : "string"
                                  },
                                  "title" : {
                                    "title" : "Country",
                                    "description" : "The name of the country, as used in everyday speech.",
                                    "type" : "string"
                                  },
                                  "postalTitle" : {
                                    "title" : "Postal Country",
                                    "description" : "The name of the country when mail is being addressed from an international sender.",
                                    "type" : "string"
                                  },
                                  "region" : {
                                    "title" : "Region",
                                    "description" : "A region within the country",
                                    "type" : "object",
                                    "properties" : {
                                      "code" : {
                                        "title" : "Code",
                                        "description" : "The ISO 3166-2 code of a region within the country",
                                        "type" : "string"
                                      },
                                      "title" : {
                                        "title" : "Title",
                                        "description" : "The full name of the region",
                                        "type" : "string"
                                      }
                                    },
                                    "additionalProperties" : false
                                  },
                                  "subRegion" : {
                                    "title" : "Subregion",
                                    "description" : "A subregion within the country and region",
                                    "type" : "object",
                                    "properties" : {
                                      "code" : {
                                        "title" : "Code",
                                        "description" : "The code of a sub-region. This should be based on ISO 3166-2, if applicable.",
                                        "type" : "string"
                                      },
                                      "title" : {
                                        "title" : "Title",
                                        "description" : "The name of a subregion",
                                        "type" : "string"
                                      }
                                    },
                                    "additionalProperties" : false
                                  },
                                  "locality" : {
                                    "title" : "city",
                                    "description" : "The name of the city or town.",
                                    "type" : "string"
                                  },
                                  "postalCode" : {
                                    "title" : "Postal Code",
                                    "description" : "The mailing postal code.",
                                    "type" : "string"
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "code" ]
                              } ]
                            }
                          },
                          "additionalProperties" : false,
                          "required" : [ "country" ]
                        }, {
                          "type" : "object",
                          "maxProperties" : 0
                        } ]
                      }
                    },
                    "additionalProperties" : false,
                    "required" : [ "addressLines" ]
                  }, {
                    "type" : "object",
                    "maxProperties" : 0
                  } ]
                } ]
              }
            },
            "additionalProperties" : false,
            "required" : [ "address" ]
          },
          "phones" : {
            "title" : "Phones",
            "description" : "The phones at which the contact can be reached",
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "contactAvailability" : {
                  "title" : "Contact Availability",
                  "description" : "The avaialbility of (best time to call) the contact on this number",
                  "oneOf" : [ {
                    "type" : "string",
                    "enum" : [ "day", "evening", "anytime" ]
                  }, {
                    "type" : "string",
                    "maxLength" : 0
                  } ]
                },
                "countryCallingCode" : {
                  "title" : "Country Calling Code",
                  "description" : "The country calling code of telephone and/or mobile device when dialing internationally.",
                  "oneOf" : [ {
                    "type" : "string",
                    "format" : "countryCallingCode",
                    "pattern" : "^\\+?[1-9][0-9]{0,3}$"
                  }, {
                    "type" : "string",
                    "maxLength" : 0
                  } ]
                },
                "number" : {
                  "title" : "Number",
                  "description" : "The number assigned to the phone.",
                  "type" : "string"
                },
                "extension" : {
                  "title" : "Extension",
                  "description" : "The extension used to connect to the phone when multiple phones share the same primary number.",
                  "type" : "string"
                }
              },
              "additionalProperties" : false,
              "required" : [ "number" ]
            }
          },
          "relationship" : {
            "title" : "Relationship",
            "description" : "The relationship between the subject person and the contact",
            "oneOf" : [ {
              "title" : "Relationship Type",
              "description" : "The entered name of the relationship type",
              "type" : "string"
            }, {
              "title" : "Relationship Type",
              "description" : "The pre-defined relationship type information",
              "oneOf" : [ {
                "type" : "object",
                "properties" : {
                  "type" : {
                    "title" : "Type",
                    "description" : "The type of the relationship",
                    "enum" : [ "parent", "stepParent", "mother", "stepMother", "father", "stepFather", "child", "stepChild", "daughter", "stepDaughter", "son", "stepSon", "sibling", "stepSibling", "brother", "stepBrother", "sister", "stepSister", "spouse", "wife", "partner", "grandParent", "grandMother", "grandFather", "grandChild", "grandDaughter", "grandSon", "parentInLaw", "motherInLaw", "fatherInLaw", "childInLaw", "daughterInLaw", "sonInLaw", "siblingInLaw", "sisterInLaw", "brotherInLaw", "siblingOfParent", "aunt", "uncle", "childOfSibling", "niece", "nephew", "cousin", "friend", "relative", "coworker", "neighbor", "classmate", "caregiver", "other" ],
                    "type" : "string"
                  },
                  "detail" : {
                    "title" : "Detail",
                    "description" : "The extension to the type of the relationship",
                    "oneOf" : [ {
                      "type" : "object",
                      "properties" : {
                        "id" : {
                          "title" : "ID",
                          "description" : "The global identifier for the Detail.",
                          "type" : "string",
                          "format" : "guid",
                          "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
                        }
                      },
                      "links" : [ {
                        "rel" : "self",
                        "href" : "/personal-relationship-types/{id}",
                        "targetSchema" : {
                          "$ref" : "personal-relationship-types.json#"
                        }
                      } ],
                      "additionalProperties" : false,
                      "required" : [ "id" ]
                    }, {
                      "type" : "object",
                      "maxProperties" : 0
                    } ]
                  }
                },
                "additionalProperties" : false,
                "required" : [ "type" ]
              }, {
                "type" : "object",
                "maxProperties" : 0
              } ]
            } ]
          },
          "priority" : {
            "title" : "Priority",
            "description" : "The priority number for the contact",
            "oneOf" : [ {
              "type" : "number",
              "minimum" : 0,
              "format" : "positiveInteger"
            }, {
              "type" : "null"
            } ]
          }
        },
        "additionalProperties" : false,
        "required" : [ "name", "types" ]
      }
    }
  },
  "required" : [ "id", "person" ],
  "additionalProperties" : false,
  "links" : [ {
    "rel" : "filter",
    "encType" : "application/x-www-form-urlencoded",
    "method" : "GET",
    "href" : "/person-contacts/",
    "schema" : {
      "type" : "object",
      "properties" : {
        "person" : {
          "description" : "The subject person to whom the contacts are related",
          "type" : "string",
          "format" : "guid",
          "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
        }
      }
    }
  } ]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy