Skip to content

HL7 v2 Inbound Endpoint Allows malformed resources to be created #4746

Open
@Qingyixia

Description

@Qingyixia

Describe the bug
The Lenient Error handler allows the malformed resource with an extension that includes both a value and a contained extension to be created. the resource is persisted in the repository but cannot be acted upon thereafter. Any attempts to read, update or delete the resource result in errors.

To Reproduce
Steps to reproduce the behavior:

  1. Set the Lenient Error Handler as the Parser Error Handler
  2. Using the Parser to encode a malformed resource, will succeed
  3. See error

Expected behavior
An exception should be thrown as the Strict Error Handler

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions