-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enumeration's done * general lint formatting issues #13 [ci skip]
- Loading branch information
Showing
8 changed files
with
27 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/** @internal */ | ||
export const VT = String.fromCharCode(0x0b); | ||
export const VT = String.fromCharCode(0x0b) | ||
|
||
/** @internal */ | ||
export const FS = String.fromCharCode(0x1c); | ||
export const FS = String.fromCharCode(0x1c) | ||
|
||
/** @internal */ | ||
export const CR = String.fromCharCode(0x0d); | ||
export const CR = String.fromCharCode(0x0d) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,38 @@ | ||
/** | ||
* Type of Segments Values | ||
* @description Used during the class creation to give each type its own index value. | ||
* This is done during the constructor phase of the classes. | ||
* @since 1.0.0 | ||
*/ | ||
export enum Delimiters { | ||
/** Usually each line of the overall HL7 Message. */ | ||
Segment, | ||
/** The field of each segment. Usually separated with a | */ | ||
Field, | ||
/** Usually within each Field, seperated by ^ */ | ||
Component, | ||
/** Usually within each Component, seperated by & */ | ||
Repetition, | ||
/** The escape string used within the code. */ | ||
Escape, | ||
/** Usually within each Field, seperated by ~ */ | ||
SubComponent | ||
} | ||
|
||
/** | ||
* State of the Connected to the Server | ||
* @description These are the states that are used to track the connecting to the server side and also during the auto-reconnect phase. | ||
* @since 1.0.0 | ||
*/ | ||
export enum ReadyState { | ||
/** The client is trying to connect to the server. */ | ||
CONNECTING, | ||
/** The client is connected to the server. */ | ||
CONNECTED, | ||
/** The client is open, but not yet trying to connect to the server. */ | ||
OPEN, | ||
/** The client is closing the connection by force or by timeout */ | ||
CLOSING, | ||
/** The client connection is closed. */ | ||
CLOSED | ||
} |