PageRenderTime 29ms CodeModel.GetById 42ms RepoModel.GetById 0ms app.codeStats 0ms

/NuGenHL7v25/Genetibase/NuGenHL7/model/v25/group/RDE_O11_ORDER.cs

http://github.com/AnthonyNystrom/NuGenHL7
C# | 475 lines | 369 code | 29 blank | 77 comment | 0 complexity | 4cf11c930606ccfb2c3daf42e435814b MD5 | raw file
  1. using System;
  2. using ModelClassFactory = Genetibase.NuGenHL7.parser.NuGenModelClassFactory;
  3. using HL7Exception = Genetibase.NuGenHL7.NuGenHL7Exception;
  4. using Genetibase.NuGenHL7.model.v25.segment;
  5. using Genetibase.NuGenHL7.model;
  6. namespace Genetibase.NuGenHL7.model.v25.group
  7. {
  8. /// <summary> <p>Represents the RDE_O11_ORDER Group. A Group is an ordered collection of message
  9. /// segments that can repeat together or be optionally in/excluded together.
  10. /// This Group contains the following elements: </p>
  11. /// 0: ORC (Common Order) <b></b><br>
  12. /// 1: RDE_O11_TIMING (a Group object) <b>optional repeating</b><br>
  13. /// 2: RDE_O11_ORDER_DETAIL (a Group object) <b>optional </b><br>
  14. /// 3: RXE (Pharmacy/Treatment Encoded Order) <b></b><br>
  15. /// 4: NTE (Notes and Comments) <b>optional repeating</b><br>
  16. /// 5: RDE_O11_TIMING_ENCODED (a Group object) <b>repeating</b><br>
  17. /// 6: RXR (Pharmacy/Treatment Route) <b>repeating</b><br>
  18. /// 7: RXC (Pharmacy/Treatment Component Order) <b>optional repeating</b><br>
  19. /// 8: RDE_O11_OBSERVATION (a Group object) <b>optional repeating</b><br>
  20. /// 9: FT1 (Financial Transaction) <b>optional repeating</b><br>
  21. /// 10: BLG (Billing) <b>optional </b><br>
  22. /// 11: CTI (Clinical Trial Identification) <b>optional repeating</b><br>
  23. /// </summary>
  24. [Serializable]
  25. public class RDE_O11_ORDER:AbstractGroup
  26. {
  27. /// <summary> Returns ORC (Common Order) - creates it if necessary</summary>
  28. virtual public ORC ORC
  29. {
  30. get
  31. {
  32. ORC ret = null;
  33. try
  34. {
  35. ret = (ORC) this.get_Renamed("ORC");
  36. }
  37. catch (NuGenHL7Exception)
  38. {
  39. throw new Exception();
  40. }
  41. return ret;
  42. }
  43. }
  44. /// <summary> Returns the number of existing repetitions of RDE_O11_TIMING </summary>
  45. virtual public int TIMINGReps
  46. {
  47. get
  48. {
  49. int reps = - 1;
  50. try
  51. {
  52. reps = this.getAll("TIMING").Length;
  53. }
  54. catch (NuGenHL7Exception)
  55. {
  56. System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
  57. throw new System.SystemException(message);
  58. }
  59. return reps;
  60. }
  61. }
  62. /// <summary> Returns RDE_O11_ORDER_DETAIL (a Group object) - creates it if necessary</summary>
  63. virtual public RDE_O11_ORDER_DETAIL ORDER_DETAIL
  64. {
  65. get
  66. {
  67. RDE_O11_ORDER_DETAIL ret = null;
  68. try
  69. {
  70. ret = (RDE_O11_ORDER_DETAIL) this.get_Renamed("ORDER_DETAIL");
  71. }
  72. catch (NuGenHL7Exception)
  73. {
  74. throw new Exception();
  75. }
  76. return ret;
  77. }
  78. }
  79. /// <summary> Returns RXE (Pharmacy/Treatment Encoded Order) - creates it if necessary</summary>
  80. virtual public RXE RXE
  81. {
  82. get
  83. {
  84. RXE ret = null;
  85. try
  86. {
  87. ret = (RXE) this.get_Renamed("RXE");
  88. }
  89. catch (NuGenHL7Exception)
  90. {
  91. throw new Exception();
  92. }
  93. return ret;
  94. }
  95. }
  96. /// <summary> Returns the number of existing repetitions of NTE </summary>
  97. virtual public int NTEReps
  98. {
  99. get
  100. {
  101. int reps = - 1;
  102. try
  103. {
  104. reps = this.getAll("NTE").Length;
  105. }
  106. catch (NuGenHL7Exception)
  107. {
  108. System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
  109. throw new System.SystemException(message);
  110. }
  111. return reps;
  112. }
  113. }
  114. /// <summary> Returns the number of existing repetitions of RDE_O11_TIMING_ENCODED </summary>
  115. virtual public int TIMING_ENCODEDReps
  116. {
  117. get
  118. {
  119. int reps = - 1;
  120. try
  121. {
  122. reps = this.getAll("TIMING_ENCODED").Length;
  123. }
  124. catch (NuGenHL7Exception)
  125. {
  126. System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
  127. throw new System.SystemException(message);
  128. }
  129. return reps;
  130. }
  131. }
  132. /// <summary> Returns the number of existing repetitions of RXR </summary>
  133. virtual public int RXRReps
  134. {
  135. get
  136. {
  137. int reps = - 1;
  138. try
  139. {
  140. reps = this.getAll("RXR").Length;
  141. }
  142. catch (NuGenHL7Exception)
  143. {
  144. System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
  145. throw new System.SystemException(message);
  146. }
  147. return reps;
  148. }
  149. }
  150. /// <summary> Returns the number of existing repetitions of RXC </summary>
  151. virtual public int RXCReps
  152. {
  153. get
  154. {
  155. int reps = - 1;
  156. try
  157. {
  158. reps = this.getAll("RXC").Length;
  159. }
  160. catch (NuGenHL7Exception)
  161. {
  162. System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
  163. throw new System.SystemException(message);
  164. }
  165. return reps;
  166. }
  167. }
  168. /// <summary> Returns the number of existing repetitions of RDE_O11_OBSERVATION </summary>
  169. virtual public int OBSERVATIONReps
  170. {
  171. get
  172. {
  173. int reps = - 1;
  174. try
  175. {
  176. reps = this.getAll("OBSERVATION").Length;
  177. }
  178. catch (NuGenHL7Exception)
  179. {
  180. System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
  181. throw new System.SystemException(message);
  182. }
  183. return reps;
  184. }
  185. }
  186. /// <summary> Returns the number of existing repetitions of FT1 </summary>
  187. virtual public int FT1Reps
  188. {
  189. get
  190. {
  191. int reps = - 1;
  192. try
  193. {
  194. reps = this.getAll("FT1").Length;
  195. }
  196. catch (NuGenHL7Exception)
  197. {
  198. System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
  199. throw new System.SystemException(message);
  200. }
  201. return reps;
  202. }
  203. }
  204. /// <summary> Returns BLG (Billing) - creates it if necessary</summary>
  205. virtual public BLG BLG
  206. {
  207. get
  208. {
  209. BLG ret = null;
  210. try
  211. {
  212. ret = (BLG) this.get_Renamed("BLG");
  213. }
  214. catch (NuGenHL7Exception)
  215. {
  216. throw new Exception();
  217. }
  218. return ret;
  219. }
  220. }
  221. /// <summary> Returns the number of existing repetitions of CTI </summary>
  222. virtual public int CTIReps
  223. {
  224. get
  225. {
  226. int reps = - 1;
  227. try
  228. {
  229. reps = this.getAll("CTI").Length;
  230. }
  231. catch (NuGenHL7Exception)
  232. {
  233. System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
  234. throw new System.SystemException(message);
  235. }
  236. return reps;
  237. }
  238. }
  239. /// <summary> Creates a new RDE_O11_ORDER Group.</summary>
  240. public RDE_O11_ORDER(Group parent, ModelClassFactory factory):base(parent, factory)
  241. {
  242. try
  243. {
  244. this.add(typeof(ORC), true, false);
  245. this.add(typeof(RDE_O11_TIMING), false, true);
  246. this.add(typeof(RDE_O11_ORDER_DETAIL), false, false);
  247. this.add(typeof(RXE), true, false);
  248. this.add(typeof(NTE), false, true);
  249. this.add(typeof(RDE_O11_TIMING_ENCODED), true, true);
  250. this.add(typeof(RXR), true, true);
  251. this.add(typeof(RXC), false, true);
  252. this.add(typeof(RDE_O11_OBSERVATION), false, true);
  253. this.add(typeof(FT1), false, true);
  254. this.add(typeof(BLG), false, false);
  255. this.add(typeof(CTI), false, true);
  256. }
  257. catch (NuGenHL7Exception)
  258. {
  259. }
  260. }
  261. /// <summary> Returns first repetition of RDE_O11_TIMING (a Group object) - creates it if necessary</summary>
  262. public virtual RDE_O11_TIMING getTIMING()
  263. {
  264. RDE_O11_TIMING ret = null;
  265. try
  266. {
  267. ret = (RDE_O11_TIMING) this.get_Renamed("TIMING");
  268. }
  269. catch (NuGenHL7Exception)
  270. {
  271. throw new Exception();
  272. }
  273. return ret;
  274. }
  275. /// <summary> Returns a specific repetition of RDE_O11_TIMING
  276. /// (a Group object) - creates it if necessary
  277. /// throws HL7Exception if the repetition requested is more than one
  278. /// greater than the number of existing repetitions.
  279. /// </summary>
  280. public virtual RDE_O11_TIMING getTIMING(int rep)
  281. {
  282. return (RDE_O11_TIMING) this.get_Renamed("TIMING", rep);
  283. }
  284. /// <summary> Returns first repetition of NTE (Notes and Comments) - creates it if necessary</summary>
  285. public virtual NTE getNTE()
  286. {
  287. NTE ret = null;
  288. try
  289. {
  290. ret = (NTE) this.get_Renamed("NTE");
  291. }
  292. catch (NuGenHL7Exception)
  293. {
  294. throw new Exception();
  295. }
  296. return ret;
  297. }
  298. /// <summary> Returns a specific repetition of NTE
  299. /// (Notes and Comments) - creates it if necessary
  300. /// throws HL7Exception if the repetition requested is more than one
  301. /// greater than the number of existing repetitions.
  302. /// </summary>
  303. public virtual NTE getNTE(int rep)
  304. {
  305. return (NTE) this.get_Renamed("NTE", rep);
  306. }
  307. /// <summary> Returns first repetition of RDE_O11_TIMING_ENCODED (a Group object) - creates it if necessary</summary>
  308. public virtual RDE_O11_TIMING_ENCODED getTIMING_ENCODED()
  309. {
  310. RDE_O11_TIMING_ENCODED ret = null;
  311. try
  312. {
  313. ret = (RDE_O11_TIMING_ENCODED) this.get_Renamed("TIMING_ENCODED");
  314. }
  315. catch (NuGenHL7Exception)
  316. {
  317. throw new Exception();
  318. }
  319. return ret;
  320. }
  321. /// <summary> Returns a specific repetition of RDE_O11_TIMING_ENCODED
  322. /// (a Group object) - creates it if necessary
  323. /// throws HL7Exception if the repetition requested is more than one
  324. /// greater than the number of existing repetitions.
  325. /// </summary>
  326. public virtual RDE_O11_TIMING_ENCODED getTIMING_ENCODED(int rep)
  327. {
  328. return (RDE_O11_TIMING_ENCODED) this.get_Renamed("TIMING_ENCODED", rep);
  329. }
  330. /// <summary> Returns first repetition of RXR (Pharmacy/Treatment Route) - creates it if necessary</summary>
  331. public virtual RXR getRXR()
  332. {
  333. RXR ret = null;
  334. try
  335. {
  336. ret = (RXR) this.get_Renamed("RXR");
  337. }
  338. catch (NuGenHL7Exception)
  339. {
  340. throw new Exception();
  341. }
  342. return ret;
  343. }
  344. /// <summary> Returns a specific repetition of RXR
  345. /// (Pharmacy/Treatment Route) - creates it if necessary
  346. /// throws HL7Exception if the repetition requested is more than one
  347. /// greater than the number of existing repetitions.
  348. /// </summary>
  349. public virtual RXR getRXR(int rep)
  350. {
  351. return (RXR) this.get_Renamed("RXR", rep);
  352. }
  353. /// <summary> Returns first repetition of RXC (Pharmacy/Treatment Component Order) - creates it if necessary</summary>
  354. public virtual RXC getRXC()
  355. {
  356. RXC ret = null;
  357. try
  358. {
  359. ret = (RXC) this.get_Renamed("RXC");
  360. }
  361. catch (NuGenHL7Exception)
  362. {
  363. throw new Exception();
  364. }
  365. return ret;
  366. }
  367. /// <summary> Returns a specific repetition of RXC
  368. /// (Pharmacy/Treatment Component Order) - creates it if necessary
  369. /// throws HL7Exception if the repetition requested is more than one
  370. /// greater than the number of existing repetitions.
  371. /// </summary>
  372. public virtual RXC getRXC(int rep)
  373. {
  374. return (RXC) this.get_Renamed("RXC", rep);
  375. }
  376. /// <summary> Returns first repetition of RDE_O11_OBSERVATION (a Group object) - creates it if necessary</summary>
  377. public virtual RDE_O11_OBSERVATION getOBSERVATION()
  378. {
  379. RDE_O11_OBSERVATION ret = null;
  380. try
  381. {
  382. ret = (RDE_O11_OBSERVATION) this.get_Renamed("OBSERVATION");
  383. }
  384. catch (NuGenHL7Exception)
  385. {
  386. throw new Exception();
  387. }
  388. return ret;
  389. }
  390. /// <summary> Returns a specific repetition of RDE_O11_OBSERVATION
  391. /// (a Group object) - creates it if necessary
  392. /// throws HL7Exception if the repetition requested is more than one
  393. /// greater than the number of existing repetitions.
  394. /// </summary>
  395. public virtual RDE_O11_OBSERVATION getOBSERVATION(int rep)
  396. {
  397. return (RDE_O11_OBSERVATION) this.get_Renamed("OBSERVATION", rep);
  398. }
  399. /// <summary> Returns first repetition of FT1 (Financial Transaction) - creates it if necessary</summary>
  400. public virtual FT1 getFT1()
  401. {
  402. FT1 ret = null;
  403. try
  404. {
  405. ret = (FT1) this.get_Renamed("FT1");
  406. }
  407. catch (NuGenHL7Exception)
  408. {
  409. throw new Exception();
  410. }
  411. return ret;
  412. }
  413. /// <summary> Returns a specific repetition of FT1
  414. /// (Financial Transaction) - creates it if necessary
  415. /// throws HL7Exception if the repetition requested is more than one
  416. /// greater than the number of existing repetitions.
  417. /// </summary>
  418. public virtual FT1 getFT1(int rep)
  419. {
  420. return (FT1) this.get_Renamed("FT1", rep);
  421. }
  422. /// <summary> Returns first repetition of CTI (Clinical Trial Identification) - creates it if necessary</summary>
  423. public virtual CTI getCTI()
  424. {
  425. CTI ret = null;
  426. try
  427. {
  428. ret = (CTI) this.get_Renamed("CTI");
  429. }
  430. catch (NuGenHL7Exception)
  431. {
  432. throw new Exception();
  433. }
  434. return ret;
  435. }
  436. /// <summary> Returns a specific repetition of CTI
  437. /// (Clinical Trial Identification) - creates it if necessary
  438. /// throws HL7Exception if the repetition requested is more than one
  439. /// greater than the number of existing repetitions.
  440. /// </summary>
  441. public virtual CTI getCTI(int rep)
  442. {
  443. return (CTI) this.get_Renamed("CTI", rep);
  444. }
  445. }
  446. }