public static BMI.Person convertCTXPersonToPerson(Person person)
        {
            if (person != null)
            {
                BMI.Person retVal = new BMI.Person
                {
                    socialSecurityNumber = person.SocialSecurityNumber,
                    birthDate = person.BirthDate,
                    gender = (PersonDef.Gender)Enum.Parse(typeof(PersonDef.Gender), person.Gender)
                };

                foreach (Measurement measurement in person.Measurements)
                {
                    retVal.measurements.Add(convertCTXMeasurementToMeasurement(measurement));
                }

                return retVal;

            }

            return null;
        }   
        public static Person convertPersonToCTXPerson(BMI.Person person)
        {
            if (person != null)
            {
                Person retVal = new Person
                {
                    SocialSecurityNumber = person.socialSecurityNumber,
                    BirthDate = person.birthDate,
                    Gender = person.gender.ToString()
                };

                foreach (BMI.Containers.Measurement measurement in person.measurements)
                {
                    retVal.Measurements.Add(convertMeasurementToCTXMeasurement(person.socialSecurityNumber, measurement));
                }

                return retVal;

            }

            return null;
        }