public final class IdentifierType extends Object implements Serializable
It provides a mapping between the different services (ETKdepot, EHBOX and recipe)
Modifier and Type | Method and Description |
---|---|
String |
formatIdentifierValue(long identifierValue)
Converts the given long id to a stringid with leading 0s.
|
String |
formatIdentifierValue(String value)
Converts the given id to a stringid with leading 0s.
|
static IdentifierType |
getInstance(Map<Integer,String> mapping,
int expectedLength)
Instanciate a new instance of IdentifierType if it is not found in the cache.
|
String |
getSubType(int source) |
String |
getType(int source) |
static IdentifierType |
lookup(String type,
String subType,
int source)
Lookup the IdentiferType based on the type and subType for a given source.
|
String |
name() |
static IdentifierType |
valueOf(String key) |
public static final IdentifierType CBE
public static final IdentifierType CBE_TREATCENTER
public static final IdentifierType SSIN
public static final IdentifierType NIHII
public static final IdentifierType NIHII11
public static final IdentifierType NIHII_PHARMACY
public static final IdentifierType NIHII_LABO
public static final IdentifierType NIHII_RETIREMENT
public static final IdentifierType NIHII_OTD_PHARMACY
public static final IdentifierType NIHII_HOSPITAL
public static final IdentifierType NIHII_GROUPOFNURSES
public static final IdentifierType EHP
public static final IdentifierType NIHII_PALLIATIVE_CARE
public static final IdentifierType NIHII_OFFICE_DENTISTS
public static final IdentifierType NIHII_MEDICAL_HOUSE
public static final IdentifierType NIHII_OFFICE_DOCTORS
public static final IdentifierType NIHII_GROUP_DOCTORS
public static final IdentifierType NIHII_OF_BAND
public static final IdentifierType NIHII_PSYCH_HOUSE
public static final IdentifierType NIHII_PROT_ACC
public static final IdentifierType NIHII_HOME_SERVICES
public static final IdentifierType NIHII_OF_PHYSIOS
public static final IdentifierType SITE
public static final IdentifierType SITESMUR
public static final IdentifierType SITEPIT
public static final IdentifierType CBE_CONSORTIUM
public static final IdentifierType NIHII_GUARD_POST
public static final IdentifierType EHP_CTRL_ORGANISM
public static final IdentifierType NIHII_BELRAI
public static final IdentifierType NIHII_BELRAI_SCREEN
public static final IdentifierType NIHII_GROUP_MIDWIVES
public static final IdentifierType NIHII_AMBU_SERVICE
public static final IdentifierType NIHII_LEGAL_PSY
public static final IdentifierType NIHII_REEDUCATION
public static final IdentifierType NIHII_SORTING_CENTER
@Deprecated public static final IdentifierType HUB
IdentifierType
.EHPpublic static final int ETKDEPOT
public static final int EHBOX
public static IdentifierType getInstance(Map<Integer,String> mapping, int expectedLength) throws TechnicalConnectorException
ETKDEPOT
and EHBOX
)
If the mapping contains any errors a TechnicalConnectorException
is throws with identifiertype.invalid.mapping as errorCode.
mapping
- MappingexpectedLength
- expected lenght of the id (adding leading 0's when converting long id to String id)TechnicalConnectorException
public static IdentifierType lookup(String type, String subType, int source)
type
- subType
- source
- public static IdentifierType valueOf(String key)
public String formatIdentifierValue(long identifierValue)
identifierValue
- public String formatIdentifierValue(String value)
value
- public String getType(int source)
source
- public String getSubType(int source)
source
- public String name()
Connector Packaging TRUSSMAKER 4.1.2 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.