· Nov 30, 2023

Multitransformations of HL7

This question originally appeared in the comments of the post: Making use of Multiple Sub Transforms in a main map || HL7

I'm having a similar problem trying to get PRD(1) into PV1:ReferingDoctor and PRD(2) into PV1:ConsultingDoc

Running the subtransform will populate referring doctor for the first PRD, and then the second running will delete the PV1, make a new one with only the consulting doctor populated.

Was hoping I could use a subtransform to populate the information, but looks like it has to be done at the transform level.

Discussion (1)1
Log in or sign up to continue

Solved the problem. In the subtransforms <transform ... > header, set "create" to equal 'existing'. By default if it's not specified it makes it mean 'new'.

Link to the documentation:


<transform sourceClass='EnsLib.HL7.Segment' targetClass='EnsLib.HL7.Segment' sourceDocType='2.4:PRD' targetDocType='2.4:PV1' create='existing' language='objectscript' >