|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ehealth.technicalconnector.utils.IdentifierType
public final class IdentifierType
This class contains all the currently known identifiertype of the eHealth-platform.
It provides a mapping between the different services (ETKdepot, EHBOX and recipe)
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
@Deprecated public static final int EHBOXV2
IdentifierType
.EHBOX
public static final int RECIPE
Method Detail |
---|
public static IdentifierType getInstance(Map<Integer,String> mapping, int expectedLength) throws TechnicalConnectorException
ETKDEPOT
, EHBOXV2
and RECIPE
)
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 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()
public static IdentifierType valueOf(String key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |