{
  "id": "gsrn",
  "name": "Global Service Relation Number (GSRN)",
  "status": "draft",
  "doc": "GS1 identification key for the relationship between an organisation that offers a service and a person or party in that service: a provider of the service, such as a caregiver, or a recipient, such as a patient or a loyalty scheme member. Eighteen digits: a GS1 Company Prefix, a service reference and a GS1 check digit. Application Identifier (8017) carries the GSRN of a provider and (8018) the GSRN of a recipient; the element strings are the patterns gs1_ai_8017 and gs1_ai_8018. A GSRN usually identifies a person, so it is treated as personal data.",
  "categories": [
    {
      "id": "gs1",
      "name": "GS1 standards"
    },
    {
      "id": "pii",
      "name": "Personally identifiable information"
    }
  ],
  "langs": [
    {
      "id": "common",
      "name": "Common to most languages"
    }
  ],
  "is_pii": true,
  "classification": "identifier",
  "regexp": "^\\d{18}$",
  "checksum": "gs1_mod10",
  "examples": [
    {
      "value": "952876500003104257",
      "description": "Synthetic value with the GS1 demonstration prefix 952 and a valid check digit"
    },
    {
      "value": "952876510000005891",
      "description": "Synthetic value with the GS1 demonstration prefix 952 and a valid check digit"
    },
    {
      "value": "952876500003104258",
      "valid": false,
      "description": "Last digit changed: fails the GS1 check digit"
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://ref.gs1.org/ai/8017"
    },
    {
      "type": "doc",
      "url": "https://ref.gs1.org/ai/8018"
    },
    {
      "type": "doc",
      "url": "https://ref.gs1.org/standards/genspecs/"
    }
  ],
  "type": "datatype",
  "translations": {},
  "patterns": [
    {
      "id": "gs1_ai_8017",
      "name": "GSRN of a service provider (GS1 AI 8017)",
      "status": "draft",
      "doc": "GS1 element string of Application Identifier (8017): '8017' followed by the 18-digit GSRN that identifies the relationship between an organisation offering services and the provider of the services. GS1 format N4+N18. In the human-readable text under a barcode it is written as (8017) and the value.",
      "semantic_type": "gsrn",
      "langs": [
        {
          "id": "common",
          "name": "Common to most languages"
        }
      ],
      "regexp": "^8017\\d{18}$",
      "examples": [
        {
          "value": "8017952876500003104257",
          "description": "Synthetic value with the GS1 demonstration prefix 952"
        },
        {
          "value": "8017952876510000005891",
          "description": "Synthetic value with the GS1 demonstration prefix 952"
        },
        {
          "value": "801795287650000310425",
          "valid": false,
          "description": "Seventeen digits"
        }
      ],
      "mappings": {
        "gs1_ai": "8017"
      },
      "links": [
        {
          "type": "doc",
          "url": "https://ref.gs1.org/ai/8017"
        }
      ],
      "type": "pattern",
      "is_pii": true,
      "categories": [
        {
          "id": "gs1",
          "name": "GS1 standards"
        },
        {
          "id": "pii",
          "name": "Personally identifiable information"
        }
      ],
      "classification": "identifier",
      "translations": {}
    },
    {
      "id": "gs1_ai_8018",
      "name": "GSRN of a service recipient (GS1 AI 8018)",
      "status": "draft",
      "doc": "GS1 element string of Application Identifier (8018): '8018' followed by the 18-digit GSRN that identifies the relationship between an organisation offering services and the recipient of the services. GS1 format N4+N18. In the human-readable text under a barcode it is written as (8018) and the value.",
      "semantic_type": "gsrn",
      "langs": [
        {
          "id": "common",
          "name": "Common to most languages"
        }
      ],
      "regexp": "^8018\\d{18}$",
      "examples": [
        {
          "value": "8018952876500003104257",
          "description": "Synthetic value with the GS1 demonstration prefix 952"
        },
        {
          "value": "8018952876510000005891",
          "description": "Synthetic value with the GS1 demonstration prefix 952"
        },
        {
          "value": "801895287650000310425",
          "valid": false,
          "description": "Seventeen digits"
        }
      ],
      "mappings": {
        "gs1_ai": "8018"
      },
      "links": [
        {
          "type": "doc",
          "url": "https://ref.gs1.org/ai/8018"
        }
      ],
      "type": "pattern",
      "is_pii": true,
      "categories": [
        {
          "id": "gs1",
          "name": "GS1 standards"
        },
        {
          "id": "pii",
          "name": "Personally identifiable information"
        }
      ],
      "classification": "identifier",
      "translations": {}
    }
  ]
}