Skip to content

ORL_O34 structure definition contains cyclic reference #298

@BogiG

Description

@BogiG

Parsing an ORL_O34 Message gets a stackoverflow-exception

See HAPI BUG: https://sourceforge.net/p/hl7api/bugs/150/

For this reason parsing ORL_O34 message cause StackOverflowError.

Current simplified definition (only relevant branch of message strucutre) is:

ORL_O34
└── ORL_O34_RESPONSE
    └── ORL_O34_PATIENT
        └── ORL_O34_SPECIMEN
            └── ORL_O34_ORDER
                └── ORL_O34_OBSERVATION_REQUEST
                    └── ORL_O34_SPECIMEN (!cyclic reference).

Instead of last ORL_O34_SPECIMEN there should be ORL_O34_OBSERVATION_REQUEST_SPECIMEN.

Bug in ORL_O34_OBSERVATION_REQUEST.cs - Line 30

This is problem in v2.5 and v2.5.1.

just try to parse this:

MSH|^~\&|software|LAB Name|LIS|LIS Facility|20220519155702||ORL^O34^ORL_O34|19010ca7-337e-4c97-b8c9-3a325ea4be8d|P|2.5.1||||||UNICODE UTF-8|||LAB-28^IHE
MSA|AA|eb8b393a-d3e6-47bb-8f85-80f7478cf227

can you confirm?

regards, bernhard

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe result of a coding ErrordefectA deviation from the Requirements / Specification.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions