Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 5f552ea9 authored by John YATES's avatar John YATES
Browse files

EBSISD-2586 - EHIC Initial Schema

parent 33dfcb0b
No related branches found
No related tags found
1 merge request!40EBSISD-2586 - EHIC Initial Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://SCHEMALOCATION/schemas/ehic",
"type": "object",
"unevaluatedProperties": false,
"properties": {
"countryData": {
"type": "object",
"unevaluatedProperties": false,
"properties": {
"cardName": {
"$ref": "#/$defs/EHICCardNameType"
},
"issuingState": {
"$ref": "#/$defs/EHICIssuingStateType"
}
},
"required": [
"cardName",
"issuingState"
]
},
"cardHolder": {
"type": "object",
"unevaluatedProperties": false,
"properties": {
"name": {
"$ref": "#/$defs/EHICHolderNameType"
},
"givenNames": {
"$ref": "#/$defs/EHICHolderGivenNamesType"
},
"birthDate": {
"$ref": "#/$defs/EHICHolderBirthDateType"
},
"personalID": {
"$ref": "#/$defs/EHICHolderPersonalIDType"
}
},
"required": [
"name",
"givenNames",
"birthDate",
"personalID"
]
},
"competentInstitution": {
"type": "object",
"unevaluatedProperties": false,
"anyOf": [
{
"properties": {
"institutionName": {
"type": "string",
"minLength": 1,
"maxLength": 21
},
"institutionID": {
"type": "string",
"minLength": 4,
"maxLength": 4
}
}
},
{
"properties": {
"institutionName": {
"type": "string",
"minLength": 1,
"maxLength": 20
},
"institutionID": {
"type": "string",
"minLength": 5,
"maxLength": 5
}
}
},
{
"properties": {
"institutionName": {
"type": "string",
"minLength": 1,
"maxLength": 19
},
"institutionID": {
"type": "string",
"minLength": 6,
"maxLength": 6
}
}
},
{
"properties": {
"institutionName": {
"type": "string",
"minLength": 1,
"maxLength": 18
},
"institutionID": {
"type": "string",
"minLength": 7,
"maxLength": 7
}
}
},
{
"properties": {
"institutionName": {
"type": "string",
"minLength": 1,
"maxLength": 17
},
"institutionID": {
"type": "string",
"minLength": 8,
"maxLength": 8
}
}
},
{
"properties": {
"institutionName": {
"type": "string",
"minLength": 1,
"maxLength": 16
},
"institutionID": {
"type": "string",
"minLength": 9,
"maxLength": 9
}
}
},
{
"properties": {
"institutionName": {
"type": "string",
"minLength": 1,
"maxLength": 15
},
"institutionID": {
"type": "string",
"minLength": 10,
"maxLength": 10
}
}
}
],
"required": [
"institutionName",
"institutionID"
]
},
"card": {
"type": "object",
"unevaluatedProperties": false,
"properties": {
"cardID": {
"$ref": "#/$defs/EHICCardIDType"
},
"expiryDate": {
"$ref": "#/$defs/EHICExpiryDateType"
}
},
"required": [
"cardID",
"expiryDate"
]
}
},
"$defs": {
"EHICCardNameType": {
"type": "string",
"minLength": 40,
"maxLength": 40
},
"EHICIssuingStateType": {
"$ref": "#/$defs/EHICCountryType"
},
"EHICHolderNameType": {
"type": "string",
"minLength": 0,
"maxLength": 40
},
"EHICHolderGivenNamesType": {
"type": "string",
"minLength": 0,
"maxLength": 35
},
"EHICHolderBirthDateType": {
"$ref": "#/$defs/EHICDateType"
},
"EHICHolderPersonalIDType": {
"type": "string",
"minLength": 0,
"maxLength": 20
},
"EHICCardIDType": {
"type": "string",
"minLength": 20,
"maxLength": 20
},
"EHICExpiryDateType": {
"$ref": "#/$defs/EHICDateType"
},
"EHICDateType": {
"type": "string",
"format": "date"
},
"EHICCountryType": {
"enum": [
"AT",
"BE",
"BG",
"HR",
"CY",
"CZ",
"DK",
"EE",
"FI",
"FR",
"DE",
"EL",
"HU",
"IS",
"IE",
"IT",
"LV",
"LI",
"LT",
"LU",
"MT",
"NL",
"NO",
"PL",
"PT",
"RO",
"SK",
"SI",
"ES",
"SE",
"CH",
"UK"
]
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment