@yoshteq/ti365-ts-sdk
    Preparing search index...

    Class EpaServer

    Represents one EpaServer and encapsulates the Communication with it.

    Index

    Constructors

    • Parameters

      • session: Ti365Session
      • hostname: string
      • smcbCard: Card

        The card handle which will be used to authenticate with. Ensure Card PIN is verified before using.

      Returns EpaServer

    Properties

    connectionCheckTimeout: number = 10000

    Defines in which timeout the EpaServer will check if the connection is still alive.

    session: Ti365Session
    hostname: string
    smcbCard: Card

    The card handle which will be used to authenticate with. Ensure Card PIN is verified before using.

    Methods

    • Searches the state of a given insurantId on this HealthRecord provider.

      Parameters

      • insurantId: string

        Insurant ID. eg "X1234567890"

      Returns Promise<HealthRecordState>

      The state of the the Health Record, and by that if it exists on this provider. - ACTIVATED - Record exists and is in state ACTIVATED - UNKNOWN - Health record does not exist (UNKNOWN) or is in state INITIALIZED - SUSPENDED - Health record is not in state ACTIVATED (i.e. is in state SUSPENDED)

    • Try to entitle the Smcb to access the Health Records of the given card.

      Parameters

      • ehCard: Card

        The electronic Health Cards object.

      Returns Promise<{ insurantId: string; validTo: Date }>

    • Creates a Client which is used to access the electronic health record of one Patient stored on this Server.

      Parameters

      • insurantId: string

        The insurant id of the patient.

      Returns Promise<DocumentManagementService>

      getRecordStatus To check if the health record exists on this server.