Hello,
I am having some issues getting the correct description of fields from another table. I have several fields that I am trying to pull the description of. For ex:
I need to pull the description of race, gender, marital status etc. from a global code table. I have tried to add the category name to the selection expert but it only pulls all the clients that actually have something in each field.
So in the selection expert I did {Global_Code_Sex.category} = 'SEX'
for Gender. But if any patient has this as null in their record it does not pull their record.
I have also tried to remove that from the selection expert and use his formula for the field itself:
Whileprintingrecords;
(if{Patient.sex} = {Global_Code_Sex.code} and {Global_Code_Sex.category} = 'SEX'
then
{Global_Code_Sex.name}
else "Missing")
The problem with that is there is a code of M in that table and I get that field name instead of Male.
Can anyone help me with this?
I am having some issues getting the correct description of fields from another table. I have several fields that I am trying to pull the description of. For ex:
I need to pull the description of race, gender, marital status etc. from a global code table. I have tried to add the category name to the selection expert but it only pulls all the clients that actually have something in each field.
So in the selection expert I did {Global_Code_Sex.category} = 'SEX'
for Gender. But if any patient has this as null in their record it does not pull their record.
I have also tried to remove that from the selection expert and use his formula for the field itself:
Whileprintingrecords;
(if{Patient.sex} = {Global_Code_Sex.code} and {Global_Code_Sex.category} = 'SEX'
then
{Global_Code_Sex.name}
else "Missing")
The problem with that is there is a code of M in that table and I get that field name instead of Male.
Can anyone help me with this?