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

src.cdm.base.staticdata.party.PersonIdentifier.py Maven / Gradle / Ivy

There is a newer version: 6.0.0-dev.89
Show newest version
# pylint: disable=line-too-long, invalid-name, missing-function-docstring
# pylint: disable=bad-indentation, trailing-whitespace, superfluous-parens
# pylint: disable=wrong-import-position, unused-import, unused-wildcard-import
# pylint: disable=wildcard-import, wrong-import-order, missing-class-docstring
# pylint: disable=missing-module-docstring
from __future__ import annotations
from typing import List, Optional
import datetime
import inspect
from decimal import Decimal
from pydantic import Field
from rosetta.runtime.utils import (
    BaseDataClass, rosetta_condition, rosetta_resolve_attr
)
from rosetta.runtime.utils import *

__all__ = ['PersonIdentifier']


class PersonIdentifier(BaseDataClass):
    """
    Comprises an identifier and a source. The associated metadata key denotes the ability to associate a hash value to the PersonIdentifier instantiations for the purpose of model cross-referencing, in support of functionality such as the event effect and the lineage.
    """
    identifier: AttributeWithMeta[str] | str = Field(..., description="Provides an identifier associated with a person. The identifier is unique within the public source specified in the source attribute.")
    """
    Provides an identifier associated with a person. The identifier is unique within the public source specified in the source attribute.
    """
    identifierType: Optional[cdm.base.staticdata.party.PersonIdentifierTypeEnum.PersonIdentifierTypeEnum] = Field(None, description="Defines the source of the identifier.")
    """
    Defines the source of the identifier.
    """
    country: Optional[AttributeWithMeta[str] | str] = Field(None, description="The ISO 3166 standard code for the country issuing the identifier.")
    """
    The ISO 3166 standard code for the country issuing the identifier.
    """

import cdm 
import cdm.base.staticdata.party.PersonIdentifierTypeEnum




© 2015 - 2025 Weber Informatics LLC | Privacy Policy