Back to calculator Use calculator
HL7 & InterfacesGenerated accuracy model review: 2026-05-06
ACK Generator accuracy and testing
This page documents how Calwarden builds trust for this calculator: source notes, regression-style default tests, limitations, assumptions, unit handling, rounding, and visible change history.
Formula source
- The tool reads the inbound MSH segment to extract the Message Control ID (MSH-10), Sender, and Receiver. 1. **Swap Header:** The Receiver becomes the Sender, and the Sender becomes the Receiver. 2. **Create MSA:** A new MSA segment is created referencing the original MSH-10 ID. 3. **Timestamp:** A new timestamp is generated for MSH-7.
Test cases
Default input regression check
Generated from the checked-in default inputs and calculate function.
Inputs
- Original Message: MSH|^~\&|EPIC|HOSP|LIS|LAB|202310261200||ADT^A01|MSG12345|P|2.5
- ACK Code: AA - Application Accept
Expected outputs
- Generated ACK: MSH|^~\&|LIS|LAB|EPIC|HOSP|202609231914||ACK|ACK202609231914|P|2.5 MSA|AA|MSG12345
Known limitations
- This page documents the checked-in calculator logic and does not certify results for every real-world edge case.
- Use the result as a planning estimate unless the calculator page states a stricter purpose.
Assumptions
- The input must begin with a parseable MSH segment so the tool can read separators, control ID, sender, and receiver fields.
- This generator creates a minimal ACK with MSH and MSA only; it does not add ERR, NTE, batching, or workflow-specific validation details.
- Timestamp generation uses the browser's current local time and does not preserve the original message timestamp or timezone offset.
Unit handling
- Original Message accepts text values.
- ACK Code accepts one of the configured options.
Rounding rules
- Number displays use up to 2 decimal places in the calculator UI.
Version history
1.0.0 - 2026-05-06
Generated accuracy and testing page from the current hl7-ack-generator calculator definition.
Change log
2026-05-06
Published default regression test documentation and metadata fallbacks for ACK Generator.
Calculator transparency
Accuracy pages are generated from checked-in calculator definitions and can be upgraded with curated review metadata over time.