001/*-
002 * #%L
003 * Smile CDR - CDR
004 * %%
005 * Copyright (C) 2016 - 2024 Smile CDR, Inc.
006 * %%
007 * All rights reserved.
008 * #L%
009 */
010package ca.cdr.api.pub.hl7v2.common.abstraction;
011
012import ca.uhn.hl7v2.model.AbstractMessage;
013import ca.uhn.hl7v2.model.v25.segment.EVN;
014import ca.uhn.hl7v2.model.v25.segment.MSH;
015
016public class EventMessage implements IEventMessage {
017
018        private AbstractMessage myMessage;
019        private MSH myMsh;
020        private EVN myEvn;
021
022        public EventMessage setMsh(MSH theMsh) {
023                myMsh = theMsh;
024                return this;
025        }
026
027        public EventMessage setEvn(EVN theEvn) {
028                myEvn = theEvn;
029                return this;
030        }
031
032        @Override
033        public AbstractMessage getMessage() {
034                return myMessage;
035        }
036
037        public EventMessage setMessage(AbstractMessage theMsg) {
038                myMessage = theMsg;
039                return this;
040        }
041
042        @Override
043        public MSH getMSH() {
044                return myMsh;
045        }
046
047        @Override
048        public EVN getEVN() {
049                return myEvn;
050        }
051}