001package ca.cdr.api.pub.hl7v2.common.abstraction; 002 003/*- 004 * #%L 005 * Smile CDR - CDR 006 * %% 007 * Copyright (C) 2016 - 2024 Smile CDR, Inc. 008 * %% 009 * All rights reserved. 010 * #L% 011 */ 012 013import ca.uhn.hl7v2.model.v25.segment.IAM; 014import ca.uhn.hl7v2.model.v25.segment.NK1; 015import ca.uhn.hl7v2.model.v25.segment.PD1; 016import ca.uhn.hl7v2.model.v25.segment.PID; 017 018import java.util.List; 019 020/** 021 * Serves as an abstraction for HL7 V2 message structures containing IAM, NK1, ROL, PID, and PD1, segments 022 */ 023public interface IPatientMessage extends IHasRol { 024 025 PID getPID(); 026 027 PD1 getPD1(); 028 029 List<IAM> getIAM(); 030 031 List<NK1> getNK1(); 032 033 NK1 addNk1(); 034 035 boolean canAddNk1(); 036}