List inside list

Feb 26, 2014 at 6:44 PM
Edited Feb 27, 2014 at 8:05 AM
Hello,

I've a word document with a table to display phones of patients and their relatives, so the structure would be something like:

Patient - Mobile - Phone - Secondary phone
Relationship - Relative name - Mobile - Phone - Secondary phone

Document image with fields here: http://i60.tinypic.com/2mg5lj5.jpg

Is the document correctly done? and if it's, how should I proceed to make this work? Should I make a list with another list inside?

Something like... ?
    public class phonebook
    {
        public List<patient> patients = null;
        public Guid Id = Guid.Empty;
    }

    public class patient
    {
        public List<Relative> relatives = null;
        public Guid Id = Guid.Empty;
        public string name = string.Empty;
        public string phone = string.Empty;
        public string mobile = string.Empty;
        public string second = string.Empty;
    }

    public class Relative
    {
        public Guid Id = Guid.Empty;
        public string relationship= string.Empty;
        public string name = string.Empty;
        public string phone = string.Empty;
        public string mobile= string.Empty;
        public string second = string.Empty;
    }
And if it's like this, how should I format my datacontext?

So far I only got a patient list... someway the row of relatives is just dissapearing from the resulting document.
                case PatientRow:
                    bubblePlaceHolder = false;

                    foreach (patient patient in ((openXmlElementDataContext.DataContext) as phonebook).patients)
                    {
                        SdtElement clonedElement = this.CloneElementAndSetContentInPlaceholders(new OpenXmlElementDataContext() { Element = openXmlElementDataContext.Element, DataContext = patient });
                    }

                    openXmlElementDataContext.Element.Remove();
                    break;
Thank you.