Skip to content

Add CharSetUtil and PreParser for parsing MSH-18 charset before main parsing #312

@jakubsuchybio

Description

@jakubsuchybio

Is your feature request related to a problem? Please describe.
I have ported our java HL7 service into C# few years back, but few features are still missing.
We will soon try to implement some of them. And one of them is parsing charset from the MSH-18

Describe the solution you'd like
In Hapi, there is CharSetUtil that can get charset from MSH
https://github.com/hapifhir/hapi-hl7v2/blob/master/hapi-base/src/main/java/ca/uhn/hl7v2/llp/CharSetUtil.java
but it uses PreParser to get the charset from MSH-18
https://github.com/hapifhir/hapi-hl7v2/blob/master/hapi-base/src/main/java/ca/uhn/hl7v2/preparser/PreParser.java

Describe alternatives you've considered
I might do it by myself, but I think this is part of Hapi, that should be implemented in nHapi, not in our code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions