# `IDUtils.Schemes.ORCID`
[🔗](https://github.com/moefuerst/id_utils/blob/v0.1.0/lib/id_utils/schemes/orcid.ex#L1)

ORCID (Open Researcher and Contributor ID) scheme.

See https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier

> #### ORCID and ISNI {: .info}
> ORCID’s format is compatible with ISO 27729 that standardises ISNI. ORCID, Inc., the governing
> nonprofit, is an accredited ISNI Registration Agency, and two reserved numeric blocks within
> the ISNI range are dedicated to ORCID-issued identifiers. ORCIDs are frequently matched into
> corresponding ISNI records, however, there is no guarantee
> [(see)](https://casrai.org/guides/isni-identifier-explained-vs-orcid).

# `build_uri`

Builds a URI for the given ORCID.

## Examples

    iex> IDUtils.Schemes.ORCID.build_uri("0000-0002-1825-0097")
    {:ok, %URI{scheme: "https", host: "orcid.org", path: "/0000-0002-1825-0097", port: 443}}

# `match?`

Checks whether a string is an ORCID.

## Examples

    iex> IDUtils.Schemes.ORCID.match?("0000-0002-1825-0097")
    true

    iex> IDUtils.Schemes.ORCID.match?("https://orcid.org/0000-0002-1694-233X")
    true

    iex> IDUtils.Schemes.ORCID.match?("0000 0002 1825 0097")
    true

    iex> IDUtils.Schemes.ORCID.match?("0008-9999-9999-9996")
    false

# `normalize`

Normalizes an ORCID.

## Examples

    iex> IDUtils.Schemes.ORCID.normalize("0000-0002-1825-0097")
    {:ok, "0000-0002-1825-0097"}

    iex> IDUtils.Schemes.ORCID.normalize("0000000218250097")
    {:ok, "0000-0002-1825-0097"}

    iex> IDUtils.Schemes.ORCID.normalize("0000 0002 1825 0097")
    {:ok, "0000-0002-1825-0097"}

    iex> IDUtils.Schemes.ORCID.normalize("https://orcid.org/0000-0002-1825-0097")
    {:ok, "0000-0002-1825-0097"}

    iex> IDUtils.Schemes.ORCID.normalize("not-an-orcid")
    {:error, :invalid_identifier}

---

*Consult [api-reference.md](api-reference.md) for complete listing*
