I want to add "PMHD Laboratory" into the OBR filler field, IF the MSH sending facility is "PMHD" in an ORU message. I have tried numerous things and it is giving me a hard time.
--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healt...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Are you trying to put PMHD in the second field of each repetition of the OBR filler field? Or is there a particular OBR filler field that you are looking to populate?
If it is the former, you may have to perform two sets of loops to assign the values.
If it is the later, the statement provided by LMC should work by inserting the index of the PID group and the ORC group in the statement.
Alex Bear
IT Programmer/Analyst
4 BAP
3200 Burnet Ave
Cincinnati, OH 45229
![]()
--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to
Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to
Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
Ensemble-in-Healt...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
If you only want the “PMHD Laboratory” in the first OBR, then modifying your IF statement to:
If Contains(source.{MSH:SendingFacility},"PMHD")", insert "PMHD Laboratory" in Target.{PIDgrpgrp(1).ORCgrp(1).OBR:FillerField2}, else, endif.
Should give you those results. If the ORU message has multiple ORC groups, it may be necessary to loop through PID and ORC group to set the value in the first OBR.
Alex Bear
IT Programmer/Analyst
4 BAP
3200 Burnet Ave
Cincinnati, OH 45229
![]()
From: Ensemble-in...@googlegroups.com [mailto:Ensemble-in...@googlegroups.com]
On Behalf Of LMC
Sent: Monday, May 13, 2013 6:57 PM
To: Ensemble-in...@googlegroups.com
Subject: [InterSystems-EnsHlth] Re: Add text to a field in data transformation
It would just need to be the first OBR filler field.
On Wednesday, May 8, 2013 2:02:40 PM UTC-7, LMC wrote:
I want to add "PMHD Laboratory" into the OBR filler field, IF the MSH sending facility is "PMHD" in an ORU message. I have tried numerous things and it is giving me a hard time.
--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to
Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to
Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
Ensemble-in-Healt...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.