---
sourceDocument: Brazil Healthcare and Life Sciences
sourceDocumentLink: https://www.servicenow.com/docs/r/healthcare-life-sciences

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Healthcare and Life Sciences

ft:clusterId :

    - hcls

bundleId :

    - hcls

workflow :

    - Customer and Industry


---

# Parser configurations

# Parser configurations {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Parser configurations

Parser configurations in ServiceNow define which HL7 segments and fields are extracted from incoming HL7 messages.
These configurations direct the HL7 parser on what data to extract and where to store it in the message log's parsed data.
The parser itself is message-type agnostic, relying on configurations to handle different HL7 message types such as ADT, ORU, or ORM without needing modification.
Show full answer Show less  

## Configuration hierarchy

Parser configurations are structured in a three-level hierarchy:

* **Parser configuration (snhl7v2parserconfig):** Top-level record specifying the HL7 version, message type, trigger event, sending application, and sending facility. Only one active configuration is allowed per unique combination of these fields.
* **Parser segment (snhl7v2parsersegment):** Defines individual HL7 segments (e.g., PV1) to extract, each with a label and segment code. A parser configuration includes one or more segments.
* **Field map (snhl7v2parserfieldmap):** Maps specific HL7 field positions within a segment to output paths in the parsed data. Field positions use notation like PV1.3.2 to indicate fields and components.

## Runtime lookup and parsing process

When a message is received, ServiceNow performs a runtime lookup to find the single active parser configuration matching the message's sending application, sending facility, HL7 version, message type, and trigger event from the MSH segment. If exactly one active configuration matches, it is used to parse the message. If none or multiple configurations match, the message is marked as Failed and an AR acknowledgment is generated.

## Demo configurations and customization

ServiceNow provides four demo parser configurations for common ADT message types (A01 Admit, A02 Transfer, A03 Discharge, A08 Update), covering EVN, PID, and PV1 segments. These demo configurations are installed with demo data and can be edited directly by replacing placeholder values with your interface's sending application and facility. Alternatively, you can clone them to create customized configurations for hospital-specific variations and relabel fields as needed.  
Parser configurations define which HL7 segments and fields ServiceNow extracts from a received message. Each value is written to an output path in the message log's parsed data.

The HL7 parser is message-type agnostic --- it does not know in advance what
fields a given message contains. A parser configuration tells ServiceNow which
segments to extract and the output path for each field. When a message is
received, ServiceNow looks up the active configuration matching the incoming
message header's sending application, facility, HL7 version, message type, and
trigger event. It then uses that configuration to drive parsing. Because each
message type gets its own configuration, the same parser engine can handle ADT,
ORU, ORM, or any other HL7 message type without modification.

## Configuration hierarchy

Parser configurations use a three-level hierarchy:

Parser configuration (`sn_hl7_v2_parser_config`)
:   The top-level record. Identifies the HL7 version, message type, and
    trigger event the configuration applies to, along with the sending
    application and sending facility. An active-uniqueness business rule
    allows at most one active configuration per combination of these five
    fields.

Parser segment (`sn_hl7_v2_parser_segment`)
:   Each segment record defines one HL7 segment to extract (for example,
    PV1). Segments have a human-readable label and an HL7 segment code.
    A parser configuration contains one or more segment records.

Field map (`sn_hl7_v2_parser_field_map`)
:   Each field map record maps one HL7 field position within a segment to a
    dotted output path (`field_name`) in the parsed data, with
    an optional human-readable label. The field position is written in
    `field` or `field.component` notation --- for
    example, `PV1.3.2` for the room within the patient
    location.

## Runtime lookup

The message log has no foreign key to the parser configuration table.
Instead, ServiceNow performs a lookup at reception. It matches the message's
MSH fields against the parser configuration table to find the single active
configuration for that key. The matched fields are: sending application,
sending facility, HL7 version, message type, and trigger event. If exactly one active configuration
matches, the message is parsed with it. If none or more than one matches,
the message is staged with status Failed and an AR acknowledgment.

## Demo configurations and cloning

Four demo parser configurations are available for ADT A01 (Admit), A02
(Transfer), A03 (Discharge), and A08 (Update), each covering the EVN, PID, and
PV1 segments. They are installed only when you load demo data, and they are
ordinary editable records. Edit one in place --- replacing the placeholder
sending application and facility with your interface's values --- or use
Clone to create a copy for hospital-specific field
variations and relabeling.

