ava: the unnamed module reads package ca.uhn.hl7v2.model.v22.datatype from both hapi.base and hapi.structures.v22
My imports look like this.
import ca.uhn.hl7v2.DefaultHapiContext;
import ca.uhn.hl7v2.HL7Exception;
import ca.uhn.hl7v2.HapiContext;
import ca.uhn.hl7v2.model.Message;
import ca.uhn.hl7v2.model.v22.datatype.PN;
import ca.uhn.hl7v2.model.v22.message.ADT_A01;
import ca.uhn.hl7v2.model.v22.segment.MSH;
import ca.uhn.hl7v2.parser.EncodingNotSupportedException;
import ca.uhn.hl7v2.parser.Parser;
An my module-info.java requires
requires hapi.base;
requires hapi.structures.v22;
Regards
Thomas Dost