@cosyte/hl7 0.1.1 → 0.1.2

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.
package/dist/index.d.cts CHANGED
@@ -496,12 +496,14 @@ declare function unterminatedStreamMessage(position: Hl7Position): Hl7ParseWarni
496
496
  */
497
497
 
498
498
  /**
499
- * Positional context attached to every warning and fatal error. Fields are
500
- * 1-indexed against the HL7 spec convention (see `RawSegment.fields` for the
501
- * index 0 slot convention). All fields past `segmentIndex` are optional,
502
- * for a top-level fatal like `EMPTY_INPUT` only `segmentIndex: 0` is
503
- * populated; for a tokenizer warning deep inside a subcomponent all five
504
- * indices may be set.
499
+ * Positional context attached to every warning and fatal error.
500
+ * `segmentIndex` counts segments from 0, so a parsed message's MSH segment is
501
+ * 0. The other fields are 1-indexed against the HL7 spec convention:
502
+ * `fieldIndex: 3` on MSH is MSH-3 and `repetitionIndex: 1` is the first
503
+ * repetition (see `RawSegment.fields` for the index 0 slot convention). All
504
+ * fields past `segmentIndex` are optional: for a top-level fatal like
505
+ * `EMPTY_INPUT` only `segmentIndex: 0` is populated; for a tokenizer warning
506
+ * deep inside a subcomponent all five indices may be set.
505
507
  *
506
508
  * @remarks
507
509
  * With `exactOptionalPropertyTypes: true`, do not pass `fieldIndex: undefined`
package/dist/index.d.ts CHANGED
@@ -496,12 +496,14 @@ declare function unterminatedStreamMessage(position: Hl7Position): Hl7ParseWarni
496
496
  */
497
497
 
498
498
  /**
499
- * Positional context attached to every warning and fatal error. Fields are
500
- * 1-indexed against the HL7 spec convention (see `RawSegment.fields` for the
501
- * index 0 slot convention). All fields past `segmentIndex` are optional,
502
- * for a top-level fatal like `EMPTY_INPUT` only `segmentIndex: 0` is
503
- * populated; for a tokenizer warning deep inside a subcomponent all five
504
- * indices may be set.
499
+ * Positional context attached to every warning and fatal error.
500
+ * `segmentIndex` counts segments from 0, so a parsed message's MSH segment is
501
+ * 0. The other fields are 1-indexed against the HL7 spec convention:
502
+ * `fieldIndex: 3` on MSH is MSH-3 and `repetitionIndex: 1` is the first
503
+ * repetition (see `RawSegment.fields` for the index 0 slot convention). All
504
+ * fields past `segmentIndex` are optional: for a top-level fatal like
505
+ * `EMPTY_INPUT` only `segmentIndex: 0` is populated; for a tokenizer warning
506
+ * deep inside a subcomponent all five indices may be set.
505
507
  *
506
508
  * @remarks
507
509
  * With `exactOptionalPropertyTypes: true`, do not pass `fieldIndex: undefined`
package/dist/index.mjs CHANGED
@@ -14899,7 +14899,7 @@ async function* parseStream(source, optionsOrProfile) {
14899
14899
  }
14900
14900
 
14901
14901
  // src/index.ts
14902
- var VERSION = "0.1.1";
14902
+ var VERSION = "0.1.2";
14903
14903
 
14904
14904
  export { ACK_CODES, ACK_CONDITIONS, AMBIGUOUS_DATE_ORDER, BUILTIN_DATE_FALLBACKS, DEFAULT_ENCODING_CHARACTERS, ERR_CONDITION_CODES, ERR_CONDITION_CODE_SYSTEM, ERR_SEVERITIES, FATAL_CODES, FINDING_CODES, Field, namespace_exports as HL7, Hl7Message, Hl7ParseError, JSON_SCHEMA_DIALECT, KNOWN_CODING_SYSTEMS, KNOWN_SEGMENTS, MESSAGE_STRUCTURE_DEFINITIONS, PREDICATE_CONNECTORS, PREDICATE_VERBS, PROFILE_LEVELS, ProfileDefinitionError, SCHEMA_EMIT_TARGETS, STRUCTURE_FINDING_CODES, STRUCTURE_NOT_VALIDATED_REASONS, STRUCTURE_REGISTRY_PROVENANCE, SUPPORTED_BUILDER_MESSAGES, SUPPORTED_DATE_TOKENS, SUPPORTED_OVERLAY_MESSAGES, SchemaTargetError, Segment, TYPED_BUILDER_COVERAGE, USAGE_CODES, VERSION, WARNING_CODES, ackNoCorrelationId, alternateCodingSystemOf, analyzeMessageStructure, batchCountMismatch, batchMissingTrailer, buildAck, buildAdt, buildDft, buildMdm, buildMessage, buildOrm, buildOru, buildSiu, buildVxu, canonicalCharset, codingSystem, codingSystemOf, conformance_exports as conformance, decodeText, defineConformanceProfile, defineProfile, detectAckMode, downgradePositiveAck, dtmToDate, duplicateRequiredSegment, emitMessageSchema, encodeCe, encodeComposite, encodeCompositeReps, encodeCwe, encodeCx, encodeHd, encodeNm, encodePl, encodeText, encodeTs, encodeXad, encodeXcn, encodeXpn, encodeXtn, encodingMismatch, extraFields, fieldWhitespaceTrimmed, findMessageStructureDefinition, formatDtm, getDefaultProfile, interpretAck, isPositiveAck, isSchemaEmitTarget, mergeMissingPriorOrSurvivor, messageJsonSchema, messageZodSource, missingExpectedGroup, missingRequiredField, missingRequiredSegment, mllpFramingStripped, outOfOrderSegment, parseCe, parseCwe, parseCx, parseDtm, parseHL7, parseHd, parseNm, parsePath, parsePl, parseSn, parseStream, parseTs, parseXad, parseXcn, parseXpn, parseXtn, pickMrn, profiles, reescape, renderText, resolveCharset, resolvePath, segmentCase, setDefaultProfile, splitBatch, supportsBuilderMessage, text_exports as text, timestampFallbackFormat, toDate, toISO, toObject, unescape, unknownCharset, unknownEscapeSequence, unknownSegment, unsupportedCharset, unterminatedEscapeSequence, unterminatedStreamMessage, usageOutcomes, validateAgainstProfile, validateMessageStructure, versionMismatch };
14905
14905
  //# sourceMappingURL=index.mjs.map