Passport Templates & Requirements

What each passport type asks for: field obligations, hidden fields and creation defaults, layered from shipped defaults to deployment and tenant overrides.

What a template is

When the editor marks a field mandatory, counts "6 of 8 requirements met" or pre-fills a value on a new record, it takes that information from the record's passport template. A template is a machine-readable description of what a passport type asks for. Each type has one template, and everything that guides data entry is derived from it.

The obligations come from regulation, which changes over time and differs between deployments, so they are kept in templates as configuration. A battery passport's mandatory fields are set by the EU Battery Regulation. A company may additionally decide that its battery passports always carry an internal article number, and one tenant may hide fields that another one needs. Templates handle all of this in three layers:

  1. Shipped defaults come with the ontology pipeline (the dpp-ready release, whose version is stamped on the page). They encode what the regulation actually says, with every obligation traceable to its clause.
  2. The deployment-wide layer adjusts them for the whole installation.
  3. The tenant layer adjusts them per tenant.

Each layer only records its differences from the one below. When a new dpp-ready release updates the regulatory baseline, your overrides survive and are re-applied on top of the new defaults.

Templates decide what a passport asks for. Who may see an entered value is handled separately by Field Access.

The requirements matrix

Passport Templates shows one template at a time. Pick the scope (product, organization or place) and the template. The tenant field selects the layer you are editing; leave it empty to work on the deployment-wide layer.

Figure 1: The battery template with obligations, effective state, creation defaults and the regulatory clause each requirement comes from

Each row is one vocabulary term. Read from left to right, it answers what the regulation says, what you have decided, and what a new record starts with.

The shipped default column shows the obligation as the profile ships it, either Mandatory or Recommended, and the clause column cites its source, for example Battery Regulation (EU) 2023/1542 Art. 77(3). When an auditor asks why your form demands a field, the answer is on the screen.

The effective column is where you make changes. Besides confirming the default, you can make a field Mandatory or Recommended yourself, withdraw a recommendation (Optional — withdrawn) or remove the field from the generated form entirely (Hidden — not in form). Hiding suits fields that never apply in your business and keeps the form free of fields that would always stay empty.

The creation default column pre-fills new records. You edit it with the same field widget the editor uses, entering a measurement default as value plus unit and a code-list default through the picker, so a default is always a value the field itself accepts.

You can also add terms the template does not mention. Search vocabulary terms… adds any term of the vocabulary as a new row, starting as Recommended. This is how a company-specific requirement such as the internal article number enters the template without touching any code.

The effective template

The live preview next to the matrix shows the effective template, the merged result of shipped defaults and your overrides, as JSON with Copy and Download. It is the exact artifact the editor consumes, so the preview is the fastest way to check a change before anyone creates a record under it.

Figure 2: The merged template as JSON, exactly as the editor consumes it

If you have tuned a tenant's template and want the same rules elsewhere, Copy overrides to another scope carries them over without re-clicking every row.

How templates meet the editor

For the person entering data, templates show up as guidance in the editor. Mandatory fields are required and named in the readiness panel when missing. Recommended fields carry a badge and count toward "m of n requirements met", and they never block a save, because compliance is a state you work towards while saving work in progress stays possible. Hidden fields do not appear, and creation defaults are already filled in when the form opens.

Editing templates requires the dpp-admin role. Every signed-in user can review them read-only, so anyone can look up in the matrix why the form behaves as it does.

Last updated: