Functional Specifications¶
Hypothesis¶
The design of this interface is based on the following assumptions:
- All persons recorded in CR have a UIN. The UIN can be used as a key to access person data for all records.
- All persons recorded in CI have a UIN. The UIN can be used as a key to access person data for all records.
- The CR and CI are both considered as centralized systems that are connected. If CR is architectured in a decentralized way, and it is often the case, one of its component must be centralized, connected to the network, and in charge of the exchanges with CI.
- Since all instances of CR and CI are customized for each business needs, dictionaries must be explicitly defined to describe the attributes, the event types, and the document types. See Dictionaries for the mandatory elements of those dictionaries.
- The relationship parent/child is not mandatory in CI. A CI implementation may manage this relationship or may ignore it and rely on CR to manage it.
- All persons are stored in CI. There is no record in CR that is not also in CI.
- The interface does not expose biometric services. Usage of biometrics is optional and is described in other standards already defined.
Concepts¶
To be completed
Interface¶
Functions/Sevices¶
This chapter describes in pseudo code the services defined between CR and CI. There three categories of services:
- UIN management. This service can be implemented by CI, by CR or by another system. We will consider it is provided by a system called UIN Generator.
- Notifications. When data is changed, a notification is sent and received by systems that registered for this type of events. For instance, CI can register for the events birth emitted by CR.
- Data access. A set of services to access data.
UIN Management¶
-
createUIN
(attributes)¶ Generate a new UIN.
Parameters: attributes (list[(str,str)]) – A list of pair (attribute name, value) that can be used to allocate a new UIN Returns: a new UIN or an error if the generation is not possible
This service is synchronous.
Notifications¶
-
notify
(type, UIN)¶ Notify of a new event all systems that subscribed to this event
Parameters: - type (str) – Event type
- UIN (list[str]) – Records affected by the event
Returns: N/A
This service is asynchronous.
Note
Notifications are possible after the receiver has subscribed to an event.
Data Access¶
-
getPersonAttributes
(UIN, names)¶ Retrieve person attributes.
Parameters: - UIN (str) – The person’s UIN
- names (list[str]) – The names of the attributes requested
Returns: a list of pair (name,value). In case of error (unknown attributes, unauthorized access, etc.) the value is replaced with an error
This service is synchronous. It can be used to retrieve attributes from CR or from CI.
-
matchPersonAttributes
(UIN, attributes)¶ Match person attributes. This service is used to check the value of attributes without exposing private data
Parameters: - UIN (str) – The person’s UIN
- attributes (list[(str,str)]) – The attributes to match. Each attribute is described with its name and the expected value
Returns: If all attributes match, a Yes is returned. If one attribute does not match, a No is returned along with a list of (name,reason) for each non-matching attribute.
This service is synchronous. It can be used to match attributes in CR or in CI.
-
verifyPersonAttributes
(UIN, expressions)¶ Evaluate expressions on person attributes. This service is used to evaluate simple expressions on person’s attributes without exposing private data
Parameters: - UIN (str) – The person’s UIN
- expressions (list[(str,str,str)]) – The expressions to evaluate. Each expression is described with the attribute’s name, the operator (one of
<
,>
,=
,>=
,<=
) and the attribute value
Returns: A Yes if all expressions are true, a No if one expression is false, a Unknown if To be defined
This service is synchronous. It can be used to verify attributes in CR or in CI.
-
getPersonUIN
(attributes)¶ Retrieve UIN based on a set of attributes. This service is used when the UIN is unknown.
Parameters: attributes (list[(str,str)]) – The attributes to be used to find UIN. Each attribute is described with its name and its value Returns: a list of matching UIN
This service is synchronous. It can be used to get the UIN of a person.
-
getDocument
(UINs, documentType, format)¶ Retrieve in a selected format (PDF, image, …) a document such as a marriage certificate.
Parameters: - UIN (list[str]) – The list of UINs for the persons concerned by the document
- documentType (str) – The type of document (birth certificate, etc.)
- format (str) – The format of the returned/requested document
Returns: The list of the requested documents
This service is synchronous. It can be used to get the documents for a person.
Dictionaries¶
Attributes¶
Attribute Name | In CR | In CI | Description |
---|---|---|---|
UIN | ✔ | ✔ | |
first name | ✔ | ✔ | |
last name | ✔ | ✔ | |
spouse name | ✔ | ✔ | |
date of birth | ✔ | ✔ | |
place of birth | ✔ | ✔ | |
gender | ✔ | ✔ | |
date of death | ✔ | ✔ | |
place of death | ✔ | ||
reason of death | ✔ | ||
status | ✔ | Example: missing, wanted, dead, etc. |
Attribute Name | In CR | In CI | Description |
---|---|---|---|
officer name | ✔ | ||
number | ✔ | ||
date | ✔ | ||
place | ✔ | ||
type | ✔ |
Attribute Name | In CR | In CI | Description |
---|---|---|---|
date of union | ✔ | ||
place of union | ✔ | ||
conjoint1 UIN | ✔ | ||
conjoint2 UIN | ✔ | ||
date of divorce | ✔ |
Attribute Name | In CR | In CI | Description |
---|---|---|---|
parent1 UIN | ✔ | ||
parent2 UIN | ✔ |
Use Cases¶
Birth Use Case¶
Checks
When a request is submitted, the CR may run checks against the data available in the CI using:
matchPersonAttributes
: to check the exactitude of the parents’ attributes as known in the CIgetPersonAttributes
: to get missing data about the parents’s identitygetPersonUIN
: to check if the new born is already known to CI or not
How the CR will process the request in case of data discrepancy is specific to each CR implementation and not in the scope of this document.
Creation
The birth is registered in the CR. The first step after the checks is to generate a new UIN a call to
createUIN
.Notification
As part of the birth registration, it is the responsibility of the CR to notify other systems, including the CI, of this event using:
notify
: to send a birth along with the newUIN
.
The CI, upon reception of the birth event, will update the identity registry with this new identity using:
getPersonAttributes
: to get the attributes of interest to the CI for the parents and the new child.
Death Use Case¶
To be completed
Fœtal Death Use Case¶
To be completed
Marriage Use Case¶
To be completed
Divorce Use Case¶
To be completed
Annulment Use Case¶
To be completed
Separation Use Case¶
To be completed
Adoption Use Case¶
To be completed
Legitimation Use Case¶
To be completed
Recognition Use Case¶
To be completed
Change of Name/Gender Use Case¶
To be completed
Transcription Use Case¶
To be completed
Change of Nationality Use Case¶
(To be confirmed)
Deduplication¶
During the lifetime of a registry, it is possible that duplicates are detected. This can happen for instance after the addition of biometrics in the system. When a registry considers that two records are actually the same and decides to merge them, a notification must be sent.
How the target of the notification should react is specific to each subsystem.