Netherlands - Generic Functions for data exchange Implementation Guide
0.3.0 - ci-build
Netherlands
Netherlands - Generic Functions for data exchange Implementation Guide, published by Stichting Nuts. This guide is not an authorized publication; it is the continuous build for version 0.3.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/nuts-foundation/nl-generic-functions-ig/ and changes regularly. See the Directory of published versions
This specification specifies the DeziIDTokenCredential and includes steps to create and verify the credential.
The credential is a non-standard credential since it wraps the Dezi attestation (in Dutch: "verklaring") from the OIDC user info object and allows a verifier to interact with it like it is a verifiable credential. This allows the information from Dezi to be combined with other credentials during the authentication proces. Ideally the issuer will in time issues the information in a VC format which will makes this specifiation obsolete.
Purpose: Assert the identity of a Dezi entity (user) and its relationship to a healthcare provider.
Issuer: Dezi
Subject: The healthcare provider in the role of employer to the Dezi person.
Status: draft
Terminology:
| Claim | Code or system |
|---|---|
HealthcareProvider.identifier |
Abonnee nummer (URA - UZI Register Abonneenummer) identifying the healthcare organization. OID: 2.16.528.1.1007.3.3 |
Employee.identifier |
Dezi-nummer identifying the healthcare worker. OID: 2.16.528.1.1007.3.1 |
Employee.roles |
valueset RoleCodeNL for care givers |
The credential expresses the following graph structure:
graph TD
VC[DeziIDTokenCredential]
VC -->|credentialSubject| HP[HealthcareProvider]
HP -->|id| DID["did:web:za1.example"]
HP -->|identifier| URA["87654321 (URA)"]
HP -->|name| NAME["Zorgaanbieder"]
HP -->|employs| HW[HealthcareWorker]
HW -->|identifier| UZI["900000009 (UZI/Dezi-nummer)"]
HW -->|initials| INIT["B.B."]
HW -->|surnamePrefix| PRE["van der"]
HW -->|surname| SUR["Jansen"]
HW -->|roles| ROLES["01.041, ... (RoleCodeNL)"]
The following is a non-normative example of a DeziIDTokenCredential.
It asserts that Healthcare Provider Medisch centrum (URA 87654321) employs B.B. van der Jansen with Dezi-nummer 900000009 in the role of Reumatoloog.
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://example.org/contexts/dezi/v1"
],
"type": ["VerifiableCredential", "DeziIDTokenCredential"],
"issuer": "did:web:dezi.nl",
"validFrom": "2024-11-21T11:59:36Z",
"validUntil": "2025-02-21T11:59:36Z",
"credentialSubject": {
"@type": "HealthcareProvider",
"id": "did:web:medischcentrum.example",
"identifier": "87654321",
"name": "Medisch centrum",
"employee": {
"@type": "HealthcareWorker",
"identifier": "900000009",
"initials": "B.B.",
"surnamePrefix": "van der",
"surname": "Jansen",
"roles": ["01.041"]
}
},
"proof": {
"type": "DeziIDJWT07",
"jwt": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjMyNWRlOWFiLTQzMzAtNGMwMS04MjRlLWQ5YmQwYzM3Y2NhMCIsImprdSI6Imh0dHBzOi8vYXV0aC5kZXppLm5sL2p3a3MuanNvbiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI2MWIxZmFmYy00ZWM3LTQ0ODktYTI4MC04ZDBhNTBhM2Q1YTkiLCJpc3MiOiJhYm9ubmVlLmRlemkubmwiLCJleHAiOjE3NDAxMzExNzYsIm5iZiI6MTczMjE4MjM3NiwianNvbl9zY2hlbWEiOiJodHRwczovL3d3dy5kZXppLm5sL2pzb25fc2NoZW1hcy92MS92ZXJrbGFyaW5nLmpzb24iLCJsb2FfZGV6aSI6Imh0dHA6Ly9laWRhcy5ldXJvcGUuZXUvTG9BL2hpZ2giLCJ2ZXJrbGFyaW5nX2lkIjoiODUzOWY3NWQtNjM0Yy00N2RiLWJiNDEtMjg3OTFkZmQxZjhkIiwiZGV6aV9udW1tZXIiOiI5MDAwMDAwMDkiLCJ2b29ybGV0dGVycyI6IkIuQi4iLCJ2b29ydm9lZ3NlbCI6InZhbiBkZXIiLCJhY2h0ZXJuYWFtIjoiSmFuc2VuIiwiYWJvbm5lZV9udW1tZXIiOiI4NzY1NDMyMSIsImFib25uZWVfbmFhbSI6Ik1lZGlzY2ggY2VudHJ1bSIsInJvbF9jb2RlIjoiMDEuMDQxIiwicm9sX25hYW0iOiJSZXVtYXRvbG9vZyIsInJvbF9jb2RlX2Jyb24iOiJodHRwOi8vd3d3LmRlemkubmwvcm9sX2NvZGVfYnJvbi9iaWciLCJzdGF0dXNfdXJpIjoiaHR0cHM6Ly9hdXRoLmRlemkubmwvc3RhdHVzL3YxL3ZlcmtsYXJpbmcvODUzOWY3NWQtNjM0Yy00N2RiLWJiNDEtMjg3OTFkZmQxZjhkIn0.SIGNATURE"
}
}
To create a DeziIDTokenCredential from a Dezi attestation, perform the following mapping:
| Credential field | Source | Description |
|---|---|---|
@context |
Static | Always ["https://www.w3.org/ns/credentials/v2", "https://example.org/contexts/dezi/v1"] |
type |
Static | Always ["VerifiableCredential", "DeziIDTokenCredential"] |
issuer |
jwt.iss |
The Dezi issuer, represented as a URL (e.g., abonnee.dezi.nl) |
validFrom |
jwt.nbf |
Convert epoch timestamp to ISO 8601 datetime |
validUntil |
jwt.exp |
Convert epoch timestamp to ISO 8601 datetime |
credentialSubject.id |
Derived | DID representing the healthcare provider |
credentialSubject.identifier |
jwt.abonnee_nummer |
Abonnee nummer (URA) of the healthcare provider |
credentialSubject.name |
jwt.abonnee_naam |
Name of the healthcare organization |
credentialSubject.employee.identifier |
jwt.dezi_nummer |
The healthcare worker's Dezi number |
credentialSubject.employee.initials |
jwt.voorletters |
Initials of the healthcare worker |
credentialSubject.employee.surnamePrefix |
jwt.voorvoegsel |
Surname prefix |
credentialSubject.employee.surname |
jwt.achternaam |
Family name of the healthcare worker |
credentialSubject.employee.roles |
jwt.rol_code |
Single role code as an array (in v0.7 each attestation contains one role) |
proof.type |
Static | Always DeziIDJWT07 (the 07 suffix indicates Dezi v0.7 specification) |
proof.jwt |
Input | The original signed attestation JWT from Dezi userinfo endpoint |
Notes on creation:
rol_code). If a healthcare worker has multiple roles, multiple attestations will be issued.Validation of this credential is non-typical since the issuer does not issue the credential itself but a signed attestation.
The proof.type of this credential is a custom DeziIDJWT07 where the 07 suffix indicates that it contains an attestation JWT as specified in the Dezi v0.7 specification.
Validation consists of the following steps:
jku header claim, expiration checks, etc.)| Credential path | JWT path | Validation rule |
|---|---|---|
vc.issuer |
jwt.iss |
Must match (after DID resolution if applicable) |
vc.validFrom |
jwt.nbf |
Must be equal (converted to epoch) |
vc.validUntil |
jwt.exp |
Must be equal (converted to epoch) |
vc.credentialSubject.identifier |
jwt.abonnee_nummer |
Must match the abonnee nummer |
vc.credentialSubject.name |
jwt.abonnee_naam |
Must match the abonnee name |
vc.credentialSubject.employee.identifier |
jwt.dezi_nummer |
Must be equal |
vc.credentialSubject.employee.initials |
jwt.voorletters |
Must be equal |
vc.credentialSubject.employee.surnamePrefix |
jwt.voorvoegsel |
Must be equal (both may be null) |
vc.credentialSubject.employee.surname |
jwt.achternaam |
Must be equal |
vc.credentialSubject.employee.roles |
jwt.rol_code |
Must contain the rol_code from the attestation (as single item) |
Normally, VCs bind to a subject through credentialSubject.id, typically a DID that the holder can prove control over (for example, by including the credential in a Verifiable Presentation and signing the VP with an assertion key associated with the DID). This credential differs: Dezi does not verify or include credentialSubject.id in the JWT. The binding is instead through credentialSubject.identifier (the URA code).
To establish proof of possession, the verifier must:
This means DeziIDTokenCredential cannot be used standalone for authentication. It must be presented alongside a credential that binds the holder's DID to the healthcare provider identifier (URA).
It also means credentialSubject.identifier (the URA) in this credential cannot be treated as a verified claim about the healthcare provider. It is included for structural compatibility with the VC data model, but carries no cryptographic assurance from Dezi.
This credential can only be expressed using JSON or JSON-LD encoding with a custom DeziIDJWT07 proof type (where 07 indicates Dezi v0.7). Unlike standard VC proofs, the proof does not contain a signature over the credential. Instead, it embeds the original Dezi attestation:
{
"proof": {
"type": "DeziIDJWT07",
"jwt": "eyJhbGciOiJSUzI1NiIs..."
}
}
Authenticity is established by validating the embedded attestation JWT according to Dezi specifications, then verifying that credential claims match the JWT claims.
Why not JWT encoding? The VC Data Model 1.1 JWT encoding requires the credential issuer to sign the JWT. Since the Dezi attestation is obtained from the OIDC userinfo endpoint (not as a VC-JWT) and we cannot control its structure, we wrap it instead.
Since this proof is non-standard, VC libraries might not be able to validate it out of the box and custom validation is required. Also, since claims appear in both the credential and the embedded attestation JWT, the validation needs to check for consistency between the two.