Originally posted by Vanessa Rivera
Need to write this If statement in an xlate for diet orders. Any help is appreciated.
If ODS.4.3 equals Supplement Type #1 and Freq #1
place whats in ODS.4.2 from the Freq #1 ODS into ODS.4.3.
This will have to repeat again if there is #2 for both. We only send the max of two supplements per message.
This is what we have now:
ODS|S|||Supplement Type #1^ Ensure High Protein
ODS|S|||Supplement Type #2^ Juven
ODS|S|||Freq #1^ BREAKFAST
ODS|S|||Freq #2^ LUNCH
This is what we want:
ODS|S|||Supplement Type #1^ Ensure High Protein^ BREAKFAST
ODS|S|||Supplement Type #2^ Juven^ LUNCH
ODS|S|||Freq #1^ BREAKFAST
ODS|S|||Freq #2^ LUNCH