aspose.barcode 22.11.0 → 23.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -550,11 +550,11 @@ class ComplexCodetextReader {
550
550
  let javaMaxiCodeCodetextMode3Class = java.import(MaxiCodeCodetextMode3.JAVA_CLASS_NAME);
551
551
  let javaMaxiCodeCodetext = javaComplexCodetextReaderClass.tryDecodeMaxiCodeSync(maxiCodeMode, encodedCodetext);
552
552
 
553
- if(javaMaxiCodeCodetext instanceof javaMaxiCodeCodetextMode2Class)
553
+ if(javaMaxiCodeCodetext.getClassSync().equalsSync(javaMaxiCodeCodetextMode2Class.class))
554
554
  {
555
555
  return MaxiCodeCodetextMode2.construct(javaMaxiCodeCodetext);
556
556
  }
557
- else if(javaMaxiCodeCodetext instanceof javaMaxiCodeCodetextMode3Class)
557
+ else if(javaMaxiCodeCodetext.getClassSync().equalsSync(javaMaxiCodeCodetextMode3Class.class))
558
558
  {
559
559
  return MaxiCodeCodetextMode3.construct(javaMaxiCodeCodetext);
560
560
  }
@@ -563,6 +563,51 @@ class ComplexCodetextReader {
563
563
  return MaxiCodeStandardCodetext.construct(javaMaxiCodeCodetext);
564
564
  }
565
565
  }
566
+
567
+ /**
568
+ * <p>
569
+ * Decodes HIBC LIC codetext.
570
+ * </p>
571
+ * @return decoded HIBC LIC Complex Codetext or null.
572
+ * @param encodedCodetext encoded codetext
573
+ */
574
+ static tryDecodeHIBCLIC(encodedCodetext)
575
+ {
576
+ let javaHIBCLICSecondaryAndAdditionalDataCodetextClass = java.import(HIBCLICSecondaryAndAdditionalDataCodetext.JAVA_CLASS_NAME);
577
+ let javaHIBCLICPrimaryDataCodetextClass = java.import(HIBCLICPrimaryDataCodetext.JAVA_CLASS_NAME);
578
+ let javaHIBCLICCombinedCodetextClass = java.import(HIBCLICCombinedCodetext.JAVA_CLASS_NAME);
579
+ let javaNodeJsComplexCodetextReaderJavaClass = java.import(ComplexCodetextReader.javaClassName);
580
+ let hibclicComplexCodetext = javaNodeJsComplexCodetextReaderJavaClass.tryDecodeHIBCLICSync(encodedCodetext);
581
+ if(hibclicComplexCodetext.getClassSync().equalsSync(javaHIBCLICSecondaryAndAdditionalDataCodetextClass.class))
582
+ {
583
+ return HIBCLICSecondaryAndAdditionalDataCodetext.construct(hibclicComplexCodetext);
584
+ }
585
+ else if(hibclicComplexCodetext.getClassSync().equalsSync(javaHIBCLICPrimaryDataCodetextClass.class))
586
+ {
587
+ return HIBCLICPrimaryDataCodetext.construct(hibclicComplexCodetext);
588
+ }
589
+ else if(hibclicComplexCodetext.getClassSync().equalsSync(javaHIBCLICCombinedCodetextClass.class))
590
+ {
591
+ return HIBCLICCombinedCodetext.construct(hibclicComplexCodetext);
592
+ }
593
+ return null;
594
+ }
595
+
596
+ /**
597
+ * <p>
598
+ * Decodes HIBC PAS codetext.
599
+ * </p>
600
+ * @return decoded HIBC PAS Complex Codetext or null.
601
+ * @param encodedCodetext encoded codetext
602
+ */
603
+ static tryDecodeHIBCPAS(encodedCodetext)
604
+ {
605
+ let javaPhpComplexCodetextReader = java.import(ComplexCodetextReader.javaClassName);
606
+ let javaHIBCPAS = javaPhpComplexCodetextReader.tryDecodeHIBCPASSync(encodedCodetext);
607
+ if((javaHIBCPAS) == null)
608
+ return null;
609
+ return HIBCPASCodetext.construct(javaHIBCPAS);
610
+ }
566
611
  }
567
612
 
568
613
  /**
@@ -1655,8 +1700,9 @@ class MaxiCodeStandartSecondMessage extends MaxiCodeSecondMessage
1655
1700
  {
1656
1701
  try
1657
1702
  {
1658
- let java_class = new java(MaxiCodeStandartSecondMessage.JAVA_CLASS_NAME);
1659
- super(java_class);
1703
+ let java_class_link = java.import(MaxiCodeStandartSecondMessage.JAVA_CLASS_NAME);
1704
+ let javaClass = new java_class_link();
1705
+ super(javaClass);
1660
1706
  }
1661
1707
  catch (ex)
1662
1708
  {
@@ -1933,8 +1979,9 @@ class MaxiCodeCodetextMode2 extends MaxiCodeStructuredCodetext
1933
1979
  {
1934
1980
  try
1935
1981
  {
1936
- let java_class = new java(MaxiCodeCodetextMode2.JAVA_CLASS_NAME);
1937
- super(java_class);
1982
+ let java_class_link = java.import(MaxiCodeCodetextMode2.JAVA_CLASS_NAME);
1983
+ let javaClass = new java_class_link();
1984
+ super(javaClass);
1938
1985
  }
1939
1986
  catch (ex)
1940
1987
  {
@@ -2042,8 +2089,9 @@ class MaxiCodeCodetextMode3 extends MaxiCodeStructuredCodetext
2042
2089
  {
2043
2090
  try
2044
2091
  {
2045
- let java_class = new java(MaxiCodeCodetextMode3.JAVA_CLASS_NAME);
2046
- super(java_class);
2092
+ let java_class_link = java.import(MaxiCodeCodetextMode3.JAVA_CLASS_NAME);
2093
+ let javaClass = new java_class_link();
2094
+ super(javaClass);
2047
2095
  }
2048
2096
  catch (ex)
2049
2097
  {
@@ -2174,30 +2222,1445 @@ class MaxiCodeStructuredSecondMessage extends MaxiCodeSecondMessage
2174
2222
  }
2175
2223
 
2176
2224
  /**
2177
- * 2D Mailmark Type defines size of Data Matrix barcode
2178
- * @enum
2225
+ * <p>
2226
+ * Base class for encoding and decoding the text embedded in the HIBC LIC code.
2227
+ * </p><p><hr><blockquote><pre>
2228
+ * This sample shows how to decode raw HIBC LIC codetext to HIBCLICComplexCodetext instance.
2229
+ * <pre>
2230
+ * let reader = new BarCodeReader("c:\\test.png", null, DecodeType.HIBC_AZTEC_LIC);
2231
+ * {
2232
+ * reader.readBarCodes().forEach(function(result, i, results)
2233
+ * {
2234
+ * let resultHIBCLICComplexCodetext = ComplexCodetextReader.tryDecodeHIBCLIC(result.getCodeText());
2235
+ * print("BarCode Type: " + resultMaxiCodeCodetext.getBarcodeType());
2236
+ * print("BarCode CodeText: " + resultMaxiCodeCodetext.getConstructedCodetext());
2237
+ * });
2238
+ * }
2239
+ * </pre>
2240
+ * </pre></blockquote></hr></p>
2179
2241
  */
2180
- Mailmark2DType =
2242
+ class HIBCLICComplexCodetext extends IComplexCodetext
2181
2243
  {
2244
+ constructor(javaClass)
2245
+ {
2246
+ super(javaClass);
2247
+ }
2182
2248
  /**
2183
- * Auto determine
2249
+ * <p>
2250
+ * Constructs codetext
2251
+ * </p>
2252
+ * @return Constructed codetext
2184
2253
  */
2185
- AUTO: 0,
2254
+ getConstructedCodetext(){}
2186
2255
 
2187
2256
  /**
2188
- * 24 x 24 modules
2257
+ * <p>
2258
+ * Initializes instance from constructed codetext.
2259
+ * </p>
2260
+ * @param constructedCodetext Constructed codetext.
2189
2261
  */
2190
- TYPE_7: 1,
2262
+ initFromString(constructedCodetext){}
2191
2263
 
2192
2264
  /**
2193
- * 32 x 32 modules
2265
+ * <p>
2266
+ * Gets or sets barcode type. HIBC LIC codetext can be encoded using HIBCCode39LIC, HIBCCode128LIC, HIBCAztecLIC, HIBCDataMatrixLIC and HIBCQRLIC encode types.
2267
+ * Default value: HIBCCode39LIC.
2268
+ * </p>
2269
+ * @return Barcode type.
2194
2270
  */
2195
- TYPE_9: 2,
2271
+ getBarcodeType()
2272
+ {
2273
+ return this.getJavaClass().getBarcodeTypeSync();
2274
+ }
2275
+ /**
2276
+ * <p>
2277
+ * Gets or sets barcode type. HIBC LIC codetext can be encoded using HIBCCode39LIC, HIBCCode128LIC, HIBCAztecLIC, HIBCDataMatrixLIC and HIBCQRLIC encode types.
2278
+ * Default value: HIBCCode39LIC.
2279
+ * </p>
2280
+ * @return Barcode type.
2281
+ */
2282
+ setBarcodeType(value)
2283
+ {
2284
+ this.getJavaClass().setBarcodeTypeSync(value);
2285
+ }
2286
+ }
2287
+
2288
+ /**
2289
+ * <p>
2290
+ * Class for encoding and decoding the text embedded in the HIBC LIC code which stores primary and secodary data.
2291
+ * </p><p><hr><blockquote><pre>
2292
+ * This sample shows how to encode and decode HIBC LIC using HIBCLICCombinedCodetext.
2293
+ * <pre>
2294
+ *
2295
+ * let combinedCodetext = new HIBCLICCombinedCodetext();
2296
+ * combinedCodetext.setBarcodeType(EncodeTypes.HIBCQRLIC);
2297
+ * combinedCodetext.setPrimaryData(new PrimaryData());
2298
+ * combinedCodetext.getPrimaryData().setProductOrCatalogNumber("12345");
2299
+ * combinedCodetext.getPrimaryData().setLabelerIdentificationCode("A999");
2300
+ * combinedCodetext.getPrimaryData().setUnitOfMeasureID(1);
2301
+ * combinedCodetext.setSecondaryAndAdditionalData(new SecondaryAndAdditionalData());
2302
+ * combinedCodetext.getSecondaryAndAdditionalData().setExpiryDate(new Date());
2303
+ * combinedCodetext.getSecondaryAndAdditionalData().setExpiryDateFormat(HIBCLICDateFormat.MMDDYY);
2304
+ * combinedCodetext.getSecondaryAndAdditionalData().setQuantity(30);
2305
+ * combinedCodetext.getSecondaryAndAdditionalData().setLotNumber("LOT123");
2306
+ * combinedCodetext.getSecondaryAndAdditionalData().setSerialNumber("SERIAL123");
2307
+ * combinedCodetext.getSecondaryAndAdditionalData().setDateOfManufacture(new Date());
2308
+ * ComplexBarcodeGenerator generator = new ComplexBarcodeGenerator(combinedCodetext);
2309
+ * {
2310
+ * let image = generator.generateBarCodeImage(BarCodeImageFormat.PNG);
2311
+ * let reader = new BarCodeReader(image, null, DecodeType.HIBCQRLIC);
2312
+ * {
2313
+ * reader.readBarCodes();
2314
+ * let codetext = reader.getFoundBarCodes()[0].getCodeText();
2315
+ * let result = ComplexCodetextReader.tryDecodeHIBCLIC(codetext) ;
2316
+ * print("Product or catalog number: " + result.getPrimaryData().getProductOrCatalogNumber());
2317
+ * print("Labeler identification code: " + result.getPrimaryData().getLabelerIdentificationCode());
2318
+ * print("Unit of measure ID: " + result.getPrimaryData().getUnitOfMeasureID());
2319
+ * print("Expiry date: " + result.getSecondaryAndAdditionalData().getExpiryDate());
2320
+ * print("Quantity: " + result.getSecondaryAndAdditionalData().getQuantity());
2321
+ * print("Lot number: " + result.getSecondaryAndAdditionalData().getLotNumber());
2322
+ * print("Serial number: " + result.getSecondaryAndAdditionalData().getSerialNumber());
2323
+ * print("Date of manufacture: " + result.getSecondaryAndAdditionalData().getDateOfManufacture());
2324
+ * }
2325
+ * }
2326
+ * </pre>
2327
+ * </pre></blockquote></hr></p>
2328
+ */
2329
+ class HIBCLICCombinedCodetext extends HIBCLICComplexCodetext
2330
+ {
2331
+ static JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwHIBCLICCombinedCodetext";
2332
+
2333
+ constructor()
2334
+ {
2335
+ let java_class_link = java.import(HIBCLICCombinedCodetext.JAVA_CLASS_NAME);
2336
+ let javaClass = new java_class_link();
2337
+ super(javaClass);
2338
+ }
2339
+
2340
+ static construct(javaClass)
2341
+ {
2342
+ let obj = new HIBCLICCombinedCodetext();
2343
+ obj.setJavaClass(javaClass);
2344
+ return obj;
2345
+ }
2346
+
2347
+ init()
2348
+ {
2349
+ this.auto_PrimaryData = PrimaryData.construct(this.getJavaClass().getPrimaryDataSync());
2350
+ this.auto_SecondaryAndAdditionalData = SecondaryAndAdditionalData.construct(this.getJavaClass().getSecondaryAndAdditionalDataSync());
2351
+ }
2196
2352
 
2197
2353
  /**
2198
- * 16 x 48 modules
2354
+ * <p>
2355
+ * Identifies primary data.
2356
+ * </p>
2199
2357
  */
2200
- TYPE_29: 3
2358
+ getPrimaryData()
2359
+ {
2360
+ return this.auto_PrimaryData;
2361
+ }
2362
+
2363
+ /**
2364
+ * <p>
2365
+ * Identifies primary data.
2366
+ * </p>
2367
+ */
2368
+ setPrimaryData(value)
2369
+ {
2370
+ this.getJavaClass().setPrimaryDataSync(value.getJavaClass());
2371
+ this.auto_PrimaryData = value;
2372
+ }
2373
+
2374
+ auto_PrimaryData;
2375
+
2376
+ /**
2377
+ * <p>
2378
+ * Identifies secondary and additional supplemental data.
2379
+ * </p>
2380
+ */
2381
+ getSecondaryAndAdditionalData()
2382
+ {
2383
+ return this.auto_SecondaryAndAdditionalData;
2384
+ }
2385
+
2386
+ /**
2387
+ * <p>
2388
+ * Identifies secondary and additional supplemental data.
2389
+ * </p>
2390
+ */
2391
+ setSecondaryAndAdditionalData(value)
2392
+ {
2393
+ this.getJavaClass().setSecondaryAndAdditionalDataSync(value.getJavaClass());
2394
+ this.auto_SecondaryAndAdditionalData = value;
2395
+ }
2396
+
2397
+ auto_SecondaryAndAdditionalData;
2398
+
2399
+ /**
2400
+ * <p>
2401
+ * Constructs codetext
2402
+ * </p>
2403
+ *
2404
+ * @return Constructed codetext
2405
+ */
2406
+ getConstructedCodetext()
2407
+ {
2408
+ return this.getJavaClass().getConstructedCodetextSync();
2409
+ }
2410
+
2411
+ /**
2412
+ * <p>
2413
+ * Initializes instance from constructed codetext.
2414
+ * </p>
2415
+ *
2416
+ * @param constructedCodetext Constructed codetext.
2417
+ */
2418
+ initFromString(constructedCodetext)
2419
+ {
2420
+ this.getJavaClass().initFromStringSync(constructedCodetext);
2421
+ }
2422
+
2423
+ /**
2424
+ * <p>
2425
+ * Returns a value indicating whether this instance is equal to a specified {@code HIBCLICCombinedCodetext} value.
2426
+ * </p>
2427
+ *
2428
+ * @param obj An {@code HIBCLICCombinedCodetext} value to compare to this instance.
2429
+ * @return {@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
2430
+ */
2431
+ equals(obj)
2432
+ {
2433
+ return this.getJavaClass().equalsSync(obj.getJavaClass());
2434
+ }
2435
+
2436
+ /**
2437
+ * <p>
2438
+ * Returns the hash code for this instance.
2439
+ * </p>
2440
+ *
2441
+ * @return A 32-bit signed integer hash code.
2442
+ */
2443
+ hashCode()
2444
+ {
2445
+ return this.getJavaClass().hashCodeSync();
2446
+ }
2447
+ }
2448
+
2449
+ /**
2450
+ * <p>
2451
+ * Class for encoding and decoding the text embedded in the HIBC LIC code which stores primary data.
2452
+ * </p><p><hr><blockquote><pre>
2453
+ * This sample shows how to encode and decode HIBC LIC using HIBCLICPrimaryCodetext.
2454
+ * <pre>
2455
+ * let complexCodetext = new HIBCLICPrimaryCodetext();
2456
+ * complexCodetext.setBarcodeType(EncodeTypes.HIBCQRLIC);
2457
+ * complexCodetext.setData(new PrimaryData());
2458
+ * complexCodetext.getData().setProductOrCatalogNumber("12345");
2459
+ * complexCodetext.getData().setLabelerIdentificationCode("A999");
2460
+ * complexCodetext.getData().setUnitOfMeasureID(1);
2461
+ * let generator = new ComplexBarcodeGenerator(complexCodetext);
2462
+ * {
2463
+ * let image = generator.generateBarCodeImage(BarCodeImageFormat.PNG);
2464
+ * let reader = new BarCodeReader(image, null, DecodeType.HIBCQRLIC);
2465
+ * {
2466
+ * reader.readBarCodes();
2467
+ * let codetext = reader.getFoundBarCodes()[0].getCodeText();
2468
+ * let result = ComplexCodetextReader.tryDecodeHIBCLIC(codetext) ;
2469
+ * print("Product or catalog number: " + result.getData().getProductOrCatalogNumber());
2470
+ * print("Labeler identification code: " + result.getData().getLabelerIdentificationCode());
2471
+ * print("Unit of measure ID: " + result.getData().getUnitOfMeasureID());
2472
+ * }
2473
+ * }
2474
+ * </pre>
2475
+ * </pre></blockquote></hr></p>
2476
+ */
2477
+ class HIBCLICPrimaryDataCodetext extends HIBCLICComplexCodetext
2478
+ {
2479
+ static JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwHIBCLICPrimaryDataCodetext";
2480
+
2481
+ constructor()
2482
+ {
2483
+ let java_class_link = java.import(HIBCLICPrimaryDataCodetext.JAVA_CLASS_NAME);
2484
+ let javaClass = new java_class_link();
2485
+ super(javaClass);
2486
+ }
2487
+
2488
+ static construct(java_class)
2489
+ {
2490
+ let obj = new HIBCLICPrimaryDataCodetext();
2491
+ obj.setJavaClass(java_class);
2492
+ return obj;
2493
+ }
2494
+
2495
+ init()
2496
+ {
2497
+ this.data = PrimaryData.construct(this.getJavaClass().getDataSync());
2498
+ }
2499
+
2500
+ data;
2501
+
2502
+ /**
2503
+ * <p>
2504
+ * Identifies primary data.
2505
+ * </p>
2506
+ */
2507
+ getData()
2508
+ {
2509
+ return this.data;
2510
+ }
2511
+
2512
+ /**
2513
+ * <p>
2514
+ * Identifies primary data.
2515
+ * </p>
2516
+ */
2517
+ setData(value)
2518
+ {
2519
+ this.getJavaClass().setDataSync(value.getJavaClass());
2520
+ this.data = value;
2521
+ }
2522
+
2523
+ /**
2524
+ * <p>
2525
+ * Constructs codetext
2526
+ * </p>
2527
+ *
2528
+ * @return Constructed codetext
2529
+ */
2530
+ getConstructedCodetext()
2531
+ {
2532
+ return this.getJavaClass().getConstructedCodetextSync();
2533
+ }
2534
+
2535
+ /**
2536
+ * <p>
2537
+ * Initializes instance from constructed codetext.
2538
+ * </p>
2539
+ *
2540
+ * @param constructedCodetext Constructed codetext.
2541
+ */
2542
+ initFromString(constructedCodetext)
2543
+ {
2544
+ this.getJavaClass().initFromStringSync(constructedCodetext);
2545
+ }
2546
+
2547
+ /**
2548
+ * <p>
2549
+ * Returns a value indicating whether this instance is equal to a specified {@code HIBCLICPrimaryDataCodetext} value.
2550
+ * </p>
2551
+ *
2552
+ * @param obj An {@code HIBCLICPrimaryDataCodetext} value to compare to this instance.
2553
+ * @return {@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
2554
+ */
2555
+ equals(obj)
2556
+ {
2557
+ return this.getJavaClass().equalsSync(obj.getJavaClass());
2558
+ }
2559
+
2560
+ /**
2561
+ * <p>
2562
+ * Returns the hash code for this instance.
2563
+ * </p>
2564
+ *
2565
+ * @return A 32-bit signed integer hash code.
2566
+ */
2567
+ hashCode()
2568
+ {
2569
+ return this.getJavaClass().hashCodeSync();
2570
+ }
2571
+ }
2572
+
2573
+
2574
+ /**
2575
+ * <p>
2576
+ * Class for encoding and decoding the text embedded in the HIBC LIC code which stores seconday data.
2577
+ * </p>
2578
+ */
2579
+ class HIBCLICSecondaryAndAdditionalDataCodetext extends HIBCLICComplexCodetext
2580
+ {
2581
+ static JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwHIBCLICSecondaryAndAdditionalDataCodetext";
2582
+ data;
2583
+
2584
+ constructor()
2585
+ {
2586
+ let java_class_link = java.import(HIBCLICSecondaryAndAdditionalDataCodetext.JAVA_CLASS_NAME);
2587
+ let javaClass = new java_class_link();
2588
+ super(javaClass);
2589
+ }
2590
+
2591
+ static construct(java_class)
2592
+ {
2593
+ let obj = new HIBCLICSecondaryAndAdditionalDataCodetext();
2594
+ obj.setJavaClass(java_class);
2595
+ return obj;
2596
+ }
2597
+
2598
+ /**
2599
+ * <p>
2600
+ * Identifies secodary and additional supplemental data.
2601
+ * </p>
2602
+ */
2603
+ getData()
2604
+ {
2605
+ return this.data;
2606
+ }
2607
+
2608
+ /**
2609
+ * <p>
2610
+ * Identifies secodary and additional supplemental data.
2611
+ * </p>
2612
+ */
2613
+ setData(value)
2614
+ {
2615
+ this.getJavaClass().setDataSync(value.getJavaClass());
2616
+ this.data = value;
2617
+ }
2618
+
2619
+ /**
2620
+ * <p>
2621
+ * Identifies link character.
2622
+ * </p>
2623
+ */
2624
+ getLinkCharacter()
2625
+ {
2626
+ return this.getJavaClass().getLinkCharacterSync();
2627
+ }
2628
+
2629
+ /**
2630
+ * <p>
2631
+ * Identifies link character.
2632
+ * </p>
2633
+ */
2634
+ setLinkCharacter(value)
2635
+ {
2636
+ this.getJavaClass().setLinkCharacterSync(value);
2637
+ }
2638
+
2639
+ /**
2640
+ * <p>
2641
+ * Constructs codetext
2642
+ * </p>
2643
+ *
2644
+ * @return Constructed codetext
2645
+ */
2646
+ getConstructedCodetext()
2647
+ {
2648
+ return this.getJavaClass().getConstructedCodetextSync();
2649
+ }
2650
+
2651
+ /**
2652
+ * <p>
2653
+ * Initializes instance from constructed codetext.
2654
+ * </p>
2655
+ *
2656
+ * @param constructedCodetext Constructed codetext.
2657
+ */
2658
+ initFromString(constructedCodetext)
2659
+ {
2660
+ this.getJavaClass().initFromStringSync(constructedCodetext);
2661
+ }
2662
+
2663
+ /**
2664
+ * <p>
2665
+ * Returns a value indicating whether this instance is equal to a specified {@code HIBCLICSecondaryAndAdditionalDataCodetext} value.
2666
+ * </p>
2667
+ *
2668
+ * @param obj An {@code HIBCLICSecondaryAndAdditionalDataCodetext} value to compare to this instance.
2669
+ * @return {@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
2670
+ */
2671
+ equals(obj)
2672
+ {
2673
+ return this.getJavaClass().equalsSync(obj.getJavaClass());
2674
+ }
2675
+
2676
+ /**
2677
+ * <p>
2678
+ * Returns the hash code for this instance.
2679
+ * </p>
2680
+ *
2681
+ * @return A 32-bit signed integer hash code.
2682
+ */
2683
+ hashCode()
2684
+ {
2685
+ return this.getJavaClass().hashCodeSync();
2686
+ }
2687
+
2688
+ init()
2689
+ {
2690
+ this.data = SecondaryAndAdditionalData.construct(this.getJavaClass().getDataSync());
2691
+ }
2692
+ }
2693
+
2694
+ /**
2695
+ * <p>
2696
+ * Class for encoding and decoding the text embedded in the HIBC PAS code.
2697
+ * </p><p><hr><blockquote><pre>
2698
+ * This sample shows how to encode and decode HIBC PAS using HIBCPASCodetext.
2699
+ * <pre>
2700
+ *
2701
+ * let complexCodetext = new HIBCPASComplexCodetext();
2702
+ * complexCodetext.setDataLocation(HIBCPASDataLocation.PATIENT);
2703
+ * complexCodetext.addRecord(HIBCPASDataType.LABELER_IDENTIFICATION_CODE, "A123");
2704
+ * complexCodetext.addRecord(HIBCPASDataType.MANUFACTURER_SERIAL_NUMBER, "SERIAL123");
2705
+ * complexCodetext.setBarcodeType(EncodeTypes.HIBC_DATA_MATRIX_PAS);
2706
+ * let generator = new ComplexBarcodeGenerator(complexCodetext);
2707
+ * {
2708
+ * BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(BarCodeImageFormat.PNG), null, DecodeType.HIBC_DATA_MATRIX_PAS);
2709
+ * {
2710
+ * reader.readBarCodes();
2711
+ * let codetext = reader.getFoundBarCodes()[0].getCodeText();
2712
+ * let readCodetext = ComplexCodetextReader.tryDecodeHIBCPAS(codetext);
2713
+ * print("Data location: " + readCodetext.getDataLocation());
2714
+ * print("Data type: " + readCodetext.getRecords()[0].getDataType());
2715
+ * print("Data: " + readCodetext.getRecords()[0].getData());
2716
+ * print("Data type: " + readCodetext.getRecords()[1].getDataType());
2717
+ * print("Data: " + readCodetext.getRecords()[1].getData());
2718
+ * }
2719
+ * }
2720
+ * </pre>
2721
+ * </pre></blockquote></hr></p>
2722
+ */
2723
+ class HIBCPASCodetext extends IComplexCodetext
2724
+ {
2725
+ static JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwHIBCPASCodetext";
2726
+
2727
+ constructor()
2728
+ {
2729
+ let java_class_link = java.import(HIBCPASCodetext.JAVA_CLASS_NAME);
2730
+ let javaClass = new java_class_link();
2731
+ super(javaClass);
2732
+ }
2733
+
2734
+ /**
2735
+ * <p>
2736
+ * HIBCPASRecord constructor
2737
+ * </p>
2738
+ */
2739
+ static construct(javaClass)
2740
+ {
2741
+ let obj = new HIBCPASCodetext();
2742
+ obj.setJavaClass(javaClass);
2743
+ return obj;
2744
+ }
2745
+
2746
+ init()
2747
+ {
2748
+
2749
+ }
2750
+
2751
+ /**
2752
+ * <p>
2753
+ * Gets or sets barcode type. HIBC PAS codetext can be encoded using HIBCCode39PAS, HIBCCode128PAS, HIBCAztec:PAS, HIBCDataMatrixPAS and HIBCQRPAS encode types.
2754
+ * Default value: HIBCCode39PAS.
2755
+ * </p>
2756
+ * @return Barcode type.
2757
+ */
2758
+ setBarcodeType(value)
2759
+ {
2760
+ this.getJavaClass().setBarcodeTypeSync(value);
2761
+ }
2762
+
2763
+ /**
2764
+ * <p>
2765
+ * Identifies data location.
2766
+ * </p>
2767
+ */
2768
+ getDataLocation()
2769
+ {
2770
+ return this.getJavaClass().getDataLocationSync();
2771
+ }
2772
+ /**
2773
+ * <p>
2774
+ * Identifies data location.
2775
+ * </p>
2776
+ */
2777
+ setDataLocation(value)
2778
+ {
2779
+ this.getJavaClass().setDataLocationSync(value);
2780
+ }
2781
+
2782
+ /**
2783
+ * <p>
2784
+ * Gets records list
2785
+ * </p>
2786
+ * @return List of records
2787
+ */
2788
+ getRecords()
2789
+ {
2790
+ let _array = [];
2791
+ let mwRecordsList = this.getJavaClass().getRecordsSync();
2792
+ let listSize = mwRecordsList.length;
2793
+ for (let i = 0; i < listSize; i++)
2794
+ {
2795
+ let mwhibcpasRecord = mwRecordsList.get(i);
2796
+ _array.push(HIBCPASRecord.construct(mwhibcpasRecord));
2797
+ }
2798
+ return _array;
2799
+ }
2800
+
2801
+ /**
2802
+ * <p>
2803
+ * Adds new record
2804
+ * </p>
2805
+ * @param dataType Type of data
2806
+ * @param data Data string
2807
+ */
2808
+ addRecord(dataType, data)
2809
+ {
2810
+ this.getJavaClass().addRecordSync(dataType, data);
2811
+ }
2812
+
2813
+ /**
2814
+ * <p>
2815
+ * Adds new record
2816
+ * </p>
2817
+ * @param record Record to be added
2818
+ */
2819
+ addHIBCPASRecord(record)
2820
+ {
2821
+ this.getJavaClass().addRecordSync(record.getJavaClass());
2822
+ }
2823
+
2824
+ /**
2825
+ * <p>
2826
+ * Clears records list
2827
+ * </p>
2828
+ */
2829
+ clear()
2830
+ {
2831
+ this.getJavaClass().clearSync();
2832
+ }
2833
+
2834
+ /**
2835
+ * <p>
2836
+ * Gets barcode type.
2837
+ * </p>
2838
+ * @return Barcode type.
2839
+ */
2840
+ getBarcodeType()
2841
+ {
2842
+ return this.getJavaClass().getBarcodeTypeSync();
2843
+ }
2844
+
2845
+ /**
2846
+ * <p>
2847
+ * Constructs codetext
2848
+ * </p>
2849
+ * @return Constructed codetext
2850
+ */
2851
+ getConstructedCodetext()
2852
+ {
2853
+ return this.getJavaClass().getConstructedCodetextSync();
2854
+ }
2855
+
2856
+ /**
2857
+ * <p>
2858
+ * Initializes instance from constructed codetext.
2859
+ * </p>
2860
+ * @param constructedCodetext Constructed codetext.
2861
+ */
2862
+ initFromString(constructedCodetext)
2863
+ {
2864
+ this.getJavaClass().initFromStringSync(constructedCodetext);
2865
+ }
2866
+
2867
+ /**
2868
+ * <p>
2869
+ * Returns a value indicating whether this instance is equal to a specified {@code HIBCPASCodetext} value.
2870
+ * </p>
2871
+ * @return {@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
2872
+ * @param obj An {@code HIBCPASCodetext} value to compare to this instance.
2873
+ */
2874
+ equals(obj)
2875
+ {
2876
+ return this.getJavaClass().equalsSync(obj.getJavaClass());
2877
+ }
2878
+
2879
+ /**
2880
+ * <p>
2881
+ * Returns the hash code for this instance.
2882
+ * </p>
2883
+ * @return A 32-bit signed integer hash code.
2884
+ */
2885
+ hashCode()
2886
+ {
2887
+ return this.getJavaClass().hashCodeSync();
2888
+ }
2889
+ }
2890
+
2891
+ /**
2892
+ * <p>
2893
+ * Class for storing HIBC PAS record.
2894
+ * </p>
2895
+ */
2896
+ class HIBCPASRecord extends joint.BaseJavaClass
2897
+ {
2898
+ static JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwHIBCPASRecord";
2899
+
2900
+ /**
2901
+ * <p>
2902
+ * HIBCPASRecord constructor
2903
+ * </p>
2904
+ *
2905
+ * @param dataType Type of data.
2906
+ * @param data Data string.
2907
+ */
2908
+ constructor(dataType, data)
2909
+ {
2910
+ let java_class_link = java.import(HIBCPASRecord.JAVA_CLASS_NAME);
2911
+ let javaClass = new java_class_link(dataType, data);
2912
+ super(javaClass);
2913
+ }
2914
+
2915
+ /**
2916
+ * <p>
2917
+ * HIBCPASRecord constructor
2918
+ * </p>
2919
+ */
2920
+ static construct(javaClass)
2921
+ {
2922
+ let obj = new HIBCPASRecord(0,0);
2923
+ obj.setJavaClass(javaClass);
2924
+ return obj;
2925
+ }
2926
+
2927
+ init()
2928
+ {}
2929
+
2930
+ /**
2931
+ * <p>
2932
+ * Identifies data type.
2933
+ * </p>
2934
+ */
2935
+ getDataType()
2936
+ {
2937
+ return this.getJavaClass().getDataTypeSync();
2938
+ }
2939
+
2940
+ /**
2941
+ * <p>
2942
+ * Identifies data type.
2943
+ * </p>
2944
+ */
2945
+ setDataType(value)
2946
+ {
2947
+ this.getJavaClass().setDataTypeSync(value);
2948
+ }
2949
+
2950
+ /**
2951
+ * <p>
2952
+ * Identifies data.
2953
+ * </p>
2954
+ */
2955
+ getData()
2956
+ {
2957
+ return this.getJavaClass().getDataSync();
2958
+ }
2959
+
2960
+ /**
2961
+ * <p>
2962
+ * Identifies data.
2963
+ * </p>
2964
+ */
2965
+ setData(value)
2966
+ {
2967
+ this.getJavaClass().setDataSync(value);
2968
+ }
2969
+
2970
+ /**
2971
+ * <p>
2972
+ * Returns a value indicating whether this instance is equal to a specified {@code HIBCPASDataType} value.
2973
+ * </p>
2974
+ *
2975
+ * @param obj An {@code HIBCPASDataType} value to compare to this instance.
2976
+ * @return {@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
2977
+ */
2978
+ equals(obj)
2979
+ {
2980
+ return this.getJavaClass().equalsSync(obj.getJavaClass());
2981
+ }
2982
+
2983
+ /**
2984
+ * <p>
2985
+ * Returns the hash code for this instance.
2986
+ * </p>
2987
+ *
2988
+ * @return A 32-bit signed integer hash code.
2989
+ */
2990
+ hashCode()
2991
+ {
2992
+ return this.getJavaClass().hashCodeSync();
2993
+ }
2994
+ }
2995
+
2996
+
2997
+ /**
2998
+ * <p>
2999
+ * Class for storing HIBC LIC primary data.
3000
+ * </p>
3001
+ */
3002
+ class PrimaryData extends joint.BaseJavaClass
3003
+ {
3004
+ static JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwPrimaryData";
3005
+
3006
+ constructor()
3007
+ {
3008
+ let java_class_link = java.import(PrimaryData.JAVA_CLASS_NAME);
3009
+ let javaClass = new java_class_link();
3010
+ super(javaClass);
3011
+ }
3012
+
3013
+ static construct(java_class)
3014
+ {
3015
+ let obj = new PrimaryData();
3016
+ obj.setJavaClass(java_class);
3017
+ return obj;
3018
+ }
3019
+
3020
+ /**
3021
+ * <p>
3022
+ * Identifies date of labeler identification code.
3023
+ * Labeler identification code must be 4 symbols alphanumeric string, with first character always being alphabetic.
3024
+ * </p>
3025
+ */
3026
+ getLabelerIdentificationCode()
3027
+ {
3028
+ return this.getJavaClass().getLabelerIdentificationCodeSync();
3029
+ }
3030
+
3031
+ /**
3032
+ * <p>
3033
+ * Identifies date of labeler identification code.
3034
+ * Labeler identification code must be 4 symbols alphanumeric string, with first character always being alphabetic.
3035
+ * </p>
3036
+ */
3037
+ setLabelerIdentificationCode(value)
3038
+ {
3039
+ this.getJavaClass().setLabelerIdentificationCodeSync(value);
3040
+ }
3041
+
3042
+ /**
3043
+ * <p>
3044
+ * Identifies product or catalog number. Product or catalog number must be alphanumeric string up to 18 sybmols length.
3045
+ * </p>
3046
+ */
3047
+ getProductOrCatalogNumber()
3048
+ {
3049
+ return this.getJavaClass().getProductOrCatalogNumberSync();
3050
+ }
3051
+
3052
+ /**
3053
+ * <p>
3054
+ * Identifies product or catalog number. Product or catalog number must be alphanumeric string up to 18 sybmols length.
3055
+ * </p>
3056
+ */
3057
+ setProductOrCatalogNumber(value)
3058
+ {
3059
+ this.getJavaClass().setProductOrCatalogNumberSync(value);
3060
+ }
3061
+
3062
+ /**
3063
+ * <p>
3064
+ * Identifies unit of measure ID. Unit of measure ID must be integer value from 0 to 9.
3065
+ * </p>
3066
+ */
3067
+ getUnitOfMeasureID()
3068
+ {
3069
+ return this.getJavaClass().getUnitOfMeasureIDSync();
3070
+ }
3071
+
3072
+ /**
3073
+ * <p>
3074
+ * Identifies unit of measure ID. Unit of measure ID must be integer value from 0 to 9.
3075
+ * </p>
3076
+ */
3077
+ setUnitOfMeasureID(value)
3078
+ {
3079
+ this.getJavaClass().setUnitOfMeasureIDSync(value);
3080
+ }
3081
+
3082
+ /**
3083
+ * <p>
3084
+ * Converts data to string format according HIBC LIC specification.
3085
+ * </p>
3086
+ *
3087
+ * @return Formatted string.
3088
+ */
3089
+ toString()
3090
+ {
3091
+ return this.getJavaClass().toStringSync();
3092
+ }
3093
+
3094
+ /**
3095
+ * <p>
3096
+ * Instantiates primary data from string format according HIBC LIC specification.
3097
+ * </p>
3098
+ *
3099
+ * @param primaryDataCodetext Formatted string.
3100
+ */
3101
+ parseFromString(primaryDataCodetext)
3102
+ {
3103
+ this.getJavaClass().parseFromStringSync(primaryDataCodetext);
3104
+ }
3105
+
3106
+ /**
3107
+ * <p>
3108
+ * Returns a value indicating whether this instance is equal to a specified {@code PrimaryData} value.
3109
+ * </p>
3110
+ *
3111
+ * @param obj An {@code PrimaryData} value to compare to this instance.
3112
+ * @return {@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
3113
+ */
3114
+ equals(obj)
3115
+ {
3116
+ return this.getJavaClass().equalsSync(obj.getJavaClass());
3117
+ }
3118
+
3119
+ /**
3120
+ * <p>
3121
+ * Returns the hash code for this instance.
3122
+ * </p>
3123
+ *
3124
+ * @return A 32-bit signed integer hash code.
3125
+ */
3126
+ hashCode()
3127
+ {
3128
+ return this.getJavaClass().hashCodeSync();
3129
+ }
3130
+
3131
+ init()
3132
+ {}
3133
+ }
3134
+
3135
+ /**
3136
+ * <p>
3137
+ * Class for storing HIBC LIC secondary and additional data.
3138
+ * </p>
3139
+ */
3140
+ class SecondaryAndAdditionalData extends joint.BaseJavaClass
3141
+ {
3142
+ static JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwSecondaryAndAdditionalData";
3143
+
3144
+ constructor()
3145
+ {
3146
+ let java_class_link = java.import(SecondaryAndAdditionalData.JAVA_CLASS_NAME);
3147
+ let javaClass = new java_class_link();
3148
+ super(javaClass);
3149
+ }
3150
+
3151
+ static construct(java_class)
3152
+ {
3153
+ let obj = new SecondaryAndAdditionalData();
3154
+ obj.setJavaClass(java_class);
3155
+ return obj;
3156
+ }
3157
+
3158
+ /**
3159
+ * <p>
3160
+ * Identifies expiry date format.
3161
+ * </p>
3162
+ */
3163
+ getExpiryDateFormat()
3164
+ {
3165
+ return this.getJavaClass().getExpiryDateFormatSync();
3166
+ }
3167
+
3168
+ /**
3169
+ * <p>
3170
+ * Identifies expiry date format.
3171
+ * </p>
3172
+ */
3173
+ setExpiryDateFormat(value)
3174
+ {
3175
+ this.getJavaClass().setExpiryDateFormatSync(value);
3176
+ }
3177
+
3178
+ /**
3179
+ * <p>
3180
+ * Identifies expiry date. Will be used if ExpiryDateFormat is not set to None.
3181
+ * </p>
3182
+ */
3183
+ getExpiryDate()
3184
+ {
3185
+ return new Date(this.getJavaClass().getExpiryDateSync() * 1000);
3186
+ }
3187
+ /**
3188
+ * <p>
3189
+ * Identifies expiry date. Will be used if ExpiryDateFormat is not set to None.
3190
+ * </p>
3191
+ */
3192
+ setExpiryDate(value)
3193
+ {
3194
+ this.getJavaClass().setExpiryDateSync((value.getTime() / 1000).toString());
3195
+ }
3196
+
3197
+ /**
3198
+ * <p>
3199
+ * Identifies lot or batch number. Lot/batch number must be alphanumeric string with up to 18 sybmols length. .
3200
+ * </p>
3201
+ */
3202
+ getLotNumber()
3203
+ {
3204
+ return this.getJavaClass().getLotNumberSync();
3205
+ }
3206
+
3207
+ /**
3208
+ * <p>
3209
+ * Identifies lot or batch number. Lot/batch number must be alphanumeric string with up to 18 sybmols length. .
3210
+ * </p>
3211
+ */
3212
+ setLotNumber(value)
3213
+ {
3214
+ if(value == null)
3215
+ value = "null";
3216
+ this.getJavaClass().setLotNumberSync(value);
3217
+ }
3218
+
3219
+ /**
3220
+ * <p>
3221
+ * Identifies serial number. Serial number must be alphanumeric string up to 18 sybmols length.
3222
+ * </p>
3223
+ */
3224
+ getSerialNumber()
3225
+ {
3226
+ return this.getJavaClass().getSerialNumberSync();
3227
+ }
3228
+
3229
+ /**
3230
+ * <p>
3231
+ * Identifies serial number. Serial number must be alphanumeric string up to 18 sybmols length.
3232
+ * </p>
3233
+ */
3234
+ setSerialNumber(value)
3235
+ {
3236
+ if(value == null)
3237
+ value = "null";
3238
+ this.getJavaClass().setSerialNumberSync(value);
3239
+ }
3240
+
3241
+ /**
3242
+ * <p>
3243
+ * Identifies date of manufacture.
3244
+ * Date of manufacture can be set to DateTime.MinValue in order not to use this field.
3245
+ * Default value: DateTime.MinValue
3246
+ * </p>
3247
+ */
3248
+ getDateOfManufacture()
3249
+ {
3250
+ return new Date(this.getJavaClass().getDateOfManufactureSync() * 1000);
3251
+ }
3252
+
3253
+ /**
3254
+ * <p>
3255
+ * Identifies date of manufacture.
3256
+ * Date of manufacture can be set to DateTime.MinValue in order not to use this field.
3257
+ * Default value: DateTime.MinValue
3258
+ * </p>
3259
+ */
3260
+ setDateOfManufacture(value)
3261
+ {
3262
+ this.getJavaClass().setDateOfManufactureSync((value.getTime() / 1000).toString());
3263
+ }
3264
+
3265
+ /**
3266
+ * <p>
3267
+ * Identifies quantity, must be integer value from 0 to 500.
3268
+ * Quantity can be set to -1 in order not to use this field.
3269
+ * Default value: -1
3270
+ * </p>
3271
+ */
3272
+ getQuantity()
3273
+ {
3274
+ return this.getJavaClass().getQuantitySync();
3275
+ }
3276
+
3277
+ /**
3278
+ * <p>
3279
+ * Identifies quantity, must be integer value from 0 to 500.
3280
+ * Quantity can be set to -1 in order not to use this field.
3281
+ * Default value: -1
3282
+ * </p>
3283
+ */
3284
+ setQuantity(value)
3285
+ {
3286
+ this.getJavaClass().setQuantitySync(value);
3287
+ }
3288
+
3289
+ /**
3290
+ * <p>
3291
+ * Converts data to string format according HIBC LIC specification.
3292
+ * </p>
3293
+ *
3294
+ * @return Formatted string.
3295
+ */
3296
+ toString()
3297
+ {
3298
+ return this.getJavaClass().toStringSync();
3299
+ }
3300
+
3301
+ /**
3302
+ * <p>
3303
+ * Instantiates secondary and additional supplemental data from string format according HIBC LIC specification.
3304
+ * </p>
3305
+ *
3306
+ * @param secondaryDataCodetext Formatted string.
3307
+ */
3308
+ parseFromString(secondaryDataCodetext)
3309
+ {
3310
+ this.getJavaClass().parseFromStringSync(secondaryDataCodetext);
3311
+ }
3312
+
3313
+ /**
3314
+ * <p>
3315
+ * Returns a value indicating whether this instance is equal to a specified {@code SecondaryAndAdditionalData} value.
3316
+ * </p>
3317
+ *
3318
+ * @param obj An {@code SecondaryAndAdditionalData} value to compare to this instance.
3319
+ * @return {@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
3320
+ */
3321
+ equals(obj)
3322
+ {
3323
+ return this.getJavaClass().equalsSync(obj.getJavaClass());
3324
+ }
3325
+
3326
+ /**
3327
+ * <p>
3328
+ * Returns the hash code for this instance.
3329
+ * </p>
3330
+ *
3331
+ * @return A 32-bit signed integer hash code.
3332
+ */
3333
+ hashCode()
3334
+ {
3335
+ return this.getJavaClass().hashCodeSync();
3336
+ }
3337
+
3338
+ init()
3339
+ {}
3340
+ }
3341
+
3342
+ /**
3343
+ * 2D Mailmark Type defines size of Data Matrix barcode
3344
+ * @enum
3345
+ */
3346
+ Mailmark2DType =
3347
+ {
3348
+ /**
3349
+ * Auto determine
3350
+ */
3351
+ AUTO: 0,
3352
+
3353
+ /**
3354
+ * 24 x 24 modules
3355
+ */
3356
+ TYPE_7: 1,
3357
+
3358
+ /**
3359
+ * 32 x 32 modules
3360
+ */
3361
+ TYPE_9: 2,
3362
+
3363
+ /**
3364
+ * 16 x 48 modules
3365
+ */
3366
+ TYPE_29: 3
3367
+ }
3368
+
3369
+ /**
3370
+ * <p>
3371
+ * Specifies the different types of date formats for HIBC LIC.
3372
+ * </p>
3373
+ */
3374
+ HIBCLICDateFormat =
3375
+ {
3376
+ /**
3377
+ * <p>
3378
+ * YYYYMMDD format. Will be encoded in additional supplemental data.
3379
+ * </p>
3380
+ */
3381
+ YYYYMMDD: 0,
3382
+ /**
3383
+ * <p>
3384
+ * MMYY format.
3385
+ * </p>
3386
+ */
3387
+ MMYY: 1,
3388
+ /**
3389
+ * <p>
3390
+ * MMDDYY format.
3391
+ * </p>
3392
+ */
3393
+ MMDDYY: 2,
3394
+ /**
3395
+ * <p>
3396
+ * YYMMDD format.
3397
+ * </p>
3398
+ */
3399
+ YYMMDD: 3,
3400
+ /**
3401
+ * <p>
3402
+ * YYMMDDHH format.
3403
+ * </p>
3404
+ */
3405
+ YYMMDDHH: 4,
3406
+ /**
3407
+ * <p>
3408
+ * Julian date format.
3409
+ * </p>
3410
+ */
3411
+ YYJJJ: 5,
3412
+ /**
3413
+ * <p>
3414
+ * Julian date format with hours.
3415
+ * </p>
3416
+ */
3417
+ YYJJJHH: 6,
3418
+ /**
3419
+ * <p>
3420
+ * Do not encode expiry date.
3421
+ * </p>
3422
+ */
3423
+ NONE:7
3424
+ }
3425
+
3426
+ /**
3427
+ * <p>
3428
+ * HIBC PAS data location types.
3429
+ * </p>
3430
+ */
3431
+ HIBCPASDataLocation =
3432
+ {
3433
+ /**
3434
+ * <p>
3435
+ * A - Patient
3436
+ * </p>
3437
+ */
3438
+ PATIENT: 0,
3439
+ /**
3440
+ * <p>
3441
+ * B - Patient Care Record
3442
+ * </p>
3443
+ */
3444
+ PATIENT_CARE_RECORD: 1,
3445
+ /**
3446
+ * <p>
3447
+ * C - Specimen Container
3448
+ * </p>
3449
+ */
3450
+ SPECIMEN_CONTAINER: 2,
3451
+ /**
3452
+ * <p>
3453
+ * D - Direct Patient Image Item
3454
+ * </p>
3455
+ */
3456
+ DIRECT_PATIENT_IMAGE_ITEM: 3,
3457
+ /**
3458
+ * <p>
3459
+ * E - Business Record
3460
+ * </p>
3461
+ */
3462
+ BUSINESS_RECORD: 4,
3463
+ /**
3464
+ * <p>
3465
+ * F - Medical Administration Record
3466
+ * </p>
3467
+ */
3468
+ MEDICAL_ADMINISTRATION_RECORD: 5,
3469
+ /**
3470
+ * <p>
3471
+ * G - Library Reference Material
3472
+ * </p>
3473
+ */
3474
+ LIBRARY_REFERENCE_MATERIAL: 6,
3475
+ /**
3476
+ * <p>
3477
+ * H - Devices and Materials
3478
+ * </p>
3479
+ */
3480
+ DEVICES_AND_MATERIALS: 7,
3481
+ /**
3482
+ * <p>
3483
+ * I - Identification Card
3484
+ * </p>
3485
+ */
3486
+ IDENTIFICATION_CARD: 8,
3487
+ /**
3488
+ * <p>
3489
+ * J - Product Container
3490
+ * </p>
3491
+ */
3492
+ PRODUCT_CONTAINER: 9,
3493
+ /**
3494
+ * <p>
3495
+ * K - Asset data type
3496
+ * </p>
3497
+ */
3498
+ ASSET: 10,
3499
+ /**
3500
+ * <p>
3501
+ * L - Surgical Instrument
3502
+ * </p>
3503
+ */
3504
+ SURGICAL_INSTRUMENT: 11,
3505
+ /**
3506
+ * <p>
3507
+ * Z - User Defined
3508
+ * </p>
3509
+ */
3510
+ USER_DEFINED: 25
3511
+ }
3512
+
3513
+ /**
3514
+ * <p>
3515
+ * HIBC PAS record's data types.
3516
+ * </p>
3517
+ */
3518
+ HIBCPASDataType =
3519
+ {
3520
+ /**
3521
+ * <p>
3522
+ * A - Labeler Identification Code
3523
+ * </p>
3524
+ */
3525
+ LABELER_IDENTIFICATION_CODE: 0,
3526
+ /**
3527
+ * <p>
3528
+ * B - Service Identification
3529
+ * </p>
3530
+ */
3531
+ SERVICE_IDENTIFICATION: 1,
3532
+ /**
3533
+ * <p>
3534
+ * C - Patient Identification
3535
+ * </p>
3536
+ */
3537
+ PATIENT_IDENTIFICATION: 2,
3538
+ /**
3539
+ * <p>
3540
+ * D - Specimen Identification
3541
+ * </p>
3542
+ */
3543
+ SPECIMEN_IDENTIFICATION: 3,
3544
+ /**
3545
+ * <p>
3546
+ * E - Personnel Identification
3547
+ * </p>
3548
+ */
3549
+ PERSONNEL_IDENTIFICATION: 4,
3550
+ /**
3551
+ * <p>
3552
+ * F - Administrable Product Identification
3553
+ * </p>
3554
+ */
3555
+ ADMINISTRABLE_PRODUCT_IDENTIFICATION: 5,
3556
+ /**
3557
+ * <p>
3558
+ * G - Implantable Product Information
3559
+ * </p>
3560
+ */
3561
+ IMPLANTABLE_PRODUCT_INFORMATION: 6,
3562
+ /**
3563
+ * <p>
3564
+ * H - Hospital Item Identification
3565
+ * </p>
3566
+ */
3567
+ HOSPITAL_ITEM_IDENTIFICATION: 7,
3568
+ /**
3569
+ * <p>
3570
+ * I - Medical Procedure Identification
3571
+ * </p>
3572
+ */
3573
+ MEDICAL_PROCEDURE_IDENTIFICATION: 8,
3574
+ /**
3575
+ * <p>
3576
+ * J - Reimbursement Category
3577
+ * </p>
3578
+ */
3579
+ REIMBURSEMENT_CATEGORY: 9,
3580
+ /**
3581
+ * <p>
3582
+ * K - Blood Product Identification
3583
+ * </p>
3584
+ */
3585
+ BLOOD_PRODUCT_IDENTIFICATION: 10,
3586
+ /**
3587
+ * <p>
3588
+ * L - Demographic Data
3589
+ * </p>
3590
+ */
3591
+ DEMOGRAPHIC_DATA: 11,
3592
+ /**
3593
+ * <p>
3594
+ * M - DateTime in YYYDDDHHMMG format
3595
+ * </p>
3596
+ */
3597
+ DATE_TIME: 12,
3598
+ /**
3599
+ * <p>
3600
+ * N - Asset Identification
3601
+ * </p>
3602
+ */
3603
+ ASSET_IDENTIFICATION: 13,
3604
+ /**
3605
+ * <p>
3606
+ * O - Purchase Order Number
3607
+ * </p>
3608
+ */
3609
+ PURCHASE_ORDER_NUMBER: 14,
3610
+ /**
3611
+ * <p>
3612
+ * P - Dietary Item Identification
3613
+ * </p>
3614
+ */
3615
+ DIETARY_ITEM_IDENTIFICATION: 15,
3616
+ /**
3617
+ * <p>
3618
+ * Q - Manufacturer Serial Number
3619
+ * </p>
3620
+ */
3621
+ MANUFACTURER_SERIAL_NUMBER: 16,
3622
+ /**
3623
+ * <p>
3624
+ * R - Library Materials Identification
3625
+ * </p>
3626
+ */
3627
+ LIBRARY_MATERIALS_IDENTIFICATION: 17,
3628
+ /**
3629
+ * <p>
3630
+ * S - Business Control Number
3631
+ * </p>
3632
+ */
3633
+ BUSINESS_CONTROL_NUMBER: 18,
3634
+ /**
3635
+ * <p>
3636
+ * T - Episode of Care Identification
3637
+ * </p>
3638
+ */
3639
+ EPISODE_OF_CARE_IDENTIFICATION: 19,
3640
+ /**
3641
+ * <p>
3642
+ * U - Health Industry Number
3643
+ * </p>
3644
+ */
3645
+ HEALTH_INDUSTRY_NUMBER: 20,
3646
+ /**
3647
+ * <p>
3648
+ * V - Patient Visit ID
3649
+ * </p>
3650
+ */
3651
+ PATIENT_VISIT_ID: 21,
3652
+ /**
3653
+ * <p>
3654
+ * X - XML Document
3655
+ * </p>
3656
+ */
3657
+ XML_DOCUMENT: 22,
3658
+ /**
3659
+ * <p>
3660
+ * Z - User Defined
3661
+ * </p>
3662
+ */
3663
+ USER_DEFINED: 25
2201
3664
  }
2202
3665
 
2203
3666
  module.exports = {
@@ -2217,5 +3680,15 @@ module.exports = {
2217
3680
  MaxiCodeStructuredSecondMessage,
2218
3681
  MaxiCodeCodetextMode3,
2219
3682
  MaxiCodeCodetextMode2,
2220
- MaxiCodeCodetext
3683
+ MaxiCodeCodetext,
3684
+ HIBCLICCombinedCodetext,
3685
+ HIBCLICComplexCodetext,
3686
+ HIBCLICPrimaryDataCodetext,
3687
+ HIBCLICSecondaryAndAdditionalDataCodetext,
3688
+ HIBCPASCodetext,
3689
+ HIBCPASRecord,
3690
+ PrimaryData,
3691
+ SecondaryAndAdditionalData,
3692
+ HIBCLICDateFormat,
3693
+ HIBCPASDataType
2221
3694
  };