Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for 834 #75

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/main/java/com/imsweb/x12/reader/X12Reader.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public class X12Reader {
private static final String _X214_ANSI_VERSION = "005010X214";
private static final String _X270_271_092_ANSI_VERSION = "004010X092A1";
private static final String _X212_ANSI_VERSION = "005010X212";
private static final String _X220_ANSI_VERSION = "005010X220A1";
private static final EnumMap<FileType, String> _TYPES = new EnumMap<>(FileType.class);

private List<String> _errors = new ArrayList<>();
Expand All @@ -68,6 +69,7 @@ public class X12Reader {
* All supported X12 file definitions
*/
public enum FileType {
ANSI834_5010_X220("mapping/834.5010.X220.A1.xml"),
ANSI835_5010_X221("mapping/835.5010.X221.A1.xml"),
ANSI835_4010_X091("mapping/835.4010.X091.A1.xml"),
ANSI837_4010_X096("mapping/837.4010.X096.A1.xml"),
Expand Down Expand Up @@ -109,6 +111,7 @@ public synchronized TransactionDefinition getDefinition() {
}

static {
_TYPES.put(FileType.ANSI834_5010_X220, _X220_ANSI_VERSION);
_TYPES.put(FileType.ANSI835_4010_X091, _X091_ANSI_VERSION);
_TYPES.put(FileType.ANSI837_4010_X096, _X096_ANSI_VERSION);
_TYPES.put(FileType.ANSI837_4010_X097, _X097_ANSI_VERSION);
Expand Down
Loading