Package be.ehealth.business.kmehrcommons.util

# Class KmehrIdGenerator

java.lang.Object
be.ehealth.business.kmehrcommons.util.KmehrIdGenerator

All Implemented Interfaces:
  `IdGenerator`

public class KmehrIdGenerator extends Object implements IdGenerator
generates kmehr id suffix which is compatible with mycarenet rules. its a timestamp , with length 14. Implementation of `IdGenerator`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `KMEHR_ID_GENERATOR_TAG`
  tag to be used to get id generator for kmehr ids with IdGeneratorFactory.getIdGenerator(KMEHR_ID_GENERATOR_TAG).

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `KmehrIdGenerator()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `generateId()`
  generates unique String .

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### KMEHR_ID_GENERATOR_TAG

    public static final String KMEHR_ID_GENERATOR_TAG
    tag to be used to get id generator for kmehr ids with IdGeneratorFactory.getIdGenerator(KMEHR_ID_GENERATOR_TAG).
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### KmehrIdGenerator

    public KmehrIdGenerator()

- ## Method Details

  - ### generateId

    public String generateId()
    Description copied from interface: `IdGenerator`
    generates unique String .
    Specified by:
      `generateId` in interface `IdGenerator`
    Returns:
      unique identifier for a
    See Also:
      - `IdGenerator.generateId()`