public TaggedMentalHealthInstrumentAdministrationArray(string tag, MentalHealthInstrumentAdministration administration)
 {
     this.tag = tag;
     if (administration == null)
     {
         this.count = 0;
         return;
     }
     this.items = new MentalHealthInstrumentAdministrationTO[1];
     this.items[0] = new MentalHealthInstrumentAdministrationTO(administration);
     this.count = 1;
 }
 public TaggedMentalHealthInstrumentAdministrationArray(string tag, MentalHealthInstrumentAdministration[] mdoItems)
 {
     this.tag = tag;
     if (mdoItems == null)
     {
         this.count = 0;
         return;
     }
     items = new MentalHealthInstrumentAdministrationTO[mdoItems.Length];
     for (int i = 0; i < mdoItems.Length; i++)
     {
         items[i] = new MentalHealthInstrumentAdministrationTO(mdoItems[i]);
     }
     count = items.Length;
 }
 public MentalHealthInstrumentAdministrationTO(MentalHealthInstrumentAdministration mdo)
 {
     this.id = mdo.Id;
     this.patient = new TaggedText(mdo.Patient);
     this.instrument = new TaggedText(mdo.Instrument);
     this.dateAdministered = mdo.DateAdministered;
     this.dateSaved = mdo.DateSaved;
     this.orderedBy = new TaggedText(mdo.OrderedBy);
     this.administeredBy = new TaggedText(mdo.AdministeredBy);
     this.isSigned = mdo.IsSigned;
     this.isComplete = mdo.IsComplete;
     this.numberOfQuestionsAnswered = mdo.NumberOfQuestionsAnswered;
     this.transmitStatus = mdo.TransmissionStatus;
     this.transmitTime = mdo.TransmissionTime;
     this.hospitalLocation = new TaggedText(mdo.HospitalLocation);
     if (mdo.ResultSet != null)
     {
         this.results = new MentalHealthInstrumentResultSetTO(mdo.ResultSet);
     }
 }
 public static void addMentalHealthInstrumentResultSet(AbstractConnection cxn, MentalHealthInstrumentAdministration administration)
 {
     getDao(cxn).addMentalHealthInstrumentResultSet(administration);
 }
 public static void addMentalHealthInstrumentResultSet(AbstractConnection cxn, MentalHealthInstrumentAdministration administration)
 {
     getDao(cxn).addMentalHealthInstrumentResultSet(administration);
 }