org.projecthusky.common.ch.enums.r202406.DocumentLanguage Maven / Gradle / Ivy
Show all versions of husky-common-ch Show documentation
/*
* This code is made available under the terms of the Eclipse Public License v1.0
* in the github project https://github.com/project-husky/husky there you also
* find a list of the contributors and the license information.
*
* This project has been developed further and modified by the joined working group Husky
* on the basis of the eHealth Connector opensource project from June 28, 2021,
* whereas medshare GmbH is the initial and main contributor/author of the eHealth Connector.
*/
package org.projecthusky.common.ch.enums.r202406;
import java.util.Objects;
import javax.annotation.processing.Generated;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.projecthusky.common.enums.CodeSystems;
import org.projecthusky.common.enums.LanguageCode;
import org.projecthusky.common.enums.ValueSetEnumInterface;
/**
* Enumeration of DocumentEntry.languageCode values
*
* EN: Document language as per Annex 3 EPRO-FDHA. Defines the language in which the document was written.
* DE: Sprache des Dokumentes gemäss Anhang 3 EPDV-EDI. Definiert die Sprache in welcher das Dokument verfasst wurde.
* FR: Langue du document selon l'annexe 3 ODEP-DFI. Définit la langue dans laquelle est rédigé le document.
* IT: Lingua del documento secondo l'allegato 3 OCIP-DFI. Definisce la lingua nella quale è stato redatto il documento.
*
* Identifier: 2.16.756.5.30.1.127.3.10.1.13
* Effective date: 2023-05-22 17:37
* Version: 202306.0-stable
* Status: FINAL
*/
@Generated(value = "org.projecthusky.codegenerator.ch.valuesets.UpdateValueSets", date = "2024-07-02")
public enum DocumentLanguage implements ValueSetEnumInterface {
/**
* EN: Arabic.
* DE: Arabisch.
* FR: Arabe.
* IT: Arabo.
*/
ARABIC("ar",
"2.16.840.1.113883.6.316",
"Arabic",
"Arabic",
"Arabisch",
"Arabe",
"Arabo"),
/**
* EN: Bengali.
* DE: Bengalisch.
* FR: Bengali.
* IT: Bengalese.
*/
BENGALI("bn",
"2.16.840.1.113883.6.316",
"Bengali",
"Bengali",
"Bengalisch",
"Bengali",
"Bengalese"),
/**
* EN: Chinese.
* DE: Chinesisch.
* FR: Chinois.
* IT: Cinese.
*/
CHINESE("zh",
"2.16.840.1.113883.6.316",
"Chinese",
"Chinese",
"Chinesisch",
"Chinois",
"Cinese"),
/**
* EN: Chinese (China).
* DE: Chinesisch (China).
* FR: Chinois (Chine).
* IT: Cinese (Cina).
*/
CHINESE_CHINA("zh-CN",
"2.16.840.1.113883.6.316",
"Chinese (China)",
"Chinese (China)",
"Chinesisch (China)",
"Chinois (Chine)",
"Cinese (Cina)"),
/**
* EN: Chinese (Hong Kong).
* DE: Chinesisch (Hong Kong).
* FR: Chinois (Hong Kong).
* IT: Cinese (Hong Kong).
*/
CHINESE_HONG_KONG("zh-HK",
"2.16.840.1.113883.6.316",
"Chinese (Hong Kong)",
"Chinese (Hong Kong)",
"Chinesisch (Hong Kong)",
"Chinois (Hong Kong)",
"Cinese (Hong Kong)"),
/**
* EN: Chinese (Singapore).
* DE: Chinesisch (Singapur).
* FR: Chinois (Singapour).
* IT: Cinese (Singapore).
*/
CHINESE_SINGAPORE("zh-SG",
"2.16.840.1.113883.6.316",
"Chinese (Singapore)",
"Chinese (Singapore)",
"Chinesisch (Singapur)",
"Chinois (Singapour)",
"Cinese (Singapore)"),
/**
* EN: Chinese (Taiwan).
* DE: Chinesisch (Taiwan).
* FR: Chinois (Taïwan).
* IT: Cinese (Taiwan).
*/
CHINESE_TAIWAN("zh-TW",
"2.16.840.1.113883.6.316",
"Chinese (Taiwan)",
"Chinese (Taiwan)",
"Chinesisch (Taiwan)",
"Chinois (Taïwan)",
"Cinese (Taiwan)"),
/**
* EN: Croatian.
* DE: Kroatisch.
* FR: Croate.
* IT: Croato.
*/
CROATIAN("hr",
"2.16.840.1.113883.6.316",
"Croatian",
"Croatian",
"Kroatisch",
"Croate",
"Croato"),
/**
* EN: Czech.
* DE: Tschechisch.
* FR: Tchèque.
* IT: Ceco.
*/
CZECH("cs",
"2.16.840.1.113883.6.316",
"Czech",
"Czech",
"Tschechisch",
"Tchèque",
"Ceco"),
/**
* EN: Danish.
* DE: Dänisch.
* FR: Danois.
* IT: Danese.
*/
DANISH("da",
"2.16.840.1.113883.6.316",
"Danish",
"Danish",
"Dänisch",
"Danois",
"Danese"),
/**
* EN: Dutch.
* DE: Niederländisch.
* FR: Néerlandais.
* IT: Olandese.
*/
DUTCH("nl",
"2.16.840.1.113883.6.316",
"Dutch",
"Dutch",
"Niederländisch",
"Néerlandais",
"Olandese"),
/**
* EN: Dutch (Belgium).
* DE: Niederländisch (Belgien).
* FR: Néerlandais (Belgique).
* IT: Olandese (Belgio).
*/
DUTCH_BELGIUM("nl-BE",
"2.16.840.1.113883.6.316",
"Dutch (Belgium)",
"Dutch (Belgium)",
"Niederländisch (Belgien)",
"Néerlandais (Belgique)",
"Olandese (Belgio)"),
/**
* EN: Dutch (Netherlands).
* DE: Niederländisch (Niederlande).
* FR: Néerlandais (Pays-Bas).
* IT: Olandese (Paesi Bassi).
*/
DUTCH_NETHERLANDS("nl-NL",
"2.16.840.1.113883.6.316",
"Dutch (Netherlands)",
"Dutch (Netherlands)",
"Niederländisch (Niederlande)",
"Néerlandais (Pays-Bas)",
"Olandese (Paesi Bassi)"),
/**
* EN: English.
* DE: Englisch.
* FR: Anglais.
* IT: Inglese.
*/
ENGLISH("en",
"2.16.840.1.113883.6.316",
"English",
"English",
"Englisch",
"Anglais",
"Inglese"),
/**
* EN: English (Australia).
* DE: Englisch (Australien).
* FR: Anglais (Australie).
* IT: Inglese (Australia).
*/
ENGLISH_AUSTRALIA("en-AU",
"2.16.840.1.113883.6.316",
"English (Australia)",
"English (Australia)",
"Englisch (Australien)",
"Anglais (Australie)",
"Inglese (Australia)"),
/**
* EN: English (Canada).
* DE: Englisch (Kanada).
* FR: Anglais (Canada).
* IT: Inglese (Canada).
*/
ENGLISH_CANADA("en-CA",
"2.16.840.1.113883.6.316",
"English (Canada)",
"English (Canada)",
"Englisch (Kanada)",
"Anglais (Canada)",
"Inglese (Canada)"),
/**
* EN: English (Great Britain).
* DE: Englisch (Grossbritannien).
* FR: Anglais (Grande Bretagne).
* IT: Inglese (Gran Bretagna).
*/
ENGLISH_GREAT_BRITAIN("en-GB",
"2.16.840.1.113883.6.316",
"English (Great Britain)",
"English (Great Britain)",
"Englisch (Grossbritannien)",
"Anglais (Grande Bretagne)",
"Inglese (Gran Bretagna)"),
/**
* EN: English (India).
* DE: Englisch (Indien).
* FR: Anglais (Inde).
* IT: Inglese (India).
*/
ENGLISH_INDIA("en-IN",
"2.16.840.1.113883.6.316",
"English (India)",
"English (India)",
"Englisch (Indien)",
"Anglais (Inde)",
"Inglese (India)"),
/**
* EN: English (New Zealand).
* DE: Englisch (Neuseeland).
* FR: Anglais (Nouvelle Zélande).
* IT: Inglese (Nuova Zelanda).
*/
ENGLISH_NEW_ZEALAND("en-NZ",
"2.16.840.1.113883.6.316",
"English (New Zealand)",
"English (New Zealand)",
"Englisch (Neuseeland)",
"Anglais (Nouvelle Zélande)",
"Inglese (Nuova Zelanda)"),
/**
* EN: English (Singapore).
* DE: Englisch (Singapur).
* FR: Anglais (Singapour).
* IT: Inglese (Singapore).
*/
ENGLISH_SINGAPORE("en-SG",
"2.16.840.1.113883.6.316",
"English (Singapore)",
"English (Singapore)",
"Englisch (Singapur)",
"Anglais (Singapour)",
"Inglese (Singapore)"),
/**
* EN: English (United States).
* DE: Englisch (USA).
* FR: Anglais (États Unis).
* IT: Inglese (Stati Uniti).
*/
ENGLISH_UNITED_STATES("en-US",
"2.16.840.1.113883.6.316",
"English (United States)",
"English (United States)",
"Englisch (USA)",
"Anglais (États Unis)",
"Inglese (Stati Uniti)"),
/**
* EN: Finnish.
* DE: Finnisch.
* FR: Finnois.
* IT: Finlandese.
*/
FINNISH("fi",
"2.16.840.1.113883.6.316",
"Finnish",
"Finnish",
"Finnisch",
"Finnois",
"Finlandese"),
/**
* EN: French.
* DE: Französisch.
* FR: Français.
* IT: Francese.
*/
FRENCH("fr",
"2.16.840.1.113883.6.316",
"French",
"French",
"Französisch",
"Français",
"Francese"),
/**
* EN: French (Belgium).
* DE: Französisch (Belgien).
* FR: Français (Belgique).
* IT: Francese (Belgio).
*/
FRENCH_BELGIUM("fr-BE",
"2.16.840.1.113883.6.316",
"French (Belgium)",
"French (Belgium)",
"Französisch (Belgien)",
"Français (Belgique)",
"Francese (Belgio)"),
/**
* EN: French (France).
* DE: Französisch (Frankreich).
* FR: Français (France).
* IT: Francese (Francia).
*/
FRENCH_FRANCE("fr-FR",
"2.16.840.1.113883.6.316",
"French (France)",
"French (France)",
"Französisch (Frankreich)",
"Français (France)",
"Francese (Francia)"),
/**
* EN: French (Switzerland).
* DE: Französisch (Schweiz).
* FR: Français (Suisse).
* IT: Francese (Svizzera).
*/
FRENCH_SWITZERLAND("fr-CH",
"2.16.840.1.113883.6.316",
"French (Switzerland)",
"French (Switzerland)",
"Französisch (Schweiz)",
"Français (Suisse)",
"Francese (Svizzera)"),
/**
* EN: Frysian.
* DE: Friesisch.
* FR: Frison.
* IT: Frisone.
*/
FRYSIAN("fy",
"2.16.840.1.113883.6.316",
"Frysian",
"Frysian",
"Friesisch",
"Frison",
"Frisone"),
/**
* EN: Frysian (Netherlands).
* DE: Friesisch (Niederlande).
* FR: Frison (Pays-Bas).
* IT: Frisone (Paesi Bassi).
*/
FRYSIAN_NETHERLANDS("fy-NL",
"2.16.840.1.113883.6.316",
"Frysian (Netherlands)",
"Frysian (Netherlands)",
"Friesisch (Niederlande)",
"Frison (Pays-Bas)",
"Frisone (Paesi Bassi)"),
/**
* EN: German.
* DE: Deutsch.
* FR: Allemand.
* IT: Tedesco.
*/
GERMAN("de",
"2.16.840.1.113883.6.316",
"German",
"German",
"Deutsch",
"Allemand",
"Tedesco"),
/**
* EN: German (Austria).
* DE: Deutsch (Österreich).
* FR: Allemand (Autriche).
* IT: Tedesco (Austria).
*/
GERMAN_AUSTRIA("de-AT",
"2.16.840.1.113883.6.316",
"German (Austria)",
"German (Austria)",
"Deutsch (Österreich)",
"Allemand (Autriche)",
"Tedesco (Austria)"),
/**
* EN: German (Germany).
* DE: Deutsch (Deutschland).
* FR: Allemand (Allemagne).
* IT: Tedesco (Germania).
*/
GERMAN_GERMANY("de-DE",
"2.16.840.1.113883.6.316",
"German (Germany)",
"German (Germany)",
"Deutsch (Deutschland)",
"Allemand (Allemagne)",
"Tedesco (Germania)"),
/**
* EN: German (Switzerland).
* DE: Deutsch (Schweiz).
* FR: Allemand (Suisse).
* IT: Tedesco (Svizzera).
*/
GERMAN_SWITZERLAND("de-CH",
"2.16.840.1.113883.6.316",
"German (Switzerland)",
"German (Switzerland)",
"Deutsch (Schweiz)",
"Allemand (Suisse)",
"Tedesco (Svizzera)"),
/**
* EN: Greek.
* DE: Griechisch.
* FR: Grec.
* IT: Greco.
*/
GREEK("el",
"2.16.840.1.113883.6.316",
"Greek",
"Greek",
"Griechisch",
"Grec",
"Greco"),
/**
* EN: Hindi.
* DE: Hindi.
* FR: Hindi.
* IT: Hindi.
*/
HINDI("hi",
"2.16.840.1.113883.6.316",
"Hindi",
"Hindi",
"Hindi",
"Hindi",
"Hindi"),
/**
* EN: Italian.
* DE: Italienisch.
* FR: Italien.
* IT: Italiano.
*/
ITALIAN("it",
"2.16.840.1.113883.6.316",
"Italian",
"Italian",
"Italienisch",
"Italien",
"Italiano"),
/**
* EN: Italian (Italy).
* DE: Italienisch (Italien).
* FR: Italien (Italie).
* IT: Italiano (Italia).
*/
ITALIAN_ITALY("it-IT",
"2.16.840.1.113883.6.316",
"Italian (Italy)",
"Italian (Italy)",
"Italienisch (Italien)",
"Italien (Italie)",
"Italiano (Italia)"),
/**
* EN: Italian (Switzerland).
* DE: Italienisch (Schweiz).
* FR: Italien (Suisse).
* IT: Italiano (Svizzera).
*/
ITALIAN_SWITZERLAND("it-CH",
"2.16.840.1.113883.6.316",
"Italian (Switzerland)",
"Italian (Switzerland)",
"Italienisch (Schweiz)",
"Italien (Suisse)",
"Italiano (Svizzera)"),
/**
* EN: Japanese.
* DE: Japanisch.
* FR: Japonais.
* IT: Giapponese.
*/
JAPANESE("ja",
"2.16.840.1.113883.6.316",
"Japanese",
"Japanese",
"Japanisch",
"Japonais",
"Giapponese"),
/**
* EN: Korean.
* DE: Koreanisch.
* FR: Coréen.
* IT: Coreano.
*/
KOREAN("ko",
"2.16.840.1.113883.6.316",
"Korean",
"Korean",
"Koreanisch",
"Coréen",
"Coreano"),
/**
* EN: Norwegian.
* DE: Norwegisch.
* FR: Norvégien.
* IT: Norvegese.
*/
NORWEGIAN("no",
"2.16.840.1.113883.6.316",
"Norwegian",
"Norwegian",
"Norwegisch",
"Norvégien",
"Norvegese"),
/**
* EN: Norwegian (Norway).
* DE: Norwegisch (Norwegen).
* FR: Norvégien (Norvège).
* IT: Norvegese (Norvegia).
*/
NORWEGIAN_NORWAY("no-NO",
"2.16.840.1.113883.6.316",
"Norwegian (Norway)",
"Norwegian (Norway)",
"Norwegisch (Norwegen)",
"Norvégien (Norvège)",
"Norvegese (Norvegia)"),
/**
* EN: Other language.
* DE: Andere Sprache.
* FR: Autre langue.
* IT: Altra lingua.
*/
OTHER_LANGUAGE("OTHER",
"2.16.756.5.30.1.127.3.10.12",
"Other language",
"Other language",
"Andere Sprache",
"Autre langue",
"Altra lingua"),
/**
* EN: Polish.
* DE: Polnisch.
* FR: Polonais.
* IT: Polacco.
*/
POLISH("pl",
"2.16.840.1.113883.6.316",
"Polish",
"Polish",
"Polnisch",
"Polonais",
"Polacco"),
/**
* EN: Portuguese.
* DE: Portugiesisch.
* FR: Portugais.
* IT: Portoghese.
*/
PORTUGUESE("pt",
"2.16.840.1.113883.6.316",
"Portuguese",
"Portuguese",
"Portugiesisch",
"Portugais",
"Portoghese"),
/**
* EN: Portuguese (Brazil).
* DE: Portugiesisch (Brasilien).
* FR: Portugais (Brésil).
* IT: Portoghese (Brasile).
*/
PORTUGUESE_BRAZIL("pt-BR",
"2.16.840.1.113883.6.316",
"Portuguese (Brazil)",
"Portuguese (Brazil)",
"Portugiesisch (Brasilien)",
"Portugais (Brésil)",
"Portoghese (Brasile)"),
/**
* EN: Punjabi.
* DE: Panjabi.
* FR: Panjabi.
* IT: Panjabi.
*/
PUNJABI("pa",
"2.16.840.1.113883.6.316",
"Punjabi",
"Punjabi",
"Panjabi",
"Panjabi",
"Panjabi"),
/**
* EN: Romansh.
* DE: Rätoromanisch.
* FR: Rhéto-roman.
* IT: Romancio.
*/
ROMANSH("rm",
"2.16.840.1.113883.6.316",
"Romansh",
"Romansh",
"Rätoromanisch",
"Rhéto-roman",
"Romancio"),
/**
* EN: Russian.
* DE: Russisch.
* FR: Russe.
* IT: Russo.
*/
RUSSIAN("ru",
"2.16.840.1.113883.6.316",
"Russian",
"Russian",
"Russisch",
"Russe",
"Russo"),
/**
* EN: Russian (Russia).
* DE: Russisch (Russland).
* FR: Russe (Russie).
* IT: Russo (Russia).
*/
RUSSIAN_RUSSIA("ru-RU",
"2.16.840.1.113883.6.316",
"Russian (Russia)",
"Russian (Russia)",
"Russisch (Russland)",
"Russe (Russie)",
"Russo (Russia)"),
/**
* EN: Serbian.
* DE: Serbisch.
* FR: Serbe.
* IT: Serbo.
*/
SERBIAN("sr",
"2.16.840.1.113883.6.316",
"Serbian",
"Serbian",
"Serbisch",
"Serbe",
"Serbo"),
/**
* EN: Serbian (Serbia).
* DE: Serbisch (Serbien).
* FR: Serbe (Serbie).
* IT: Serbo (Serbia).
*/
SERBIAN_SERBIA("sr-RS",
"2.16.840.1.113883.6.316",
"Serbian (Serbia)",
"Serbian (Serbia)",
"Serbisch (Serbien)",
"Serbe (Serbie)",
"Serbo (Serbia)"),
/**
* EN: Spanish.
* DE: Spanisch.
* FR: Espagnol.
* IT: Spagnolo.
*/
SPANISH("es",
"2.16.840.1.113883.6.316",
"Spanish",
"Spanish",
"Spanisch",
"Espagnol",
"Spagnolo"),
/**
* EN: Spanish (Argentina).
* DE: Spanisch (Argentinien).
* FR: Espagnol (Argentine).
* IT: Spagnolo (Argentina).
*/
SPANISH_ARGENTINA("es-AR",
"2.16.840.1.113883.6.316",
"Spanish (Argentina)",
"Spanish (Argentina)",
"Spanisch (Argentinien)",
"Espagnol (Argentine)",
"Spagnolo (Argentina)"),
/**
* EN: Spanish (Spain).
* DE: Spanisch (Spanien).
* FR: Espagnol (Espagne).
* IT: Spagnolo (Spagna).
*/
SPANISH_SPAIN("es-ES",
"2.16.840.1.113883.6.316",
"Spanish (Spain)",
"Spanish (Spain)",
"Spanisch (Spanien)",
"Espagnol (Espagne)",
"Spagnolo (Spagna)"),
/**
* EN: Spanish (Uruguay).
* DE: Spanisch (Uruguay).
* FR: Espagnol (Uruguay).
* IT: Spagnolo (Uruguay).
*/
SPANISH_URUGUAY("es-UY",
"2.16.840.1.113883.6.316",
"Spanish (Uruguay)",
"Spanish (Uruguay)",
"Spanisch (Uruguay)",
"Espagnol (Uruguay)",
"Spagnolo (Uruguay)"),
/**
* EN: Swedish.
* DE: Schwedisch.
* FR: Suédois.
* IT: Svedese.
*/
SWEDISH("sv",
"2.16.840.1.113883.6.316",
"Swedish",
"Swedish",
"Schwedisch",
"Suédois",
"Svedese"),
/**
* EN: Swedish (Sweden).
* DE: Schwedisch (Schweden).
* FR: Suédois (Suède).
* IT: Svedese (Svezia).
*/
SWEDISH_SWEDEN("sv-SE",
"2.16.840.1.113883.6.316",
"Swedish (Sweden)",
"Swedish (Sweden)",
"Schwedisch (Schweden)",
"Suédois (Suède)",
"Svedese (Svezia)"),
/**
* EN: Telegu.
* DE: Telugu.
* FR: Telugu.
* IT: Telugu.
*/
TELEGU("te",
"2.16.840.1.113883.6.316",
"Telegu",
"Telegu",
"Telugu",
"Telugu",
"Telugu");
/**
* EN: Code for Arabic.
* DE: Code für Arabisch.
* FR: Code de Arabe.
* IT: Code per Arabo.
*/
public static final String ARABIC_CODE = "ar";
/**
* EN: Code for Bengali.
* DE: Code für Bengalisch.
* FR: Code de Bengali.
* IT: Code per Bengalese.
*/
public static final String BENGALI_CODE = "bn";
/**
* EN: Code for Chinese.
* DE: Code für Chinesisch.
* FR: Code de Chinois.
* IT: Code per Cinese.
*/
public static final String CHINESE_CODE = "zh";
/**
* EN: Code for Chinese (China).
* DE: Code für Chinesisch (China).
* FR: Code de Chinois (Chine).
* IT: Code per Cinese (Cina).
*/
public static final String CHINESE_CHINA_CODE = "zh-CN";
/**
* EN: Code for Chinese (Hong Kong).
* DE: Code für Chinesisch (Hong Kong).
* FR: Code de Chinois (Hong Kong).
* IT: Code per Cinese (Hong Kong).
*/
public static final String CHINESE_HONG_KONG_CODE = "zh-HK";
/**
* EN: Code for Chinese (Singapore).
* DE: Code für Chinesisch (Singapur).
* FR: Code de Chinois (Singapour).
* IT: Code per Cinese (Singapore).
*/
public static final String CHINESE_SINGAPORE_CODE = "zh-SG";
/**
* EN: Code for Chinese (Taiwan).
* DE: Code für Chinesisch (Taiwan).
* FR: Code de Chinois (Taïwan).
* IT: Code per Cinese (Taiwan).
*/
public static final String CHINESE_TAIWAN_CODE = "zh-TW";
/**
* EN: Code for Croatian.
* DE: Code für Kroatisch.
* FR: Code de Croate.
* IT: Code per Croato.
*/
public static final String CROATIAN_CODE = "hr";
/**
* EN: Code for Czech.
* DE: Code für Tschechisch.
* FR: Code de Tchèque.
* IT: Code per Ceco.
*/
public static final String CZECH_CODE = "cs";
/**
* EN: Code for Danish.
* DE: Code für Dänisch.
* FR: Code de Danois.
* IT: Code per Danese.
*/
public static final String DANISH_CODE = "da";
/**
* EN: Code for Dutch.
* DE: Code für Niederländisch.
* FR: Code de Néerlandais.
* IT: Code per Olandese.
*/
public static final String DUTCH_CODE = "nl";
/**
* EN: Code for Dutch (Belgium).
* DE: Code für Niederländisch (Belgien).
* FR: Code de Néerlandais (Belgique).
* IT: Code per Olandese (Belgio).
*/
public static final String DUTCH_BELGIUM_CODE = "nl-BE";
/**
* EN: Code for Dutch (Netherlands).
* DE: Code für Niederländisch (Niederlande).
* FR: Code de Néerlandais (Pays-Bas).
* IT: Code per Olandese (Paesi Bassi).
*/
public static final String DUTCH_NETHERLANDS_CODE = "nl-NL";
/**
* EN: Code for English.
* DE: Code für Englisch.
* FR: Code de Anglais.
* IT: Code per Inglese.
*/
public static final String ENGLISH_CODE = "en";
/**
* EN: Code for English (Australia).
* DE: Code für Englisch (Australien).
* FR: Code de Anglais (Australie).
* IT: Code per Inglese (Australia).
*/
public static final String ENGLISH_AUSTRALIA_CODE = "en-AU";
/**
* EN: Code for English (Canada).
* DE: Code für Englisch (Kanada).
* FR: Code de Anglais (Canada).
* IT: Code per Inglese (Canada).
*/
public static final String ENGLISH_CANADA_CODE = "en-CA";
/**
* EN: Code for English (Great Britain).
* DE: Code für Englisch (Grossbritannien).
* FR: Code de Anglais (Grande Bretagne).
* IT: Code per Inglese (Gran Bretagna).
*/
public static final String ENGLISH_GREAT_BRITAIN_CODE = "en-GB";
/**
* EN: Code for English (India).
* DE: Code für Englisch (Indien).
* FR: Code de Anglais (Inde).
* IT: Code per Inglese (India).
*/
public static final String ENGLISH_INDIA_CODE = "en-IN";
/**
* EN: Code for English (New Zealand).
* DE: Code für Englisch (Neuseeland).
* FR: Code de Anglais (Nouvelle Zélande).
* IT: Code per Inglese (Nuova Zelanda).
*/
public static final String ENGLISH_NEW_ZEALAND_CODE = "en-NZ";
/**
* EN: Code for English (Singapore).
* DE: Code für Englisch (Singapur).
* FR: Code de Anglais (Singapour).
* IT: Code per Inglese (Singapore).
*/
public static final String ENGLISH_SINGAPORE_CODE = "en-SG";
/**
* EN: Code for English (United States).
* DE: Code für Englisch (USA).
* FR: Code de Anglais (États Unis).
* IT: Code per Inglese (Stati Uniti).
*/
public static final String ENGLISH_UNITED_STATES_CODE = "en-US";
/**
* EN: Code for Finnish.
* DE: Code für Finnisch.
* FR: Code de Finnois.
* IT: Code per Finlandese.
*/
public static final String FINNISH_CODE = "fi";
/**
* EN: Code for French.
* DE: Code für Französisch.
* FR: Code de Français.
* IT: Code per Francese.
*/
public static final String FRENCH_CODE = "fr";
/**
* EN: Code for French (Belgium).
* DE: Code für Französisch (Belgien).
* FR: Code de Français (Belgique).
* IT: Code per Francese (Belgio).
*/
public static final String FRENCH_BELGIUM_CODE = "fr-BE";
/**
* EN: Code for French (France).
* DE: Code für Französisch (Frankreich).
* FR: Code de Français (France).
* IT: Code per Francese (Francia).
*/
public static final String FRENCH_FRANCE_CODE = "fr-FR";
/**
* EN: Code for French (Switzerland).
* DE: Code für Französisch (Schweiz).
* FR: Code de Français (Suisse).
* IT: Code per Francese (Svizzera).
*/
public static final String FRENCH_SWITZERLAND_CODE = "fr-CH";
/**
* EN: Code for Frysian.
* DE: Code für Friesisch.
* FR: Code de Frison.
* IT: Code per Frisone.
*/
public static final String FRYSIAN_CODE = "fy";
/**
* EN: Code for Frysian (Netherlands).
* DE: Code für Friesisch (Niederlande).
* FR: Code de Frison (Pays-Bas).
* IT: Code per Frisone (Paesi Bassi).
*/
public static final String FRYSIAN_NETHERLANDS_CODE = "fy-NL";
/**
* EN: Code for German.
* DE: Code für Deutsch.
* FR: Code de Allemand.
* IT: Code per Tedesco.
*/
public static final String GERMAN_CODE = "de";
/**
* EN: Code for German (Austria).
* DE: Code für Deutsch (Österreich).
* FR: Code de Allemand (Autriche).
* IT: Code per Tedesco (Austria).
*/
public static final String GERMAN_AUSTRIA_CODE = "de-AT";
/**
* EN: Code for German (Germany).
* DE: Code für Deutsch (Deutschland).
* FR: Code de Allemand (Allemagne).
* IT: Code per Tedesco (Germania).
*/
public static final String GERMAN_GERMANY_CODE = "de-DE";
/**
* EN: Code for German (Switzerland).
* DE: Code für Deutsch (Schweiz).
* FR: Code de Allemand (Suisse).
* IT: Code per Tedesco (Svizzera).
*/
public static final String GERMAN_SWITZERLAND_CODE = "de-CH";
/**
* EN: Code for Greek.
* DE: Code für Griechisch.
* FR: Code de Grec.
* IT: Code per Greco.
*/
public static final String GREEK_CODE = "el";
/**
* EN: Code for Hindi.
* DE: Code für Hindi.
* FR: Code de Hindi.
* IT: Code per Hindi.
*/
public static final String HINDI_CODE = "hi";
/**
* EN: Code for Italian.
* DE: Code für Italienisch.
* FR: Code de Italien.
* IT: Code per Italiano.
*/
public static final String ITALIAN_CODE = "it";
/**
* EN: Code for Italian (Italy).
* DE: Code für Italienisch (Italien).
* FR: Code de Italien (Italie).
* IT: Code per Italiano (Italia).
*/
public static final String ITALIAN_ITALY_CODE = "it-IT";
/**
* EN: Code for Italian (Switzerland).
* DE: Code für Italienisch (Schweiz).
* FR: Code de Italien (Suisse).
* IT: Code per Italiano (Svizzera).
*/
public static final String ITALIAN_SWITZERLAND_CODE = "it-CH";
/**
* EN: Code for Japanese.
* DE: Code für Japanisch.
* FR: Code de Japonais.
* IT: Code per Giapponese.
*/
public static final String JAPANESE_CODE = "ja";
/**
* EN: Code for Korean.
* DE: Code für Koreanisch.
* FR: Code de Coréen.
* IT: Code per Coreano.
*/
public static final String KOREAN_CODE = "ko";
/**
* EN: Code for Norwegian.
* DE: Code für Norwegisch.
* FR: Code de Norvégien.
* IT: Code per Norvegese.
*/
public static final String NORWEGIAN_CODE = "no";
/**
* EN: Code for Norwegian (Norway).
* DE: Code für Norwegisch (Norwegen).
* FR: Code de Norvégien (Norvège).
* IT: Code per Norvegese (Norvegia).
*/
public static final String NORWEGIAN_NORWAY_CODE = "no-NO";
/**
* EN: Code for Other language.
* DE: Code für Andere Sprache.
* FR: Code de Autre langue.
* IT: Code per Altra lingua.
*/
public static final String OTHER_LANGUAGE_CODE = "OTHER";
/**
* EN: Code for Polish.
* DE: Code für Polnisch.
* FR: Code de Polonais.
* IT: Code per Polacco.
*/
public static final String POLISH_CODE = "pl";
/**
* EN: Code for Portuguese.
* DE: Code für Portugiesisch.
* FR: Code de Portugais.
* IT: Code per Portoghese.
*/
public static final String PORTUGUESE_CODE = "pt";
/**
* EN: Code for Portuguese (Brazil).
* DE: Code für Portugiesisch (Brasilien).
* FR: Code de Portugais (Brésil).
* IT: Code per Portoghese (Brasile).
*/
public static final String PORTUGUESE_BRAZIL_CODE = "pt-BR";
/**
* EN: Code for Punjabi.
* DE: Code für Panjabi.
* FR: Code de Panjabi.
* IT: Code per Panjabi.
*/
public static final String PUNJABI_CODE = "pa";
/**
* EN: Code for Romansh.
* DE: Code für Rätoromanisch.
* FR: Code de Rhéto-roman.
* IT: Code per Romancio.
*/
public static final String ROMANSH_CODE = "rm";
/**
* EN: Code for Russian.
* DE: Code für Russisch.
* FR: Code de Russe.
* IT: Code per Russo.
*/
public static final String RUSSIAN_CODE = "ru";
/**
* EN: Code for Russian (Russia).
* DE: Code für Russisch (Russland).
* FR: Code de Russe (Russie).
* IT: Code per Russo (Russia).
*/
public static final String RUSSIAN_RUSSIA_CODE = "ru-RU";
/**
* EN: Code for Serbian.
* DE: Code für Serbisch.
* FR: Code de Serbe.
* IT: Code per Serbo.
*/
public static final String SERBIAN_CODE = "sr";
/**
* EN: Code for Serbian (Serbia).
* DE: Code für Serbisch (Serbien).
* FR: Code de Serbe (Serbie).
* IT: Code per Serbo (Serbia).
*/
public static final String SERBIAN_SERBIA_CODE = "sr-RS";
/**
* EN: Code for Spanish.
* DE: Code für Spanisch.
* FR: Code de Espagnol.
* IT: Code per Spagnolo.
*/
public static final String SPANISH_CODE = "es";
/**
* EN: Code for Spanish (Argentina).
* DE: Code für Spanisch (Argentinien).
* FR: Code de Espagnol (Argentine).
* IT: Code per Spagnolo (Argentina).
*/
public static final String SPANISH_ARGENTINA_CODE = "es-AR";
/**
* EN: Code for Spanish (Spain).
* DE: Code für Spanisch (Spanien).
* FR: Code de Espagnol (Espagne).
* IT: Code per Spagnolo (Spagna).
*/
public static final String SPANISH_SPAIN_CODE = "es-ES";
/**
* EN: Code for Spanish (Uruguay).
* DE: Code für Spanisch (Uruguay).
* FR: Code de Espagnol (Uruguay).
* IT: Code per Spagnolo (Uruguay).
*/
public static final String SPANISH_URUGUAY_CODE = "es-UY";
/**
* EN: Code for Swedish.
* DE: Code für Schwedisch.
* FR: Code de Suédois.
* IT: Code per Svedese.
*/
public static final String SWEDISH_CODE = "sv";
/**
* EN: Code for Swedish (Sweden).
* DE: Code für Schwedisch (Schweden).
* FR: Code de Suédois (Suède).
* IT: Code per Svedese (Svezia).
*/
public static final String SWEDISH_SWEDEN_CODE = "sv-SE";
/**
* EN: Code for Telegu.
* DE: Code für Telugu.
* FR: Code de Telugu.
* IT: Code per Telugu.
*/
public static final String TELEGU_CODE = "te";
/**
* Identifier of the value set.
*/
public static final String VALUE_SET_ID = "2.16.756.5.30.1.127.3.10.1.13";
/**
* Name of the value set.
*/
public static final String VALUE_SET_NAME = "DocumentEntry.languageCode";
/**
* Gets the Enum with a given code.
*
* @param code The code value.
* @return the enum value found or {@code null}.
*/
@Nullable
public static DocumentLanguage getEnum(@Nullable final String code) {
for (final DocumentLanguage x : values()) {
if (x.getCodeValue().equals(code)) {
return x;
}
}
return null;
}
/**
* Checks if a given enum is part of this value set.
*
* @param enumName The name of the enum.
* @return {@code true} if the name is found in this value set, {@code false} otherwise.
*/
public static boolean isEnumOfValueSet(@Nullable final String enumName) {
if (enumName == null) {
return false;
}
try {
Enum.valueOf(DocumentLanguage.class,
enumName);
return true;
} catch (final IllegalArgumentException ex) {
return false;
}
}
/**
* Checks if a given code value is in this value set.
*
* @param codeValue The code value.
* @return {@code true} if the value is found in this value set, {@code false} otherwise.
*/
public static boolean isInValueSet(@Nullable final String codeValue) {
for (final DocumentLanguage x : values()) {
if (x.getCodeValue().equals(codeValue)) {
return true;
}
}
return false;
}
/**
* Machine interpretable and (inside this class) unique code.
*/
@NonNull
private final String code;
/**
* Identifier of the referencing code system.
*/
@NonNull
private final String codeSystem;
/**
* The display names per language. It's always stored in the given order: default display name (0), in English (1),
* in German (2), in French (3) and in Italian (4).
*/
@NonNull
private final String[] displayNames;
/**
* Instantiates this enum with a given code and display names.
*
* @param code The code value.
* @param codeSystem The code system (OID).
* @param displayName The default display name.
* @param displayNameEn The display name in English.
* @param displayNameDe The display name in German.
* @param displayNameFr The display name in French.
* @param displayNameIt The display name in Italian.
*/
DocumentLanguage(@NonNull final String code, @NonNull final String codeSystem, @NonNull final String displayName, @NonNull final String displayNameEn, @NonNull final String displayNameDe, @NonNull final String displayNameFr, @NonNull final String displayNameIt) {
this.code = Objects.requireNonNull(code);
this.codeSystem = Objects.requireNonNull(codeSystem);
this.displayNames = new String[5];
this.displayNames[0] = Objects.requireNonNull(displayName);
this.displayNames[1] = Objects.requireNonNull(displayNameEn);
this.displayNames[2] = Objects.requireNonNull(displayNameDe);
this.displayNames[3] = Objects.requireNonNull(displayNameFr);
this.displayNames[4] = Objects.requireNonNull(displayNameIt);
}
/**
* Gets the code system identifier.
*
* @return the code system identifier.
*/
@Override
@NonNull
public String getCodeSystemId() {
return this.codeSystem;
}
/**
* Gets the code system name.
*
* @return the code system name.
*/
@Override
@NonNull
public String getCodeSystemName() {
final var codeSystem = CodeSystems.getEnum(this.codeSystem);
if (codeSystem != null) {
return codeSystem.getCodeSystemName();
}
return "";
}
/**
* Gets the code value as a string.
*
* @return the code value.
*/
@Override
@NonNull
public String getCodeValue() {
return this.code;
}
/**
* Gets the display name defined by the language param.
*
* @param languageCode The language code to get the display name for, {@code null} to get the default display name.
* @return the display name in the desired language.
*/
@Override
@NonNull
public String getDisplayName(@Nullable final LanguageCode languageCode) {
if (languageCode == null) {
return this.displayNames[0];
}
return switch(languageCode) {
case ENGLISH ->
this.displayNames[1];
case GERMAN ->
this.displayNames[2];
case FRENCH ->
this.displayNames[3];
case ITALIAN ->
this.displayNames[4];
default ->
"TOTRANSLATE";
};
}
/**
* Gets the value set identifier.
*
* @return the value set identifier.
*/
@Override
@NonNull
public String getValueSetId() {
return VALUE_SET_ID;
}
/**
* Gets the value set name.
*
* @return the value set name.
*/
@Override
@NonNull
public String getValueSetName() {
return VALUE_SET_NAME;
}
}