npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@cef-ebsi/compact-credentials-prc-schema

v1.0.0

Published

Provisional Replacement Certificate (PRC) of the European Health Insurance Card (EHIC) Data Model

Readme

EBSI Logo

@cef-ebsi/compact-credentials-prc-schema

Provisional Replacement Certificate (PRC) of the European Health Insurance Card (EHIC) Data Model

No description provided.

The schema is published to the Trusted Schemas Registry with the IDs:

  • 0x4561e0799c29aa369d3113267a77ff523cac3c16544117f7983c2af5a7e21b45 (hexadecimal)
  • z5fqhFPcuBeYZHnUbibhmtxDdoPhv4husBnvX4g5g8CeG (multibase base58btc)

Table of Contents

JSON Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Provisional Replacement Certificate (PRC) of the European Health Insurance Card (EHIC) Data Model",
  "type": "object",
  "required": ["sid", "prc"],
  "properties": {
    "jti": {
      "description": "Unique token identifier",
      "type": "string"
    },
    "sid": {
      "description": "Schema ID. Version/ID number pointing to the JSON schema for the JWT Payload.  Major.Minor",
      "type": "string",
      "pattern": "^eessi:prc:\\d+\\.\\d+$"
    },
    "prc": {
      "$ref": "#/$defs/prc"
    },
    "rid": {
      "description": "Revocation list id",
      "type": "string",
      "format": "uri"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "prc": {
      "description": "Schema for validating the structure and values of a PRC",
      "type": "object",
      "required": ["ic", "fn", "gn", "dob", "hi", "in", "ii", "sd", "ed", "di"],
      "properties": {
        "ic": {
          "$ref": "#/$defs/cardIssuerCountry"
        },
        "fn": {
          "type": "string",
          "title": "Family Name",
          "description": "Family name of the holder.",
          "maxLength": 40
        },
        "gn": {
          "type": "string",
          "title": "Given Name",
          "description": "Given name of the holder.",
          "maxLength": 35
        },
        "dob": {
          "type": "string",
          "title": "Date of Birth",
          "description": "Date of birth in ISO 8601 format. Allows absence of exact day or month (e.g., yyyy-00-00, yyyy-mm-00).",
          "pattern": "^[0-9]{4}-(0[0-9]|1[0-2]|00)-(0[0-9]|[1-2][0-9]|3[0-1]|00)$"
        },
        "hi": {
          "type": "string",
          "title": "Holder Identification Number",
          "description": "Personal identification number of the cardholder.",
          "maxLength": 20
        },
        "in": {
          "type": "string",
          "title": "Institution Name",
          "description": "Name of the issuing institution. Combined with 'ii' must not exceed 25 characters.",
          "maxLength": 21
        },
        "ii": {
          "type": "string",
          "title": "Institution Identification Number",
          "description": "Identification number of the institution issuing the card.",
          "minLength": 4,
          "maxLength": 10
        },
        "ci": {
          "type": "string",
          "title": "Card Identification Number",
          "description": "EHIC card ID = Institution ID (4-10) + Card Serial Number (10). Optional for PRCs without EHIC.",
          "maxLength": 20
        },
        "sd": {
          "type": "string",
          "format": "date",
          "title": "Entitlement Start Date",
          "description": "Start date of PRC entitlement. Must be in ISO 8601 format (yyyy-mm-dd)."
        },
        "ed": {
          "type": "string",
          "format": "date",
          "title": "Entitlement End Date",
          "description": "End date of PRC entitlement. Must be in ISO 8601 format (yyyy-mm-dd)."
        },
        "xd": {
          "type": "string",
          "format": "date",
          "title": "PRC Expiry Date",
          "description": "Expiry date of PRC, if present. Must be in ISO 8601 format (yyyy-mm-dd)."
        },
        "di": {
          "type": "string",
          "format": "date",
          "title": "Date of Issuance",
          "description": "Date of issuance of the PRC. Must be in ISO 8601 format (yyyy-mm-dd)."
        }
      },
      "additionalProperties": false
    },
    "cardIssuerCountry": {
      "type": "string",
      "title": "Card Issuer Country",
      "description": "Country code of the card issuer.",
      "enum": [
        "AT",
        "BE",
        "BG",
        "HR",
        "CY",
        "CZ",
        "DK",
        "EE",
        "FI",
        "FR",
        "DE",
        "GR",
        "HU",
        "IE",
        "IT",
        "LV",
        "LT",
        "LU",
        "MT",
        "NL",
        "PL",
        "PT",
        "RO",
        "SK",
        "SI",
        "ES",
        "SE",
        "IS",
        "LI",
        "NO",
        "CH",
        "UK"
      ]
    }
  }
}

Installation

# with npm
npm add @cef-ebsi/[email protected]

# with Yarn
yarn add @cef-ebsi/[email protected]

# with pnpm
pnpm add @cef-ebsi/[email protected]

Usage

The package exports the schema and its metadata as JavaScript objects:

import { schema, metadata } from "@cef-ebsi/compact-credentials-prc-schema";

// you can now use the schema and metadata

In addition, the package exports a TypeScript type corresponding to the schema:

import type { ProvisionalReplacementCertificatePRCOfTheEuropeanHealthInsuranceCardEHICDataModel } from "@cef-ebsi/compact-credentials-prc-schema";

License

Copyright (C) 2024 European Union

This program is free software: you can redistribute it and/or modify it under the terms of the EUROPEAN UNION PUBLIC LICENCE v. 1.2 as published by the European Union.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the EUROPEAN UNION PUBLIC LICENCE v. 1.2 for further details.

You should have received a copy of the EUROPEAN UNION PUBLIC LICENCE v. 1.2. along with this program. If not, see https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12.