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.v25.segment.OBR;
013import ca.uhn.hl7v2.model.v25.segment.ORC;
014
015import java.util.List;
016
017/**
018 * Serves as an abstraction for HL7 V2 message structures containing ORC and OBR segments
019 */
020public interface IOrderMessage {
021
022        List<IOrder> getOrders();
023
024        IOrder addOrder();
025
026        interface IOrder {
027
028                ORC getOrc();
029
030                OBR getObr();
031        }
032}