Description
Preserve a decimal healthcare identifier as text and count its initial zeros.
Health-information systems separate identifiers, code-system namespaces, source versions, missing-value states and reference syntax. Recording a mapping or recognizing a restricted token does not validate its clinical meaning or a complete HL7/FHIR resource. Explicit null, empty text, unknown status and numeric zero are different states.
Preserve a decimal healthcare identifier as text and count its initial zeros.
When to use this tool
Use Healthcare Identifier Leading Zero Preservation when checking the stated restricted health-data record, token or transition convention.
How to use the tool and how it works
- Enter identifierText. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read preservedIdentifier, leadingZeroCount. Use the output convention below.
Require a nonempty ASCII digit string. Preserve it verbatim and count its initial zeros, including every zero in an all-zero identifier.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| identifierText | Identifier Text | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| preservedIdentifier | Preserved Identifier | Required. Text; maximum UTF-16 length 8192. |
| leadingZeroCount | All initial zero characters, including every character when the identifier consists only of zeros. | Required. Safe integer. |
{
"input": {
"identifierText": "00124"
},
"output": {
"preservedIdentifier": "00124",
"leadingZeroCount": 2
}
} Limitations and assumptions
- No numeric conversion, check-digit validation, identity match or authoritative identifier lookup is performed.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Use the intended complete interoperability specification, authoritative terminology and verified source records for actual resource validation, semantic mapping or clinical use.
References
Similar or alternative tools
- HL7 Field Component Token
Format a one-based HL7 segment, field and component locator.
- FHIR Resource ID Reference Split
Split a restricted relative FHIR resource reference and optional history version.