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 and Description
    --- | ---
    `static 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 and Description
    `KmehrIdGenerator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `generateId()` generates unique String .

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

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

- - ### Field Detail

    - #### 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 Detail

    - #### KmehrIdGenerator

          public KmehrIdGenerator()

  - ### Method Detail

    - #### 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()`

Connector Packaging PERSPODOLOGIST 4.8.5 API
Copyright © {inceptionYear}-2026 eHealth. All Rights Reserved.