Back to calculator Use calculator
HL7 & InterfacesGenerated accuracy model review: 2026-05-06
MSH Builder 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 concatenates the inputs using the standard delimiters (`|` and `^`). It automatically generates the current timestamp for `MSH-7`.
Test cases
Default input regression check
Generated from the checked-in default inputs and calculate function.
Inputs
- Sending App: EPIC
- Sending Facility: HOSP
- Receiving App: LIS
- Receiving Facility: LAB
- Message Type: ADT^A01
- Control ID: 123456
- Version: 2.5
Expected outputs
- MSH Segment: MSH|^~\&|EPIC|HOSP|LIS|LAB|202609231914||ADT^A01|123456|P|2.5
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
- This builder generates a basic MSH shell using standard delimiters and a browser-generated local timestamp.
- The processing ID is fixed to `P` in the output, and the tool does not validate whether the chosen message type and version are correct for your local interface.
- Only the header segment is produced here; downstream segments, acknowledgements, and implementation-specific requirements still need separate review.
Unit handling
- Sending App accepts text values.
- Sending Facility accepts text values.
- Receiving App accepts text values.
- Receiving Facility accepts text values.
- Message Type accepts text values.
- Control ID accepts text values.
- Version accepts text values.
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-msh-builder calculator definition.
Change log
2026-05-06
Published default regression test documentation and metadata fallbacks for MSH Builder.
Calculator transparency
Accuracy pages are generated from checked-in calculator definitions and can be upgraded with curated review metadata over time.