All Projects → ehn-dcc-development → ehn-dcc-schema

ehn-dcc-development / ehn-dcc-schema

Licence: Apache-2.0 License
Schema for the ehn DCC payload

Programming Languages

Makefile
30231 projects
python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to ehn-dcc-schema

shared-row
This is an open data specification for describing the right-of-way (ROW) for street centerline networks. It is intended to establish a common set of attributes (schema) to describe how space is allocated along a streets right of way from sidewalk edge to sidewalk edge.
Stars: ✭ 16 (-89.4%)
Mutual labels:  specification
aoc-mgx-format
Age of Empires: The Conquerors - Savegame File Format
Stars: ✭ 56 (-62.91%)
Mutual labels:  specification
specification
Software Bill of Material (SBOM) standard designed for use in application security contexts and supply chain component analysis
Stars: ✭ 129 (-14.57%)
Mutual labels:  specification
Crypto-API-Rules
This repository contains all CrySL rules currently used in the crypto assistant CogniCrypt.
Stars: ✭ 16 (-89.4%)
Mutual labels:  specification
ehn-dcc-valuesets
EU eHealthNetwork value sets as referenced by the EU Digital COVID Certificate (DCC) JSON Schema
Stars: ✭ 26 (-82.78%)
Mutual labels:  specification
compose-ref
Compose specification reference implementation
Stars: ✭ 69 (-54.3%)
Mutual labels:  specification
performance-timeline
Performance Timeline
Stars: ✭ 102 (-32.45%)
Mutual labels:  specification
matroska-specification
Matroska specification.
Stars: ✭ 98 (-35.1%)
Mutual labels:  specification
vscode-tlaplus
TLA+ language support for Visual Studio Code
Stars: ✭ 213 (+41.06%)
Mutual labels:  specification
eggplant
A behaviour driven development (BDD) library for Clojure. Simplicity is key.
Stars: ✭ 16 (-89.4%)
Mutual labels:  specification
box-openapi
OpenAPI 3.0 Specification for the Box APIs
Stars: ✭ 71 (-52.98%)
Mutual labels:  specification
spec
Spezifikation für eine offene Schnittstelle für Ratsinformationssysteme
Stars: ✭ 56 (-62.91%)
Mutual labels:  specification
dgc-business-rules
eHealth collaboration space business rules
Stars: ✭ 23 (-84.77%)
Mutual labels:  specification
hr-time
High Resolution Time
Stars: ✭ 43 (-71.52%)
Mutual labels:  specification
ntast
Notion Abstract Syntax Tree specification.
Stars: ✭ 101 (-33.11%)
Mutual labels:  specification
data-interoperability-panel
Repository for the Solid Data Interoperability Panel
Stars: ✭ 46 (-69.54%)
Mutual labels:  specification
xapi-profiles
A set of documents addressing the structure of and supporting services for xAPI Profiles.
Stars: ✭ 47 (-68.87%)
Mutual labels:  specification
hitchstory
Type-safe, StrictYAML based BDD framework for python.
Stars: ✭ 24 (-84.11%)
Mutual labels:  specification
asl-interpreter
Example implementation of Arm's Architecture Specification Language (ASL)
Stars: ✭ 78 (-48.34%)
Mutual labels:  specification
biolink-model
Schema and generated objects for biolink data model and upper ontology
Stars: ✭ 83 (-45.03%)
Mutual labels:  specification

Digital Covid Certificate Schema

This repository contains a JSON schema for the EU Digital Covid Certificate.

Schema version: 1.3.0 Release date: 2020-06-11

Introduction

The Digital Covid Certificate (DCC) JSON schema is provided as a mechanism for supporting the serialization and deserialization of the DCC payload, initially with focus on generation of a 2D barcode (QR Code).

The schema is intended to support different use cases that EU Member States require. The schema shall also support conformity to the EU legislation regarding what shall present in a certificate to ensure freedom of movement within EU Member States and also to allow interoperability with countries outside of the EU zone.

The schema in conjunction with business rules (which may also be specific to a Member State) shall ensure conformity to the EU legislation, whereby the burden of conformity lies with the business rules and the DCC JSON schema plays a supporting role in allowing the data to be serialized and deserialized in a flexible, yet structured, manner.

Schema files

The main schema file is:

With the definitions in:

For easy testing, they are combined in:

The rule labeled as $(MERGED_SCHEMA) in the Makefile makes this target by combining the 4 schema files (“schemata”) mentioned above into one schema file, and also reformatting and validating it. The merge.sh script does the same, but without reformatting and validating the resulting JSON. This can be useful for development purposes, but make sure to also run make prior to committing.

Note: the first 4, non-combined schema files are always leading.

Value sets

The value set JSON files MUST validate against the valueset.json schema file. The value set file test-manf.json can be generated by running the following CLI command:

$ source valuesets/source-update/update-rat.sh > valuesets/test-manf.json

The update-rat.sh shell script retrieves the required information from https://covid-19-diagnostics.jrc.ec.europa.eu/. This is primarily meant as a tool for whoever is managing the governance of the central deployment. In particular, this script is not (to be) run by the Makefile, nor the CI.

Implementation Notes

A list of Frequently Asked Questions for implementors can be found in the repository wiki.

Prerequisites

The Makefile assumes that the following tools are installed, and are available on the shell's path:

The Makefile also relies on the ajv JSON Schema validator, which is installed by the install-ajv rule in the Makefile:

$ make install-ajv

Examples and test cases

The examples and the test cases can be validated with ajv by using the following commands.

To validate all of the examples:

make validate-examples

..and all of expected valid tests:

make validate-valid-tests

..and all of the expected invalid tests:

make validate-invalid-tests
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].