Transformations
Hi this is my first post, so a little about my background. I've been programming in PHP/JavaScript for about 10 years.
I've got quite a bit of knowledge surrounding object orientated programming and know the basics.
Last year I looked into the Mirth integration engine and did some work around that.
I've now moved jobs and I'm doing some work (surprise, surprise) with Ensemble.
I've done the tutorial and understand the basics of the web 'frontend' and what an integration engine can do. I'm now being asked to write a transformation to take a hl7 message and create a html one which is then base64'ed and outputted to a file.
So at present I've created my service, processor and output.
Service is very simple Inbound file adapter, processor that can accept that.
and finally a operation that has a class name of
EnsLib.File.PassthroughOperation
and a adapter of
EnsLib.File.OutboundAdapter
I think those are correct but if not someone tell me what I'm meant to use!
So now I need to create a transformation that can process the hl7 message, take the relevant bits and create the html message.
It seems (again point me in the right direction if I'm wrong) that I have to create a transformation class.
and this is my start
Class Tutorial.TransformToHTMLBase64 Extends Ens.DataTransform
{
ClassMethod Transform(source As EnsLib.HL7.Service.FileService, target As EnsLib.File.PassthroughOperation) As %Status
{
Set $ZT="Trap",tSC=$$$OK
set target = "test"
Exit
Quit tsc
}
}
It doesn't want to compile, probably because the target is wrong?
But now I'm stuck.
I guess there are some video tutorials on this site but at present my trust has blocked them. I'm reading the generic docs which show how to get started in this language, but it's slow going.
Any help would be appreciated.
Thanks
Richard