///<summary>
        /// Returns  first repetition of PEX_P07_STUDY (a Group object) - creates it if necessary
        ///</summary>
        public PEX_P07_STUDY GetSTUDY()
        {
            PEX_P07_STUDY ret = null;

            try {
                ret = (PEX_P07_STUDY)this.GetStructure("STUDY");
            } catch (HL7Exception e) {
                HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e);
                throw new System.Exception("An unexpected error ocurred", e);
            }
            return(ret);
        }
 ///<summary>
 ///Removes the given PEX_P07_STUDY
 ///</summary>
 public void RemoveSTUDY(PEX_P07_STUDY toRemove)
 {
     this.RemoveStructure("STUDY", toRemove);
 }