Unable to process an NTE segment in an ADT message during File pass thru
Hi Team,
I am trying to use the inbuilt class: EnsLib.HL7.Service.FileService to pass through an HL7 ADT message as a part of an HL7 to FHIR transformation. We have a client requirement, where we are receiving an NTE segment as a part of the ADT message. However, the inbuilt schema structure of the HL7 ADT message does not support an NTE segment out of the box. We are getting an error message stating "Unrecognized segment".
Please advise, how do we bypass this error?
Thanks
Santosh
Comments
You can create your own HL7 schema to include the NTE segment for the ADT message, you will be able to configure the FileService to get HL7 messages based on your custom schema:
https://docs.intersystems.com/irisforhealthlatest/csp/docbook/DocBook.U…
You can create a custom schema based on the current schema you have listed in your business service that reads the file.
Once you have the custom schema, if its a specific ADT message you need the NTE segment on, then can create that message type from the base schema and edit the Doc Type Structure by putting ~[NTE] at the end of the raw structure.