001 /*
002 * This class is an auto-generated source file for a HAPI
003 * HL7 v2.x standard structure class.
004 *
005 * For more information, visit: http://hl7api.sourceforge.net/
006 */
007
008 package ca.uhn.hl7v2.model.v231.group;
009
010 import ca.uhn.hl7v2.model.v231.segment.*;
011
012 import ca.uhn.log.HapiLogFactory;
013 import ca.uhn.hl7v2.HL7Exception;
014 import ca.uhn.hl7v2.parser.ModelClassFactory;
015 import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
016 import ca.uhn.hl7v2.model.AbstractMessage;
017 import ca.uhn.hl7v2.model.Group;
018 import ca.uhn.hl7v2.model.AbstractGroup;
019 import ca.uhn.hl7v2.model.GenericSegment;
020
021 /**
022 * <p>Represents a OMS_O01_ORCRQDNTEOBXNTEBLG group structure (a Group object).
023 * A Group is an ordered collection of message segments that can repeat together or be optionally in/excluded together.
024 * This Group contains the following elements:
025 * </p>
026 * <ul>
027 * <li>1: ORC (ORC - common order segment) <b> </b></li>
028 * <li>2: OMS_O01_RQDNTEOBXNTE (a Group object) <b>optional </b></li>
029 * <li>3: BLG (BLG - billing segment) <b>optional </b></li>
030 * </ul>
031 */
032 public class OMS_O01_ORCRQDNTEOBXNTEBLG extends AbstractGroup {
033
034 /**
035 * Creates a new OMS_O01_ORCRQDNTEOBXNTEBLG group
036 */
037 public OMS_O01_ORCRQDNTEOBXNTEBLG(Group parent, ModelClassFactory factory) {
038 super(parent, factory);
039 init(factory);
040 }
041
042 private void init(ModelClassFactory factory) {
043 try {
044 this.add(ORC.class, true, false);
045 this.add(OMS_O01_RQDNTEOBXNTE.class, false, false);
046 this.add(BLG.class, false, false);
047 } catch(HL7Exception e) {
048 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected error creating OMS_O01_ORCRQDNTEOBXNTEBLG - this is probably a bug in the source code generator.", e);
049 }
050 }
051
052 /**
053 * Returns "2.3.1"
054 */
055 public String getVersion() {
056 return "2.3.1";
057 }
058
059
060
061 /**
062 * Returns
063 * ORC (ORC - common order segment) - creates it if necessary
064 */
065 public ORC getORC() {
066 ORC ret = null;
067 try {
068 ret = (ORC)this.get("ORC");
069 } catch(HL7Exception e) {
070 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected error accessing data - this is probably a bug in the source code generator.", e);
071 throw new RuntimeException(e);
072 }
073 return ret;
074 }
075
076
077
078
079 /**
080 * Returns
081 * RQDNTEOBXNTE (a Group object) - creates it if necessary
082 */
083 public OMS_O01_RQDNTEOBXNTE getRQDNTEOBXNTE() {
084 OMS_O01_RQDNTEOBXNTE ret = null;
085 try {
086 ret = (OMS_O01_RQDNTEOBXNTE)this.get("RQDNTEOBXNTE");
087 } catch(HL7Exception e) {
088 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected error accessing data - this is probably a bug in the source code generator.", e);
089 throw new RuntimeException(e);
090 }
091 return ret;
092 }
093
094
095
096
097 /**
098 * Returns
099 * BLG (BLG - billing segment) - creates it if necessary
100 */
101 public BLG getBLG() {
102 BLG ret = null;
103 try {
104 ret = (BLG)this.get("BLG");
105 } catch(HL7Exception e) {
106 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected error accessing data - this is probably a bug in the source code generator.", e);
107 throw new RuntimeException(e);
108 }
109 return ret;
110 }
111
112
113
114
115 }
116