The ObjectScript code looks convincing but is wrong..
We don't have a method Parse() in the EnsLib.HL7.Message class, instead we use ImportFromString(). The DocType should be 2.4:ORU_R01 or similar with message category and doctype combined, and set with PokeDocType() method.
Further, we don't have a FHIR.Resource.Observation package and cannot get value from the HL7 message directly using "src.MSH.GetSendingApplication()". There are more issues like this..
ChatGPT still has a long way to go and a lot to learn..
- Log in to post comments